Ask Your Question

Revision history [back]

Private IPs are usually available via corresponding qdhcp namespaces

[root@overcloud-controller-0 ~]# neutron net-list
+-------------------------------+-------------------------------+-------------------------------+
| id                            | name                          | subnets                       |
+-------------------------------+-------------------------------+-------------------------------+
| 1b84376e-                     | int                           | 13bd889c-3e7a-                |
| 70a3-4a65-9434-87ac000b3d85   |                               | 40b4-ab55-54233012adf5        |
|                               |                               | 30.0.0.0/24                   |
| 6f0f6552-9715-4c94-ac38-56e59 | ext-net                       | d473d55c-                     |
| 9423751                       |                               | e2eb-4705-9245-fe18e159e097   |
|                               |                               | 192.168.24.0/24               |
| f76ec009-e784-40f5-993d-      | HA network tenant 4c32b6f19d5 | 7ae1bd3d-                     |
| 7a93ddf24a4e                  | 049d89bdb033e527f72bd         | 1a8c-4693-a879-26f81b6b06e5   |
|                               |                               | 169.254.192.0/18              |
+-------------------------------+-------------------------------+-------------------------------+
[root@overcloud-controller-0 ~]# ip netns
qdhcp-1b84376e-70a3-4a65-9434-87ac000b3d85
qrouter-c6191a8f-00d5-4cc4-b026-509efc118f9d
[root@overcloud-controller-0 ~]# nova list
+--------------------------------------+--------------+--------+------------+-------------+-------------------------------+
| ID                                   | Name         | Status | Task State | Power State | Networks                      |
+--------------------------------------+--------------+--------+------------+-------------+-------------------------------+
| dd582265-dcf2-43f6-831a-d851fdffbcde | UbuntuDevs01 | ACTIVE | -          | Running     | int=30.0.0.15, 192.168.24.101 |
| e7cce9a5-07d9-4eac-be91-359d6ee35312 | VF24Devs25   | ACTIVE | -          | Running     | int=30.0.0.9, 192.168.24.106  |
+--------------------------------------+--------------+--------+------------+-------------+-------------------------------+
[root@overcloud-controller-0 ~]# ip netns 
qdhcp-1b84376e-70a3-4a65-9434-87ac000b3d85
qrouter-c6191a8f-00d5-4cc4-b026-509efc118f9d
[root@overcloud-controller-0 ~]# ip netns exec qdhcp-1b84376e-70a3-4a65-9434-87ac000b3d85 ping -c 3 30.0.0.15
PING 30.0.0.15 (30.0.0.15) 56(84) bytes of data.
64 bytes from 30.0.0.15: icmp_seq=1 ttl=64 time=1.69 ms
64 bytes from 30.0.0.15: icmp_seq=2 ttl=64 time=1.31 ms
64 bytes from 30.0.0.15: icmp_seq=3 ttl=64 time=8.12 ms

--- 30.0.0.15 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 1.315/3.711/8.129/3.128 ms

Private IPs are usually available via corresponding qdhcp namespaces

