Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Port status is always DOWN

Hi,

I'm using 3 node scenario for openstack KILO for my setup. After launching VM it is not getting IP from DHCP, every time I see in the console-log of VM.

Starting network...
udhcpc (v1.20.1) started
Sending discover...
Sending discover...
Sending discover...
Usage: /sbin/cirros-dhcpc <up|down>
No lease, failing
WARN: /etc/rc3.d/S40-network failed

I checked por-show for the connected port to VM in neutron, it is also DOWN.

root@controller:/home/user# neutron
(neutron) port-list
+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+
| id                                   | name | mac_address       | fixed_ips                                                                          |
+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+
| 57c5852f-eeda-43a6-bbbe-413e7ada7956 |      | fa:16:3e:23:b1:18 | {"subnet_id": "7481c98d-8f9c-4639-8fe8-8c4b939b4b31", "ip_address": "199.166.1.3"} |
| c91c2d5a-37c1-484f-95d8-0841f3af294b |      | fa:16:3e:b3:f2:29 | {"subnet_id": "7481c98d-8f9c-4639-8fe8-8c4b939b4b31", "ip_address": "199.166.1.2"} |
| d95e83ff-c72e-422c-8bff-6b5fd18b4eec |      | fa:16:3e:cf:34:6a | {"subnet_id": "7481c98d-8f9c-4639-8fe8-8c4b939b4b31", "ip_address": "199.166.1.1"} |
+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+
(neutron) port-show 57c5852f-eeda-43a6-bbbe-413e7ada7956
+-----------------------+------------------------------------------------------------------------------------+
| Field                 | Value                                                                              |
+-----------------------+------------------------------------------------------------------------------------+
| admin_state_up        | True                                                                               |
| allowed_address_pairs |                                                                                    |
| binding:vnic_type     | normal                                                                             |
| device_id             | 34ac553a-6fa6-43a2-9d83-0db4c33213cd                                               |
| device_owner          | none                                                                               |
| extra_dhcp_opts       |                                                                                    |
| fixed_ips             | {"subnet_id": "7481c98d-8f9c-4639-8fe8-8c4b939b4b31", "ip_address": "199.166.1.3"} |
| id                    | 57c5852f-eeda-43a6-bbbe-413e7ada7956                                               |
| mac_address           | fa:16:3e:23:b1:18                                                                  |
| name                  |                                                                                    |
| network_id            | fdf1c821-4c10-4ac8-832c-58e9ccc9dbbc                                               |
| security_groups       | f41b1c39-221d-445d-875e-b42d690cb10d                                               |
| status                | DOWN                                                                               |
| tenant_id             | 69b9811f8f1e4ff39acb411408a0c637                                                   |
+-----------------------+------------------------------------------------------------------------------------+

This is how I created networks.

neutron net-create ext-net --router:external \
  --provider:physical_network external --provider:network_type flat

neutron subnet-create ext-net 200.1.0.0/24 --name ext-subnet \
  --allocation-pool start=200.1.0.101,end=200.1.0.200 \
  --disable-dhcp --gateway 200.1.0.1

neutron subnet-create demo-net 199.166.1.0/24 \
  --name demo-subnet --dns-nameserver 8.8.4.4 --gateway 199.166.1.1

Output of nova-list

root@controller:/home/user# nova list
+--------------------------------------+----------------+--------+------------+-------------+----------------------+
| ID                                   | Name           | Status | Task State | Power State | Networks             |
+--------------------------------------+----------------+--------+------------+-------------+----------------------+
| 34ac553a-6fa6-43a2-9d83-0db4c33213cd | demo-instance2 | ACTIVE | -          | Running     | demo-net=199.166.1.3 |
+--------------------------------------+----------------+--------+------------+-------------+----------------------+

Any Idea..??

Port status is always DOWN

Hi,

I'm using 3 node scenario for openstack KILO for my setup. After launching VM VM, it is not getting IP from DHCP, every time I see in the console-log of VM.

Starting network...
udhcpc (v1.20.1) started
Sending discover...
Sending discover...
Sending discover...
Usage: /sbin/cirros-dhcpc <up|down>
No lease, failing
WARN: /etc/rc3.d/S40-network failed

I checked por-show port-show for the connected port to VM in neutron, it is also DOWN.

root@controller:/home/user# neutron
(neutron) port-list
+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+
| id                                   | name | mac_address       | fixed_ips                                                                          |
+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+
| 57c5852f-eeda-43a6-bbbe-413e7ada7956 |      | fa:16:3e:23:b1:18 | {"subnet_id": "7481c98d-8f9c-4639-8fe8-8c4b939b4b31", "ip_address": "199.166.1.3"} |
| c91c2d5a-37c1-484f-95d8-0841f3af294b |      | fa:16:3e:b3:f2:29 | {"subnet_id": "7481c98d-8f9c-4639-8fe8-8c4b939b4b31", "ip_address": "199.166.1.2"} |
| d95e83ff-c72e-422c-8bff-6b5fd18b4eec |      | fa:16:3e:cf:34:6a | {"subnet_id": "7481c98d-8f9c-4639-8fe8-8c4b939b4b31", "ip_address": "199.166.1.1"} |
+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+
(neutron) port-show 57c5852f-eeda-43a6-bbbe-413e7ada7956
+-----------------------+------------------------------------------------------------------------------------+
| Field                 | Value                                                                              |
+-----------------------+------------------------------------------------------------------------------------+
| admin_state_up        | True                                                                               |
| allowed_address_pairs |                                                                                    |
| binding:vnic_type     | normal                                                                             |
| device_id             | 34ac553a-6fa6-43a2-9d83-0db4c33213cd                                               |
| device_owner          | none                                                                               |
| extra_dhcp_opts       |                                                                                    |
| fixed_ips             | {"subnet_id": "7481c98d-8f9c-4639-8fe8-8c4b939b4b31", "ip_address": "199.166.1.3"} |
| id                    | 57c5852f-eeda-43a6-bbbe-413e7ada7956                                               |
| mac_address           | fa:16:3e:23:b1:18                                                                  |
| name                  |                                                                                    |
| network_id            | fdf1c821-4c10-4ac8-832c-58e9ccc9dbbc                                               |
| security_groups       | f41b1c39-221d-445d-875e-b42d690cb10d                                               |
| status                | DOWN                                                                               |
| tenant_id             | 69b9811f8f1e4ff39acb411408a0c637                                                   |
+-----------------------+------------------------------------------------------------------------------------+

This is how I created networks.

neutron net-create ext-net --router:external \
  --provider:physical_network external --provider:network_type flat

neutron subnet-create ext-net 200.1.0.0/24 --name ext-subnet \
  --allocation-pool start=200.1.0.101,end=200.1.0.200 \
  --disable-dhcp --gateway 200.1.0.1

neutron subnet-create demo-net 199.166.1.0/24 \
  --name demo-subnet --dns-nameserver 8.8.4.4 --gateway 199.166.1.1

Output of nova-list

root@controller:/home/user# nova list
+--------------------------------------+----------------+--------+------------+-------------+----------------------+
| ID                                   | Name           | Status | Task State | Power State | Networks             |
+--------------------------------------+----------------+--------+------------+-------------+----------------------+
| 34ac553a-6fa6-43a2-9d83-0db4c33213cd | demo-instance2 | ACTIVE | -          | Running     | demo-net=199.166.1.3 |
+--------------------------------------+----------------+--------+------------+-------------+----------------------+

Any Idea..??