You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by "Chandan Purushothama (JIRA)" <ji...@apache.org> on 2012/09/20 00:11:07 UTC

[jira] [Created] (CLOUDSTACK-152) Routes on the User VM are programmed incorrectly on a VM present on both an Isolated and Shared Guest Networks

Chandan Purushothama created CLOUDSTACK-152:
-----------------------------------------------

             Summary: Routes on the User VM are programmed incorrectly on a VM present on both an Isolated and Shared Guest Networks
                 Key: CLOUDSTACK-152
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-152
             Project: CloudStack
          Issue Type: Bug
          Components: Management Server
    Affects Versions: pre-4.0.0
            Reporter: Chandan Purushothama
             Fix For: pre-4.0.0



==================
Steps to Reproduce:
==================

1. As the Admin of ROOT domain, Create a shared guest network using the DefaultNetworkOfferingforSharedNetworks.
2. Login as a Regular User. Create an isolated guest network using the "DefaultNetworkOfferingwithSourceNATService"
3. Register a CentOS6.3_x86_64 ISO
4. Deploy a VM on the Isolated and Shared Guest Network using the ISO. Make sure that the Isolated Guest Network is chosen as the default Guest Network.
5. View the VM's Console. Observe that the only IP Address present on the VM is the loopback address.
6. Edit the two ifcfg-ethx files present under /etc/sysconfig/network-scripts/. Set the ONBOOT parameter to yes.
7. Reboot the VM or restart the network service.
8. Observe the routes on the VM after the Reboot.

==========
Observations:
==========

[root@B-regnet-shdnet-iso-vm-4 ~]# history
    1  ifconfig
    2  reboot
    3  history
