setup_vm requires the working dir to contain vms.conf

Bug #1180736 reported by Vincent Ladeuil
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

When using outside of the setup_vm directory when running from sources, I end up with:

$ --install --download precise-server-pristine
Traceback (most recent call last):
  File "/home/vila/bin/", line 1203, in <module>
  File "/home/vila/bin/", line 1195, in run
  File "/home/vila/bin/", line 1146, in run
  File "/home/vila/bin/", line 891, in download_cloud_image
    return self._download_in_cache(self.conf.get('vm.cloud_image_url'),
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 3739, in get
    value = expand_and_convert(value)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 3713, in expand_and_convert
    val = self._expand_options_in_string(val)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 3793, in _expand_options_in_string
    raise errors.ExpandingUnknownOption(name, string)
bzrlib.errors.ExpandingUnknownOption: Option vm.release is not defined while expanding "{vm.release}/current/".

It would be better if setup_vm could find setup_vm/vms.conf without relying on the current directory.

Dave Morley (davmor2)
tags: added: u1-notrack
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers