[2.2] Add ability to add tags to a pod that can be used on allocation constraints
Bug #1706763 reported by
Andres Rodriguez
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Wishlist
|
Newell Jensen |
Bug Description
It would be nice to have the ability to add tags for a specific pod. This would allow the administrator to create tags that allocation constraints can match.
For example, say I have 'ceph' tag in 5 machines, but all used. On allocate, i'd like MAAS to auto-allocate a machine from the virsh pod, but since the pod doesn't have 'tags', the allocation request would fail.
Related branches
~newell-jensen/maas:ui-pod-tags
- Blake Rouse (community): Approve
-
Diff: 493 lines (+153/-21)11 files modifiedsrc/maasserver/api/pods.py (+43/-1)
src/maasserver/api/tests/test_pods.py (+54/-1)
src/maasserver/forms/pods.py (+9/-5)
src/maasserver/forms/tests/test_pods.py (+15/-8)
src/maasserver/migrations/builtin/maasserver/0148_add_tags_on_pods.py (+2/-1)
src/maasserver/models/bmc.py (+15/-3)
src/maasserver/models/tests/test_bmc.py (+1/-1)
src/maasserver/static/js/angular/directives/maas_obj_form.js (+4/-0)
src/maasserver/static/partials/pod-details.html (+2/-0)
src/maasserver/websockets/handlers/pod.py (+2/-1)
src/maasserver/websockets/handlers/tests/test_pod.py (+6/-0)
~newell-jensen/maas:pod-tags
Merged
into
maas:master
- Alberto Donato (community): Approve
- MAAS Lander: Approve
-
Diff: 89 lines (+47/-0)3 files modifiedsrc/maasserver/migrations/builtin/maasserver/0148_add_tags_on_pods.py (+23/-0)
src/maasserver/models/bmc.py (+9/-0)
src/maasserver/models/tests/test_bmc.py (+15/-0)
tags: | added: pod |
Changed in maas: | |
importance: | Undecided → Medium |
importance: | Medium → Wishlist |
status: | New → Triaged |
milestone: | none → next |
Changed in maas: | |
assignee: | nobody → Newell Jensen (newell-jensen) |
status: | Triaged → In Progress |
milestone: | next → 2.4.x |
Changed in maas: | |
milestone: | 2.4.x → 2.4.0alpha2 |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.