[root@B-regnet-shdnet-iso-vm-4 ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 02:00:47:BD:00:06
          inet addr:10.1.1.48  Bcast:10.1.1.255  Mask:255.255.255.0
          inet6 addr: fe80::47ff:febd:6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:379 (379.0 b)  TX bytes:1116 (1.0 KiB)
          Interrupt:165

eth1      Link encap:Ethernet  HWaddr 06:74:B6:00:00:3A
          inet addr:10.223.137.78  Bcast:10.223.137.127  Mask:255.255.255.192
          inet6 addr: fe80::474:b6ff:fe00:3a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:108 errors:0 dropped:0 overruns:0 frame:0
          TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:9425 (9.2 KiB)  TX bytes:10289 (10.0 KiB)
          Interrupt:164

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


**Observe that except the second and the third route all the remaining routes are wrong. Notice that 10.1.1.48 is on eth0 while 10.223.137.78 is on eth1**

[root@B-regnet-shdnet-iso-vm-4 ~]# ip route
10.1.1.1 dev eth1  scope link
10.223.137.64/26 dev eth1  proto kernel  scope link  src 10.223.137.78
10.1.1.0/24 dev eth0  proto kernel  scope link  src 10.1.1.48
169.254.0.0/16 dev eth0  scope link  metric 1002
169.254.0.0/16 dev eth1  scope link  metric 1003
default via 10.1.1.1 dev eth1

[root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="dhcp"
HWADDR="02:00:47:BD:00:06"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="b74145e6-eaf5-4b53-b19a-9a4051fa4a75"

[root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE="eth1"
BOOTPROTO="dhcp"
HWADDR="06:74:B6:00:00:3A"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="a5afb535-0eb0-4196-a324-87aec613f38a"

[root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/redhat-release
CentOS release 6.3 (Final)

=======
Git Info:
=======

Git Revision: 54f9af1695bc359b02e9fc906b3b335cc0bfec41
Git URL: https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (CLOUDSTACK-152) Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks

Posted by "Alex Huang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLOUDSTACK-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Huang reassigned CLOUDSTACK-152:
-------------------------------------

    Assignee: Chandan Purushothama  (was: Sheng Yang)

Retest this with a guest type that's supported.  If it no longer happens, then we can push to 4.1.
                
> Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-152
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-152
>             Project: CloudStack
>          Issue Type: Bug
>          Components: Management Server
>    Affects Versions: pre-4.0.0
>            Reporter: Chandan Purushothama
>            Assignee: Chandan Purushothama
>             Fix For: pre-4.0.0
>
>         Attachments: messagesontheUserVM.zip
>
>
> ==================
> Steps to Reproduce:
> ==================
> 1. As the Admin of ROOT domain, Create a shared guest network using the DefaultNetworkOfferingforSharedNetworks.
> 2. Login as a Regular User. Create an isolated guest network using the "DefaultNetworkOfferingwithSourceNATService"
> 3. Register a CentOS6.3_x86_64 ISO
> 4. Deploy a VM on the Isolated and Shared Guest Network using the ISO. Make sure that the Isolated Guest Network is chosen as the default Guest Network.
> 5. View the VM's Console. Observe that the only IP Address present on the VM is the loopback address.
> 6. Edit the two ifcfg-ethx files present under /etc/sysconfig/network-scripts/. Set the ONBOOT parameter to yes.
> 7. Reboot the VM or restart the network service.
> 8. Observe the routes on the VM after the Reboot.
> ==========
> Observations:
> ==========
> [root@B-regnet-shdnet-iso-vm-4 ~]# history
>     1  ifconfig
>     2  reboot
>     3  history
> [root@B-regnet-shdnet-iso-vm-4 ~]# ifconfig
> eth0      Link encap:Ethernet  HWaddr 02:00:47:BD:00:06
>           inet addr:10.1.1.48  Bcast:10.1.1.255  Mask:255.255.255.0
>           inet6 addr: fe80::47ff:febd:6/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:2 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:379 (379.0 b)  TX bytes:1116 (1.0 KiB)
>           Interrupt:165
> eth1      Link encap:Ethernet  HWaddr 06:74:B6:00:00:3A
>           inet addr:10.223.137.78  Bcast:10.223.137.127  Mask:255.255.255.192
>           inet6 addr: fe80::474:b6ff:fe00:3a/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:108 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:9425 (9.2 KiB)  TX bytes:10289 (10.0 KiB)
>           Interrupt:164
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
> **Observe that except the second and the third route all the remaining routes are wrong. Notice that 10.1.1.48 is on eth0 while 10.223.137.78 is on eth1**
> [root@B-regnet-shdnet-iso-vm-4 ~]# ip route
> 10.1.1.1 dev eth1  scope link
> 10.223.137.64/26 dev eth1  proto kernel  scope link  src 10.223.137.78
> 10.1.1.0/24 dev eth0  proto kernel  scope link  src 10.1.1.48
> 169.254.0.0/16 dev eth0  scope link  metric 1002
> 169.254.0.0/16 dev eth1  scope link  metric 1003
> default via 10.1.1.1 dev eth1
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE="eth0"
> BOOTPROTO="dhcp"
> HWADDR="02:00:47:BD:00:06"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="b74145e6-eaf5-4b53-b19a-9a4051fa4a75"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
> DEVICE="eth1"
> BOOTPROTO="dhcp"
> HWADDR="06:74:B6:00:00:3A"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="a5afb535-0eb0-4196-a324-87aec613f38a"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/redhat-release
> CentOS release 6.3 (Final)
> =======
> Git Info:
> =======
> Git Revision: 54f9af1695bc359b02e9fc906b3b335cc0bfec41
> Git URL: https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CLOUDSTACK-152) Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks

Posted by "Sudha Ponnaganti (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLOUDSTACK-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sudha Ponnaganti updated CLOUDSTACK-152:
----------------------------------------

    Assignee: Rohit Yadav
    
> Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-152
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-152
>             Project: CloudStack
>          Issue Type: Bug
>          Components: Management Server
>    Affects Versions: pre-4.0.0
>            Reporter: Chandan Purushothama
>            Assignee: Rohit Yadav
>             Fix For: pre-4.0.0
>
>         Attachments: messagesontheUserVM.zip
>
>
> ==================
> Steps to Reproduce:
> ==================
> 1. As the Admin of ROOT domain, Create a shared guest network using the DefaultNetworkOfferingforSharedNetworks.
> 2. Login as a Regular User. Create an isolated guest network using the "DefaultNetworkOfferingwithSourceNATService"
> 3. Register a CentOS6.3_x86_64 ISO
> 4. Deploy a VM on the Isolated and Shared Guest Network using the ISO. Make sure that the Isolated Guest Network is chosen as the default Guest Network.
> 5. View the VM's Console. Observe that the only IP Address present on the VM is the loopback address.
> 6. Edit the two ifcfg-ethx files present under /etc/sysconfig/network-scripts/. Set the ONBOOT parameter to yes.
> 7. Reboot the VM or restart the network service.
> 8. Observe the routes on the VM after the Reboot.
> ==========
> Observations:
> ==========
> [root@B-regnet-shdnet-iso-vm-4 ~]# history
>     1  ifconfig
>     2  reboot
>     3  history
> [root@B-regnet-shdnet-iso-vm-4 ~]# ifconfig
> eth0      Link encap:Ethernet  HWaddr 02:00:47:BD:00:06
>           inet addr:10.1.1.48  Bcast:10.1.1.255  Mask:255.255.255.0
>           inet6 addr: fe80::47ff:febd:6/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:2 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:379 (379.0 b)  TX bytes:1116 (1.0 KiB)
>           Interrupt:165
> eth1      Link encap:Ethernet  HWaddr 06:74:B6:00:00:3A
>           inet addr:10.223.137.78  Bcast:10.223.137.127  Mask:255.255.255.192
>           inet6 addr: fe80::474:b6ff:fe00:3a/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:108 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:9425 (9.2 KiB)  TX bytes:10289 (10.0 KiB)
>           Interrupt:164
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
> **Observe that except the second and the third route all the remaining routes are wrong. Notice that 10.1.1.48 is on eth0 while 10.223.137.78 is on eth1**
> [root@B-regnet-shdnet-iso-vm-4 ~]# ip route
> 10.1.1.1 dev eth1  scope link
> 10.223.137.64/26 dev eth1  proto kernel  scope link  src 10.223.137.78
> 10.1.1.0/24 dev eth0  proto kernel  scope link  src 10.1.1.48
> 169.254.0.0/16 dev eth0  scope link  metric 1002
> 169.254.0.0/16 dev eth1  scope link  metric 1003
> default via 10.1.1.1 dev eth1
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE="eth0"
> BOOTPROTO="dhcp"
> HWADDR="02:00:47:BD:00:06"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="b74145e6-eaf5-4b53-b19a-9a4051fa4a75"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
> DEVICE="eth1"
> BOOTPROTO="dhcp"
> HWADDR="06:74:B6:00:00:3A"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="a5afb535-0eb0-4196-a324-87aec613f38a"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/redhat-release
> CentOS release 6.3 (Final)
> =======
> Git Info:
> =======
> Git Revision: 54f9af1695bc359b02e9fc906b3b335cc0bfec41
> Git URL: https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CLOUDSTACK-152) Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks

Posted by "Sheng Yang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLOUDSTACK-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13459285#comment-13459285 ] 

Sheng Yang commented on CLOUDSTACK-152:
---------------------------------------

Please refer to http://bugs.cloudstack.org/browse/CS-13836

I think here the wrong guest OS type cause the bug.
                
> Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-152
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-152
>             Project: CloudStack
>          Issue Type: Bug
>          Components: Management Server
>    Affects Versions: pre-4.0.0
>            Reporter: Chandan Purushothama
>             Fix For: pre-4.0.0
>
>         Attachments: messagesontheUserVM.zip
>
>
> ==================
> Steps to Reproduce:
> ==================
> 1. As the Admin of ROOT domain, Create a shared guest network using the DefaultNetworkOfferingforSharedNetworks.
> 2. Login as a Regular User. Create an isolated guest network using the "DefaultNetworkOfferingwithSourceNATService"
> 3. Register a CentOS6.3_x86_64 ISO
> 4. Deploy a VM on the Isolated and Shared Guest Network using the ISO. Make sure that the Isolated Guest Network is chosen as the default Guest Network.
> 5. View the VM's Console. Observe that the only IP Address present on the VM is the loopback address.
> 6. Edit the two ifcfg-ethx files present under /etc/sysconfig/network-scripts/. Set the ONBOOT parameter to yes.
> 7. Reboot the VM or restart the network service.
> 8. Observe the routes on the VM after the Reboot.
> ==========
> Observations:
> ==========
> [root@B-regnet-shdnet-iso-vm-4 ~]# history
>     1  ifconfig
>     2  reboot
>     3  history
> [root@B-regnet-shdnet-iso-vm-4 ~]# ifconfig
> eth0      Link encap:Ethernet  HWaddr 02:00:47:BD:00:06
>           inet addr:10.1.1.48  Bcast:10.1.1.255  Mask:255.255.255.0
>           inet6 addr: fe80::47ff:febd:6/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:2 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:379 (379.0 b)  TX bytes:1116 (1.0 KiB)
>           Interrupt:165
> eth1      Link encap:Ethernet  HWaddr 06:74:B6:00:00:3A
>           inet addr:10.223.137.78  Bcast:10.223.137.127  Mask:255.255.255.192
>           inet6 addr: fe80::474:b6ff:fe00:3a/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:108 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:9425 (9.2 KiB)  TX bytes:10289 (10.0 KiB)
>           Interrupt:164
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
> **Observe that except the second and the third route all the remaining routes are wrong. Notice that 10.1.1.48 is on eth0 while 10.223.137.78 is on eth1**
> [root@B-regnet-shdnet-iso-vm-4 ~]# ip route
> 10.1.1.1 dev eth1  scope link
> 10.223.137.64/26 dev eth1  proto kernel  scope link  src 10.223.137.78
> 10.1.1.0/24 dev eth0  proto kernel  scope link  src 10.1.1.48
> 169.254.0.0/16 dev eth0  scope link  metric 1002
> 169.254.0.0/16 dev eth1  scope link  metric 1003
> default via 10.1.1.1 dev eth1
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE="eth0"
> BOOTPROTO="dhcp"
> HWADDR="02:00:47:BD:00:06"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="b74145e6-eaf5-4b53-b19a-9a4051fa4a75"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
> DEVICE="eth1"
> BOOTPROTO="dhcp"
> HWADDR="06:74:B6:00:00:3A"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="a5afb535-0eb0-4196-a324-87aec613f38a"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/redhat-release
> CentOS release 6.3 (Final)
> =======
> Git Info:
> =======
> Git Revision: 54f9af1695bc359b02e9fc906b3b335cc0bfec41
> Git URL: https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CLOUDSTACK-152) Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks

Posted by "Sheng Yang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLOUDSTACK-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13459284#comment-13459284 ] 

Sheng Yang commented on CLOUDSTACK-152:
---------------------------------------

Please refer to:

http://bugs.cloud.com/show_bug.cgi?id=14042
                
> Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-152
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-152
>             Project: CloudStack
>          Issue Type: Bug
>          Components: Management Server
>    Affects Versions: pre-4.0.0
>            Reporter: Chandan Purushothama
>             Fix For: pre-4.0.0
>
>         Attachments: messagesontheUserVM.zip
>
>
> ==================
> Steps to Reproduce:
> ==================
> 1. As the Admin of ROOT domain, Create a shared guest network using the DefaultNetworkOfferingforSharedNetworks.
> 2. Login as a Regular User. Create an isolated guest network using the "DefaultNetworkOfferingwithSourceNATService"
> 3. Register a CentOS6.3_x86_64 ISO
> 4. Deploy a VM on the Isolated and Shared Guest Network using the ISO. Make sure that the Isolated Guest Network is chosen as the default Guest Network.
> 5. View the VM's Console. Observe that the only IP Address present on the VM is the loopback address.
> 6. Edit the two ifcfg-ethx files present under /etc/sysconfig/network-scripts/. Set the ONBOOT parameter to yes.
> 7. Reboot the VM or restart the network service.
> 8. Observe the routes on the VM after the Reboot.
> ==========
> Observations:
> ==========
> [root@B-regnet-shdnet-iso-vm-4 ~]# history
>     1  ifconfig
>     2  reboot
>     3  history
> [root@B-regnet-shdnet-iso-vm-4 ~]# ifconfig
> eth0      Link encap:Ethernet  HWaddr 02:00:47:BD:00:06
>           inet addr:10.1.1.48  Bcast:10.1.1.255  Mask:255.255.255.0
>           inet6 addr: fe80::47ff:febd:6/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:2 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:379 (379.0 b)  TX bytes:1116 (1.0 KiB)
>           Interrupt:165
> eth1      Link encap:Ethernet  HWaddr 06:74:B6:00:00:3A
>           inet addr:10.223.137.78  Bcast:10.223.137.127  Mask:255.255.255.192
>           inet6 addr: fe80::474:b6ff:fe00:3a/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:108 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:9425 (9.2 KiB)  TX bytes:10289 (10.0 KiB)
>           Interrupt:164
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
> **Observe that except the second and the third route all the remaining routes are wrong. Notice that 10.1.1.48 is on eth0 while 10.223.137.78 is on eth1**
> [root@B-regnet-shdnet-iso-vm-4 ~]# ip route
> 10.1.1.1 dev eth1  scope link
> 10.223.137.64/26 dev eth1  proto kernel  scope link  src 10.223.137.78
> 10.1.1.0/24 dev eth0  proto kernel  scope link  src 10.1.1.48
> 169.254.0.0/16 dev eth0  scope link  metric 1002
> 169.254.0.0/16 dev eth1  scope link  metric 1003
> default via 10.1.1.1 dev eth1
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE="eth0"
> BOOTPROTO="dhcp"
> HWADDR="02:00:47:BD:00:06"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="b74145e6-eaf5-4b53-b19a-9a4051fa4a75"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
> DEVICE="eth1"
> BOOTPROTO="dhcp"
> HWADDR="06:74:B6:00:00:3A"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="a5afb535-0eb0-4196-a324-87aec613f38a"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/redhat-release
> CentOS release 6.3 (Final)
> =======
> Git Info:
> =======
> Git Revision: 54f9af1695bc359b02e9fc906b3b335cc0bfec41
> Git URL: https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CLOUDSTACK-152) Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks

