build-image role failing in master

Bug #1706386 reported by Alfredo Moralejo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
Fix Released
Critical
John Trowbridge

Bug Description

Build image job in RDO-CI [1] is failing for master with repository [2]:

Job logs have not been saved in log server but i could get output of builder.log. Error seems to be:

dib-run-parts Tue Jul 25 14:53:17 UTC 2017 Running /tmp/dib_build.8FA297dH/hooks/cleanup.d/99-selinux-fixfiles-restore
SELinux: Could not downgrade policy file /etc/selinux/targeted/policy/policy.30, searching for an older version.
SELinux: Could not open policy file <= /etc/selinux/targeted/policy/policy.30: No such file or directory
/sbin/load_policy: Can't load policy: No such file or directory
libsemanage.semanage_reload_policy: load_policy returned error code 2. (No such file or directory).
SELinux: Could not downgrade policy file /etc/selinux/targeted/policy/policy.30, searching for an older version.
SELinux: Could not open policy file <= /etc/selinux/targeted/policy/policy.30: No such file or directory
/sbin/load_policy: Can't load policy: No such file or directory
libsemanage.semanage_reload_policy: load_policy returned error code 2. (No such file or directory).
OSError: No such file or directory
2017-07-25 14:53:48.209 INFO diskimage_builder.block_device.level3.mount [-] Called for [mount_mkfs_root]
2017-07-25 14:53:48.210 INFO diskimage_builder.block_device.utils [-] Calling [sudo umount /tmp/dib_build.8FA297dH/mnt/]
Traceback (most recent call last):
  File "/bin/dib-block-device", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/diskimage_builder/block_device/cmd.py", line 120, in main
    return bdc.main()
  File "/usr/lib/python2.7/site-packages/diskimage_builder/block_device/cmd.py", line 115, in main
    self.args.func()
  File "/usr/lib/python2.7/site-packages/diskimage_builder/block_device/cmd.py", line 39, in cmd_umount
    self.bd.cmd_umount()
  File "/usr/lib/python2.7/site-packages/diskimage_builder/block_device/blockdevice.py", line 420, in cmd_umount
    node.umount()
  File "/usr/lib/python2.7/site-packages/diskimage_builder/block_device/level3/mount.py", line 98, in umount
    exec_sudo(["umount", self.state['mount'][self.mount_point]['path']])
  File "/usr/lib/python2.7/site-packages/diskimage_builder/block_device/utils.py", line 125, in exec_sudo
    ' '.join(sudo_cmd))
subprocess.CalledProcessError: Command 'sudo umount /tmp/dib_build.8FA297dH/mnt/' returned non-zero exit status 32

Review https://review.openstack.org/#/c/485899/ in diskimage-builder has created 99-selinux-fixfiles-restore so i suspect this may have problems running dib in isolated mode (in a virt-customize command).

Running image build command in a test server:

openstack overcloud image build --config-file /usr/share/tripleo-common/image-yaml/overcloud-images-centos7.yaml --config-file /usr/share/tripleo-common/image-yaml/overcloud-images.yaml

succeeded using the same command.

[1] https://ci.centos.org/job/tripleo-quickstart-promote-master-build-images/352/
[2] https://trunk.rdoproject.org/centos7/7c/3d/7c3d218b2ba2d871d56ea42f2e6d4418cf0718fd_48409ab3

tags: added: alert ci promotion-blocker
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-quickstart-extras (master)

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

Changed in tripleo:
assignee: nobody → John Trowbridge (trown)
status: New → In Progress
wes hayutin (weshayutin)
Changed in tripleo:
importance: Undecided → Critical
milestone: none → pike-3
John Trowbridge (trown)
Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-quickstart-extras (master)

Change abandoned by John Trowbridge (<email address hidden>) on branch: master
Review: https://review.openstack.org/487180
Reason: https://review.openstack.org/#/c/487520/ resolved the issue

Alan Pevec (apevec)
affects: tripleo → diskimage-builder
Changed in diskimage-builder:
milestone: pike-3 → none
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.