Juju status fails due to timeout getting MAAS API version
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Ian Booth | ||
2.9 |
Fix Released
|
High
|
Ian Booth |
Bug Description
As seen during this test run: https:/
Full artifcats here: https:/
Controller crashdump: https:/
A call to `juju status` during execution of juju-wait (a service that polls status checking for certain condition) resulted in this error:
...
ERROR:root:ERROR Get "http://
ERROR:root:juju status --format=json failed: 1
...
This status call was being made continually (every 5-10 seconds) for the past 30-40 minutes, indicating that Juju could indeed talk to the MAAS server at some point seconds before the failed call. Juju should be falling back to cached information for these status calls whenever possible and only surfacing an error when it truly cannot give status about the model. The information from MAAS in a deployed model will likely not be changing over time.
Changed in juju: | |
milestone: | 2.8.8 → 2.8.9 |
Changed in juju: | |
milestone: | 2.8.9 → 2.8.10 |
Changed in juju: | |
milestone: | 2.8.10 → 2.8.11 |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
We probably should be using cached information here, rather than hitting the provider API for each status.