ironic-python-agent fails to run on fedora ramdisk

Bug #1506792 reported by Shivanand Tendulker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
Fix Released
High
Lucas Alvares Gomes

Bug Description

Agent ramdisk fails to come up with fedora22 based deploy ramdisk. Python module 'enum' seems missing.

------------------------------------------------------------------------------------
-bash-4.3# journalctl |grep agent |more
Oct 15 06:02:34 localhost.localdomain systemd[1]: Configuration file /usr/lib/systemd/system/openstack-ironic-python-agent.service is marked ex
ecutable. Please remove executable permission bits. Proceeding anyway.
Oct 15 06:02:35 localhost.localdomain audit[1]: <audit-1130> pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=openstack-ironic-python-agent
 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Oct 15 06:02:37 localhost.localdomain ironic-python-agent[210]: Traceback (most recent call last):
Oct 15 06:02:37 localhost.localdomain ironic-python-agent[210]: File "/usr/bin/ironic-python-agent", line 7, in <module>
Oct 15 06:02:37 localhost.localdomain ironic-python-agent[210]: from ironic_python_agent.cmd.agent import run
Oct 15 06:02:37 localhost.localdomain ironic-python-agent[210]: File "/usr/lib/python2.7/site-packages/ironic_python_agent/cmd/agent.py", line
20, in <module>
Oct 15 06:02:37 localhost.localdomain ironic-python-agent[210]: from ironic_python_agent import agent
Oct 15 06:02:37 localhost.localdomain ironic-python-agent[210]: File "/usr/lib/python2.7/site-packages/ironic_python_agent/agent.py", line 30,
in <module>
Oct 15 06:02:37 localhost.localdomain ironic-python-agent[210]: from ironic_python_agent import hardware
Oct 15 06:02:37 localhost.localdomain ironic-python-agent[210]: File "/usr/lib/python2.7/site-packages/ironic_python_agent/hardware.py", line 2
1, in <module>
Oct 15 06:02:37 localhost.localdomain ironic-python-agent[210]: from oslo_concurrency import processutils
Oct 15 06:02:37 localhost.localdomain ironic-python-agent[210]: File "/usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py", line
29, in <module>
Oct 15 06:02:37 localhost.localdomain ironic-python-agent[210]: import enum
Oct 15 06:02:37 localhost.localdomain ironic-python-agent[210]: ImportError: No module named enum
Oct 15 06:02:37 localhost.localdomain systemd[1]: openstack-ironic-python-agent.service: main process exited, code=exited, status=1/FAILURE
Oct 15 06:02:37 localhost.localdomain systemd[1]: Unit openstack-ironic-python-agent.service entered failed state.
Oct 15 06:02:37 localhost.localdomain systemd[1]: openstack-ironic-python-agent.service failed.
Oct 15 06:02:37 localhost.localdomain audit[1]: <audit-1131> pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=openstack-ironic-python-agent
 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Oct 15 06:03:07 host-10-10-1-151 systemd[1]: openstack-ironic-python-agent.service holdoff time over, scheduling restart.
Oct 15 06:03:07 host-10-10-1-151 audit[1]: <audit-1130> pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=openstack-ironic-python-agent comm
="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Oct 15 06:03:07 host-10-10-1-151 audit[1]: <audit-1131> pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=openstack-ironic-python-agent comm
="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Oct 15 06:03:07 host-10-10-1-151 audit[1]: <audit-1130> pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=openstack-ironic-python-agent comm
="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
------------------------------------------------------------------------------------

During ramdisk building, pyton module 'enum' was installed through rpm and not through pip install. It gets erased during cleanup.
--------------

$ disk-image-create -a amd64 -o /opt/stack/devstack/files/ir-deploy-iscsi_ilo fedora ironic-agent disable-selinux iso
...
Requirement already satisfied (use --upgrade to upgrade): enum34 in /usr/lib/python2.7/site-packages (from oslo.concurrency>=2.3.0->-r /tmp/ironic-python-agent/requirements.txt (line 7))
...
dib-run-parts Thu Oct 15 16:15:17 UTC 2015 Running /tmp/in_target.d/finalise.d/99-remove-extra-packages
---> Package python-enum34.noarch 1.0.4-1.fc22 will be erased
...
Erasing : python-enum34-1.0.4-1.fc22.noarch 51/81
...
Removed:
     python-enum34.noarch 1.0.4-1.fc22
--------------

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to diskimage-builder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/235843

Changed in diskimage-builder:
assignee: nobody → Lucas Alvares Gomes (lucasagomes)
status: New → In Progress
Ben Nemec (bnemec)
Changed in diskimage-builder:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to diskimage-builder (master)

Reviewed: https://review.openstack.org/235843
Committed: https://git.openstack.org/cgit/openstack/diskimage-builder/commit/?id=006b3e6228af5d292ee682ba4b56dd1dd9bf8f6d
Submitter: Jenkins
Branch: master

commit 006b3e6228af5d292ee682ba4b56dd1dd9bf8f6d
Author: Lucas Alvares Gomes <email address hidden>
Date: Fri Oct 16 11:46:13 2015 +0100

    Install IPA in a virtual environment

    In order to avoid conflict with installing dependencies for IPA from
    pypi and distribution packages this patch propose installing IPA in a
    virtual environment.

    Closes-Bug: #1506792
    Change-Id: I6a4c6403813d86f4110e98449ddd874109101b9e

Changed in diskimage-builder:
status: In Progress → 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.