Bug 1328135 - pungi f22
Summary: pungi f22
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: pungi
Version: 22
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Dennis Gilmore
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-18 14:35 UTC by Slava
Modified: 2016-07-19 19:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-19 19:25:29 UTC
Type: Bug


Attachments (Terms of Use)
Build Log (304.92 KB, text/plain)
2016-04-18 14:35 UTC, Slava
no flags Details

Description Slava 2016-04-18 14:35:05 UTC
Created attachment 1148227 [details]
Build Log

Description of problem:

Build LXDE ISO f22 x86_64

Version-Release number of selected component (if applicable):


How reproducible:

Run build under mock


Steps to Reproduce:
1. Init mock env
2. Run build DVD ISO 
3. Build failing with error below

Actual results:

Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done   

Can't stat exclude path "/install", No such file or directory - ignoring.
Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on //work/Workstation/x86_64/installroot/images/install.img, block size 131072.
[===========================================================-] 16384/16384 100%

Exportable Squashfs 4.0 filesystem, xz compressed, data block size 131072
	compressed data, compressed metadata, compressed fragments, compressed xattrs
	duplicates are removed
Filesystem size 328508.31 Kbytes (320.81 Mbytes)
	15.66% of uncompressed filesystem size (2097216.44 Kbytes)
Inode table size 18202 bytes (17.78 Kbytes)
	27.71% of uncompressed inode table size (65690 bytes)
Directory table size 58 bytes (0.06 Kbytes)
	100.00% of uncompressed directory table size (58 bytes)
Xattr table size 57 bytes (0.06 Kbytes)
	100.00% of uncompressed xattr table size (57 bytes)
Number of duplicate files found 0
Number of inodes 3
Number of files 1
Number of fragments 0
Number of symbolic links  0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 2
Number of ids (unique uids + gids) 1
Number of uids 1
	root (0)
Number of gids 1
	root (0)
preparing to build output tree and boot images
rebuilding initramfs images
rebuilding boot/initramfs-4.0.4-301.fc22.x86_64.img
No '/dev/log' or 'logger' included for syslog logging
cat: write error: Broken pipe
rebuilding boot/upgrade-4.0.4-301.fc22.x86_64.img
No '/dev/log' or 'logger' included for syslog logging
dracut module 'system-upgrade' cannot be found or installed.
Traceback (most recent call last):
  File "/usr/bin/pungi", line 322, in <module>
    main()
  File "/usr/bin/pungi", line 178, in main
    mypungi.doBuildinstall()
  File "/usr/lib/python2.7/site-packages/pypungi/__init__.py", line 1426, in doBuildinstall
    workdir=workdir, outputdir=outputdir, volid=volid, installpkgs=installpkgs)
  File "/usr/lib/python2.7/site-packages/pylorax/__init__.py", line 350, in run
    treebuilder.rebuild_initrds(add_args=upgrade_args, prefix="upgrade")
  File "/usr/lib/python2.7/site-packages/pylorax/treebuilder.py", line 225, in rebuild_initrds
    runcmd(cmd, root=self.vars.inroot)
  File "/usr/lib/python2.7/site-packages/pylorax/executils.py", line 419, in runcmd
    return execWithRedirect(cmd[0], cmd[1:], **kwargs)
  File "/usr/lib/python2.7/site-packages/pylorax/executils.py", line 187, in execWithRedirect
    raise subprocess.CalledProcessError(ret, [command]+argv)
subprocess.CalledProcessError: Command '['dracut', '--nomdadmconf', '--nolvmconf', '--xz', '--install', '/.buildstamp', '--add', 'system-upgrade', '--force', 'boot/upgrade-4.0.4-301.fc22.x86_64.img', '4.0.4-301.fc22.x86_64']' returned non-zero exit status 1



Expected results:
Build completed 100%

Additional info:
See attached build log

Comment 1 Dennis Gilmore 2016-04-18 16:14:59 UTC
your bug seems to be in your config or dracut. you need to make sure that the dracut system-upgrade module is available.  you do not provide enough information to work out what the exact issue is.

Comment 2 Slava 2016-04-18 16:29:56 UTC
Hello Dennis,
What type of information you need ? I attached complete build log to the ticket.

Comment 3 Slava 2016-04-18 23:05:04 UTC
Hello Dennis,
I did a lot of testing and pungi look like not validate arguments for dracut in order to work properly.
System-upgrade module installed. It come from fedup rpm which not correct, because it deprecated toward dnf plugins.

