upgrade-juju in local environment causes bootstrap machine agent to restart continuously

Bug #1214676 reported by Andrew Wilkins
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
Critical
Nate Finch

Bug Description

I was investigating bug #1213832, and found that my bootstrap machine agent was restarting in a loop, hence the storage was only occasionally available. It seems to be caused by "juju upgrade-juju".

Steps to reproduce (with local provider):
1. sudo juju bootstrap
2. juju upgrade-juju --upload-tools

Now if you run "juju status", you'l see agent-state is mostly "down", occasionally running. If you look in the logs, you'll see that the agent keeps restarting on account of needing to upgrade. There are also errors relating to connecting to the API.

Revision history for this message
John A Meinel (jameinel) wrote :

Sounds worthy of investigating. Certainly it needs to reboot 1 time once its done the download of tools, but it shouldn't need to restart again.

There is likely to be some other trigger that is causing it to restart itself continuously. Which is *likely* to just be a universal upgrade incompatibility that we need to fix before 1.14.

Changed in juju-core:
importance: Undecided → Critical
status: New → Triaged
Nate Finch (natefinch)
Changed in juju-core:
assignee: nobody → Nate Finch (natefinch)
status: Triaged → In Progress
Revision history for this message
Nate Finch (natefinch) wrote :

This is a problem with the creation of the upstart script for the local provider. It is hard-coded against the tools version that exists when you bootstrap the environment. The rest of the code goes through the upgrade correctly, which updates the symlink at .juju/local/tools/machine-0 ... but the upstart script wasn't referencing that symlink, so it doesn't use the new tools after we restarted... causing it to use the old version and think it needs to upgrade again.

Nate Finch (natefinch)
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: none → 1.15.0
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
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.