Posted by "Chandan Purushothama (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLOUDSTACK-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chandan Purushothama updated CLOUDSTACK-152:
--------------------------------------------

    Summary: Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks  (was: Routes on the User VM are programmed incorrectly on a VM present on both an Isolated and Shared Guest Networks)
    
> Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-152
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-152
>             Project: CloudStack
>          Issue Type: Bug
>          Components: Management Server
>    Affects Versions: pre-4.0.0
>            Reporter: Chandan Purushothama
>             Fix For: pre-4.0.0
>
>
> ==================
> Steps to Reproduce:
> ==================
> 1. As the Admin of ROOT domain, Create a shared guest network using the DefaultNetworkOfferingforSharedNetworks.
> 2. Login as a Regular User. Create an isolated guest network using the "DefaultNetworkOfferingwithSourceNATService"
> 3. Register a CentOS6.3_x86_64 ISO
> 4. Deploy a VM on the Isolated and Shared Guest Network using the ISO. Make sure that the Isolated Guest Network is chosen as the default Guest Network.
> 5. View the VM's Console. Observe that the only IP Address present on the VM is the loopback address.
> 6. Edit the two ifcfg-ethx files present under /etc/sysconfig/network-scripts/. Set the ONBOOT parameter to yes.
> 7. Reboot the VM or restart the network service.
> 8. Observe the routes on the VM after the Reboot.
> ==========
> Observations:
> ==========
> [root@B-regnet-shdnet-iso-vm-4 ~]# history
>     1  ifconfig
>     2  reboot
>     3  history
> [root@B-regnet-shdnet-iso-vm-4 ~]# ifconfig
> eth0      Link encap:Ethernet  HWaddr 02:00:47:BD:00:06
>           inet addr:10.1.1.48  Bcast:10.1.1.255  Mask:255.255.255.0
>           inet6 addr: fe80::47ff:febd:6/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:2 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:379 (379.0 b)  TX bytes:1116 (1.0 KiB)
>           Interrupt:165
> eth1      Link encap:Ethernet  HWaddr 06:74:B6:00:00:3A
>           inet addr:10.223.137.78  Bcast:10.223.137.127  Mask:255.255.255.192
>           inet6 addr: fe80::474:b6ff:fe00:3a/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:108 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:9425 (9.2 KiB)  TX bytes:10289 (10.0 KiB)
>           Interrupt:164
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
> **Observe that except the second and the third route all the remaining routes are wrong. Notice that 10.1.1.48 is on eth0 while 10.223.137.78 is on eth1**
> [root@B-regnet-shdnet-iso-vm-4 ~]# ip route
> 10.1.1.1 dev eth1  scope link
> 10.223.137.64/26 dev eth1  proto kernel  scope link  src 10.223.137.78
> 10.1.1.0/24 dev eth0  proto kernel  scope link  src 10.1.1.48
> 169.254.0.0/16 dev eth0  scope link  metric 1002
> 169.254.0.0/16 dev eth1  scope link  metric 1003
> default via 10.1.1.1 dev eth1
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE="eth0"
> BOOTPROTO="dhcp"
> HWADDR="02:00:47:BD:00:06"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="b74145e6-eaf5-4b53-b19a-9a4051fa4a75"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
> DEVICE="eth1"
> BOOTPROTO="dhcp"
> HWADDR="06:74:B6:00:00:3A"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="a5afb535-0eb0-4196-a324-87aec613f38a"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/redhat-release
> CentOS release 6.3 (Final)
> =======
> Git Info:
> =======
> Git Revision: 54f9af1695bc359b02e9fc906b3b335cc0bfec41
> Git URL: https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CLOUDSTACK-152) Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks

Posted by "Chandan Purushothama (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLOUDSTACK-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13459294#comment-13459294 ] 

Chandan Purushothama commented on CLOUDSTACK-152:
-------------------------------------------------

The OS Type is Other-Linux-64bit. This guest OS Type CentOS 6.3 is not a valid guest OS Type on XenServer 6.0.2. 

Besides XenServer limitation, CloudStack Guest OS Types doesnt list CentOS 6.3 as one of them.