Here are output for dracut when it works 

<mock-chdracut --nomdadmconf --nolvmconf --xz --install /.buildstamp --add system-upgrade --force boot/upgrade-$(uname -r).img $(uname -r)
Turning off host-only mode: '/run' is not mounted!
dracut-install: ERROR: installing '/.buildstamp'
/usr/lib/dracut/dracut-install -D /var/tmp/initramfs.iiRmp1 -a /.buildstamp
<mock-chroot>sh-4.3# 



Here are output when it failing 

This directory is not exist at all

Kernel version 4.0.4-301.fc22.x86_64 has no module directory /lib/modules/4.0.4-301.fc22.x86_64


rebuilding boot/upgrade-4.0.4-301.fc22.x86_64.img
No '/dev/log' or 'logger' included for syslog logging
dracut module 'system-upgrade' cannot be found or installed.
Traceback (most recent call last):
  File "/usr/bin/pungi", line 322, in <module>
    main()
  File "/usr/bin/pungi", line 178, in main
    mypungi.doBuildinstall()
  File "/usr/lib/python2.7/site-packages/pypungi/__init__.py", line 1426, in doBuildinstall
    workdir=workdir, outputdir=outputdir, volid=volid, installpkgs=installpkgs)
  File "/usr/lib/python2.7/site-packages/pylorax/__init__.py", line 350, in run
    treebuilder.rebuild_initrds(add_args=upgrade_args, prefix="upgrade")
  File "/usr/lib/python2.7/site-packages/pylorax/treebuilder.py", line 225, in rebuild_initrds
    runcmd(cmd, root=self.vars.inroot)
  File "/usr/lib/python2.7/site-packages/pylorax/executils.py", line 419, in runcmd
    return execWithRedirect(cmd[0], cmd[1:], **kwargs)
  File "/usr/lib/python2.7/site-packages/pylorax/executils.py", line 187, in execWithRedirect
    raise subprocess.CalledProcessError(ret, [command]+argv)
subprocess.CalledProcessError: Command '['dracut', '--nomdadmconf', '--nolvmconf', '--xz', '--install', '/.buildstamp', '--add', 'system-upgrade', '--force', 'boot/upgrade-4.0.4-301.fc22.x86_64.img', '4.0.4-301.fc22.x86_64']' returned non-zero exit status 1

<mock-chroot>sh-4.3# dracut --nomdadmconf --nolvmconf --xz --install /.buildstamp --add system-upgrade --force boot/upgrade-4.0.4-301.fg 4.0.4-301.fc22.x86_64
Kernel version 4.0.4-301.fc22.x86_64 has no module directory /lib/modules/4.0.4-301.fc22.x86_64
Turning off host-only mode: '/run' is not mounted!
dracut-install: ERROR: installing '/.buildstamp'
/usr/lib/dracut/dracut-install -D /var/tmp/initramfs.j9u93H -a /.buildstamp

Comment 4 Slava 2016-04-18 23:15:07 UTC
I think it failing, because of this 

pylorax.treebuilder.DEBUG: kernels=[{'path': 'boot/vmlinuz-4.0.4-301.fc22.x86_64', 'flavor': None, 'version': '4.0.4-301.fc22.x86_64', 'arch': 'x86_64', 'initrd': {'path': 'boot/initramfs-4.0.4-301.fc22.x86_64.img'}}]
pylorax.treebuilder.INFO: rebuilding boot/upgrade-4.0.4-301.fc22.x86_64.img
program.INFO: Running... dracut --nomdadmconf --nolvmconf --xz --install /.buildstamp --add system-upgrade --force boot/upgrade-4.0.4-301.fc22.x86_64.img 4.0.4-301.fc22.x86_64
program.INFO: chrooting into //work/x86_64/installroot
program.ERROR: No '/dev/log' or 'logger' included for syslog logging
program.ERROR: dracut module 'system-upgrade' cannot be found or installed.


It tries chroot again where it run under mock which is chroot too.

Comment 5 Dennis Gilmore 2016-04-18 23:40:34 UTC
what version of pungi are you using?

Comment 6 Slava 2016-04-18 23:51:11 UTC
<mock-chroot>sh-4.3# rpm -qa | grep pungi
pungi-3.14-1.fc22.noarch
<mock-chroot>sh-4.3#

