[2.3] MAAS improperly determines the version of some installs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Mike Pontillo |
Bug Description
Due to a bug in `get_version_
>>> from provisioningser
>>> get_version_
''
>>> get_version_
'2.3.0~
The following example was taken from a machine with only the rack controller installed. MAAS will look for the versions of maas-region-api, then maas-rack-
Unfortunately, apt considers the package to be in the cache whether or not it is actually installed, and returns an empty string as the version, which the MAAS code didn't expect.
Related branches
- Andres Rodriguez (community): Approve
-
Diff: 40 lines (+18/-0)2 files modifiedsrc/provisioningserver/utils/tests/test_version.py (+15/-0)
src/provisioningserver/utils/version.py (+3/-0)
Changed in maas: | |
milestone: | none → 2.3.0 |
summary: |
- [2.3] MAAS improperly determines the version of rack-controller-only - installs + [2.3] MAAS improperly determines the version of some installs |
description: | updated |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
milestone: | 2.3.0 → 2.3.0beta1 |
Changed in maas: | |
status: | Fix Committed → Fix Released |