AttributeError: 'CustomVM' object has no attribute 'vm' when attempting to install with default preseed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
UTAH |
Fix Released
|
High
|
Max Brustkern |
Bug Description
When executing sudo -u utah -i /usr/bin/
The following crash occurrs.
INFO: Installing client deb on machine
INFO: Provisioning VM
INFO: Loading VM
INFO: Creating custom virtual machine
INFO: Preparing kernel
INFO: Unpacking kernel from image
INFO: Preparing initrd
INFO: Unpacking initrd from image
INFO: Unpacking initrd
INFO: Copying ssh public key
INFO: Creating latecommand script
INFO: Setting up preseed
INFO: Removing machine addresses from ssh known_hosts file
INFO: Stopping VM
Traceback (most recent call last):
File "/usr/bin/
run_
File "/usr/bin/
function(
File "/usr/share/
machine.
File "/usr/lib/
self.
File "/usr/lib/
if self.vm.isActive() == 0:
AttributeError: 'CustomVM' object has no attribute 'vm'
Related branches
- Javier Collado (community): Approve
- Max Brustkern (community): Needs Resubmitting
-
Diff: 116 lines (+35/-16)2 files modifiedutah/provisioning/vm/libvirtvm.py (+34/-16)
utah/provisioning/vm/vm.py (+1/-0)
summary: |
AttributeError: 'CustomVM' object has no attribute 'vm' when attempting - to install a desktop with default preseed + to install with default preseed |
Changed in utah: | |
status: | New → In Progress |
Changed in utah: | |
importance: | Undecided → High |
Changed in utah: | |
assignee: | nobody → Max Brustkern (nuclearbob) |
status: | In Progress → Fix Committed |
Changed in utah: | |
status: | Fix Committed → Fix Released |
I've proposed a merge to fix the shown exception here: /code.launchpad .net/~nuclearbo b/utah/ vm-teardown- fix/+merge/ 131082
https:/
The underlying issue is that the preseed contains a number of lines starting with {% block, which are currently being interpreted as duplicates of the same question by the preseed processing system. I'm discussing with the team how best to handle this.