Comment 7 Dennis Gilmore 2016-04-19 01:45:34 UTC
we always ran pungi in chroots, it looks like fedup-dracut is not available to build the update initramfs

pungi -c fedora-install-workstation.ks --destdir $DESTDIR --cachedir /srv/pungi/cache/ --ver $VERSION --workdirbase=/tmp/work --variant Workstation --family Fedora

something like that with the variables filled in should work. I have not actually ran pungi for f22 since making f22.

Comment 8 Slava 2016-04-19 02:35:12 UTC
Hello Dennis,
I just tried based on you suggestion and didn't worked. Look like fedup-dracut is need inside another chroot when it generate all required files.
Here it clearly state about this. 

No '/dev/log' or 'logger' included for syslog logging
cat: write error: Broken pipe
rebuilding boot/upgrade-4.0.4-301.fc22.x86_64.img
No '/dev/log' or 'logger' included for syslog logging
dracut module 'system-upgrade' cannot be found or installed.


<mock-chroot>[root@bl01build00-fc22-ext /]# rpm -qa | grep fedup
fedup-dracut-0.9.2-1.fc22.x86_64
<mock-chroot>[root@bl01build00-fc22-ext /]# 


I think broken pipe is belong to same situation with chroot. My setup is under mock which is run in chroot by him self is there are way tell pungi what need to install for second chroot ?

Comment 9 Slava 2016-04-19 05:02:19 UTC
Hello Dennis,
Thank you for all support. Finally I figure out key options to build properly the iso. I am going test iso later on today. Only logger part couldn't figure out, but I assume /dev/ need to be mounted with chroot.

Command 

pungi --nosource --nodebuginfo -c /usr/share/spin-kickstarts/fedora-lxde-packages.ks --destachedir /srv/pungi/cache/ --ver=22 --workdirbase=/work --variant=Workstation --family=Fedora-LXDE --installpkgs=fedup-dracut --installpkgs=rsyslog* --installpkgs=util-linux*

Pungi:INFO: Running /usr/bin/isohybrid -u -m /work/22/Workstation/x86_64/iso/Fedora-LXDE-Workstation-DVD-x86_64-22.iso
Pungi:INFO: Running /usr/bin/implantisomd5 /work/22/Workstation/x86_64/iso/Fedora-LXDE-Workstation-DVD-x86_64-22.iso
Pungi:INFO: Generating checksum of /work/22/Workstation/x86_64/iso/Fedora-LXDE-Workstation-DVD-x86_64-22.iso
Pungi:INFO: Generating checksum of /work/22/Workstation/x86_64/iso/Fedora-LXDE-Workstation-netinst-x86_64-22.iso
Pungi:INFO: CreateIsos is done.
All done!

Comment 10 Slava 2016-04-20 19:58:31 UTC
I tried use ISO, but when I boot from ISO to create new vm it show only minimal installation in software list and when do install it not boot at all after completion. Something not right in pungi possible incorrect kickstart. I am trying build LXDE workstation Fedora22.

Comment 11 Slava 2016-04-21 01:09:41 UTC
Hello Dennis,
I see in log 

Pungi:INFO: Removing incomplete environment Fedora Server from comps file
Pungi:INFO: Removing incomplete environment Fedora Workstation from comps file
Pungi:INFO: Removing incomplete environment Fedora Cloud Server from comps file
Pungi:INFO: Removing incomplete environment KDE Plasma Workspaces from comps file
Pungi:INFO: Removing incomplete environment Xfce Desktop from comps file
Pungi:INFO: Removing incomplete environment LXDE Desktop from comps file
Pungi:INFO: Removing incomplete environment LXQt Desktop from comps file
Pungi:INFO: Removing incomplete environment Cinnamon Desktop from comps file
Pungi:INFO: Removing incomplete environment MATE Desktop from comps file
Pungi:INFO: Removing incomplete environment Sugar Desktop Environment from comps file
Pungi:INFO: Removing incomplete environment Development and Creative Workstation from comps file
Pungi:INFO: Removing incomplete environment Web Server from comps file
Pungi:INFO: Removing incomplete environment Infrastructure Server from comps file
Pungi:INFO: Removing incomplete environment Basic Desktop from comps file


How I can leave lxde environment ?

Comment 12 Fedora End Of Life 2016-07-19 19:25:29 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.