[2.2, 2.3, API] Adding a CentOS image via CLI doesn't categorize it correctly
Bug #1701694 reported by
Andres Rodriguez
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Lee Trager | ||
2.2 |
Fix Released
|
High
|
Unassigned |
Bug Description
I've tried adding a centos image via the CLI like:
maas admin boot-resources create name=centos/
And the result is this:
1. On Images listing page:
- See image under "Generated" images.
- The name in the UI is shown as "centos/
2. Can't deploy image
- I can't deploy the image (it is not available in the drop-down option).
The expected result of this is:
1. Images to show under "CentOS" section
2. Name to be show as "centos7-105.2"
3. Image to be available to deploy under "CentOS"
when adding a centos image with name=<os>/<name> it should assume that this image is a centos image.
Related branches
~ltrager/maas:lp1701694_2.2
- Blake Rouse (community): Approve
-
Diff: 727 lines (+186/-138)22 files modifiedsrc/maasserver/bootresources.py (+3/-3)
src/maasserver/forms/__init__.py (+11/-13)
src/maasserver/forms/tests/test_bootresource.py (+45/-2)
src/maasserver/models/bootresource.py (+12/-3)
src/maasserver/models/tests/test_bootresource.py (+21/-0)
src/maasserver/tests/test_bootresources.py (+3/-3)
src/maasserver/utils/osystems.py (+4/-5)
src/maasserver/utils/tests/test_osystems.py (+25/-0)
src/provisioningserver/drivers/osystem/__init__.py (+6/-5)
src/provisioningserver/drivers/osystem/bootloader.py (+0/-4)
src/provisioningserver/drivers/osystem/centos.py (+28/-24)
src/provisioningserver/drivers/osystem/custom.py (+0/-5)
src/provisioningserver/drivers/osystem/tests/test_base.py (+10/-1)
src/provisioningserver/drivers/osystem/tests/test_bootloader.py (+0/-5)
src/provisioningserver/drivers/osystem/tests/test_centos.py (+5/-19)
src/provisioningserver/drivers/osystem/tests/test_custom.py (+0/-9)
src/provisioningserver/drivers/osystem/tests/test_ubuntu.py (+11/-6)
src/provisioningserver/drivers/osystem/tests/test_ubuntucore.py (+0/-9)
src/provisioningserver/drivers/osystem/ubuntu.py (+1/-9)
src/provisioningserver/drivers/osystem/ubuntucore.py (+0/-5)
src/provisioningserver/drivers/osystem/windows.py (+1/-5)
src/provisioningserver/testing/os.py (+0/-3)
~ltrager/maas:lp1701694
Merged
into
maas:master
- Blake Rouse (community): Approve
-
Diff: 645 lines (+142/-135)24 files modifiedsrc/maasserver/bootresources.py (+3/-3)
src/maasserver/forms/__init__.py (+11/-13)
src/maasserver/forms/tests/test_bootresource.py (+45/-2)
src/maasserver/models/bootresource.py (+12/-3)
src/maasserver/models/tests/test_bootresource.py (+21/-0)
src/maasserver/tests/test_bootresources.py (+3/-3)
src/maasserver/utils/osystems.py (+3/-4)
src/maasserver/utils/tests/test_osystems.py (+16/-0)
src/provisioningserver/drivers/osystem/__init__.py (+5/-4)
src/provisioningserver/drivers/osystem/bootloader.py (+0/-4)
src/provisioningserver/drivers/osystem/centos.py (+0/-4)
src/provisioningserver/drivers/osystem/custom.py (+0/-5)
src/provisioningserver/drivers/osystem/rhel.py (+0/-4)
src/provisioningserver/drivers/osystem/tests/test_base.py (+10/-1)
src/provisioningserver/drivers/osystem/tests/test_bootloader.py (+0/-5)
src/provisioningserver/drivers/osystem/tests/test_centos.py (+0/-17)
src/provisioningserver/drivers/osystem/tests/test_custom.py (+0/-9)
src/provisioningserver/drivers/osystem/tests/test_rhel.py (+0/-17)
src/provisioningserver/drivers/osystem/tests/test_ubuntu.py (+11/-6)
src/provisioningserver/drivers/osystem/tests/test_ubuntucore.py (+0/-9)
src/provisioningserver/drivers/osystem/ubuntu.py (+1/-9)
src/provisioningserver/drivers/osystem/ubuntucore.py (+0/-5)
src/provisioningserver/drivers/osystem/windows.py (+1/-5)
src/provisioningserver/testing/os.py (+0/-3)
Changed in maas: | |
importance: | Undecided → High |
assignee: | nobody → Lee Trager (ltrager) |
milestone: | none → 2.3.0 |
status: | New → Triaged |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
milestone: | 2.3.0 → 2.3.0alpha1 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.