[Bug 1012241] New: how to investigate problem of DUD file not handled by yast ?
http://bugzilla.suse.com/show_bug.cgi?id=1012241 Bug ID: 1012241 Summary: how to investigate problem of DUD file not handled by yast ? Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: PowerPC-64 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 Assignee: yast2-maintainers@suse.de Reporter: normand@linux.vnet.ibm.com QA Contact: jsrain@suse.com Found By: --- Blocker: --- how to investigate problem of DUD file not handled by yast ? This is a follow up of email in opensuse-factory ML (1) Steps of problem detailed in (2) * create a DUD file from a new powerpc-utils rpm rebuilt locally (note that its release number 9 is greater than 2.1 from DVD) * start a ppc64le guest (on a ppc64le host) with a qemu script using this generated dud file * the yast UI remains hung on "Saving bootloader configuration" as per bug 1011529 (3) confirm that new rpm is not used. This is the purpose of this bug to understand why rpm from dud is not used by yast. I will upload a data5.tgz tarball with linuxrc and YaST2 logs (1) https://lists.opensuse.org/opensuse-factory/2016-11/msg00501.html (2) === $mkdud -c boo1011529_5.dud --dist tw /home/michel/buildtmp/build-root/standard-ppc64le/home/abuild/rpmbuild/RPMS/ppc64le/powerpc-utils-1.3.2-9.ppc64le.rpm === cat ~/bin/qemutrial2 $cat ~/bin/qemutrial2 #!/bin/bash KERNEL=/home/michel/raid/linux INITRD=/home/michel/raid/initrd ISOFILE=/home/michel/raid/openSUSE-Tumbleweed-DVD-ppc64le-Snapshot20161122-Media.iso cd disk=raid/l1 rm -f $disk qemu-img create $disk -f raw 10G set -x qemu-system-ppc64 \ -vga std -m 4096 -machine usb=off -cpu host -nographic \ -netdev user,id=qanet0,hostfwd=::10022-:22,hostname=qemu2 -device virtio-net,netdev=qanet0 \ -device virtio-scsi-pci,id=scsi0 \ -device virtio-scsi-pci,id=scsi1 \ -device scsi-hd,drive=hd1a,bus=scsi0.0 -drive file=$disk,cache=none,if=none,id=hd1a,serial=mpath1,format=raw \ -device scsi-hd,drive=hd1b,bus=scsi1.0 -drive file=$disk,cache=none,if=none,id=hd1b,serial=mpath1,format=raw \ -drive media=cdrom,if=none,id=cd0,format=raw,file=${ISOFILE} -device scsi-cd,drive=cd0,bus=scsi0.0 \ -boot once=d,menu=on,splash-time=5000 \ -smp 8,threads=8 -enable-kvm -no-shutdown \ -monitor stdio -serial pty -S \ -append "linemode=1 linuxrc.log=/var/log/YaST2/linuxrc.log startshell=1 insecure=1 UseSSH=1 SSHPassword=root DUD=http://stade.lab.toulouse-stg.fr.ibm.com/~normand/boo1011529_5.dud" \ -kernel $KERNEL -initrd $INITRD === === linuxrc output extract: ok, ip = 10.0.2.15/24 Loading http://stade.lab.toulouse-stg.fr.ibm.com/~normand/boo1011529_5.dud - 100% http://stade.lab.toulouse-stg.fr.ibm.com/~normand/boo1011529_5.dud: adding to installation system Driver Updates added: ~normand/boo1011529_5.dud === (3) https://bugzilla.suse.com/show_bug.cgi?id=1011529 === -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012241 http://bugzilla.suse.com/show_bug.cgi?id=1012241#c1 --- Comment #1 from Michel Normand <normand@linux.vnet.ibm.com> --- Created attachment 703788 --> http://bugzilla.suse.com/attachment.cgi?id=703788&action=edit linuxrc and YaST2 logs In addition to the logs from data5.tgz attachment. There is no /add_on_products.xml as expected in (1) but the linuxrc is creating a squashfs with dud content: === 1:linux-s3qi:~ # ls / bin content dev etc installkey.gpg lbin lib64 linux media modules oldroot proc root sbin sys usr boot control.xml download init installkey.gpg~ lib license.tar.gz linuxrc.config mnt mounts parts pubkeys run scripts tmp var === 1:linux-s3qi:~ # find /mounts/mp_0005/linux/suse/ppc64le-tw |tail -n5 /mounts/mp_0005/linux/suse/ppc64le-tw/inst-sys/usr/sbin/uspchrp /mounts/mp_0005/linux/suse/ppc64le-tw/install /mounts/mp_0005/linux/suse/ppc64le-tw/install/powerpc-utils-1.3.2-9.ppc64le.rpm /mounts/mp_0005/linux/suse/ppc64le-tw/install/update.post2 /mounts/mp_0005/linux/suse/ppc64le-tw/install/update.pre === -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012241 http://bugzilla.suse.com/show_bug.cgi?id=1012241#c2 Imobach Gonzalez Sosa <igonzalezsosa@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |igonzalezsosa@suse.com, | |snwint@suse.com Flags| |needinfo?(snwint@suse.com) --- Comment #2 from Imobach Gonzalez Sosa <igonzalezsosa@suse.com> --- Steffen, please, could you have a look? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012241 http://bugzilla.suse.com/show_bug.cgi?id=1012241#c3 Steffen Winterfeldt <snwint@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|yast2-maintainers@suse.de |snwint@suse.com Flags|needinfo?(snwint@suse.com) | --- Comment #3 from Steffen Winterfeldt <snwint@suse.com> --- Michel, please attach the output of 'mkdud -s foo.dud' so I see what's really in your dud. Or, if it's small and you don't mind, please attach the dud here and I'll have a look. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012241 http://bugzilla.suse.com/show_bug.cgi?id=1012241#c4 --- Comment #4 from Michel Normand <normand@linux.vnet.ibm.com> --- Created attachment 703820 --> http://bugzilla.suse.com/attachment.cgi?id=703820&action=edit boo1011529.dud $mkdud -s /tmp/boo1011529_5.dud === Update #1 === [openSUSE Tumbleweed (ppc64le)] Name: powerpc-utils-1.3.2-9.ppc64le Thu Nov 24 07:01:34 2016 ID: 93633821-ee40-42bd-b5ed-763f2b70d6c8 Packages: powerpc-utils-1.3.2-9.ppc64le.rpm (Thu Nov 24 07:01:34 2016) - install methods: instsys, repo, rpm (repo priority 50) Scripts: update.pre, update.post2 Installation System: /usr/bin/amsstat /usr/lib/systemd/system/smt_off.service /usr/sbin/activate_firmware /usr/sbin/bootlist /usr/sbin/drmgr /usr/sbin/errinjct /usr/sbin/hvcsadmin /usr/sbin/lparstat /usr/sbin/ls-vdev /usr/sbin/ls-veth ... (20 more files) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012241 http://bugzilla.suse.com/show_bug.cgi?id=1012241#c5 Steffen Winterfeldt <snwint@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High Status|NEW |CONFIRMED Severity|Normal |Major --- Comment #5 from Steffen Winterfeldt <snwint@suse.com> --- The dud is ok; but the tw iso is not created to match the dud. :-( I'll see what can be done. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012241 http://bugzilla.suse.com/show_bug.cgi?id=1012241#c6 --- Comment #6 from Steffen Winterfeldt <snwint@suse.com> --- fix for tw is here: https://github.com/openSUSE/installation-images/pull/147 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012241 http://bugzilla.suse.com/show_bug.cgi?id=1012241#c7 --- Comment #7 from Steffen Winterfeldt <snwint@suse.com> --- enhance mkdud to allow broken dist tags: https://github.com/openSUSE/mkdud/pull/6 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012241 http://bugzilla.suse.com/show_bug.cgi?id=1012241#c8 Steffen Winterfeldt <snwint@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |normand@linux.vnet.ibm.com Flags| |needinfo?(normand@linux.vne | |t.ibm.com) --- Comment #8 from Steffen Winterfeldt <snwint@suse.com> --- Fixed TW builds, so future releases should be ok again. For now, please pick up the new mkdud-1.26 from software.opensuse.org and build a working DUD for the old TW release this way: mkdud -c dud.img --force -d 20161125 powerpc-utils.rpm Michel, does this work for you? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012241 http://bugzilla.suse.com/show_bug.cgi?id=1012241#c9 --- Comment #9 from Michel Normand <normand@linux.vnet.ibm.com> --- (In reply to Steffen Winterfeldt from comment #8)
Fixed TW builds, so future releases should be ok again.
For now, please pick up the new mkdud-1.26 from software.opensuse.org and build a working DUD for the old TW release this way:
mkdud -c dud.img --force -d 20161125 powerpc-utils.rpm
Michel, does this work for you?
Steffen, should I expect something new in the created dud file ? $mkdud -c boo1011529_8.dud --force -d 20161125 /tmp/powerpc-utils-1.3.2-9.ppc64le.rpm Warning: using unsupported dist "20161125" === Update #1 === [ppc64le-20161125] Name: powerpc-utils-1.3.2-9.ppc64le Thu Nov 24 07:01:34 2016 ID: e7912eb9-6f4e-417b-8602-2b5e59aee97c Packages: powerpc-utils-1.3.2-9.ppc64le.rpm (Thu Nov 24 07:01:34 2016) - install methods: instsys, repo, rpm (repo priority 50) Scripts: update.pre, update.post2 Installation System: /usr/bin/amsstat /usr/lib/systemd/system/smt_off.service /usr/sbin/activate_firmware /usr/sbin/bootlist /usr/sbin/drmgr /usr/sbin/errinjct /usr/sbin/hvcsadmin /usr/sbin/lparstat /usr/sbin/ls-vdev /usr/sbin/ls-veth ... (20 more files) === -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012241 http://bugzilla.suse.com/show_bug.cgi?id=1012241#c10 --- Comment #10 from Steffen Winterfeldt <snwint@suse.com> --- the difference is here:
[ppc64le-20161125]
The correct DUD base directory would be /linux/suse/ppc64le-tw/ but the TW you tested is (wrongly) expecting /linux/suse/ppc64le-20161125/. So I (a) fixed TW and (b) allowed mkdud to create a DUD for ppc64le-20161125 so it's found by the broken TW. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012241 http://bugzilla.suse.com/show_bug.cgi?id=1012241#c11 --- Comment #11 from Steffen Winterfeldt <snwint@suse.com> --- BTW, if you need your DUD to also work with the fixed TW: you can pass '-d' several times. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012241 http://bugzilla.suse.com/show_bug.cgi?id=1012241#c12 --- Comment #12 from Michel Normand <normand@linux.vnet.ibm.com> --- I verified that with bypass of comment #8 the dud is unpack and related directory provided to yast. And yast installed the provided rpm. === $rpm -qa |grep mkdud mkdud-1.26-4.1.noarch $mkdud -c /tmp/boo1011529_9.dud --force -d 20161122 /tmp/powerpc-utils-1.3.2-9.ppc64le.rpm Warning: using unsupported dist "20161122" ... === 1:qemu2:~ # find /mounts/mp_0005 -name powerpc-utils\* /mounts/mp_0005/linux/suse/ppc64le-20161122/install/powerpc-utils-1.3.2-9.ppc64le.rpm === 1:qemu2:~ # grep Update /etc/install.inf ... UpdateDir: /linux/suse/ppc64le-20161122 YaST2update: 1 === -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012241 http://bugzilla.suse.com/show_bug.cgi?id=1012241#c13 Steffen Winterfeldt <snwint@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CONFIRMED |RESOLVED Resolution|--- |FIXED Flags|needinfo?(normand@linux.vne | |t.ibm.com) | --- Comment #13 from Steffen Winterfeldt <snwint@suse.com> --- Thanks for the verification! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012241 http://bugzilla.suse.com/show_bug.cgi?id=1012241#c14 --- Comment #14 from Swamp Workflow Management <swamp@suse.de> --- openSUSE-RU-2018:1290-1: An update that has four recommended fixes can now be installed. Category: recommended (moderate) Bug References: 1006175,1012241,1085261,1087901 CVE References: Sources used: SUSE Package Hub for SUSE Linux Enterprise 12 (src): mkdud-1.34-9.1 -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com