maas-test fails if saucy image is not perfectly up to date

Bug #1303016 reported by Mark Shuttleworth
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
maas-test
Fix Committed
High
Raphaël Badin

Bug Description

maas-test fails if the saucy image cannot install language packs, and that happened to me today because for some reason the package files were out of date. The following line fixed the problem:

  # Install the English language pack first. If this is not done
  # before postgres is installed, on some systems it won't be able to
  # set up its main cluster.
  # TODO: Is there no better way to ensure this, e.g. through a
  # dependency?
+ self.kvm_fixture.run_command(['sudo', 'apt-get', 'update'], check_call=True)
  self.kvm_fixture.install_packages(['language-pack-en'])

I suspect the fix can be made more robust, with a useful logged error message if the update fails, but this was sufficient to get me past this particular hurdle on the day :)

Related branches

description: updated
Raphaël Badin (rvb)
Changed in maas-test:
importance: Undecided → High
assignee: nobody → Raphaël Badin (rvb)
status: New → In Progress
Raphaël Badin (rvb)
Changed in maas-test:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.