user data on config_drive doesn't work for Ironic nodes

Bug #1613296 reported by Waldemar Znoinski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Expired
Undecided
Unassigned
Mitaka
Won't Fix
High
Waldemar Znoinski

Bug Description

When trying to spawn an Ironic node with user-data and config-drive option 'ticked' the below is the error thrown:

2016-08-14 23:17:06.028 1 ERROR nova.virt.ironic.driver [req-a8db6b3a-ae16-43cb-a0af-023522b37de8 66ff1de235364afaad77f3ae1395e90b eeb52de1247f4e91be78edd292f52bed - - -] [instance: bc52bcd9-edf0-4e9f-9f0d-36b805760d48] Faile
d to build configdrive: [Errno 2] No such file or directory
2016-08-14 23:17:06.030 1 ERROR root [req-a8db6b3a-ae16-43cb-a0af-023522b37de8 66ff1de235364afaad77f3ae1395e90b eeb52de1247f4e91be78edd292f52bed - - -] Original exception being dropped: ['Traceback (most recent call last):\n', ' File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/nova/virt/ironic/driver.py", line 741, in spawn\n files=injected_files)\n', ' File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/nova/virt/ironic/driver.py", line 658, in _generate_configdrive\n cdb.make_drive(uncompressed.name)\n', ' File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/nova/virt/configdrive.py", line 153, in make_drive\n self._make_iso9660(path, tmpdir)\n', ' File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/nova/virt/configdrive.py", line 107, in _make_iso9660\n run_as_root=False)\n', ' File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/nova/utils.py", line 389, in execute\n return processutils.execute(*cmd, **kwargs)\n', ' File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/oslo_concurrency/processutils.py", line 363, in execute\n env=env_variables)\n', ' File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/eventlet/green/subprocess.py", line 54, in __init__\n subprocess_orig.Popen.__init__(self, args, 0, *argss, **kwds)\n', ' File "/usr/lib/python2.7/subprocess.py", line 710, in __init__\n errread, errwrite)\n', ' File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child\n raise child_exception\n', 'OSError: [Errno 2] No such file or directory\n']
2016-08-14 23:17:06.030 1 ERROR nova.compute.manager [req-a8db6b3a-ae16-43cb-a0af-023522b37de8 66ff1de235364afaad77f3ae1395e90b eeb52de1247f4e91be78edd292f52bed - - -] [instance: bc52bcd9-edf0-4e9f-9f0d-36b805760d48] Instance failed to spawn
2016-08-14 23:17:06.030 1 ERROR nova.compute.manager [instance: bc52bcd9-edf0-4e9f-9f0d-36b805760d48] Traceback (most recent call last):
2016-08-14 23:17:06.030 1 ERROR nova.compute.manager [instance: bc52bcd9-edf0-4e9f-9f0d-36b805760d48] File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/nova/compute/manager.py", line 2218, in _build_resources
2016-08-14 23:17:06.030 1 ERROR nova.compute.manager [instance: bc52bcd9-edf0-4e9f-9f0d-36b805760d48] yield resources
2016-08-14 23:17:06.030 1 ERROR nova.compute.manager [instance: bc52bcd9-edf0-4e9f-9f0d-36b805760d48] File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/nova/compute/manager.py", line 2064, in _build_and_run_instance
2016-08-14 23:17:06.030 1 ERROR nova.compute.manager [instance: bc52bcd9-edf0-4e9f-9f0d-36b805760d48] block_device_info=block_device_info)
2016-08-14 23:17:06.030 1 ERROR nova.compute.manager [instance: bc52bcd9-edf0-4e9f-9f0d-36b805760d48] File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/nova/virt/ironic/driver.py", line 748, in spawn
2016-08-14 23:17:06.030 1 ERROR nova.compute.manager [instance: bc52bcd9-edf0-4e9f-9f0d-36b805760d48] flavor=flavor)
2016-08-14 23:17:06.030 1 ERROR nova.compute.manager [instance: bc52bcd9-edf0-4e9f-9f0d-36b805760d48] TypeError: _cleanup_deploy() takes exactly 4 arguments (6 given)
2016-08-14 23:17:06.030 1 ERROR nova.compute.manager [instance: bc52bcd9-edf0-4e9f-9f0d-36b805760d48]
2016-08-14 23:17:06.032 1 INFO nova.compute.manager [req-a8db6b3a-ae16-43cb-a0af-023522b37de8 66ff1de235364afaad77f3ae1395e90b eeb52de1247f4e91be78edd292f52bed - - -] [instance: bc52bcd9-edf0-4e9f-9f0d-36b805760d48] Terminating instance
2016-08-14 23:17:06.044 1 INFO nova.virt.ironic.driver [req-a8db6b3a-ae16-43cb-a0af-023522b37de8 66ff1de235364afaad77f3ae1395e90b eeb52de1247f4e91be78edd292f52bed - - -] [instance: bc52bcd9-edf0-4e9f-9f0d-36b805760d48] Successfully unprovisioned Ironic node d257b6a3-02c9-e211-bbd3-001e67899bb1
2016-08-14 23:17:06.045 1 INFO nova.compute.manager [req-a8db6b3a-ae16-43cb-a0af-023522b37de8 66ff1de235364afaad77f3ae1395e90b eeb52de1247f4e91be78edd292f52bed - - -] [instance: bc52bcd9-edf0-4e9f-9f0d-36b805760d48] Took 0.01 seconds to destroy the instance on the hypervisor.

