#647 TestCloud doesn't work
Closed: Invalid 3 years ago by kparal. Opened 3 years ago by sumantrom.

During the last test day, I usually test cloud images with virt-install but a few contributor tested it with TestCloud and it didnt work for them.

I ran the basic test case [0] which is part of current validation matrix [1] and it threw me an error too. I am wondering if I am doing something wrong?

[0] https://fedoraproject.org/wiki/Local_Test_Cloud_Installation_Guide
[1] https://fedoraproject.org/wiki/Test_Results:Fedora_33_Branched_20201003.n.0_Summary?rd=Test_Results:Current_Summary#Cloud_Provider_Setup


testcloud instance create test -u https://kojipkgs.fedoraproject.org/compose/branched/Fedora-33-20200928.n.0/compose/Cloud/x86_64/images/Fedora-Cloud-Base-33-20200928.n.0.x86_64.qcow2
DEBUG:create instance
DEBUG:Local downloads will be stored in /var/lib/testcloud/backingstores.
DEBUG:Starting new HTTPS connection (1): kojipkgs.fedoraproject.org:443
DEBUG:https://kojipkgs.fedoraproject.org:443 "GET /compose/branched/Fedora-33-20200928.n.0/compose/Cloud/x86_64/images/Fedora-Cloud-Base-33-20200928.n.0.x86_64.qcow2 HTTP/1.1" 200 286261248
Traceback (most recent call last):
File "/usr/bin/testcloud", line 33, in <module>
sys.exit(load_entry_point('testcloud==0.3.5', 'console_scripts', 'testcloud')())
File "/usr/lib/python3.9/site-packages/testcloud/cli.py", line 357, in main
args.func(args)
File "/usr/lib/python3.9/site-packages/testcloud/cli.py", line 66, in _create_instance
tc_image.prepare()
File "/usr/lib/python3.9/site-packages/testcloud/image.py", line 211, in prepare
self._download_remote_image(self.remote_path, self.local_path)
File "/usr/lib/python3.9/site-packages/testcloud/image.py", line 158, in _download_remote_image
raise TestcloudImageError(
testcloud.exceptions.TestcloudImageError: Problem writing to /var/lib/testcloud/backingstores/Fedora-Cloud-Base-33-20200928.n.0.x86_64.qcow2. Are you in group testcloud?

My system is running python 3.9.0rc2 (default) and Latest F33


usermod -a -G testcloud your_user_name
newgrp testcloud

If it doesn't work, try to log out and in.

As said in the traceback, you're not in the testcloud group :)


usermod -a -G testcloud your_user_name
newgrp testcloud

If it doesn't work, try to log out and in.

As said in the traceback, you're not in the testcloud group :)

That workaround works, however, The TC https://fedoraproject.org/wiki/Local_Test_Cloud_Installation_Guide doesnt ask for that step to be done.
I would go ahead and update that bit.

Hey Sumantro, testcloud errors are best reported to https://pagure.io/testcloud . Unfortunately testcloud has zero documentation and it's not user friendly, so using it is a big pain. In its current state I don't think it's a good fit to recommend it in release validation matrices, but let's have that discussion in #648.

As a simple immediate fix, please include the group instructions in the linked wiki page, but I'm not really sure if it's sufficient or there are more undocumented actions needed.

Metadata Update from @kparal:
- Issue close_status updated to: Invalid
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata