[lnie@dell-r330-6 root]$ testcloud instance stop checkcloud DEBUG:stop instance: checkcloud DEBUG:stopping instance checkcloud. [lnie@dell-r330-6 root]$ testcloud instance start checkcloud DEBUG:start instance: checkcloud DEBUG:Creating instance checkcloud DEBUG:Polling instance for active network interface INFO:Successfully booted instance checkcloud The IP of vm checkcloud: 192.168.122.141 Traceback (most recent call last): File "/usr/bin/testcloud", line 33, in <module> sys.exit(load_entry_point('testcloud==0.4.0', 'console_scripts', 'testcloud')()) File "/usr/lib/python3.9/site-packages/testcloud/cli.py", line 601, in main args.func(args) File "/usr/lib/python3.9/site-packages/testcloud/cli.py", line 356, in _start_instance _handle_connection_tip(tc_instance, vm_ip) File "/usr/lib/python3.9/site-packages/testcloud/cli.py", line 56, in _handle_connection_tip if "fedora" in instance.backing_store.lower(): AttributeError: 'NoneType' object has no attribute 'lower'
The problem is :instance.backing_store is none as self.backing_store = image.local_path if image else None,while there is no image param. One quick solution comes to my mind is that: set self.local_disk to "{}/{}-fedora.qcow2".format(self.path, self.name) for fedora,but I think you will come up with other better solutions:)
@lnie thanks for report, I've had fix for this sitting in another branch. I've pushed crash fix to master ( https://pagure.io/testcloud/c/0ff0267364596e7d551070f8464c5a6102d04b61?branch=master ).
I'll try to figure out a proper solution after I finish integrating some testcloud user space changes into tmt. Your tip about appending "-fedora" isn't bad at all though :)
Since https://pagure.io/testcloud/c/e01226c76e2885e6b296d50da457001eeff0c881?branch=master (included in 0.6.3), this can't happen as the problematic function is no longer dealing with backing_store at all.
Metadata Update from @frantisekz: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.