Open beliaev-maksim opened 1 year ago
This thread was migrated from launchpad.net
I just ran this on a Dell system freshly deployed on 20.04 and it passed.
Even if it's caused by firmware being out of spec, our script should probably do a better job of catching the resulting error. It could then report a test failure with a helpful message, like "unsupported encoding in IPMI output," rather than fail with a stack trace. Alternatively, if we wanted to allow out-of-spec output, the "except:" clause could try other encodings.
Oops; please ignore my above comment. I have multiple bug reports open and accidentally pasted that into the wrong one.
Thank you for reporting us your feedback!
The internal ticket has been created: https://warthogs.atlassian.net/browse/CHECKBOX-1153.
This message was autogenerated
This issue was migrated from https://bugs.launchpad.net/plainbox-provider-checkbox/+bug/1895168
Summary
Description
something, environmentally has changed, and the KVM test is now failing with a traceback while trying to create the metadata files on both Bionic and Focal.
ubuntu@persianlime:~$ /usr/lib/plainbox-provider-checkbox/bin/virtualization.py --debug kvm -l virtlog.txt -i /home/ubuntu/focal-server-cloudimg-amd64.img DEBUG:root:Executing KVM Test DEBUG:root:Starting KVM Test DEBUG:root:Cloud image location specified: /home/ubuntu/focal-server-cloudimg-amd64.img DEBUG:root:Cloud image exists locally at /home/ubuntu/focal-server-cloudimg-amd64.img DEBUG:root:Creating cloud user-data Traceback (most recent call last): File "/usr/lib/plainbox-provider-checkbox/bin/virtualization.py", line 815, in
sys.exit(main())
File "/usr/lib/plainbox-provider-checkbox/bin/virtualization.py", line 808, in main
args.func(args)
File "/usr/lib/plainbox-provider-checkbox/bin/virtualization.py", line 757, in test_kvm
result = kvm_test.start()
File "/usr/lib/plainbox-provider-checkbox/bin/virtualization.py", line 464, in start
self.create_cloud_disk()
File "/usr/lib/plainbox-provider-checkbox/bin/virtualization.py", line 407, in create_cloud_disk
datafile.write(vars()[file.replace("-", "")])
KeyError: 'user_data'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 76, in apport_excepthook
binary = os.path.realpath(os.path.join(os.getcwd(), sys.argv[0]))
FileNotFoundError: [Errno 2] No such file or directory
The code in question has not changed sine 2014 and was previously working, so something, likely a recent change in Python. This script worked as of August 19: https://certification.canonical.com/hardware/202002-27750/submission/177859/test/380/result/13933678/
and is failing today (September 10): https://certification.canonical.com/hardware/202009-28230/submission/180754/test/380/result/14253908/
Attachments
No attachments
Tags: []