Disallow updating baymodel when it is referenced
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magnum |
Fix Released
|
Undecided
|
HouMing Wang |
Bug Description
It is very dangerous to update a baymodel when it is referenced by bay(s). Consider the following workflow as an example:
$ magnum baymodel-create --name k8sbaymodel \
$ magnum bay-create --name k8sbay --baymodel k8sbaymodel --node-count 1
$ magnum baymodel-update bccc2a4b-
The COE changes after a bay is created. When the bay is updated, it will use a swarm templates to update a k8s bay which is bad.
We should disallow updating a baymodel if it is referenced by one or multiple bays.
Changed in magnum: | |
milestone: | none → mitaka-1 |
tags: | added: low-hanging-fruit |
Changed in magnum: | |
assignee: | nobody → HouMing Wang (houming-wang) |
Fix proposed to branch: master /review. openstack. org/266420
Review: https:/