[root@overcloud-controller-0 ~]# neutron net-list
+-------------------------------+-------------------------------+-------------------------------+
| id                            | name                          | subnets                       |
+-------------------------------+-------------------------------+-------------------------------+
| 1b84376e-                     | int                           | 13bd889c-3e7a-                |
| 70a3-4a65-9434-87ac000b3d85   |                               | 40b4-ab55-54233012adf5        |
|                               |                               | 30.0.0.0/24                   |
| 6f0f6552-9715-4c94-ac38-56e59 | ext-net                       | d473d55c-                     |
| 9423751                       |                               | e2eb-4705-9245-fe18e159e097   |
|                               |                               | 192.168.24.0/24               |
| f76ec009-e784-40f5-993d-      | HA network tenant 4c32b6f19d5 | 7ae1bd3d-                     |
| 7a93ddf24a4e                  | 049d89bdb033e527f72bd         | 1a8c-4693-a879-26f81b6b06e5   |
|                               |                               | 169.254.192.0/18              |
+-------------------------------+-------------------------------+-------------------------------+
[root@overcloud-controller-0 ~]# ip netns
qdhcp-1b84376e-70a3-4a65-9434-87ac000b3d85
qrouter-c6191a8f-00d5-4cc4-b026-509efc118f9d
[root@overcloud-controller-0 ~]# nova list
+--------------------------------------+--------------+--------+------------+-------------+-------------------------------+
| ID                                   | Name         | Status | Task State | Power State | Networks                      |
+--------------------------------------+--------------+--------+------------+-------------+-------------------------------+
| dd582265-dcf2-43f6-831a-d851fdffbcde | UbuntuDevs01 | ACTIVE | -          | Running     | int=30.0.0.15, 192.168.24.101 |
| e7cce9a5-07d9-4eac-be91-359d6ee35312 | VF24Devs25   | ACTIVE | -          | Running     | int=30.0.0.9, 192.168.24.106  |
+--------------------------------------+--------------+--------+------------+-------------+-------------------------------+
[root@overcloud-controller-0 ~]# ip netns 
qdhcp-1b84376e-70a3-4a65-9434-87ac000b3d85
qrouter-c6191a8f-00d5-4cc4-b026-509efc118f9d
[root@overcloud-controller-0 ~]# ip netns exec qdhcp-1b84376e-70a3-4a65-9434-87ac000b3d85 ping -c 3 30.0.0.15
PING 30.0.0.15 (30.0.0.15) 56(84) bytes of data.
64 bytes from 30.0.0.15: icmp_seq=1 ttl=64 time=1.69 ms
64 bytes from 30.0.0.15: icmp_seq=2 ttl=64 time=1.31 ms
64 bytes from 30.0.0.15: icmp_seq=3 ttl=64 time=8.12 ms

--- 30.0.0.15 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 1.315/3.711/8.129/3.128 ms

Security group setup

[root@overcloud-controller-0 ~]# openstack project list
+----------------------------------+---------+
| ID                               | Name    |
+----------------------------------+---------+
| 4c32b6f19d5049d89bdb033e527f72bd | admin   |
| 678587aab1ef424887c6b91a747d9337 | service |
+----------------------------------+---------+
[root@overcloud-controller-0 ~]# openstack security group list | grep 4c32b6f19d5049d89bdb033e527f72bd
| ea94b8c1-2283-4000-a278-98dc47912711 | default | Default security group | 4c32b6f19d5049d89bdb033e527f72bd |
[root@overcloud-controller-0 ~]# openstack security group rule list ea94b8c1-2283-4000-a278-98dc47912711 | egrep "(tcp|icmp)"
| 0e118284-c63d-400a-8139-9fdcd24731b6 | tcp         | 0.0.0.0/0 | 22:22      | None                                 |
| fccd4fa4-3404-4082-8b35-35aad12c8bd2 | icmp        | 0.0.0.0/0 |            | None

UPDATE
You wrote :-

So If I create a new net with the subnet the only way I can ping is via the dhcp? but I followed your steps and , when I run "openstack security group list | grep 4c32b6f19d5049d89bdb033e527f72bd" (the ide if from my net-list) I dont get any output , is there any way I do the ping with out the dhcp?

Please, create security rules via dashboard and allow ping and ssh for VMs created in project( tenant ) . Don't analyze my reports. Then launch VM attached to tenant's subnet. Then run :-
# ip netns 
it will provide you qdhcp-network-id  then ping private IP like 
# ip netns exec qdhcp-networok-id ping Private-IP-allocated to-VM

END UPDATE
Private IPs are usually available via corresponding qdhcp namespaces

