[2.3, wishlist] Support tag filtering (via tag/no_tag) in pods.
Bug #1751907 reported by
Jason Hobbs
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Newell Jensen |
Bug Description
To reproduce:
1) Setup a maas and add a KVM pod to it, without any other machines added to it.
2) With no machines available, try to allocate a machine with the not_tags parameter set to virtual:
maas <profile> machines allocate not_tags=virtual
3) Since any pod KVM created will have the tag 'virtual' after it's commissioned, the expected behavior is that maas returns an error stating no machines are available. Instead, MAAS creates a KVM machine from its pod and returns it.
This is with MAAS 2.3.0 (6434-gd354690-
Related branches
~newell-jensen/maas:pods-not-tags-pod-pod-types
Merged
into
maas:master
- Blake Rouse (community): Approve
-
Diff: 450 lines (+251/-68)6 files modifiedsrc/maasserver/api/machines.py (+49/-23)
src/maasserver/api/tests/test_machines.py (+146/-0)
src/maasserver/forms/pods.py (+5/-16)
src/maasserver/forms/tests/test_pods.py (+0/-21)
src/maasserver/node_constraint_filter_forms.py (+17/-5)
src/maasserver/tests/test_node_constraint_filter_forms.py (+34/-3)
~newell-jensen/maas:lp1751907
Merged
into
maas:master
- Andres Rodriguez (community): Approve
-
Diff: 217 lines (+70/-14)8 files modifiedsrc/maasserver/api/machines.py (+10/-6)
src/maasserver/api/tests/test_machines.py (+9/-1)
src/maasserver/forms/pods.py (+16/-4)
src/maasserver/forms/tests/test_pods.py (+21/-0)
src/provisioningserver/drivers/pod/__init__.py (+1/-0)
src/provisioningserver/drivers/pod/tests/test_base.py (+7/-1)
src/provisioningserver/drivers/pod/tests/test_virsh.py (+2/-1)
src/provisioningserver/drivers/pod/virsh.py (+4/-1)
Changed in maas: | |
milestone: | none → 2.4.x |
importance: | Undecided → Medium |
status: | New → Triaged |
tags: | added: kvm pod |
tags: | added: cdo-qa cdo-qa-blocker foundations-engine |
summary: |
- [2.3, wishlist] maas composes a pod VM even when not_tags=virtual + [2.3, wishlist] Support tag filtering (via tag/no_tag) in pods. |
Changed in maas: | |
assignee: | nobody → Newell Jensen (newell-jensen) |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
milestone: | 2.4.x → 2.4.0beta1 |
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: | |
milestone: | 2.4.0beta1 → 2.4.0alpha2 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Because of the way juju tries to round-robin across availability zones, this means that even if a physical machine is available in another zone, juju will end up with a KVM instead of a physical machine like it wants if it asks for a node from the wrong availability zone first.