Neutron flat DHCP issue for ironic

asked 2015-07-15 07:22:06 -0500

Joe gravatar image

I followed ironic development doc to set up ironic. Neutron flat network was configured (br-eth1), but something confuses me.

I created a node and a port to ironic successfully and create a flat network with dhcp enabled. A node connected to the same physical switch that the eth1 connected. The node didn't get a DHCP IP. How could it be booted to pxe?

+------------------------+--------------------------------------------------------------------------+
| Property               | Value                                                                    |
+------------------------+--------------------------------------------------------------------------+
| instance_uuid          | None                                                                     |
| target_power_state     | None                                                                     |
| properties             | {}                                                                       |
| maintenance            | True                                                                     |
| driver_info            | {u'ipmi_terminal_port': u'623', u'ipmi_username': u'admin',              |
|                        | u'deploy_kernel': u'98023589-a0f0-461d-b48c-e098c255a0f3',               |
|                        | u'ipmi_address': u'192.168.100.110', u'deploy_ramdisk': u'58c8f88c-cf2c- |
|                        | 42b6-99c4-ced966c1e155', u'ipmi_password': u'******'}                    |
| extra                  | {}                                                                       |
| last_error             | None                                                                     |
| created_at             | 2015-06-30T07:56:33+00:00                                                |
| target_provision_state | None                                                                     |
| driver                 | pxe_ipmitool                                                             |
| updated_at             | 2015-07-15T11:53:41+00:00                                                |
| instance_info          | {u'root_gb': u'100', u'image_source': u'ecedad31-e2c0-4c3d-912d-         |
|                        | 63e4f792a8c4'}                                                           |
| chassis_uuid           |                                                                          |
| provision_state        | None                                                                     |
| reservation            | None                                                                     |
| power_state            | power on                                                                 |
| console_enabled        | False                                                                    |
| uuid                   | 9aef4605-f1f6-4f7e-afa1-3c0ca09b2510                                     |
+------------------------+--------------------------------------------------------------------------+

+------------+--------+---------------+
| Interface  | Result | Reason        |
+------------+--------+---------------+
| console    | True   |               |
| deploy     | True   |               |
| inspect    | None   | not supported |
| management | True   |               |
| power      | True   |               |
+------------+--------+---------------+

+-------------------+---------------------------------------------+
| Field             | Value                                       |
+-------------------+---------------------------------------------+
| allocation_pools  | {"start": "100.1.0.2", "end": "100.1.0.10"} |
| cidr              | 100.1.0.0/24                                |
| dns_nameservers   |                                             |
| enable_dhcp       | True                                        |
| gateway_ip        | 100.1.0.1                                   |
| host_routes       |                                             |
| id                | a09bd900-8647-4546-8c01-4e211de8b435        |
| ip_version        | 4                                           |
| ipv6_address_mode |                                             |
| ipv6_ra_mode      |                                             |
| name              | flat-subnet                                 |
| network_id        | 908b74eb-f11e-4daf-9dab-2ef06718a20e        |
| subnetpool_id     |                                             |
| tenant_id         | c71383ff41c04682a1fd8cf9447510f6            |
+-------------------+---------------------------------------------+

ml2_conf.ini

[ml2]
type_drivers = flat,vlan

[ovs]
bridge_mappings = physnet1:br-eth1
network_vlan_ranges = physnet1

[ml2_type_flat]
flat_networks = physnet1

[ml2_type_vlan]
network_vlan_ranges = physnet1:1:2000

dhcp_agent.ini

dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
dhcp_delete_namespaces = True

Did I miss anything?

How should I set up my flat network for ironic? Thanks.

edit retag flag offensive close merge delete