[Openstack] couldn't get ip from instance

由迪 di.you at enmotech.com
Sat Nov 26 06:53:26 UTC 2016


Hi,all 
     I have problem to newton release,I use to network option 1  http://docs.openstack.org/newton/install-guide-rdo/neutron-controller-install-option1.html  
the environment information are following:


the log in attachment.


I can provide teamviewer to connect my machine if you need. 


thank you all to help to resolve it .










controller::


[root at controller ~]# ifconfig -a 


brq4b979570-72: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.2.21  netmask 255.255.255.0  broadcast 10.0.2.255
        ether 08:00:27:cf:50:6b  txqueuelen 0  (Ethernet)
        RX packets 58  bytes 6762 (6.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 51  bytes 4537 (4.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


enp0s8: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 08:00:27:54:0d:fb  txqueuelen 1000  (Ethernet)
        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


enp0s9: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.4.21  netmask 255.255.255.0  broadcast 10.0.4.255
        inet6 fe80::a00:27ff:fec2:301c  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:c2:30:1c  txqueuelen 1000  (Ethernet)
        RX packets 71038  bytes 58030376 (55.3 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 47908  bytes 9704962 (9.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


enp0s10: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::a00:27ff:fecf:506b  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:cf:50:6b  txqueuelen 1000  (Ethernet)
        RX packets 50  bytes 6930 (6.7 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 118  bytes 14678 (14.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


enp0s17: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.1.21  netmask 255.255.255.0  broadcast 10.0.1.255
        inet6 fe80::a00:27ff:fe50:c800  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:50:c8:00  txqueuelen 1000  (Ethernet)
        RX packets 273408  bytes 92886297 (88.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 240828  bytes 128294325 (122.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


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 1590501  bytes 689350191 (657.4 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1590501  bytes 689350191 (657.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


tapf28f46f8-b2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether 2e:15:02:47:d8:4d  txqueuelen 1000  (Ethernet)
        RX packets 65  bytes 7258 (7.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 74  bytes 8750 (8.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 52:54:00:33:74:b7  txqueuelen 0  (Ethernet)
        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


virbr0-nic: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 52:54:00:33:74:b7  txqueuelen 500  (Ethernet)
        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




[root at controller ~]# brctl show 
bridge name	bridge id		STP enabled	interfaces
brq4b979570-72		8000.080027cf506b	no		enp0s10
							tapf28f46f8-b2
virbr0		8000.5254003374b7	yes		virbr0-nic





[root at controller ~]# ip netns list 
qdhcp-4b979570-72a2-47d6-b2aa-0f3190ab69ff (id: 0)
[root at controller ~]# ip netns exec qdhcp-4b979570-72a2-47d6-b2aa-0f3190ab69ff  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


ns-f28f46f8-b2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.2.150  netmask 255.255.255.0  broadcast 10.0.2.255
        inet6 fe80::f816:3eff:fe81:8234  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:81:82:34  txqueuelen 1000  (Ethernet)
        RX packets 74  bytes 8750 (8.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 65  bytes 7258 (7.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0



[root at controller ~]# ping -c2 10.0.2.150 
PING 10.0.2.150 (10.0.2.150) 56(84) bytes of data.
64 bytes from 10.0.2.150: icmp_seq=1 ttl=64 time=0.126 ms
64 bytes from 10.0.2.150: icmp_seq=2 ttl=64 time=0.055 ms


--- 10.0.2.150 ping statistics ---


2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.055/0.090/0.126/0.036 ms







[root at controller ~]# neutron ext-list 
+---------------------------+---------------------------------+
| alias                     | name                            |
+---------------------------+---------------------------------+
| default-subnetpools       | Default Subnetpools             |
| availability_zone         | Availability Zone               |
| network_availability_zone | Network Availability Zone       |
| binding                   | Port Binding                    |
| agent                     | agent                           |
| subnet_allocation         | Subnet Allocation               |
| dhcp_agent_scheduler      | DHCP Agent Scheduler            |
| tag                       | Tag support                     |
| external-net              | Neutron external network        |
| flavors                   | Neutron Service Flavors         |
| net-mtu                   | Network MTU                     |
| network-ip-availability   | Network IP Availability         |
| quotas                    | Quota management support        |
| provider                  | Provider Network                |
| multi-provider            | Multi Provider Network          |
| address-scope             | Address scope                   |
| subnet-service-types      | Subnet service types            |
| standard-attr-timestamp   | Resource timestamps             |
| service-type              | Neutron Service Type Management |
| extra_dhcp_opt            | Neutron Extra DHCP opts         |
| standard-attr-revisions   | Resource revision numbers       |
| pagination                | Pagination support              |
| sorting                   | Sorting support                 |
| security-group            | security-group                  |
| rbac-policies             | RBAC Policies                   |
| standard-attr-description | standard-attr-description       |
| port-security             | Port Security                   |
| allowed-address-pairs     | Allowed Address Pairs           |
| project-id                | project_id field enabled        |
+---------------------------+---------------------------------+





[root at controller ~]# openstack network agent list 
+--------------------+--------------------+------------+-------------------+-------+-------+----------------------+
| ID                 | Agent Type         | Host       | Availability Zone | Alive | State | Binary               |
+--------------------+--------------------+------------+-------------------+-------+-------+----------------------+
| 0be98c7b-d213-4923 | Linux bridge agent | controller | None              | True  | UP    | neutron-linuxbridge- |
| -85cf-a7b0a219cbb1 |                    |            |                   |       |       | agent                |
| 49c97881-90ca-     | DHCP agent         | controller | nova              | True  | UP    | neutron-dhcp-agent   |
| 4c4a-              |                    |            |                   |       |       |                      |
| 8e34-ab49979be963  |                    |            |                   |       |       |                      |
| bda2ccb6-2268-4373 | Metadata agent     | controller | None              | True  | UP    | neutron-metadata-    |
| -89c7-0c2d2a656138 |                    |            |                   |       |       | agent                |
| ef3c9ede-2abe-     | Linux bridge agent | compute1   | None              | True  | UP    | neutron-linuxbridge- |
| 4f7f-              |                    |            |                   |       |       | agent                |
| 8c40-a0325d157744  |                    |            |                   |       |       |                      |
+--------------------+--------------------+------------+-------------------+-------+-------+----------------------+














root at compute1 ~]# ifconfig -a 
brq4b979570-72: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.2.41  netmask 255.255.255.0  broadcast 10.0.2.255
        ether 08:00:27:91:f5:2a  txqueuelen 0  (Ethernet)
        RX packets 66  bytes 6966 (6.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 60  bytes 5096 (4.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


enp0s8: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 08:00:27:34:94:a4  txqueuelen 1000  (Ethernet)
        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


enp0s9: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.4.41  netmask 255.255.255.0  broadcast 10.0.4.255
        inet6 fe80::a00:27ff:fece:3b92  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:ce:3b:92  txqueuelen 1000  (Ethernet)
        RX packets 109  bytes 75809 (74.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 108  bytes 8706 (8.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


enp0s10: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::a00:27ff:fe91:f52a  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:91:f5:2a  txqueuelen 1000  (Ethernet)
        RX packets 40  bytes 2742 (2.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 102  bytes 11624 (11.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


enp0s17: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.1.41  netmask 255.255.255.0  broadcast 10.0.1.255
        inet6 fe80::a00:27ff:fe1a:d643  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:1a:d6:43  txqueuelen 1000  (Ethernet)
        RX packets 192920  bytes 73593396 (70.1 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 208828  bytes 122733609 (117.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


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 207501  bytes 10900806 (10.3 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 207501  bytes 10900806 (10.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


tap065ef8e5-04: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::fc16:3eff:fe43:91f7  prefixlen 64  scopeid 0x20<link>
        ether fe:16:3e:43:91:f7  txqueuelen 500  (Ethernet)
        RX packets 9  bytes 1464 (1.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 54  bytes 3608 (3.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


tap276e9862-46: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::fc16:3eff:fe29:3707  prefixlen 64  scopeid 0x20<link>
        ether fe:16:3e:29:37:07  txqueuelen 500  (Ethernet)
        RX packets 9  bytes 1464 (1.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 38  bytes 2738 (2.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


tapd1911450-3d: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::fc16:3eff:fec9:b5a  prefixlen 64  scopeid 0x20<link>
        ether fe:16:3e:c9:0b:5a  txqueuelen 500  (Ethernet)
        RX packets 12  bytes 2460 (2.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 37  bytes 2660 (2.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0





[root at compute1 ~]# 
[root at compute1 ~]# ip netns list 
[root at compute1 ~]# 




[root at compute1 ~]# openstack network agent list 
+--------------------------------------+--------------------+------------+-------------------+-------+-------+---------------------------+
| ID                                   | Agent Type         | Host       | Availability Zone | Alive | State | Binary                    |
+--------------------------------------+--------------------+------------+-------------------+-------+-------+---------------------------+
| 0be98c7b-d213-4923-85cf-a7b0a219cbb1 | Linux bridge agent | controller | None              | True  | UP    | neutron-linuxbridge-agent |
| 49c97881-90ca-4c4a-8e34-ab49979be963 | DHCP agent         | controller | nova              | True  | UP    | neutron-dhcp-agent        |
| bda2ccb6-2268-4373-89c7-0c2d2a656138 | Metadata agent     | controller | None              | True  | UP    | neutron-metadata-agent    |
| ef3c9ede-2abe-4f7f-8c40-a0325d157744 | Linux bridge agent | compute1   | None              | True  | UP    | neutron-linuxbridge-agent |
+--------------------------------------+--------------------+------------+-------------------+-------+-------+---------------------------+
[root at compute1 ~]# 





root at compute1 ~]# neutron ext-list 
+---------------------------+---------------------------------+
| alias                     | name                            |
+---------------------------+---------------------------------+
| default-subnetpools       | Default Subnetpools             |
| availability_zone         | Availability Zone               |
| network_availability_zone | Network Availability Zone       |
| binding                   | Port Binding                    |
| agent                     | agent                           |
| subnet_allocation         | Subnet Allocation               |
| dhcp_agent_scheduler      | DHCP Agent Scheduler            |
| tag                       | Tag support                     |
| external-net              | Neutron external network        |
| flavors                   | Neutron Service Flavors         |
| net-mtu                   | Network MTU                     |
| network-ip-availability   | Network IP Availability         |
| quotas                    | Quota management support        |
| provider                  | Provider Network                |
| multi-provider            | Multi Provider Network          |
| address-scope             | Address scope                   |
| subnet-service-types      | Subnet service types            |
| standard-attr-timestamp   | Resource timestamps             |
| service-type              | Neutron Service Type Management |
| extra_dhcp_opt            | Neutron Extra DHCP opts         |
| standard-attr-revisions   | Resource revision numbers       |
| pagination                | Pagination support              |
| sorting                   | Sorting support                 |
| security-group            | security-group                  |
| rbac-policies             | RBAC Policies                   |
| standard-attr-description | standard-attr-description       |
| port-security             | Port Security                   |
| allowed-address-pairs     | Allowed Address Pairs           |
| project-id                | project_id field enabled        |
+---------------------------+---------------------------------+










------------------
Best Regards.


- 由迪( Kevin.U ) 
--------------------------------------------
云和恩墨(北京)信息技术有限公司 
Yunhe Enmo ( Beijing ) Technology Co.,LTD 
地址 :北京市朝阳区光华路9号光华路SOHO二期B座10-3、10-5
电话 : 010-59007017                
手机 : 18601222098                             
邮箱 : di.you at enmotech.com 
网址 : www.enmotech.com                
--------------------------------------------
数据驱动     成就客户未来 
--------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20161126/91654161/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compute1.tar.gz
Type: application/octet-stream
Size: 190477 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20161126/91654161/attachment.obj>


More information about the Openstack mailing list