/tmp/in_target.d/finalise.d/50-dracut-regenerate: ImportError: No module named 'yaml'

Bug #1760853 reported by Bharat Kunwar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
In Progress
Undecided
Bharat Kunwar

Bug Description

Dracut regenerate element throws `yaml` dependency error because python3-PyYAML is not installed.

```
2018-03-22 13:44:52.045 | libpng.x86_64 2:1.6.27-1.fc25 os-prober.x86_64 1.74-1.fc25
2018-03-22 13:44:52.045 |
2018-03-22 13:44:52.046 | Completion plugin: Generating completion cache...
2018-03-22 13:44:52.138 | Complete!
2018-03-22 13:44:52.196 | + '[' install == install ']'
2018-03-22 13:44:52.196 | + '[' dnf == dnf ']'
2018-03-22 13:44:52.196 | + dnf mark install grub2-tools grub2
2018-03-22 13:44:52.482 | grub2-tools-1:2.02-0.38.fc25.x86_64 marked as user installed.
2018-03-22 13:44:52.482 | grub2-1:2.02-0.38.fc25.x86_64 marked as user installed.
2018-03-22 13:44:52.519 | trying grub2-install
2018-03-22 13:44:52.523 | Installing GRUB2...
2018-03-22 13:44:52.540 | Installing for i386-pc platform.
2018-03-22 13:44:57.797 | Installation finished. No error reported.
2018-03-22 13:44:57.891 | Generating grub configuration file ...
2018-03-22 13:44:57.951 | Found linux image: /boot/vmlinuz-4.13.16-100.fc25.x86_64
2018-03-22 13:44:57.974 | Found initrd image: /boot/initramfs-4.13.16-100.fc25.x86_64.img
2018-03-22 13:44:58.177 | done
2018-03-22 13:44:58.181 | dib-run-parts 50-bootloader completed
2018-03-22 13:44:58.181 | dib-run-parts Running /tmp/in_target.d/finalise.d/50-dracut-regenerate
2018-03-22 13:44:58.282 | Traceback (most recent call last):
2018-03-22 13:44:58.282 | File "/tmp/in_target.d/finalise.d/50-dracut-regenerate", line 20, in <module>
2018-03-22 13:44:58.282 | import yaml
2018-03-22 13:44:58.282 | ImportError: No module named 'yaml'
2018-03-22 13:44:59.381 | INFO diskimage_builder.block_device.level3.mount [-] Called for [mount_mkfs_root]
2018-03-22 13:44:59.381 | INFO diskimage_builder.block_device.utils [-] Calling [sudo sync]
2018-03-22 13:44:59.923 | INFO diskimage_builder.block_device.utils [-] Calling [sudo fstrim --verbose /tmp/dib_build.FD844zC9/mnt/]
2018-03-22 13:44:59.942 | INFO diskimage_builder.block_device.utils [-] Calling [sudo umount /tmp/dib_build.FD844zC9/mnt/]
2018-03-22 13:44:59.965 | Traceback (most recent call last):
2018-03-22 13:44:59.965 | File "/home/centos/dib-virtualenv/bin/dib-block-device", line 11, in <module>
2018-03-22 13:44:59.965 | sys.exit(main())
2018-03-22 13:44:59.965 | File "/home/centos/dib-virtualenv/lib/python3.6/site-packages/diskimage_builder/block_device/cmd.py", line 120, in main
2018-03-22 13:44:59.965 | return bdc.main()
2018-03-22 13:44:59.965 | File "/home/centos/dib-virtualenv/lib/python3.6/site-packages/diskimage_builder/block_device/cmd.py", line 115, in main
2018-03-22 13:44:59.965 | self.args.func()
2018-03-22 13:44:59.965 | File "/home/centos/dib-virtualenv/lib/python3.6/site-packages/diskimage_builder/block_device/cmd.py", line 39, in cmd_umount
2018-03-22 13:44:59.965 | self.bd.cmd_umount()
2018-03-22 13:44:59.965 | File "/home/centos/dib-virtualenv/lib/python3.6/site-packages/diskimage_builder/block_device/blockdevice.py", line 441, in cmd_umount
2018-03-22 13:44:59.965 | node.umount()
2018-03-22 13:44:59.965 | File "/home/centos/dib-virtualenv/lib/python3.6/site-packages/diskimage_builder/block_device/level3/mount.py", line 112, in umount
2018-03-22 13:44:59.965 | exec_sudo(["umount", self.state['mount'][self.mount_point]['path']])
2018-03-22 13:44:59.965 | File "/home/centos/dib-virtualenv/lib/python3.6/site-packages/diskimage_builder/block_device/utils.py", line 125, in exec_sudo
2018-03-22 13:44:59.965 | ' '.join(sudo_cmd))
2018-03-22 13:44:59.965 | subprocess.CalledProcessError: Command 'sudo umount /tmp/dib_build.FD844zC9/mnt/' returned non-zero exit status 32.
```

Bharat Kunwar (brtknr)
Changed in diskimage-builder:
assignee: nobody → Bharat Kunwar (brtknr)
Changed in diskimage-builder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on diskimage-builder (master)

Change abandoned by Bharat Kunwar (<email address hidden>) on branch: master
Review: https://review.opendev.org/558497

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.