[Bug 1427950] Re: find or install suitable dependencies / maas + curtin with vivid image fails to import yaml
Scott Moser
smoser at ubuntu.com
Fri Mar 20 19:26:47 UTC 2015
** Description changed:
curtin can run in python3 or python2. its only python dependency is
yaml.
maas-images of 12.04 do not have python3.
maas-images of 15.04 do not have python-yaml (python2) future images might not have any python2.
right now maas invokes curtin thorugh cloud-init user-data. curtin packs
itself into a self extracting executable, is transferred via user-data
and invoked inside the image. Sending it through the user-data means
that the maas server being updated is all that is necessary to deliver
new curtin (rather than SRU to each release).
Right now, in vivid that means that curtin tries to run with python2 and
thus fails to import yaml.
Basically curtin can't really depend on anything that isn't in ubuntu
maas image (cloud-iamge derived). And, it doesn't get installed via
apt.
A couple solutions here:
a.) a mechanism in curtin to run with python3 or python2, and just go on as is.
on new cloud-images curtin will get the python3-yaml (a dependency of cloud-init) and in older versions it would run with python2. A '$python -m curtin.checkdeps' would be run as a way to determine which python to run,
b.) get python-yaml into maas images and use python2.
c.) allow curtin to 'apt-get install' its deps.
note, this has the unfortunate dependency on doing that, and then having more io and network traffic and such during an install if the image doesn't contain python-yaml or other things.
Note, though, that curtin (or maas) changes that are made in order to
support use of vivid would then need to be SRU'd, where as changes to
the vivid image itself would not.
+
+
+ Related bugs:
+ * Bug 1434679: maas 1.5 does not know about vivid
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to curtin in Ubuntu.
https://bugs.launchpad.net/bugs/1427950
Title:
find or install suitable dependencies / maas + curtin with vivid image
fails to import yaml
To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1427950/+subscriptions
More information about the Ubuntu-server-bugs
mailing list