[root@overcloud-controller-0 ~]# neutron net-list
+-------------------------------+-------------------------------+-------------------------------+
| id                            | name                          | subnets                       |
+-------------------------------+-------------------------------+-------------------------------+
| 1b84376e-                     | int                           | 13bd889c-3e7a-                |
| 70a3-4a65-9434-87ac000b3d85   |                               | 40b4-ab55-54233012adf5        |
|                               |                               | 30.0.0.0/24                   |
| 6f0f6552-9715-4c94-ac38-56e59 | ext-net                       | d473d55c-                     |
| 9423751                       |                               | e2eb-4705-9245-fe18e159e097   |
|                               |                               | 192.168.24.0/24               |
| f76ec009-e784-40f5-993d-      | HA network tenant 4c32b6f19d5 | 7ae1bd3d-                     |
| 7a93ddf24a4e                  | 049d89bdb033e527f72bd         | 1a8c-4693-a879-26f81b6b06e5   |
|                               |                               | 169.254.192.0/18              |
+-------------------------------+-------------------------------+-------------------------------+
[root@overcloud-controller-0 ~]# ip netns
qdhcp-1b84376e-70a3-4a65-9434-87ac000b3d85
qrouter-c6191a8f-00d5-4cc4-b026-509efc118f9d
[root@overcloud-controller-0 ~]# nova list
+--------------------------------------+--------------+--------+------------+-------------+-------------------------------+
| ID                                   | Name         | Status | Task State | Power State | Networks                      |
+--------------------------------------+--------------+--------+------------+-------------+-------------------------------+
| dd582265-dcf2-43f6-831a-d851fdffbcde | UbuntuDevs01 | ACTIVE | -          | Running     | int=30.0.0.15, 192.168.24.101 |
| e7cce9a5-07d9-4eac-be91-359d6ee35312 | VF24Devs25   | ACTIVE | -          | Running     | int=30.0.0.9, 192.168.24.106  |
+--------------------------------------+--------------+--------+------------+-------------+-------------------------------+
[root@overcloud-controller-0 ~]# ip netns 
qdhcp-1b84376e-70a3-4a65-9434-87ac000b3d85
qrouter-c6191a8f-00d5-4cc4-b026-509efc118f9d
[root@overcloud-controller-0 ~]# ip netns exec qdhcp-1b84376e-70a3-4a65-9434-87ac000b3d85 ping -c 3 30.0.0.15
PING 30.0.0.15 (30.0.0.15) 56(84) bytes of data.
64 bytes from 30.0.0.15: icmp_seq=1 ttl=64 time=1.69 ms
64 bytes from 30.0.0.15: icmp_seq=2 ttl=64 time=1.31 ms
64 bytes from 30.0.0.15: icmp_seq=3 ttl=64 time=8.12 ms

--- 30.0.0.15 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 1.315/3.711/8.129/3.128 ms

Security group setup

[root@overcloud-controller-0 ~]# openstack project list
+----------------------------------+---------+
| ID                               | Name    |
+----------------------------------+---------+
| 4c32b6f19d5049d89bdb033e527f72bd | admin   |
| 678587aab1ef424887c6b91a747d9337 | service |
+----------------------------------+---------+
[root@overcloud-controller-0 ~]# openstack security group list | grep 4c32b6f19d5049d89bdb033e527f72bd
| ea94b8c1-2283-4000-a278-98dc47912711 | default | Default security group | 4c32b6f19d5049d89bdb033e527f72bd |
[root@overcloud-controller-0 ~]# openstack security group rule list ea94b8c1-2283-4000-a278-98dc47912711 | egrep "(tcp|icmp)"
| 0e118284-c63d-400a-8139-9fdcd24731b6 | tcp         | 0.0.0.0/0 | 22:22      | None                                 |
| fccd4fa4-3404-4082-8b35-35aad12c8bd2 | icmp        | 0.0.0.0/0 |            | None

UPDATE
You wrote :-

So If I create a new net with the subnet the only way I can ping is via the dhcp? but I followed your steps and , when I run "openstack security group list | grep 4c32b6f19d5049d89bdb033e527f72bd" (the ide if from my net-list) I dont get any output , is there any way I do the ping with out the dhcp?

Please, create security rules via dashboard and allow ping and ssh for VMs created in project( tenant ) . Don't analyze my security group set up reports. Then launch VM attached to tenant's subnet. Then run :-
# ip netns 
it will provide you qdhcp-network-id  then ping private IP like 
# ip netns exec qdhcp-networok-id ping Private-IP-allocated to-VM
Private-IP-allocated-to-VM

END UPDATE
Private IPs are usually available via corresponding qdhcp namespaces

[root@overcloud-controller-0 ~]# neutron net-list
+-------------------------------+-------------------------------+-------------------------------+
| id                            | name                          | subnets                       |
+-------------------------------+-------------------------------+-------------------------------+
| 1b84376e-                     | int                           | 13bd889c-3e7a-                |
| 70a3-4a65-9434-87ac000b3d85   |                               | 40b4-ab55-54233012adf5        |
|                               |                               | 30.0.0.0/24                   |
| 6f0f6552-9715-4c94-ac38-56e59 | ext-net                       | d473d55c-                     |
| 9423751                       |                               | e2eb-4705-9245-fe18e159e097   |
|                               |                               | 192.168.24.0/24               |
| f76ec009-e784-40f5-993d-      | HA network tenant 4c32b6f19d5 | 7ae1bd3d-                     |
| 7a93ddf24a4e                  | 049d89bdb033e527f72bd         | 1a8c-4693-a879-26f81b6b06e5   |
|                               |                               | 169.254.192.0/18              |
+-------------------------------+-------------------------------+-------------------------------+
[root@overcloud-controller-0 ~]# ip netns
qdhcp-1b84376e-70a3-4a65-9434-87ac000b3d85
qrouter-c6191a8f-00d5-4cc4-b026-509efc118f9d
[root@overcloud-controller-0 ~]# nova list
+--------------------------------------+--------------+--------+------------+-------------+-------------------------------+
| ID                                   | Name         | Status | Task State | Power State | Networks                      |
+--------------------------------------+--------------+--------+------------+-------------+-------------------------------+
| dd582265-dcf2-43f6-831a-d851fdffbcde | UbuntuDevs01 | ACTIVE | -          | Running     | int=30.0.0.15, 192.168.24.101 |
| e7cce9a5-07d9-4eac-be91-359d6ee35312 | VF24Devs25   | ACTIVE | -          | Running     | int=30.0.0.9, 192.168.24.106  |
+--------------------------------------+--------------+--------+------------+-------------+-------------------------------+
[root@overcloud-controller-0 ~]# ip netns 
qdhcp-1b84376e-70a3-4a65-9434-87ac000b3d85
qrouter-c6191a8f-00d5-4cc4-b026-509efc118f9d
[root@overcloud-controller-0 ~]# ip netns exec qdhcp-1b84376e-70a3-4a65-9434-87ac000b3d85 ping -c 3 30.0.0.15
PING 30.0.0.15 (30.0.0.15) 56(84) bytes of data.
64 bytes from 30.0.0.15: icmp_seq=1 ttl=64 time=1.69 ms
64 bytes from 30.0.0.15: icmp_seq=2 ttl=64 time=1.31 ms
64 bytes from 30.0.0.15: icmp_seq=3 ttl=64 time=8.12 ms

--- 30.0.0.15 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 1.315/3.711/8.129/3.128 ms

Security group setup

[root@overcloud-controller-0 ~]# openstack project list
+----------------------------------+---------+
| ID                               | Name    |
+----------------------------------+---------+
| 4c32b6f19d5049d89bdb033e527f72bd | admin   |
| 678587aab1ef424887c6b91a747d9337 | service |
+----------------------------------+---------+
[root@overcloud-controller-0 ~]# openstack security group list | grep 4c32b6f19d5049d89bdb033e527f72bd
| ea94b8c1-2283-4000-a278-98dc47912711 | default | Default security group | 4c32b6f19d5049d89bdb033e527f72bd |
[root@overcloud-controller-0 ~]# openstack security group rule list ea94b8c1-2283-4000-a278-98dc47912711 | egrep "(tcp|icmp)"
| 0e118284-c63d-400a-8139-9fdcd24731b6 | tcp         | 0.0.0.0/0 | 22:22      | None                                 |
| fccd4fa4-3404-4082-8b35-35aad12c8bd2 | icmp        | 0.0.0.0/0 |            | None