ironic: cannot write user image after pxe boot and downloaded deploy ramdisk image

asked 2016-12-14 00:40:23 -0500

anonymous user

Anonymous

updated 2016-12-19 14:21:04 -0500

rbowen gravatar image

I am trying to provision baremetal by openstack ironic (liberity). I followed the link http://docs.openstack.org/developer/i...

I booted the baremetal node by the command as following:

"nova boot --config-drive true --flavor my-baremetal-flavor --image my-image  --nic net-id="${NET_UUID}" instance-13"

The baremetal node can successfully boot by pxe and download the deploy ramdisk image (centos7 with ironic-python-agent, built by the command "disk-image-create ironic-agent centos7 devuser" ). When I login the deploy ramdisk image, I found the service ironic-python-agent is running, but cann't write user image on the disk.

The state of ironic node is:

ironic node-list
+--------------------------------------+------+--------------------------------------+-------------+--------------------+-------------+
| UUID                                 | Name | Instance UUID                        | Power State | Provisioning State | Maintenance |
+--------------------------------------+------+--------------------------------------+-------------+--------------------+-------------+
| cddd07e5-57ed-4322-a7db-015178b47552 | None | e8e63c3a-54db-468d-a78d-7001e8556f4a | power on    | wait call-back     | False       |
+--------------------------------------+------+--------------------------------------+-------------+--------------------+-------------+


The state of instance is:
nova list
+--------------------------------------+-------------+--------+------------+-------------+--------------------------+
| ID                                   | Name        | Status | Task State | Power State | Networks                 |
+--------------------------------------+-------------+--------+------------+-------------+--------------------------+
| e8e63c3a-54db-468d-a78d-7001e8556f4a | instance-13 | BUILD  | spawning   | NOSTATE     | sharednet1=192.168.1.126 |
+--------------------------------------+-------------+--------+------------+-------------+--------------------------+

The ironic-python-agent log is as following:

sudo journalctl -u ironic-python-agent 
-- Logs begin at Wed 2016-12-14 06:35:17 UTC, end at Wed 2016-12-14 06:38:01 UTC. --
Dec 14 06:36:03 host-192-168-1-126 systemd[1]: Starting Ironic Python Agent...
Dec 14 06:36:03 host-192-168-1-126 systemd[1]: Started Ironic Python Agent.
Dec 14 06:36:04 host-192-168-1-126 ironic-python-agent[1346]: /usr/share/ironic-python-agent/venv/lib/python2.7/site-packages/pecan/__init__.py:122: RuntimeWarning: `static_root` is only used when `debug` is True, ignoring
Dec 14 06:36:04 host-192-168-1-126 ironic-python-agent[1346]: RuntimeWarning
Dec 14 06:36:04 host-192-168-1-126 ironic-python-agent[1346]: 2016-12-14 06:36:04.482 1346 WARNING root [-] Can't find field vendor for device lo in device class net
Dec 14 06:36:04 host-192-168-1-126 ironic-python-agent[1346]: 2016-12-14 06:36:04.495 1346 INFO root [-] Hardware manager found: ironic_python_agent.hardware:GenericHardwareManager
Dec 14 06:36:04 host-192-168-1-126 ironic-python-agent[1346]: 2016-12-14 06:36:04.495 1346 WARNING root [-] Can't find field vendor for device lo in device class net
Dec 14 06:36:05 host-192-168-1-126 ironic-python-agent[1346]: 2016-12-14 06:36:05.072 1346 WARNING ironic_python_agent.ironic_api_client [-] Failure status code: 404
Dec 14 06:36:06 host-192-168-1-126 ironic-python-agent[1346]: 2016-12-14 06:36:06.886 1346 WARNING ironic_python_agent.ironic_api_client [-] Failure status code: 404
Dec 14 06:36:09 host-192-168-1-126 ironic-python-agent[1346]: 2016-12-14 06:36:09.123 1346 WARNING ironic_python_agent.ironic_api_client [-] Failure status code: 404

What suggestions about it? Thanks in advance!!

-ldreamke

edit retag flag offensive close merge delete

Comments

I got the same problem, did you solve it?

dongc gravatar imagedongc ( 2017-05-18 11:04:38 -0500 )edit