Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show stdout and stderr when virt-install fails #1256

Conversation

jkonecny12
Copy link
Member

Currently the output is suppressed because we are showing only exception but not it's stdout and stderr content. That could be really valuable when debugging virt-install issues.

New output:
2024-07-17 15:14:20,164 INFO: RESULT:keyboard:b9624d95066a:FAILED: Problem starting virtual install: Command '['virt-install', '-n', 'kstest-keyboard_(4922e9d9-157a-4eb7-8c00-7d169edba38b)', '-r', '2048', '--noautoconsole', '--vcpus', '1', '--rng', '/dev/random', '--osinfo', 'require=off,detect=on', '--graphics', 'vnc,listen=0.0.0.0', '--video', 'virtio', '--initrd-inject', '/opt/kstest/kickstart-tests/keyboard.ks', '--disk', 'path=/var/tmp/kstest-keyboard.2024_07_17-15_14_12.3c4e43xh/disk-a.img,cache=unsafe,bus=virtio', '--network', 'user,model=virtio', '--disk', 'path=/var/tmp/kstest-keyboard.2024_07_17-15_14_12.3c4e43xh/boot.iso,device=cdrom,readonly=on,shareable=on', '--boot', 'uefi', '--channel', 'tcp,host=127.0.0.1:36781,mode=connect,target_type=virtio,name=org.fedoraproject.anaconda.log.0']' returned non-zero exit status 1.
stdout: ERROR Install method does not support initrd injections.
stderr:
/var/tmp/kstest-keyboard.2024_07_17-15_14_12.3c4e43xh

Currently the output is suppressed because we are showing only exception
but not it's stdout and stderr content. That could be really valuable
when debugging virt-install issues.

New output:
2024-07-17 15:14:20,164 INFO: RESULT:keyboard:b9624d95066a:FAILED:
Problem starting virtual install: Command '['virt-install', '-n', 'kstest-keyboard_(4922e9d9-157a-4eb7-8c00-7d169edba38b)', '-r', '2048', '--noautoconsole', '--vcpus', '1', '--rng', '/dev/random', '--osinfo', 'require=off,detect=on', '--graphics', 'vnc,listen=0.0.0.0', '--video', 'virtio', '--initrd-inject', '/opt/kstest/kickstart-tests/keyboard.ks', '--disk', 'path=/var/tmp/kstest-keyboard.2024_07_17-15_14_12.3c4e43xh/disk-a.img,cache=unsafe,bus=virtio', '--network', 'user,model=virtio', '--disk', 'path=/var/tmp/kstest-keyboard.2024_07_17-15_14_12.3c4e43xh/boot.iso,device=cdrom,readonly=on,shareable=on', '--boot', 'uefi', '--channel', 'tcp,host=127.0.0.1:36781,mode=connect,target_type=virtio,name=org.fedoraproject.anaconda.log.0']' returned non-zero exit status 1.
                          stdout: ERROR    Install method does not support initrd injections.
                          stderr:
/var/tmp/kstest-keyboard.2024_07_17-15_14_12.3c4e43xh
@jkonecny12
Copy link
Member Author

/test-tmt

Copy link
Contributor

@rvykydal rvykydal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@jkonecny12 jkonecny12 merged commit d60441a into rhinstaller:master Jul 18, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants