Unable to change master_count bay attribute

Bug #1580491 reported by Adrian Otto
This bug affects 2 people
Affects Status Importance Assigned to Milestone
In Progress

Bug Description

The master_count bay attribute can not be changed on a running bay.

Steps to reproduce:

1) Create a baymodel:

stack@demo:~$ magnum baymodel-create --name k8sbaymodel \
                       --image-id fedora-atomic-latest \
                       --keypair-id testkey \
                       --external-network-id public \
                       --dns-nameserver \
                       --flavor-id m1.small \
                       --docker-volume-size 5 \
                       --network-driver flannel \
                       --coe kubernetes

2) Create a k8s bay from that baymodel:

stack@demo:~$ magnum bay-create --name k8sbay --baymodel k8sbaymodel --node-count 1

3) Attempt to change the master_count bay attribute:

stack@demo:~$ magnum bay-update k8sbay replace master_count=2
ERROR: cannot change bay property(ies) master_count (HTTP 400) (Request-ID: req-6722c6b8-6731-46b2-bf0b-5b47c82a50c4)

Expected Result:

The bay's heat stack should be updated to a multi-master configuration.

Actual Result:

The API returns a 400 Bad Request response.

Revision history for this message
Wang Bo (chestack) wrote :

run into the same issue. But It's what codes restrict. ref: https://github.com/openstack/magnum/blob/master/magnum/api/validation.py#L59

Revision history for this message
Wang Bo (chestack) wrote :

IMO, it's good feature to update master_count

rajiv (rajiv-kumar)
Changed in magnum:
assignee: nobody → rajiv (rajiv-kumar)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/334914

Changed in magnum:
status: New → In Progress
hongbin (hongbin034)
Changed in magnum:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on magnum (master)

Change abandoned by Adrian Otto (<email address hidden>) on branch: master
Review: https://review.openstack.org/334914
Reason: Abandoning this due to inactivity.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.