You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "DeepthiMachiraju (JIRA)" <ji...@apache.org> on 2017/05/30 09:23:04 UTC
[jira] [Updated] (CLOUDSTACK-9931) Post VPC VR reboot , Guest and
Additional Public IP Network are mapped to same interface
[ https://issues.apache.org/jira/browse/CLOUDSTACK-9931?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
DeepthiMachiraju updated CLOUDSTACK-9931:
-----------------------------------------
Description:
Steps :
- Create a VPC with CIDR 172.16.0.0/16 and create multi tiers with cidrs : 172.16.1.0/24 , 172.16.2.0/24.
- Deploy a vm in the above networks .
- Add a SSH PF rule on a acquired public IP and ssh to the guest VM .
- Now add additional Public network and acquire the IP from this range to the VPC.
root@r-20-VM:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 0e:00:a9:fe:02:48 brd ff:ff:ff:ff:ff:ff
inet 169.254.2.72/16 brd 169.254.255.255 scope global eth0
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 06:3a:36:00:00:0d brd ff:ff:ff:ff:ff:ff
inet 10.147.30.112/24 brd 10.147.30.255 scope global eth1
inet 10.147.30.113/24 brd 10.147.30.255 scope global secondary eth1
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 02:00:2d:8b:00:11 brd ff:ff:ff:ff:ff:ff
inet 172.16.1.1/24 brd 172.16.1.255 scope global eth2
5: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 06:f7:dc:00:00:16 brd ff:ff:ff:ff:ff:ff
inet 10.147.52.20/24 brd 10.147.52.255 scope global eth3
- Create a SSH PF rule on the IP from additional Public range and verify ssh is sucessful to the guest vm.
- Reboot the VPC VR .
Observations :
- POst reboot , Guest and Additional Public IP Network are mapped to same interface .
=========================================================================
root@r-20-VM:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 0e:00:a9:fe:00:b1 brd ff:ff:ff:ff:ff:ff
inet 169.254.0.177/16 brd 169.254.255.255 scope global eth0
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 06:3a:36:00:00:0d brd ff:ff:ff:ff:ff:ff
inet 10.147.30.112/24 brd 10.147.30.255 scope global eth1
inet 10.147.30.113/24 brd 10.147.30.255 scope global secondary eth1
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 06:f7:dc:00:00:16 brd ff:ff:ff:ff:ff:ff
inet 172.16.1.1/24 brd 172.16.1.255 scope global eth2
inet 10.147.52.20/24 brd 10.147.52.255 scope global eth2
5: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 02:00:2d:8b:00:11 brd ff:ff:ff:ff:ff:ff
=========================================================
root@r-20-VM:~# cat /etc/cloudstack/ips.json
{
"eth0": [
{
"add": true,
"broadcast": "169.254.255.255",
"cidr": "169.254.0.177/16",
"device": "eth0",
"gateway": "None",
"netmask": "255.255.0.0",
"network": "169.254.0.0/16",
"nic_dev_id": "0",
"nw_type": "control",
"one_to_one_nat": false,
"public_ip": "169.254.0.177",
"size": "16",
"source_nat": false
}
],
"eth1": [
{
"add": true,
"broadcast": "10.147.30.255",
"cidr": "10.147.30.113/24",
"device": "eth1",
"first_i_p": true,
"gateway": "10.147.30.1",
"netmask": "255.255.255.0",
"network": "10.147.30.0/24",
"new_nic": false,
"nic_dev_id": 1,
"nw_type": "public",
"one_to_one_nat": false,
"public_ip": "10.147.30.113",
"size": "24",
"source_nat": true,
"vif_mac_address": "06:3a:36:00:00:0d"
},
{
"add": true,
"broadcast": "10.147.30.255",
"cidr": "10.147.30.112/24",
"device": "eth1",
"first_i_p": true,
"gateway": "10.147.30.1",
"netmask": "255.255.255.0",
"network": "10.147.30.0/24",
"new_nic": false,
"nic_dev_id": 1,
"nw_type": "public",
"one_to_one_nat": false,
"public_ip": "10.147.30.112",
"size": "24",
"source_nat": true,
"vif_mac_address": "06:3a:36:00:00:0d"
}
],
"eth2": [
{
"add": true,
"broadcast": "10.147.52.255",
"cidr": "10.147.52.20/24",
"device": "eth2",
"first_i_p": true,
"gateway": "10.147.52.1",
"netmask": "255.255.255.0",
"network": "10.147.52.0/24",
"new_nic": false,
"nic_dev_id": 2,
"nw_type": "public",
"one_to_one_nat": false,
"public_ip": "10.147.52.20",
"size": "24",
"source_nat": true,
"vif_mac_address": "06:f7:dc:00:00:16"
},
{
"add": true,
"broadcast": "172.16.1.255",
"cidr": "172.16.1.1/24",
"device": "eth2",
"gateway": "172.16.1.1",
"netmask": "255.255.255.0",
"network": "172.16.1.0/24",
"nic_dev_id": "2",
"nw_type": "guest",
"one_to_one_nat": false,
"public_ip": "172.16.1.1",
"size": "24",
"source_nat": false
}
],
"eth3": [],
"id": "ips"
========================================================
Restarting VPC with clean up option sets the interfaces right again .
Also attaching cloud log.
was:
Steps :
- Create a VPC with CIDR 172.16.0.0/16 and create multi tiers with cidrs : 172.16.1.0/24 , 172.16.2.0/24.
- Deploy a vm in the above networks .
- Add a SSH PF rule on a acquired public IP and ssh to the guest VM .
- Now add additional Public network and acquire the IP from this range to the VPC.
root@r-20-VM:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 0e:00:a9:fe:02:48 brd ff:ff:ff:ff:ff:ff
inet 169.254.2.72/16 brd 169.254.255.255 scope global eth0
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 06:3a:36:00:00:0d brd ff:ff:ff:ff:ff:ff
inet 10.147.30.112/24 brd 10.147.30.255 scope global eth1
inet 10.147.30.113/24 brd 10.147.30.255 scope global secondary eth1
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 02:00:2d:8b:00:11 brd ff:ff:ff:ff:ff:ff
inet 172.16.1.1/24 brd 172.16.1.255 scope global eth2
5: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 06:f7:dc:00:00:16 brd ff:ff:ff:ff:ff:ff
inet 10.147.52.20/24 brd 10.147.52.255 scope global eth3
- Create a SSH PF rule on the IP from additional Public range and verify ssh is sucessful to the guest vm.
- Reboot the VPC VR .
Observations :
- POst reboot , Guest and Additional Public IP Network are mapped to same interface .
=========================================================================
root@r-20-VM:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 0e:00:a9:fe:00:b1 brd ff:ff:ff:ff:ff:ff
inet 169.254.0.177/16 brd 169.254.255.255 scope global eth0
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 06:3a:36:00:00:0d brd ff:ff:ff:ff:ff:ff
inet 10.147.30.112/24 brd 10.147.30.255 scope global eth1
inet 10.147.30.113/24 brd 10.147.30.255 scope global secondary eth1
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 06:f7:dc:00:00:16 brd ff:ff:ff:ff:ff:ff
inet 172.16.1.1/24 brd 172.16.1.255 scope global eth2
inet 10.147.52.20/24 brd 10.147.52.255 scope global eth2
5: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 02:00:2d:8b:00:11 brd ff:ff:ff:ff:ff:ff
=========================================================
root@r-20-VM:~# cat /etc/cloudstack/ips.json
{
"eth0": [
{
"add": true,
"broadcast": "169.254.255.255",
"cidr": "169.254.0.177/16",
"device": "eth0",
"gateway": "None",
"netmask": "255.255.0.0",
"network": "169.254.0.0/16",
"nic_dev_id": "0",
"nw_type": "control",
"one_to_one_nat": false,
"public_ip": "169.254.0.177",
"size": "16",
"source_nat": false
}
],
"eth1": [
{
"add": true,
"broadcast": "10.147.30.255",
"cidr": "10.147.30.113/24",
"device": "eth1",
"first_i_p": true,
"gateway": "10.147.30.1",
"netmask": "255.255.255.0",
"network": "10.147.30.0/24",
"new_nic": false,
"nic_dev_id": 1,
"nw_type": "public",
"one_to_one_nat": false,
"public_ip": "10.147.30.113",
"size": "24",
"source_nat": true,
"vif_mac_address": "06:3a:36:00:00:0d"
},
{
"add": true,
"broadcast": "10.147.30.255",
"cidr": "10.147.30.112/24",
"device": "eth1",
"first_i_p": true,
"gateway": "10.147.30.1",
"netmask": "255.255.255.0",
"network": "10.147.30.0/24",
"new_nic": false,
"nic_dev_id": 1,
"nw_type": "public",
"one_to_one_nat": false,
"public_ip": "10.147.30.112",
"size": "24",
"source_nat": true,
"vif_mac_address": "06:3a:36:00:00:0d"
}
],
"eth2": [
{
"add": true,
"broadcast": "10.147.52.255",
"cidr": "10.147.52.20/24",
"device": "eth2",
"first_i_p": true,
"gateway": "10.147.52.1",
"netmask": "255.255.255.0",
"network": "10.147.52.0/24",
"new_nic": false,
"nic_dev_id": 2,
"nw_type": "public",
"one_to_one_nat": false,
"public_ip": "10.147.52.20",
"size": "24",
"source_nat": true,
"vif_mac_address": "06:f7:dc:00:00:16"
},
{
"add": true,
"broadcast": "172.16.1.255",
"cidr": "172.16.1.1/24",
"device": "eth2",
"gateway": "172.16.1.1",
"netmask": "255.255.255.0",
"network": "172.16.1.0/24",
"nic_dev_id": "2",
"nw_type": "guest",
"one_to_one_nat": false,
"public_ip": "172.16.1.1",
"size": "24",
"source_nat": false
}
],
"eth3": [],
"id": "ips"
=========================================================
Also attaching cloud log.
> Post VPC VR reboot , Guest and Additional Public IP Network are mapped to same interface
> ----------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-9931
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9931
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the default.)
> Affects Versions: 4.10.0.0
> Reporter: DeepthiMachiraju
> Fix For: 4.10.0.0
>
> Attachments: cloud.log
>
>
> Steps :
> - Create a VPC with CIDR 172.16.0.0/16 and create multi tiers with cidrs : 172.16.1.0/24 , 172.16.2.0/24.
> - Deploy a vm in the above networks .
> - Add a SSH PF rule on a acquired public IP and ssh to the guest VM .
> - Now add additional Public network and acquire the IP from this range to the VPC.
> root@r-20-VM:~# ip a
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
> inet 127.0.0.1/8 scope host lo
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
> link/ether 0e:00:a9:fe:02:48 brd ff:ff:ff:ff:ff:ff
> inet 169.254.2.72/16 brd 169.254.255.255 scope global eth0
> 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
> link/ether 06:3a:36:00:00:0d brd ff:ff:ff:ff:ff:ff
> inet 10.147.30.112/24 brd 10.147.30.255 scope global eth1
> inet 10.147.30.113/24 brd 10.147.30.255 scope global secondary eth1
> 4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
> link/ether 02:00:2d:8b:00:11 brd ff:ff:ff:ff:ff:ff
> inet 172.16.1.1/24 brd 172.16.1.255 scope global eth2
> 5: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
> link/ether 06:f7:dc:00:00:16 brd ff:ff:ff:ff:ff:ff
> inet 10.147.52.20/24 brd 10.147.52.255 scope global eth3
> - Create a SSH PF rule on the IP from additional Public range and verify ssh is sucessful to the guest vm.
> - Reboot the VPC VR .
> Observations :
> - POst reboot , Guest and Additional Public IP Network are mapped to same interface .
> =========================================================================
> root@r-20-VM:~# ip a
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
> inet 127.0.0.1/8 scope host lo
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
> link/ether 0e:00:a9:fe:00:b1 brd ff:ff:ff:ff:ff:ff
> inet 169.254.0.177/16 brd 169.254.255.255 scope global eth0
> 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
> link/ether 06:3a:36:00:00:0d brd ff:ff:ff:ff:ff:ff
> inet 10.147.30.112/24 brd 10.147.30.255 scope global eth1
> inet 10.147.30.113/24 brd 10.147.30.255 scope global secondary eth1
> 4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
> link/ether 06:f7:dc:00:00:16 brd ff:ff:ff:ff:ff:ff
> inet 172.16.1.1/24 brd 172.16.1.255 scope global eth2
> inet 10.147.52.20/24 brd 10.147.52.255 scope global eth2
> 5: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
> link/ether 02:00:2d:8b:00:11 brd ff:ff:ff:ff:ff:ff
> =========================================================
> root@r-20-VM:~# cat /etc/cloudstack/ips.json
> {
> "eth0": [
> {
> "add": true,
> "broadcast": "169.254.255.255",
> "cidr": "169.254.0.177/16",
> "device": "eth0",
> "gateway": "None",
> "netmask": "255.255.0.0",
> "network": "169.254.0.0/16",
> "nic_dev_id": "0",
> "nw_type": "control",
> "one_to_one_nat": false,
> "public_ip": "169.254.0.177",
> "size": "16",
> "source_nat": false
> }
> ],
> "eth1": [
> {
> "add": true,
> "broadcast": "10.147.30.255",
> "cidr": "10.147.30.113/24",
> "device": "eth1",
> "first_i_p": true,
> "gateway": "10.147.30.1",
> "netmask": "255.255.255.0",
> "network": "10.147.30.0/24",
> "new_nic": false,
> "nic_dev_id": 1,
> "nw_type": "public",
> "one_to_one_nat": false,
> "public_ip": "10.147.30.113",
> "size": "24",
> "source_nat": true,
> "vif_mac_address": "06:3a:36:00:00:0d"
> },
> {
> "add": true,
> "broadcast": "10.147.30.255",
> "cidr": "10.147.30.112/24",
> "device": "eth1",
> "first_i_p": true,
> "gateway": "10.147.30.1",
> "netmask": "255.255.255.0",
> "network": "10.147.30.0/24",
> "new_nic": false,
> "nic_dev_id": 1,
> "nw_type": "public",
> "one_to_one_nat": false,
> "public_ip": "10.147.30.112",
> "size": "24",
> "source_nat": true,
> "vif_mac_address": "06:3a:36:00:00:0d"
> }
> ],
> "eth2": [
> {
> "add": true,
> "broadcast": "10.147.52.255",
> "cidr": "10.147.52.20/24",
> "device": "eth2",
> "first_i_p": true,
> "gateway": "10.147.52.1",
> "netmask": "255.255.255.0",
> "network": "10.147.52.0/24",
> "new_nic": false,
> "nic_dev_id": 2,
> "nw_type": "public",
> "one_to_one_nat": false,
> "public_ip": "10.147.52.20",
> "size": "24",
> "source_nat": true,
> "vif_mac_address": "06:f7:dc:00:00:16"
> },
> {
> "add": true,
> "broadcast": "172.16.1.255",
> "cidr": "172.16.1.1/24",
> "device": "eth2",
> "gateway": "172.16.1.1",
> "netmask": "255.255.255.0",
> "network": "172.16.1.0/24",
> "nic_dev_id": "2",
> "nw_type": "guest",
> "one_to_one_nat": false,
> "public_ip": "172.16.1.1",
> "size": "24",
> "source_nat": false
> }
> ],
> "eth3": [],
> "id": "ips"
> ========================================================
> Restarting VPC with clean up option sets the interfaces right again .
> Also attaching cloud log.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)