[1.9] If rack and region have different versions, the error is uninformative and confusing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Undecided
|
Unassigned | ||
1.9 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi,
We've just recently upgraded our MAAS cluster (one region controller and six cluster controllers) from 1.7 to 1.9. After upgrading, we ran into the following traceback both in the logs and also when trying to view a node:
| File "/usr/lib/
| return self.dehydrate(obj, data, for_list=for_list)
| File "/usr/lib/
| data["power_types"] = self.dehydrate_
| File "/usr/lib/
| return get_all_
| File "/usr/lib/
| missing_packages = power_type[
| exceptions.
I worked around this by changing the code in maasserver/
| description = power_type[
| if 'missing_packages' in power_type:
| missing_packages = power_type[
| else:
| missing_packages = None
Is that the correct fix for this?
Related branches
- Blake Rouse (community): Approve
-
Diff: 79 lines (+35/-1)3 files modifieddocs/changelog.rst (+2/-0)
src/maasserver/clusterrpc/power_parameters.py (+15/-1)
src/maasserver/clusterrpc/tests/test_power_parameters.py (+18/-0)
summary: |
- 'missing_packages' missing and causes traceback + 'missing_packages' missing and causes traceback on version mismatches |
summary: |
- 'missing_packages' missing and causes traceback on version mismatches + If rack and region have different versions, the error is uninformative + and confusing |
Changed in maas: | |
status: | Expired → Confirmed |
milestone: | none → 1.9.4 |
summary: |
- If rack and region have different versions, the error is uninformative - and confusing + [1.9] If rack and region have different versions, the error is + uninformative and confusing |
no longer affects: | maas/2.0 |
no longer affects: | maas/trunk |
Changed in maas: | |
milestone: | 2.0.1 → none |
status: | Confirmed → Incomplete |
Are you sure that all cluster controllers have the same installed version of MAAS as the region controller? MAAS requires that all of them be the same version.