Local bootstrap failure gives unhelpful message

Bug #1401568 reported by Brad Crittenden
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Won't Fix
Medium
Unassigned

Bug Description

Running 'juju bootstrap' with a local provider while another process is doing package management results in an unhelpful error message:

% juju --version
1.20.13-utopic-amd64

% juju bootstrap
uploading tools for series [precise trusty utopic]
Logging to /home/bac/.juju/local/cloud-init-output.log on remote host
Bootstrapping Juju machine agent
541983e88a35bdcff3d10ff759a10d8bfc9cd9b67aad1f15c1e725042e1d52b2 /home/bac/.juju/local/tools/1.20.13.1-utopic-amd64/tools.tar.gz
2014-12-11 15:05:18 INFO juju.cmd supercommand.go:37 running jujud [1.20.13.1-utopic-amd64 gc]
2014-12-11 15:05:18 DEBUG juju.agent agent.go:377 read agent config, format "1.18"
2014-12-11 15:05:18 INFO juju.provider.local environprovider.go:42 opening environment "local"
2014-12-11 15:05:18 DEBUG juju.cmd.jujud bootstrap.go:210 starting mongo
2014-12-11 15:05:18 DEBUG juju.cmd.jujud bootstrap.go:235 calling ensureMongoServer
2014-12-11 15:05:18 INFO juju.mongo mongo.go:171 Ensuring mongo server is running; data directory /home/bac/.juju/local; port 37017
2014-12-11 15:05:18 INFO juju.mongo mongo.go:326 installing juju-mongodb
2014-12-11 15:05:18 INFO juju.utils.apt apt.go:132 Running: [apt-get --option=Dpkg::Options::=--force-confold --option=Dpkg::options::=--force-unsafe-io --assume-yes --quiet install juju-mongodb]
2014-12-11 15:05:28 ERROR juju.utils.apt apt.go:166 apt-get command failed: unexpected error type *errors.errorString
args: []string{"apt-get", "--option=Dpkg::Options::=--force-confold", "--option=Dpkg::options::=--force-unsafe-io", "--assume-yes", "--quiet", "install", "juju-mongodb"}

2014-12-11 15:05:28 ERROR juju.cmd supercommand.go:323 cannot install mongod: apt-get failed: unexpected error type *errors.errorString
Bootstrap failed, destroying environment
ERROR exit status 1

Tags: bootstrap ui apt
Revision history for this message
Curtis Hovey (sinzui) wrote :

This bug overlaps with a few other apt bugs. I am setting this to medium because I believe the other apt/race bugs show the issue is worse than this bug reports. In general, Juju need to wait to get access to apt.

Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
tags: added: bootstrap ui
tags: added: apt
Revision history for this message
dann frazier (dannf) wrote :

Yep, I hit this when I happened to be apt-get installing something in a different terminal at the same time. For me it would suffice just to get a clear error about the problem, so I know I can try again later when apt-get is done.

Changed in juju-core:
status: Triaged → Won't Fix
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.