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
--------------
Fix proposed to branch: master /review. openstack. org/235843
Review: https:/