Revision history for this message
Waldemar Znoinski (wznoinsk) wrote :

Host:
 cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"
NAME="Ubuntu"
VERSION="16.04.1 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.1 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
UBUNTU_CODENAME=xenial

Linux silpixa00385229 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

ansible 1.9.5
  configured module search path = None

kolla stable/mitaka
Kolla globals:
config_strategy: "COPY_ALWAYS"
kolla_base_distro: "ubuntu"
kolla_install_type: "source"
openstack_release: "mitaka"
enable_haproxy: "no"
enable_keepalived: "no"
kolla_internal_vip_address: "10.237.222.18"
docker_registry: "192.168.100.1:4000"
network_interface: "eno1"
neutron_external_interface: "enp130s0f0"
enable_ironic: "yes"

Container:
 cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
NAME="Ubuntu"
VERSION="14.04.5 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.5 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

python --version
Python 2.7.6

Ironic:
driver: pxe_ipmitool

Changed in kolla:
assignee: nobody → Waldemar Znoinski (wznoinsk)
Ryan Hallisey (rthall14)
Changed in kolla:
importance: Undecided → High
milestone: none → newton-3
status: New → Triaged
Changed in kolla:
milestone: newton-3 → newton-rc1
Changed in kolla:
milestone: newton-rc1 → newton-rc2
Steven Dake (sdake)
Changed in kolla:
milestone: newton-rc2 → ocata-1
Changed in kolla:
milestone: ocata-1 → ocata-2
Changed in kolla:
milestone: ocata-2 → ocata-3
Changed in kolla:
milestone: ocata-3 → ocata-rc1
Changed in kolla:
milestone: ocata-rc1 → pike-1
Changed in kolla:
milestone: pike-2 → pike-3
Changed in kolla:
milestone: pike-3 → pike-rc1
Changed in kolla:
milestone: pike-rc1 → queens-1
Changed in kolla:
milestone: queens-2 → queens-3
Changed in kolla:
milestone: queens-3 → queens-rc1
Changed in kolla:
milestone: queens-rc1 → queens-rc2
Changed in kolla:
milestone: queens-rc2 → rocky-1
Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote : Cleanup EOL bug report

This is an automated cleanup. This bug report has been closed because it
is older than 18 months and there is no open code change to fix this.
After this time it is unlikely that the circumstances which lead to
the observed issue can be reproduced.

If you can reproduce the bug, please:
* reopen the bug report (set to status "New")
* AND add the detailed steps to reproduce the issue (if applicable)
* AND leave a comment "CONFIRMED FOR: <RELEASE_NAME>"
  Only still supported release names are valid (OCATA, PIKE, QUEENS, ROCKY, ROCKY).
  Valid example: CONFIRMED FOR: OCATA

Changed in kolla:
assignee: Waldemar Znoinski (wznoinsk) → nobody
importance: High → Undecided
status: Triaged → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.