ubuntu-vm-builder crashes over non-existing certificate

Bug #612685 reported by Allo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vm-builder (Ubuntu)
Expired
Low
Unassigned

Bug Description

> sudo TMPDIR=tmp ubuntu-vm-builder kvm lucid -d ubuntu --libvirt=qemu://system --lang=de_DE.UTF-8 --addpkg=openssh-server --ssh-key /home/allo/.ssh/id_rsa.pub --network=nat_all
2010-08-02 20:07:32,458 INFO : Calling hook: preflight_check
2010-08-02 20:07:32,460 INFO : Calling hook: set_defaults
2010-08-02 20:07:32,460 INFO : Calling hook: bootstrap
2010-08-02 20:20:15,712 INFO : Calling hook: configure_os
2010-08-02 20:20:48,876 INFO : update-alternatives: error: no alternatives for rsh.
2010-08-02 20:20:48,933 INFO : update-alternatives: error: no alternatives for rlogin.
2010-08-02 20:20:48,990 INFO : update-alternatives: error: no alternatives for rcp.
2010-08-02 20:20:50,926 INFO : Creating SSH2 RSA key; this may take some time ...
2010-08-02 20:20:51,160 INFO : Creating SSH2 DSA key; this may take some time ...
2010-08-02 20:20:51,760 INFO :
2010-08-02 20:20:51,760 INFO : Warning: Fake initctl called, doing nothing
2010-08-02 20:20:51,760 INFO :
2010-08-02 20:20:51,760 INFO : Warning: Fake initctl called, doing nothing
2010-08-02 20:20:56,117 INFO :
2010-08-02 20:20:56,118 INFO : Current default time zone: 'Etc/UTC'
2010-08-02 20:20:56,119 INFO : Local time is now: Mon Aug 2 18:20:56 UTC 2010.
2010-08-02 20:20:56,119 INFO : Universal Time is now: Mon Aug 2 18:20:56 UTC 2010.
2010-08-02 20:20:56,119 INFO :
2010-08-02 20:21:37,704 INFO :
2010-08-02 20:21:37,704 INFO : Current default time zone: 'Etc/UTC'
2010-08-02 20:21:37,706 INFO : Local time is now: Mon Aug 2 18:21:37 UTC 2010.
2010-08-02 20:21:37,706 INFO : Universal Time is now: Mon Aug 2 18:21:37 UTC 2010.
2010-08-02 20:21:37,707 INFO : Run 'dpkg-reconfigure tzdata' if you wish to change it.
2010-08-02 20:21:37,707 INFO :
2010-08-02 20:22:05,331 INFO : Calling hook: post_install
2010-08-02 20:22:05,332 INFO : Calling hook: preflight_check
libvir: Remote error : Cannot access CA certificate '/etc/pki/CA/cacert.pem': No such file or directory
Traceback (most recent call last):
  File "/usr/bin/ubuntu-vm-builder", line 24, in <module>
    uvb.main()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/contrib/cli.py", line 116, in main
    hypervisor.install_os()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/hypervisor.py", line 59, in install_os
    self.call_hooks('preflight_check')
  File "/usr/lib/python2.6/dist-packages/VMBuilder/distro.py", line 66, in call_hooks
    call_hooks(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/VMBuilder/util.py", line 158, in call_hooks
    getattr(plugin, func, log_no_such_method)(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/libvirt/__init__.py", line 46, in preflight_check
    self.conn = libvirt.open(libvirt_uri)
  File "/usr/lib/python2.6/dist-packages/libvirt.py", line 169, in open
    if ret is None:raise libvirtError('virConnectOpen() failed')
libvirt.libvirtError: Cannot access CA certificate '/etc/pki/CA/cacert.pem': No such file or directory

at least it should not crash but issue an error message.

Revision history for this message
Soren Hansen (soren) wrote : Re: [Bug 612685] [NEW] ubuntu-vm-builder crashes over non-existing certificate

VMBuilder should definitely handle this more gracefully, but your
particular problem is that the libvirt uri you are passing is wrong.
It's supposed to be qemu:///system (three slashes, not two).

--
Soren Hansen
Ubuntu Developer
http://www.ubuntu.com/

Mathias Gug (mathiaz)
Changed in vm-builder (Ubuntu):
importance: Undecided → Low
Revision history for this message
Chuck Short (zulcss) wrote :

Can you try to run this with the fixed libvirt option that soren said?

Thanks
chuck

Changed in vm-builder (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for vm-builder (Ubuntu) because there has been no activity for 60 days.]

Changed in vm-builder (Ubuntu):
status: Incomplete → Expired
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.