mysql> select * from guest_os where display_name like "%CentOS%";
+-----+-------------+------+--------------------------------------+-----------------------+
| id  | category_id | name | uuid                                 | display_name          |
+-----+-------------+------+--------------------------------------+-----------------------+
|   1 |           1 | NULL | 3e361836-00ba-4742-bac0-1bb32a47f885 | CentOS 4.5 (32-bit)   |
|   2 |           1 | NULL | ab8b35cb-5ae9-4339-bf11-54530f442715 | CentOS 4.6 (32-bit)   |
|   3 |           1 | NULL | a2782798-10af-4279-a146-685d8b276702 | CentOS 4.7 (32-bit)   |
|   4 |           1 | NULL | 5ca78cbc-c31e-4a92-9549-e140c798361e | CentOS 4.8 (32-bit)   |
|   5 |           1 | NULL | 9befee3e-1539-4402-8be3-0a48478b28c9 | CentOS 5.0 (32-bit)   |
|   6 |           1 | NULL | 7ca4eaf2-1679-46ee-80b0-325561f91841 | CentOS 5.0 (64-bit)   |
|   7 |           1 | NULL | 22c0a7b8-ff1c-42e2-90fd-ebab6014478c | CentOS 5.1 (32-bit)   |
|   8 |           1 | NULL | 6481a7d1-3ccb-4da1-be24-4d4df1526369 | CentOS 5.1 (64-bit)   |
|   9 |           1 | NULL | c05318ad-ef14-4231-bb44-eda375c27019 | CentOS 5.2 (32-bit)   |
|  10 |           1 | NULL | 5fe3b662-72ea-43a5-9560-fa7079cb430c | CentOS 5.2 (64-bit)   |
|  11 |           1 | NULL | f4e9f640-93f1-486c-9179-0aaf79631c56 | CentOS 5.3 (32-bit)   |
|  12 |           1 | NULL | ca6c5d25-90b1-4c24-8b3a-2327e9b0ed38 | CentOS 5.3 (64-bit)   |
|  13 |           1 | NULL | 2a0b1aba-573a-460f-8cdd-008ffe9c10a2 | CentOS 5.4 (32-bit)   |
|  14 |           1 | NULL | f515d410-11a0-4434-bd62-070ce5325549 | CentOS 5.4 (64-bit)   |
| 111 |           1 | NULL | 36ee39b5-8e8c-4688-b662-5e84099dec35 | CentOS 5.5 (32-bit)   |
| 112 |           1 | NULL | 1d126c4b-26dd-4cb4-885d-ce3fe1675b91 | CentOS 5.5 (64-bit)   |
| 141 |           1 | NULL | f89ca09a-6da0-44b3-84e6-11c36e9fe90f | CentOS 5.6 (32-bit)   |
| 142 |           1 | NULL | dae42679-3fe4-4760-83f4-37ad823ea535 | CentOS 5.6 (64-bit)   |
| 143 |           1 | NULL | 05baa6ca-bee3-426f-a352-cca6ae5d1f78 | CentOS 6.0 (32-bit)   |
| 144 |           1 | NULL | ad58d8f1-e30b-4743-829f-dd9a63551564 | CentOS 6.0 (64-bit)   |
| 161 |           1 | NULL | a8d7d9a2-b7ad-417d-815b-33424418a0bf | CentOS 5.7 (32-bit)   |
| 162 |           1 | NULL | cbe79d82-312b-4833-b4b4-57a1929dcfaa | CentOS 5.7 (64-bit)   |
| 200 |           1 | NULL | a72697d3-d2a5-4a14-8c27-7a38a009f733 | Other CentOS (32-bit) |
| 201 |           1 | NULL | 408fb7ef-54a4-4683-9334-9bfec04ca427 | Other CentOS (64-bit) |
+-----+-------------+------+--------------------------------------+-----------------------+
24 rows in set (0.00 sec)
 
                
> Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-152
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-152
>             Project: CloudStack
>          Issue Type: Bug
>          Components: Management Server
>    Affects Versions: pre-4.0.0
>            Reporter: Chandan Purushothama
>             Fix For: pre-4.0.0
>
>         Attachments: messagesontheUserVM.zip
>
>
> ==================
> Steps to Reproduce:
> ==================
> 1. As the Admin of ROOT domain, Create a shared guest network using the DefaultNetworkOfferingforSharedNetworks.
> 2. Login as a Regular User. Create an isolated guest network using the "DefaultNetworkOfferingwithSourceNATService"
> 3. Register a CentOS6.3_x86_64 ISO
> 4. Deploy a VM on the Isolated and Shared Guest Network using the ISO. Make sure that the Isolated Guest Network is chosen as the default Guest Network.
> 5. View the VM's Console. Observe that the only IP Address present on the VM is the loopback address.
> 6. Edit the two ifcfg-ethx files present under /etc/sysconfig/network-scripts/. Set the ONBOOT parameter to yes.
> 7. Reboot the VM or restart the network service.
> 8. Observe the routes on the VM after the Reboot.
> ==========
> Observations:
> ==========
> [root@B-regnet-shdnet-iso-vm-4 ~]# history
>     1  ifconfig
>     2  reboot
>     3  history
> [root@B-regnet-shdnet-iso-vm-4 ~]# ifconfig
> eth0      Link encap:Ethernet  HWaddr 02:00:47:BD:00:06
>           inet addr:10.1.1.48  Bcast:10.1.1.255  Mask:255.255.255.0
>           inet6 addr: fe80::47ff:febd:6/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:2 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:379 (379.0 b)  TX bytes:1116 (1.0 KiB)
>           Interrupt:165
> eth1      Link encap:Ethernet  HWaddr 06:74:B6:00:00:3A
>           inet addr:10.223.137.78  Bcast:10.223.137.127  Mask:255.255.255.192
>           inet6 addr: fe80::474:b6ff:fe00:3a/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:108 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:9425 (9.2 KiB)  TX bytes:10289 (10.0 KiB)
>           Interrupt:164
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
> **Observe that except the second and the third route all the remaining routes are wrong. Notice that 10.1.1.48 is on eth0 while 10.223.137.78 is on eth1**
> [root@B-regnet-shdnet-iso-vm-4 ~]# ip route
> 10.1.1.1 dev eth1  scope link
> 10.223.137.64/26 dev eth1  proto kernel  scope link  src 10.223.137.78
> 10.1.1.0/24 dev eth0  proto kernel  scope link  src 10.1.1.48
> 169.254.0.0/16 dev eth0  scope link  metric 1002
> 169.254.0.0/16 dev eth1  scope link  metric 1003
> default via 10.1.1.1 dev eth1
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE="eth0"
> BOOTPROTO="dhcp"
> HWADDR="02:00:47:BD:00:06"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="b74145e6-eaf5-4b53-b19a-9a4051fa4a75"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
> DEVICE="eth1"
> BOOTPROTO="dhcp"
> HWADDR="06:74:B6:00:00:3A"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="a5afb535-0eb0-4196-a324-87aec613f38a"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/redhat-release
> CentOS release 6.3 (Final)
> =======
> Git Info:
> =======
> Git Revision: 54f9af1695bc359b02e9fc906b3b335cc0bfec41
> Git URL: https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CLOUDSTACK-152) Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks

Posted by "Alex Huang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLOUDSTACK-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Huang updated CLOUDSTACK-152:
----------------------------------

    Fix Version/s:     (was: pre-4.0.0)
                   4.1.0
    
> Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-152
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-152
>             Project: CloudStack
>          Issue Type: Bug
>          Components: Management Server
>    Affects Versions: pre-4.0.0
>            Reporter: Chandan Purushothama
>            Assignee: Sheng Yang
>             Fix For: 4.1.0
>
>         Attachments: messagesontheUserVM.zip
>
>
> ==================
> Steps to Reproduce:
> ==================
> 1. As the Admin of ROOT domain, Create a shared guest network using the DefaultNetworkOfferingforSharedNetworks.
> 2. Login as a Regular User. Create an isolated guest network using the "DefaultNetworkOfferingwithSourceNATService"
> 3. Register a CentOS6.3_x86_64 ISO
> 4. Deploy a VM on the Isolated and Shared Guest Network using the ISO. Make sure that the Isolated Guest Network is chosen as the default Guest Network.
> 5. View the VM's Console. Observe that the only IP Address present on the VM is the loopback address.
> 6. Edit the two ifcfg-ethx files present under /etc/sysconfig/network-scripts/. Set the ONBOOT parameter to yes.
> 7. Reboot the VM or restart the network service.
> 8. Observe the routes on the VM after the Reboot.
> ==========
> Observations:
> ==========
> [root@B-regnet-shdnet-iso-vm-4 ~]# history
>     1  ifconfig
>     2  reboot
>     3  history
> [root@B-regnet-shdnet-iso-vm-4 ~]# ifconfig
> eth0      Link encap:Ethernet  HWaddr 02:00:47:BD:00:06
>           inet addr:10.1.1.48  Bcast:10.1.1.255  Mask:255.255.255.0
>           inet6 addr: fe80::47ff:febd:6/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:2 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:379 (379.0 b)  TX bytes:1116 (1.0 KiB)
>           Interrupt:165
> eth1      Link encap:Ethernet  HWaddr 06:74:B6:00:00:3A
>           inet addr:10.223.137.78  Bcast:10.223.137.127  Mask:255.255.255.192
>           inet6 addr: fe80::474:b6ff:fe00:3a/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:108 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:9425 (9.2 KiB)  TX bytes:10289 (10.0 KiB)
>           Interrupt:164
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
> **Observe that except the second and the third route all the remaining routes are wrong. Notice that 10.1.1.48 is on eth0 while 10.223.137.78 is on eth1**
> [root@B-regnet-shdnet-iso-vm-4 ~]# ip route
> 10.1.1.1 dev eth1  scope link
> 10.223.137.64/26 dev eth1  proto kernel  scope link  src 10.223.137.78
> 10.1.1.0/24 dev eth0  proto kernel  scope link  src 10.1.1.48
> 169.254.0.0/16 dev eth0  scope link  metric 1002
> 169.254.0.0/16 dev eth1  scope link  metric 1003
> default via 10.1.1.1 dev eth1
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE="eth0"
> BOOTPROTO="dhcp"
> HWADDR="02:00:47:BD:00:06"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="b74145e6-eaf5-4b53-b19a-9a4051fa4a75"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
> DEVICE="eth1"
> BOOTPROTO="dhcp"
> HWADDR="06:74:B6:00:00:3A"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="a5afb535-0eb0-4196-a324-87aec613f38a"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/redhat-release
> CentOS release 6.3 (Final)
> =======
> Git Info:
> =======
> Git Revision: 54f9af1695bc359b02e9fc906b3b335cc0bfec41
> Git URL: https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (CLOUDSTACK-152) Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks

Posted by "Chandan Purushothama (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLOUDSTACK-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chandan Purushothama reassigned CLOUDSTACK-152:
-----------------------------------------------

    Assignee: Sheng Yang  (was: Chandan Purushothama)
    
> Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-152
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-152
>             Project: CloudStack
>          Issue Type: Bug
>          Components: Management Server
>    Affects Versions: pre-4.0.0
>            Reporter: Chandan Purushothama
>            Assignee: Sheng Yang
>             Fix For: pre-4.0.0
>
>         Attachments: messagesontheUserVM.zip
>
>
> ==================
> Steps to Reproduce:
> ==================
> 1. As the Admin of ROOT domain, Create a shared guest network using the DefaultNetworkOfferingforSharedNetworks.
> 2. Login as a Regular User. Create an isolated guest network using the "DefaultNetworkOfferingwithSourceNATService"
> 3. Register a CentOS6.3_x86_64 ISO
> 4. Deploy a VM on the Isolated and Shared Guest Network using the ISO. Make sure that the Isolated Guest Network is chosen as the default Guest Network.
> 5. View the VM's Console. Observe that the only IP Address present on the VM is the loopback address.
> 6. Edit the two ifcfg-ethx files present under /etc/sysconfig/network-scripts/. Set the ONBOOT parameter to yes.
> 7. Reboot the VM or restart the network service.
> 8. Observe the routes on the VM after the Reboot.
> ==========
> Observations:
> ==========
> [root@B-regnet-shdnet-iso-vm-4 ~]# history
>     1  ifconfig
>     2  reboot
>     3  history
> [root@B-regnet-shdnet-iso-vm-4 ~]# ifconfig
> eth0      Link encap:Ethernet  HWaddr 02:00:47:BD:00:06
>           inet addr:10.1.1.48  Bcast:10.1.1.255  Mask:255.255.255.0
>           inet6 addr: fe80::47ff:febd:6/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:2 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:379 (379.0 b)  TX bytes:1116 (1.0 KiB)
>           Interrupt:165
> eth1      Link encap:Ethernet  HWaddr 06:74:B6:00:00:3A
>           inet addr:10.223.137.78  Bcast:10.223.137.127  Mask:255.255.255.192
>           inet6 addr: fe80::474:b6ff:fe00:3a/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:108 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:9425 (9.2 KiB)  TX bytes:10289 (10.0 KiB)
>           Interrupt:164
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
> **Observe that except the second and the third route all the remaining routes are wrong. Notice that 10.1.1.48 is on eth0 while 10.223.137.78 is on eth1**
> [root@B-regnet-shdnet-iso-vm-4 ~]# ip route
> 10.1.1.1 dev eth1  scope link
> 10.223.137.64/26 dev eth1  proto kernel  scope link  src 10.223.137.78
> 10.1.1.0/24 dev eth0  proto kernel  scope link  src 10.1.1.48
> 169.254.0.0/16 dev eth0  scope link  metric 1002
> 169.254.0.0/16 dev eth1  scope link  metric 1003
> default via 10.1.1.1 dev eth1
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE="eth0"
> BOOTPROTO="dhcp"
> HWADDR="02:00:47:BD:00:06"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="b74145e6-eaf5-4b53-b19a-9a4051fa4a75"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
> DEVICE="eth1"
> BOOTPROTO="dhcp"
> HWADDR="06:74:B6:00:00:3A"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="a5afb535-0eb0-4196-a324-87aec613f38a"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/redhat-release
> CentOS release 6.3 (Final)
> =======
> Git Info:
> =======
> Git Revision: 54f9af1695bc359b02e9fc906b3b335cc0bfec41
> Git URL: https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CLOUDSTACK-152) Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks

Posted by "Sheng Yang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLOUDSTACK-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13460085#comment-13460085 ] 

Sheng Yang commented on CLOUDSTACK-152:
---------------------------------------

Probably you should choose "Other CentOS" in this case? Though we only judge the if we use the workaround as the name started with CentOS. 

I can update the patch policy to "contained CentOS" anyway...
                
> Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-152
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-152
>             Project: CloudStack
>          Issue Type: Bug
>          Components: Management Server
>    Affects Versions: pre-4.0.0
>            Reporter: Chandan Purushothama
>            Assignee: Sheng Yang
>             Fix For: pre-4.0.0
>
>         Attachments: messagesontheUserVM.zip
>
>
> ==================
> Steps to Reproduce:
> ==================
> 1. As the Admin of ROOT domain, Create a shared guest network using the DefaultNetworkOfferingforSharedNetworks.
> 2. Login as a Regular User. Create an isolated guest network using the "DefaultNetworkOfferingwithSourceNATService"
> 3. Register a CentOS6.3_x86_64 ISO
> 4. Deploy a VM on the Isolated and Shared Guest Network using the ISO. Make sure that the Isolated Guest Network is chosen as the default Guest Network.
> 5. View the VM's Console. Observe that the only IP Address present on the VM is the loopback address.
> 6. Edit the two ifcfg-ethx files present under /etc/sysconfig/network-scripts/. Set the ONBOOT parameter to yes.
> 7. Reboot the VM or restart the network service.
> 8. Observe the routes on the VM after the Reboot.
> ==========
> Observations:
> ==========
> [root@B-regnet-shdnet-iso-vm-4 ~]# history
>     1  ifconfig
>     2  reboot
>     3  history
> [root@B-regnet-shdnet-iso-vm-4 ~]# ifconfig
> eth0      Link encap:Ethernet  HWaddr 02:00:47:BD:00:06
>           inet addr:10.1.1.48  Bcast:10.1.1.255  Mask:255.255.255.0
>           inet6 addr: fe80::47ff:febd:6/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:2 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:379 (379.0 b)  TX bytes:1116 (1.0 KiB)
>           Interrupt:165
> eth1      Link encap:Ethernet  HWaddr 06:74:B6:00:00:3A
>           inet addr:10.223.137.78  Bcast:10.223.137.127  Mask:255.255.255.192
>           inet6 addr: fe80::474:b6ff:fe00:3a/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:108 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:9425 (9.2 KiB)  TX bytes:10289 (10.0 KiB)
>           Interrupt:164
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
> **Observe that except the second and the third route all the remaining routes are wrong. Notice that 10.1.1.48 is on eth0 while 10.223.137.78 is on eth1**
> [root@B-regnet-shdnet-iso-vm-4 ~]# ip route
> 10.1.1.1 dev eth1  scope link
> 10.223.137.64/26 dev eth1  proto kernel  scope link  src 10.223.137.78
> 10.1.1.0/24 dev eth0  proto kernel  scope link  src 10.1.1.48
> 169.254.0.0/16 dev eth0  scope link  metric 1002
> 169.254.0.0/16 dev eth1  scope link  metric 1003
> default via 10.1.1.1 dev eth1
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE="eth0"
> BOOTPROTO="dhcp"
> HWADDR="02:00:47:BD:00:06"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="b74145e6-eaf5-4b53-b19a-9a4051fa4a75"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
> DEVICE="eth1"
> BOOTPROTO="dhcp"
> HWADDR="06:74:B6:00:00:3A"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="a5afb535-0eb0-4196-a324-87aec613f38a"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/redhat-release
> CentOS release 6.3 (Final)
> =======
> Git Info:
> =======
> Git Revision: 54f9af1695bc359b02e9fc906b3b335cc0bfec41
> Git URL: https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (CLOUDSTACK-152) Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks

Posted by "Alex Huang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLOUDSTACK-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Huang reassigned CLOUDSTACK-152:
-------------------------------------

    Assignee: Sheng Yang  (was: Rohit Yadav)
    
> Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-152
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-152
>             Project: CloudStack
>          Issue Type: Bug
>          Components: Management Server
>    Affects Versions: pre-4.0.0
>            Reporter: Chandan Purushothama
>            Assignee: Sheng Yang
>             Fix For: pre-4.0.0
>
>         Attachments: messagesontheUserVM.zip
>
>
> ==================
> Steps to Reproduce:
> ==================
> 1. As the Admin of ROOT domain, Create a shared guest network using the DefaultNetworkOfferingforSharedNetworks.
> 2. Login as a Regular User. Create an isolated guest network using the "DefaultNetworkOfferingwithSourceNATService"
> 3. Register a CentOS6.3_x86_64 ISO
> 4. Deploy a VM on the Isolated and Shared Guest Network using the ISO. Make sure that the Isolated Guest Network is chosen as the default Guest Network.
> 5. View the VM's Console. Observe that the only IP Address present on the VM is the loopback address.
> 6. Edit the two ifcfg-ethx files present under /etc/sysconfig/network-scripts/. Set the ONBOOT parameter to yes.
> 7. Reboot the VM or restart the network service.
> 8. Observe the routes on the VM after the Reboot.
> ==========
> Observations:
> ==========
> [root@B-regnet-shdnet-iso-vm-4 ~]# history
>     1  ifconfig
>     2  reboot
>     3  history
> [root@B-regnet-shdnet-iso-vm-4 ~]# ifconfig
> eth0      Link encap:Ethernet  HWaddr 02:00:47:BD:00:06
>           inet addr:10.1.1.48  Bcast:10.1.1.255  Mask:255.255.255.0
>           inet6 addr: fe80::47ff:febd:6/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:2 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:379 (379.0 b)  TX bytes:1116 (1.0 KiB)
>           Interrupt:165
> eth1      Link encap:Ethernet  HWaddr 06:74:B6:00:00:3A
>           inet addr:10.223.137.78  Bcast:10.223.137.127  Mask:255.255.255.192
>           inet6 addr: fe80::474:b6ff:fe00:3a/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:108 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:9425 (9.2 KiB)  TX bytes:10289 (10.0 KiB)
>           Interrupt:164
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
> **Observe that except the second and the third route all the remaining routes are wrong. Notice that 10.1.1.48 is on eth0 while 10.223.137.78 is on eth1**
> [root@B-regnet-shdnet-iso-vm-4 ~]# ip route
> 10.1.1.1 dev eth1  scope link
> 10.223.137.64/26 dev eth1  proto kernel  scope link  src 10.223.137.78
> 10.1.1.0/24 dev eth0  proto kernel  scope link  src 10.1.1.48
> 169.254.0.0/16 dev eth0  scope link  metric 1002
> 169.254.0.0/16 dev eth1  scope link  metric 1003
> default via 10.1.1.1 dev eth1
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE="eth0"
> BOOTPROTO="dhcp"
> HWADDR="02:00:47:BD:00:06"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="b74145e6-eaf5-4b53-b19a-9a4051fa4a75"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
> DEVICE="eth1"
> BOOTPROTO="dhcp"
> HWADDR="06:74:B6:00:00:3A"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="a5afb535-0eb0-4196-a324-87aec613f38a"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/redhat-release
> CentOS release 6.3 (Final)
> =======
> Git Info:
> =======
> Git Revision: 54f9af1695bc359b02e9fc906b3b335cc0bfec41
> Git URL: https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CLOUDSTACK-152) Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks

Posted by "Chandan Purushothama (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLOUDSTACK-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13464259#comment-13464259 ] 

Chandan Purushothama commented on CLOUDSTACK-152:
-------------------------------------------------


Reproduced the bug with "Other CentOS (64-bit)" too.

mysql> select * from vm_instance where id=9 \G;
*************************** 1. row ***************************
                 id: 9
               name: atoms-VM-4
               uuid: effb6b37-a91a-4849-bd60-a6457de28b59
      instance_name: i-3-9-MULPHYASF
              state: Running
     vm_template_id: 202
        guest_os_id: 201
private_mac_address: 06:94:88:00:00:4d
 private_ip_address: 10.223.137.102
             pod_id: 1
     data_center_id: 1
            host_id: 1
       last_host_id: 1
           proxy_id: 2
  proxy_assign_time: 2012-09-26 21:39:01
       vnc_password: 01v/yiTMk/XJDf1WgX1plqicITZGOgAdUh+zLTkSxKE=
         ha_enabled: 0
      limit_cpu_use: 0
       update_count: 3
        update_time: 2012-09-26 21:37:27
            created: 2012-09-26 21:36:04
            removed: NULL
               type: User
            vm_type: User
         account_id: 3
          domain_id: 1
service_offering_id: 2
     reservation_id: bd182381-6038-4a0d-b474-48e9b5ccefba
    hypervisor_type: XenServer
