Forced to use answer field due to formatting options:-
1. As soon as you create VM for particular private net qdhcp-private-net-id is created
2. As soon as you set gateway to external net qrouter-router-id namespace is created
[root@juno1 ~(keystone_admin)]# neutron net-list
+--------------------------------------+----------+-----------------------------------------------------+
| id | name | subnets |
+--------------------------------------+----------+-----------------------------------------------------+
| f0df774f-a892-4dd7-a2e9-14ae4051df1a | demo_net | 132341e9-b014-4126-afd3-55fd2cbeb3ca 40.0.0.0/24 |
| 65cbd354-daae-41bb-9d3c-e58b1062be19 | public | 147d5ecd-fe39-489e-8901-3b20a2c50148 192.168.1.0/24 |
+--------------------------------------+----------+-----------------------------------------------------+
[root@juno1 ~(keystone_admin)]# neutron router-list
+--------------------------------------+---------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------+
| id | name | external_gateway_info | distributed | ha |
+--------------------------------------+---------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------+
| 0da1a1d3-46ec-4c73-a82e-41acf14a26de | router2 | {"network_id": "65cbd354-daae-41bb-9d3c-e58b1062be19", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "147d5ecd-fe39-489e-8901-3b20a2c50148", "ip_address": "192.168.1.151"}]} | False | False |
+--------------------------------------+---------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------+
[root@juno1 ~(keystone_admin)]# ip netns list
qrouter-0da1a1d3-46ec-4c73-a82e-41acf14a26de
qdhcp-f0df774f-a892-4dd7-a2e9-14ae4051df1a
Next :-
[root@juno1 ~(keystone_admin)]# ip netns exec qdhcp-f0df774f-a892-4dd7-a2e9-14ae4051df1a ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 2 bytes 1152 (1.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2 bytes 1152 (1.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
tap3f570ba8-a1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 40.0.0.11 netmask 255.255.255.0 broadcast 40.0.0.255
inet6 fe80::f816:3eff:fe46:d75f prefixlen 64 scopeid 0x20<link>
ether fa:16:3e:46:d7:5f txqueuelen 0 (Ethernet)
RX packets 1119 bytes 56028 (54.7 KiB)
RX errors 0 dropped 5 overruns 0 frame 0
TX packets 27 bytes 5870 (5.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@juno1 ~(keystone_admin)]# ip netns exec qdhcp-f0df774f-a892-4dd7-a2e9-14ae4051df1a route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 40.0.0.1 0.0.0.0 UG 0 0 0 tap3f570ba8-a1
40.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 tap3f570ba8-a1
[root@juno1 ~(keystone_admin)]# ip netns exec qrouter-0da1a1d3-46ec-4c73-a82e-41acf14a26de ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
qg-bb0b3d86-75: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.151 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::f816:3eff:fe6c:1f76 prefixlen 64 scopeid 0x20<link>
ether fa:16:3e:6c:1f:76 txqueuelen 0 (Ethernet)
RX packets 386205 bytes 551149239 (525.6 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 217101 bytes 20969684 (19.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
qr-940b2f09-e9: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 40.0.0.1 netmask 255.255.255.0 broadcast 40.0.0.255
inet6 fe80::f816:3eff:feda:70c2 prefixlen 64 scopeid 0x20<link>
ether fa:16:3e ...
(more)
Network Node is in region A , but not in region B. Am I correct ?
network node is in both regions. If it helps I've noticed that when I terminate the instance and start a new one, it get's assigned same ip address in nova-show-image and even mac address is the same. Someone suggested it might be something to do with udev rules but it there are no rules in image
When you work in B
for both command I get
Cannot open network namespace: No such file or directory
(i get the same message even for instance which has correctly set route)