ubuntu_kvm_smoke_test failed on H s390x LPAR (permission denied)

Bug #1906405 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned

Bug Description

It looks like the uvt-simplestreams-libvirt command failed to fetch the image

+ SUT=bjf-test
+ SSH_KEY=/home/ubuntu/.ssh/id_rsa
+ SSH_OPTIONS='-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -i /home/ubuntu/.ssh/id_rsa'
++ lsb_release -c
++ awk '{print$2}'
+ DISTRO=hirsute
+ ARCHITECTURE=s390x
+ trap cleanup EXIT
+ '[' -z s390x ']'
+ kvm-ok
+ '[' 0 '!=' 0 ']'
+ '[' '!' -f /home/ubuntu/.ssh/id_rsa ']'
+ '[' s390x = ppc64el ']'
++ uvt-simplestreams-libvirt query
++ grep -P 'hirsute.*s390x'
+ image=
+ '[' -z '' ']'
+ uvt-simplestreams-libvirt sync --source http://cloud-images.ubuntu.com/daily release=hirsute arch=s390x
Traceback (most recent call last):
  File "/usr/bin/uvt-simplestreams-libvirt", line 27, in <module>
    uvtool.libvirt.simplestreams.main()
  File "/usr/lib/python3/dist-packages/uvtool/libvirt/simplestreams.py", line 332, in main
    args.func(args)
  File "/usr/lib/python3/dist-packages/uvtool/libvirt/simplestreams.py", line 266, in main_sync
    tmirror.sync(smirror, initial_path)
  File "/usr/lib/python3/dist-packages/simplestreams/mirrors/__init__.py", line 91, in sync
    return self.sync_index(reader, path, data, content)
  File "/usr/lib/python3/dist-packages/simplestreams/mirrors/__init__.py", line 254, in sync_index
    self.sync(reader, path=epath)
  File "/usr/lib/python3/dist-packages/simplestreams/mirrors/__init__.py", line 89, in sync
    return self.sync_products(reader, path, data, content)
  File "/usr/lib/python3/dist-packages/simplestreams/mirrors/__init__.py", line 355, in sync_products
    self.insert_item(item, src, target, pgree, ipath_cs)
  File "/usr/lib/python3/dist-packages/uvtool/libvirt/simplestreams.py", line 235, in insert_item
    pool_metadata[encoded_libvirt_name] = (
  File "/usr/lib/python3/dist-packages/uvtool/libvirt/simplestreams.py", line 79, in __setitem__
    with codecs.open(
  File "/usr/lib/python3.9/codecs.py", line 905, in open
    file = builtins.open(filename, mode, buffering)
PermissionError: [Errno 13] Permission denied: '/var/lib/uvtool/libvirt/metadata/x-uvt-b64-Y29tLnVidW50dS5jbG91ZC5kYWlseTpzZXJ2ZXI6MjEuMDQ6czM5MHggMjAyMDExMzA='
+ uvt-kvm create bjf-test release=hirsute arch=s390x
uvt-kvm: error: no images found that match filters ['release=hirsute', 'arch=s390x'].
+ uvt-kvm wait bjf-test --insecure --ssh-private-key-file /home/ubuntu/.ssh/id_rsa
uvt-kvm: error: libvirt: Domain not found: no domain with matching name 'bjf-test'
++ uvt-kvm ip bjf-test
uvt-kvm: error: libvirt: Domain not found: no domain with matching name 'bjf-test'
+ ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -i /home/ubuntu/.ssh/id_rsa ubuntu@ uname -a
++ cut '-d ' -f 2
+++ uvt-kvm ip bjf-test
uvt-kvm: error: libvirt: Domain not found: no domain with matching name 'bjf-test'
++ ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -i /home/ubuntu/.ssh/id_rsa ubuntu@ lsb_release -c
+ RESULT=
+ '[' '' '!=' hirsute ']'
+ echo '** ERROR: The codename returned from lsb_release -c was (' ') and we were expecting '\''hirsute'\'''
+ exit 1
+ cleanup
+ uvt-kvm destroy bjf-test
uvt-kvm: error: domain 'bjf-test' not found.
+ '[' s390x = ppc64el ']'

Po-Hsu Lin (cypressyew)
tags: added: 5.8 hirsute kqa-blocker s390x sru-20201109 ubuntu-kvm-smoke-test
Po-Hsu Lin (cypressyew)
tags: added: sru-20201130
tags: added: 5.11 sru-20210510
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.