1 row in set (0.00 sec)

ERROR:
No query specified

mysql> select * from guest_os where id=201;
+-----+-------------+------+--------------------------------------+-----------------------+
| id  | category_id | name | uuid                                 | display_name          |
+-----+-------------+------+--------------------------------------+-----------------------+
| 201 |           1 | NULL | 62ea68f6-a7ad-4c56-958f-ce9e1051da65 | Other CentOS (64-bit) |
+-----+-------------+------+--------------------------------------+-----------------------+
1 row in set (0.00 sec)


When i changed the guest os type to "CentOS 6.0 - 64 bit" . I observed an error - "PCI: Fatal: No config space access function found"

After a while i saw the login screen and i was unable to reproduce the bug. Is the observation fine?


                
> Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-152
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-152
>             Project: CloudStack
>          Issue Type: Bug
>          Components: Management Server
>    Affects Versions: pre-4.0.0
>            Reporter: Chandan Purushothama
>            Assignee: Chandan Purushothama
>             Fix For: pre-4.0.0
>
>         Attachments: messagesontheUserVM.zip
>
>
> ==================
> Steps to Reproduce:
> ==================
> 1. As the Admin of ROOT domain, Create a shared guest network using the DefaultNetworkOfferingforSharedNetworks.
> 2. Login as a Regular User. Create an isolated guest network using the "DefaultNetworkOfferingwithSourceNATService"
> 3. Register a CentOS6.3_x86_64 ISO
> 4. Deploy a VM on the Isolated and Shared Guest Network using the ISO. Make sure that the Isolated Guest Network is chosen as the default Guest Network.
> 5. View the VM's Console. Observe that the only IP Address present on the VM is the loopback address.
> 6. Edit the two ifcfg-ethx files present under /etc/sysconfig/network-scripts/. Set the ONBOOT parameter to yes.
> 7. Reboot the VM or restart the network service.
> 8. Observe the routes on the VM after the Reboot.
> ==========
> Observations:
> ==========
> [root@B-regnet-shdnet-iso-vm-4 ~]# history
>     1  ifconfig
>     2  reboot
>     3  history
> [root@B-regnet-shdnet-iso-vm-4 ~]# ifconfig
> eth0      Link encap:Ethernet  HWaddr 02:00:47:BD:00:06
>           inet addr:10.1.1.48  Bcast:10.1.1.255  Mask:255.255.255.0
>           inet6 addr: fe80::47ff:febd:6/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:2 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:379 (379.0 b)  TX bytes:1116 (1.0 KiB)
>           Interrupt:165
> eth1      Link encap:Ethernet  HWaddr 06:74:B6:00:00:3A
>           inet addr:10.223.137.78  Bcast:10.223.137.127  Mask:255.255.255.192
>           inet6 addr: fe80::474:b6ff:fe00:3a/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:108 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:9425 (9.2 KiB)  TX bytes:10289 (10.0 KiB)
>           Interrupt:164
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
> **Observe that except the second and the third route all the remaining routes are wrong. Notice that 10.1.1.48 is on eth0 while 10.223.137.78 is on eth1**
> [root@B-regnet-shdnet-iso-vm-4 ~]# ip route
> 10.1.1.1 dev eth1  scope link
> 10.223.137.64/26 dev eth1  proto kernel  scope link  src 10.223.137.78
> 10.1.1.0/24 dev eth0  proto kernel  scope link  src 10.1.1.48
> 169.254.0.0/16 dev eth0  scope link  metric 1002
> 169.254.0.0/16 dev eth1  scope link  metric 1003
> default via 10.1.1.1 dev eth1
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE="eth0"
> BOOTPROTO="dhcp"
> HWADDR="02:00:47:BD:00:06"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="b74145e6-eaf5-4b53-b19a-9a4051fa4a75"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
> DEVICE="eth1"
> BOOTPROTO="dhcp"
> HWADDR="06:74:B6:00:00:3A"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="a5afb535-0eb0-4196-a324-87aec613f38a"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/redhat-release
> CentOS release 6.3 (Final)
> =======
> Git Info:
> =======
> Git Revision: 54f9af1695bc359b02e9fc906b3b335cc0bfec41
> Git URL: https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CLOUDSTACK-152) Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks

Posted by "Sheng Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLOUDSTACK-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sheng Yang updated CLOUDSTACK-152:
----------------------------------

    Comment: was deleted

(was: Please refer to:

http://bugs.cloud.com/show_bug.cgi?id=14042)
    
> Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-152
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-152
>             Project: CloudStack
>          Issue Type: Bug
>          Components: Management Server
>    Affects Versions: pre-4.0.0
>            Reporter: Chandan Purushothama
>             Fix For: pre-4.0.0
>
>         Attachments: messagesontheUserVM.zip
>
>
> ==================
> Steps to Reproduce:
> ==================
> 1. As the Admin of ROOT domain, Create a shared guest network using the DefaultNetworkOfferingforSharedNetworks.
> 2. Login as a Regular User. Create an isolated guest network using the "DefaultNetworkOfferingwithSourceNATService"
> 3. Register a CentOS6.3_x86_64 ISO
> 4. Deploy a VM on the Isolated and Shared Guest Network using the ISO. Make sure that the Isolated Guest Network is chosen as the default Guest Network.
> 5. View the VM's Console. Observe that the only IP Address present on the VM is the loopback address.
> 6. Edit the two ifcfg-ethx files present under /etc/sysconfig/network-scripts/. Set the ONBOOT parameter to yes.
> 7. Reboot the VM or restart the network service.
> 8. Observe the routes on the VM after the Reboot.
> ==========
> Observations:
> ==========
> [root@B-regnet-shdnet-iso-vm-4 ~]# history
>     1  ifconfig
>     2  reboot
>     3  history
> [root@B-regnet-shdnet-iso-vm-4 ~]# ifconfig
> eth0      Link encap:Ethernet  HWaddr 02:00:47:BD:00:06
>           inet addr:10.1.1.48  Bcast:10.1.1.255  Mask:255.255.255.0
>           inet6 addr: fe80::47ff:febd:6/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:2 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:379 (379.0 b)  TX bytes:1116 (1.0 KiB)
>           Interrupt:165
> eth1      Link encap:Ethernet  HWaddr 06:74:B6:00:00:3A
>           inet addr:10.223.137.78  Bcast:10.223.137.127  Mask:255.255.255.192
>           inet6 addr: fe80::474:b6ff:fe00:3a/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:108 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:9425 (9.2 KiB)  TX bytes:10289 (10.0 KiB)
>           Interrupt:164
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
> **Observe that except the second and the third route all the remaining routes are wrong. Notice that 10.1.1.48 is on eth0 while 10.223.137.78 is on eth1**
> [root@B-regnet-shdnet-iso-vm-4 ~]# ip route
> 10.1.1.1 dev eth1  scope link
> 10.223.137.64/26 dev eth1  proto kernel  scope link  src 10.223.137.78
> 10.1.1.0/24 dev eth0  proto kernel  scope link  src 10.1.1.48
> 169.254.0.0/16 dev eth0  scope link  metric 1002
> 169.254.0.0/16 dev eth1  scope link  metric 1003
> default via 10.1.1.1 dev eth1
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE="eth0"
> BOOTPROTO="dhcp"
> HWADDR="02:00:47:BD:00:06"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="b74145e6-eaf5-4b53-b19a-9a4051fa4a75"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
> DEVICE="eth1"
> BOOTPROTO="dhcp"
> HWADDR="06:74:B6:00:00:3A"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="a5afb535-0eb0-4196-a324-87aec613f38a"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/redhat-release
> CentOS release 6.3 (Final)
> =======
> Git Info:
> =======
> Git Revision: 54f9af1695bc359b02e9fc906b3b335cc0bfec41
> Git URL: https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CLOUDSTACK-152) Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks

Posted by "Sheng Yang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLOUDSTACK-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13460086#comment-13460086 ] 

Sheng Yang commented on CLOUDSTACK-152:
---------------------------------------

And the guest os type matters here is only CS's not XenServer's.
                
> Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-152
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-152
>             Project: CloudStack
>          Issue Type: Bug
>          Components: Management Server
>    Affects Versions: pre-4.0.0
>            Reporter: Chandan Purushothama
>            Assignee: Sheng Yang
>             Fix For: pre-4.0.0
>
>         Attachments: messagesontheUserVM.zip
>
>
> ==================
> Steps to Reproduce:
> ==================
> 1. As the Admin of ROOT domain, Create a shared guest network using the DefaultNetworkOfferingforSharedNetworks.
> 2. Login as a Regular User. Create an isolated guest network using the "DefaultNetworkOfferingwithSourceNATService"
> 3. Register a CentOS6.3_x86_64 ISO
> 4. Deploy a VM on the Isolated and Shared Guest Network using the ISO. Make sure that the Isolated Guest Network is chosen as the default Guest Network.
> 5. View the VM's Console. Observe that the only IP Address present on the VM is the loopback address.
> 6. Edit the two ifcfg-ethx files present under /etc/sysconfig/network-scripts/. Set the ONBOOT parameter to yes.
> 7. Reboot the VM or restart the network service.
> 8. Observe the routes on the VM after the Reboot.
> ==========
> Observations:
> ==========
> [root@B-regnet-shdnet-iso-vm-4 ~]# history
>     1  ifconfig
>     2  reboot
>     3  history
> [root@B-regnet-shdnet-iso-vm-4 ~]# ifconfig
> eth0      Link encap:Ethernet  HWaddr 02:00:47:BD:00:06
>           inet addr:10.1.1.48  Bcast:10.1.1.255  Mask:255.255.255.0
>           inet6 addr: fe80::47ff:febd:6/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:2 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:379 (379.0 b)  TX bytes:1116 (1.0 KiB)
>           Interrupt:165
> eth1      Link encap:Ethernet  HWaddr 06:74:B6:00:00:3A
>           inet addr:10.223.137.78  Bcast:10.223.137.127  Mask:255.255.255.192
>           inet6 addr: fe80::474:b6ff:fe00:3a/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:108 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:9425 (9.2 KiB)  TX bytes:10289 (10.0 KiB)
>           Interrupt:164
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
> **Observe that except the second and the third route all the remaining routes are wrong. Notice that 10.1.1.48 is on eth0 while 10.223.137.78 is on eth1**
> [root@B-regnet-shdnet-iso-vm-4 ~]# ip route
> 10.1.1.1 dev eth1  scope link
> 10.223.137.64/26 dev eth1  proto kernel  scope link  src 10.223.137.78
> 10.1.1.0/24 dev eth0  proto kernel  scope link  src 10.1.1.48
> 169.254.0.0/16 dev eth0  scope link  metric 1002
> 169.254.0.0/16 dev eth1  scope link  metric 1003
> default via 10.1.1.1 dev eth1
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE="eth0"
> BOOTPROTO="dhcp"
> HWADDR="02:00:47:BD:00:06"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="b74145e6-eaf5-4b53-b19a-9a4051fa4a75"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
> DEVICE="eth1"
> BOOTPROTO="dhcp"
> HWADDR="06:74:B6:00:00:3A"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="a5afb535-0eb0-4196-a324-87aec613f38a"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/redhat-release
> CentOS release 6.3 (Final)
> =======
> Git Info:
> =======
> Git Revision: 54f9af1695bc359b02e9fc906b3b335cc0bfec41
> Git URL: https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CLOUDSTACK-152) Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks

Posted by "Chandan Purushothama (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLOUDSTACK-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chandan Purushothama updated CLOUDSTACK-152:
--------------------------------------------

    Attachment: messagesontheUserVM.zip
    
> Routes on the User VM are programmed incorrectly on a VM present on both Isolated and Shared Guest Networks
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-152
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-152
>             Project: CloudStack
>          Issue Type: Bug
>          Components: Management Server
>    Affects Versions: pre-4.0.0
>            Reporter: Chandan Purushothama
>             Fix For: pre-4.0.0
>
>         Attachments: messagesontheUserVM.zip
>
>
> ==================
> Steps to Reproduce:
> ==================
> 1. As the Admin of ROOT domain, Create a shared guest network using the DefaultNetworkOfferingforSharedNetworks.
> 2. Login as a Regular User. Create an isolated guest network using the "DefaultNetworkOfferingwithSourceNATService"
> 3. Register a CentOS6.3_x86_64 ISO
> 4. Deploy a VM on the Isolated and Shared Guest Network using the ISO. Make sure that the Isolated Guest Network is chosen as the default Guest Network.
> 5. View the VM's Console. Observe that the only IP Address present on the VM is the loopback address.
> 6. Edit the two ifcfg-ethx files present under /etc/sysconfig/network-scripts/. Set the ONBOOT parameter to yes.
> 7. Reboot the VM or restart the network service.
> 8. Observe the routes on the VM after the Reboot.
> ==========
> Observations:
> ==========
> [root@B-regnet-shdnet-iso-vm-4 ~]# history
>     1  ifconfig
>     2  reboot
>     3  history
> [root@B-regnet-shdnet-iso-vm-4 ~]# ifconfig
> eth0      Link encap:Ethernet  HWaddr 02:00:47:BD:00:06
>           inet addr:10.1.1.48  Bcast:10.1.1.255  Mask:255.255.255.0
>           inet6 addr: fe80::47ff:febd:6/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:2 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:379 (379.0 b)  TX bytes:1116 (1.0 KiB)
>           Interrupt:165
> eth1      Link encap:Ethernet  HWaddr 06:74:B6:00:00:3A
>           inet addr:10.223.137.78  Bcast:10.223.137.127  Mask:255.255.255.192
>           inet6 addr: fe80::474:b6ff:fe00:3a/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:108 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:9425 (9.2 KiB)  TX bytes:10289 (10.0 KiB)
>           Interrupt:164
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
> **Observe that except the second and the third route all the remaining routes are wrong. Notice that 10.1.1.48 is on eth0 while 10.223.137.78 is on eth1**
> [root@B-regnet-shdnet-iso-vm-4 ~]# ip route
> 10.1.1.1 dev eth1  scope link
> 10.223.137.64/26 dev eth1  proto kernel  scope link  src 10.223.137.78
> 10.1.1.0/24 dev eth0  proto kernel  scope link  src 10.1.1.48
> 169.254.0.0/16 dev eth0  scope link  metric 1002
> 169.254.0.0/16 dev eth1  scope link  metric 1003
> default via 10.1.1.1 dev eth1
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE="eth0"
> BOOTPROTO="dhcp"
> HWADDR="02:00:47:BD:00:06"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="b74145e6-eaf5-4b53-b19a-9a4051fa4a75"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
> DEVICE="eth1"
> BOOTPROTO="dhcp"
> HWADDR="06:74:B6:00:00:3A"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="a5afb535-0eb0-4196-a324-87aec613f38a"
> [root@B-regnet-shdnet-iso-vm-4 ~]# cat /etc/redhat-release
> CentOS release 6.3 (Final)
> =======
> Git Info:
> =======
> Git Revision: 54f9af1695bc359b02e9fc906b3b335cc0bfec41
> Git URL: https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira