juju stop responding after juju-upgrade
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | juju-core |
High
|
John Weldon | ||
| | 1.24 |
High
|
John Weldon | ||
Bug Description
After running:
juju upgrade-juju --version 1.23-beta2 --upload-tools
All unit start saying in debug-log
....
unit-pgsql-
....
After a while juju stop responding. Ex: juju status
I already try to restart juju-machine0 service and juju-mongodb
If i keep running "juju status" in a console and restart juju-machine0 service from machine0 it show statuses and then hang again. As if there were something in the queue.
Attached extra big large /var/log/
| lithium (rudicba) wrote : | #1 |
| lithium (rudicba) wrote : | #2 |
| John Weldon (johnweldon4) wrote : | #3 |
It seems the upgrade step for adding the Stopped field to the uniter state isn't working. The logs indicate that the upgrade steps ran, but many (most / all ?) of the units all report the error that the uniter state has a hook value in ModeContinue, which the upgrade step should have taken care of.
| Changed in juju-core: | |
| assignee: | nobody → John Weldon (johnweldon4) |
| tags: | added: upgrade-juju |
| Changed in juju-core: | |
| status: | New → Triaged |
| importance: | Undecided → High |
| milestone: | none → 1.23-beta3 |
| Changed in juju-core: | |
| milestone: | 1.23-beta3 → 1.23 |
| John Weldon (johnweldon4) wrote : | #4 |
Once the uniter operation state file is manually fixed (by removing the hook key and subkeys) another error that seems upgrade related appears too:
unit-jw-
unit-jw-
| John Weldon (johnweldon4) wrote : | #5 |
so the issue is that the upgrade steps do not run against units, but only against machines. The upgrade steps need to explicitly iterate the units and apply the upgrade to the units.
I'm working on implementing this, but until it's in this upgrade won't work.
| lithium (rudicba) wrote : | #6 |
So, when the new update is available, juju environment with wrong uniter state will be fixed? or i have to start from scratch?
Thanks for the quick response
| Changed in juju-core: | |
| status: | Triaged → Fix Committed |
| Liam Young (gnuoy) wrote : | #7 |
I've just upgraded from 1.22.1 to 1.23.0 (from proposed ppa) and after the upgrade I seem to have hit this bug.
Last entry in debug-log is:
unit-swift-
unit-swift-
juju set no longer fires hooks on the units.
I did not use upload-tools for the upgrade. I did:
juju set-env agent-metadata-url=https:/
juju set-env agent-stream=
juju upgrade-juju --version 1.23.0
| John Weldon (johnweldon4) wrote : | #8 |
Even after the committed fix, hook operations don't fire any more after the upgrade. Investigating further.
| Changed in juju-core: | |
| status: | Fix Committed → In Progress |
| Changed in juju-core: | |
| milestone: | 1.23 → 1.24-alpha1 |
| Martin Packman (gz) wrote : | #9 |
I can reproduce this with our standard upgrade job by adding a step at the end that sets a new value on our testing charm and expects it to propagate across a relation. It seems any juju deployment upgraded from 1.22 to 1.23 will basically be in an unusable state afterwards.
| Changed in juju-core: | |
| importance: | High → Critical |
| Curtis Hovey (sinzui) wrote : | #10 |
As there is bot a fix and a release with this issue. I opened bug 1447846 to resolve the hooks issue.
| no longer affects: | juju-core/1.23 |
| Changed in juju-core: | |
| status: | In Progress → Fix Committed |
| Menno Finlay-Smits (menno.smits) wrote : | #11 |
John, can you confirm that the fix is made it into the 1.24 branch as well as master? (and update this bug accordingly)
| Changed in juju-core: | |
| milestone: | 1.24-alpha1 → none |
| milestone: | none → 1.25.0 |
| status: | Fix Committed → In Progress |
| John Weldon (johnweldon4) wrote : | #12 |
Yes, this fix was in revision [2fb4df33](https:/
running `git branch -r --contains 2fb4df33` will confirm that the revision is in both master and 1.24
| Changed in juju-core: | |
| status: | In Progress → Fix Committed |
| Changed in juju-core: | |
| importance: | Critical → High |
| Changed in juju-core: | |
| status: | Fix Committed → Fix Released |


I forget to upload all-machine.log