Newton: Instance cannot be allocated IP address

asked 2016-12-27 06:25:52 -0500

sanjay gravatar image

updated 2016-12-28 19:06:00 -0500

[root@controller ~]# brctl show
bridge name     bridge id               STP enabled     interfaces
brqefcdbb1c-63          8000.0050569d7e8a       no              ens192
                                                        tapd939dea5-3e
[root@controller ~]# ip netns exec qdhcp-efcdbb1c-63ba-49b0-9d71-10db484e8e0d bash
[root@controller ~]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: ns-d939dea5-3e@if4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether fa:16:3e:31:00:06 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 10.63.35.215/21 brd 10.63.39.255 scope global ns-d939dea5-3e
       valid_lft forever preferred_lft forever
    inet 169.254.169.254/16 brd 169.254.255.255 scope global ns-d939dea5-3e
       valid_lft forever preferred_lft forever
    inet6 fe80::f816:3eff:fe31:6/64 scope link
       valid_lft forever preferred_lft forever
[root@controller ~]# ps -eaf |grep nobody
nobody    2789     1  0 Dec20 ?        00:01:48 dnsmasq --no-hosts --no-resolv --strict-order --except-interface=lo --pid-file=/var/lib/neutron/dhcp/efcdbb1c-63ba-49b0-9d71-10db484e8e0d/pid --dhcp-hostsfile=/var/lib/neutron/dhcp/efcdbb1c-63ba-49b0-9d71-10db484e8e0d/host --addn-hosts=/var/lib/neutron/dhcp/efcdbb1c-63ba-49b0-9d71-10db484e8e0d/addn_hosts --dhcp-optsfile=/var/lib/neutron/dhcp/efcdbb1c-63ba-49b0-9d71-10db484e8e0d/opts --dhcp-leasefile=/var/lib/neutron/dhcp/efcdbb1c-63ba-49b0-9d71-10db484e8e0d/leases --dhcp-match=set:ipxe,175 --bind-interfaces --interface=ns-d939dea5-3e --dhcp-range=set:tag0,10.63.32.0,static,86400s --dhcp-option-force=option:mtu,1500 --dhcp-lease-max=2048 --conf-file= --domain=openstacklocal

[root@controller efcdbb1c-63ba-49b0-9d71-10db484e8e0d]# cat addn_hosts
10.63.35.215    host-10-63-35-215.openstacklocal host-10-63-35-215
10.63.35.216    host-10-63-35-216.openstacklocal host-10-63-35-216 (This IP Instance should get)
[root@controller efcdbb1c-63ba-49b0-9d71-10db484e8e0d]#
---------------------------------------------------------------------------------
[root@compute ~]# brctl show
bridge name     bridge id               STP enabled     interfaces
brqefcdbb1c-63          8000.0050569d49fd       no              ens192
                                                        tap0de15df9-b6 
<interface type="bridge">
      <mac address="fa:16:3e:8f:98:65"/>
      <model type="virtio"/>
      <driver name="qemu"/>
      <source bridge="brqefcdbb1c-63"/>
      <target dev="tap0de15df9-b6"/>
edit retag flag offensive close merge delete

Comments

You seem to say that Neutron allocates a static IP to your instance, but the instance's DHCP request is not successful. Start by opening a console window to the instance and configure the address manually. If there is connectivity, you need to troubleshoot DHCP, if not, the problem is more general.

Bernd Bausch gravatar imageBernd Bausch ( 2016-12-28 19:05:26 -0500 )edit