[Openstack] [Ironic] Trouble in setting up Ironic in private network

Peeyush Gupta gpeeyush at linux.vnet.ibm.com
Wed Nov 12 06:32:41 UTC 2014


Hi all,

So, I have been trying to add a new baremetal node to devstack ironic
setup. I am running devstack on a VM. The host has two networks, one
private and one public. My VM also has two interfaces, connected to
private and public networks respectively. Public network is used to
manage IPMI to control power cycles. That is happening perfectly. I can
power on and off the server using ironic cli. Now, when I try to deploy,
my baremetal node is not able to connect to DHCP. I can see from the
console, that during the power cycle, my node boots up normally.

Now, the interface on which the private network is connected is up and
configured to use DHCP. But my best guess is, it is not able to talk to
the DHCP server. So, I did a little more digging and found out that DHCP
is running on virbr0 interface which has a 192.168.122.1 ip, which is a
private network and it's not connected to any interface.

stack at peeyush-Standard-PC-i440FX-PIIX-1996:~/devstack$ brctl show
bridge name    bridge id        STP enabled    interfaces
docker0        8000.56847afe9799    no       
virbr0        8000.000000000000    yes       

My nova-compute keeps saying:

2014-11-12 11:57:40.774 DEBUG nova.virt.ironic.driver [-] [instance:
de919d3e-2090-47e5-8495-fbb7902b3caf] Still waiting for ironic node
de6fcb1d-26a8-4aa1-809c-5a05b752e829 to become ACTIVE:
power_state="power on", target_power_state=None, provision_state="wait
call-back", target_provision_state="deploy complete" from (pid=30197)
_log_ironic_polling /opt/stack/nova/nova/virt/ironic/driver.py:150

and eventually times out!

Node-validation shows this:

stack at peeyush-Standard-PC-i440FX-PIIX-1996:~/devstack$ ironic
node-validate de6fcb1d-26a8-4aa1-809c-5a05b752e829
+------------+--------+-------------------------------------------------+
| Interface  | Result | Reason                                          |
+------------+--------+-------------------------------------------------+
| console    | False  | IPMI terminal port not supplied to IPMI driver. |
| deploy     | True   |                                                 |
| management | True   |                                                 |
| power      | True   |                                                 |
+------------+--------+-------------------------------------------------+


The server tries to put ip in 10.1.0.xx range and stucks there. So, it
makes senses that my baremetal node can't connect to my DHCP server. I
may be wrong though!

I copied the localrc file from here:
http://docs.openstack.org/developer/ironic/dev/dev-quickstart.html#deploying-ironic-with-devstack

Did anyone face the same problem? Do I need to make changes to localrc
file/DHCP config file to run DHCP on a reachable ip? Could you please
tell me how to resolve this issue?

-- 
Peeyush Gupta
gpeeyush at linux.vnet.ibm.com






More information about the Openstack mailing list