Ask Your Question
0

metadata route

asked 2014-11-06 05:02:18 -0500

tomas bezdek gravatar image

Our cloud has two regions. I've created debian image and uploaded it into both of them. Instances are starting perfectly fine in region A, but in region B the instances don't have set route to metadata service, cloud-init is unable to access the service and fails to setup the instance correctly.

Our support is unable to help me, so I'm trying to get some help here. Could someone advise me how/when is the metadata route added and what could be causing the route not to be set?

thank you

tomas

edit retag flag offensive close merge delete

Comments

Network Node is in region A , but not in region B. Am I correct ?

dbaxps gravatar imagedbaxps ( 2014-11-06 09:04:30 -0500 )edit

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

tomas bezdek gravatar imagetomas bezdek ( 2014-11-06 09:19:08 -0500 )edit

When you work in B

$ ip netns exec qrouter-router-id itables -S -t nat | grep 169.254
$ ip netns exec qrouter-router-id netstat -antp
dbaxps gravatar imagedbaxps ( 2014-11-06 09:36:07 -0500 )edit

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)

tomas bezdek gravatar imagetomas bezdek ( 2014-11-06 11:32:11 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
-1

answered 2014-11-06 12:12:41 -0500

dbaxps gravatar image

updated 2014-11-06 12:34:00 -0500

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)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-11-06 05:01:33 -0500

Seen: 74 times

Last updated: Nov 06 '14