ironic-conductor - Executable not found: iscsiadm

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

Bug Description

After Ironic python agent calls back home ironic_conductor tries to execute discovery of iscsi targets on the currently deployed node. It fails with:

2016-08-13 00:11:36.743 1 ERROR ironic.drivers.modules.agent_base_vendor [req-7f303c4a-e50b-48b7-9921-597ab917ead4 - - - - -] Asynchronous exception for node d257b6a3-02c9-e211-bbd3-001e67899bb1: Node failed to get image for deploy. Exception: Deploy failed for instance 22180b20-09f9-419e-b5a7-98c8279ace33. Error: Unexpected error whil
e running command.
Command: sudo ironic-rootwrap /etc/ironic/rootwrap.conf iscsiadm -m discovery -t st -p 10.237.223.28:3260
Exit code: 96
Stdout: u''
Stderr: u'/var/lib/kolla/venv/bin/ironic-rootwrap: Executable not found: iscsiadm (filter match = iscsiadm)\n'
2016-08-13 00:11:36.743 1 ERROR ironic.drivers.modules.agent_base_vendor Traceback (most recent call last):
2016-08-13 00:11:36.743 1 ERROR ironic.drivers.modules.agent_base_vendor File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/ironic/drivers/modules/agent_base_vendor.py", line 435, in heartbeat
2016-08-13 00:11:36.743 1 ERROR ironic.drivers.modules.agent_base_vendor self.continue_deploy(task, **kwargs)
2016-08-13 00:11:36.743 1 ERROR ironic.drivers.modules.agent_base_vendor File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/ironic/conductor/task_manager.py", line 141, in wrapper
2016-08-13 00:11:36.743 1 ERROR ironic.drivers.modules.agent_base_vendor return f(*args, **kwargs)
2016-08-13 00:11:36.743 1 ERROR ironic.drivers.modules.agent_base_vendor File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/ironic/drivers/modules/iscsi_deploy.py", line 861, in continue_deploy
2016-08-13 00:11:36.743 1 ERROR ironic.drivers.modules.agent_base_vendor uuid_dict_returned = do_agent_iscsi_deploy(task, self._client)
2016-08-13 00:11:36.743 1 ERROR ironic.drivers.modules.agent_base_vendor File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/ironic/drivers/modules/iscsi_deploy.py", line 357, in do_agent_iscsi_deploy
2016-08-13 00:11:36.743 1 ERROR ironic.drivers.modules.agent_base_vendor uuid_dict_returned = continue_deploy(task, **iscsi_params)
2016-08-13 00:11:36.743 1 ERROR ironic.drivers.modules.agent_base_vendor File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/ironic/drivers/modules/iscsi_deploy.py", line 290, in continue_deploy
2016-08-13 00:11:36.743 1 ERROR ironic.drivers.modules.agent_base_vendor _fail_deploy(task, msg)
2016-08-13 00:11:36.743 1 ERROR ironic.drivers.modules.agent_base_vendor File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/ironic/drivers/modules/iscsi_deploy.py", line 263, in _fail_deploy
2016-08-13 00:11:36.743 1 ERROR ironic.drivers.modules.agent_base_vendor raise exception.InstanceDeployFailure(msg)
2016-08-13 00:11:36.743 1 ERROR ironic.drivers.modules.agent_base_vendor InstanceDeployFailure: Deploy failed for instance 22180b20-09f9-419e-b5a7-98c8279ace33. Error: Unexpected error while running command.
2016-08-13 00:11:36.743 1 ERROR ironic.drivers.modules.agent_base_vendor Command: sudo ironic-rootwrap /etc/ironic/rootwrap.conf iscsiadm -m discovery -t st -p 10.237.223.28:3260
2016-08-13 00:11:36.743 1 ERROR ironic.drivers.modules.agent_base_vendor Exit code: 96
2016-08-13 00:11:36.743 1 ERROR ironic.drivers.modules.agent_base_vendor Stdout: u''
2016-08-13 00:11:36.743 1 ERROR ironic.drivers.modules.agent_base_vendor Stderr: u'/var/lib/kolla/venv/bin/ironic-rootwrap: Executable not found: iscsiadm (filter match = iscsiadm)\n'
2016-08-13 00:11:36.743 1 ERROR ironic.drivers.modules.agent_base_vendor

Should open-iscsi package be installed here if it's not provided separately (i.e.: by swift containers which I don't use with me pxe_ipmitool setup) ?

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

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)
Revision history for this message
Ryan Hallisey (rthall14) wrote :

This is already fixed in master. The packages need to be added to the base image in stable/mitaka

Changed in kolla:
status: New → Confirmed
status: Confirmed → Fix Released
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.