[Bug 1310076] Re: lost connectivity to a node when using fastpath-installer with precise+hwe-s
Nobuto MURATA
nobuto at nobuto-murata.org
Sun Apr 20 18:44:32 UTC 2014
The reason auto-installation lts-saucy does not work in my environment
was that the result of "in_chroot(['apt-cache', 'search', package],
capture=True)" was empty. i.e. "apt-cache search linux-generic-lts-
saucy" returns empty result.
To put `apt-get update` before the line works for me as a workaround
(apt-get update runs twice before and after `apt-cache search`).
I'm not sure this is a issue in curtin or in maas tarball image.
--- /usr/lib/python2.7/dist-packages/curtin/commands/curthooks.py.orig 2014-04-21 03:02:52.271682540 +0900
+++ /usr/lib/python2.7/dist-packages/curtin/commands/curthooks.py 2014-04-21 03:32:08.754944407 +0900
@@ -170,6 +170,8 @@
package = "linux-{flavor}{map_suffix}".format(
flavor=flavor, map_suffix=map_suffix)
+ # make sure package cache is updated
+ in_chroot(['apt-get', 'update', '--quiet'])
out, _ = in_chroot(['apt-cache', 'search', package], capture=True)
if (len(out.strip()) > 0 and
not util.has_pkg_installed(package, target)):
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to maas in Ubuntu.
https://bugs.launchpad.net/bugs/1310076
Title:
lost connectivity to a node when using fastpath-installer with
precise+hwe-s
To manage notifications about this bug go to:
https://bugs.launchpad.net/maas/+bug/1310076/+subscriptions
More information about the Ubuntu-server-bugs
mailing list