magnum/magnum/api/controllers/v1
Bharat Kunwar 55fd12a47c [fix] Use default_ng_worker.node_count for patches
At present, when a cluster is patched without node_count (e.g. when
health_status and health_status_reason are patched), the node_count in
the cluster_update invocation contains cluster.node_count instead of
default_ng_worker.node_count which causes unexpected behaviour when a
cluster has additional nodegroups (e.g. the default-worker size gets
incremented by 1 if the additional nodegroup has 1 worker each time the
cluster is patched).

This PS fixes this issue by using default_ng_worker.node_count if path
"/node_count" is not present in the patch object.

Story: 2005266
Task: 39962

Change-Id: I0df5149860604f0adf52701df371e34a6e667b9d
2020-06-11 10:30:21 +00:00
..
__init__.py ng-5: APIs for listing and showing nodegroups 2019-03-29 10:31:48 +00:00
bay.py Allow setting network, subnet and FIP when creating cluster 2019-07-31 20:41:20 +12:00
baymodel.py Add hidden flag to cluster template 2019-02-12 11:38:15 +01:00
certificate.py Pass a mutable target to oslo policy enforcer 2017-05-10 17:47:38 +01:00
cluster.py [fix] Use default_ng_worker.node_count for patches 2020-06-11 10:30:21 +00:00
cluster_actions.py Support upgrade on behalf of user by admin 2020-05-19 08:49:49 +00:00
cluster_template.py [k8s] Deprecate in-tree Cinder 2020-05-19 08:43:58 +00:00
collection.py Fix quotas API pagination 2017-02-14 12:33:27 -06:00
federation.py Use MultiType and types.text instead of str 2019-01-18 11:01:57 +00:00
magnum_services.py Use MultiType and types.text instead of str 2019-01-18 11:01:57 +00:00
nodegroup.py Labels override 2020-05-13 08:07:29 +00:00
quota.py Return default quota from API 2019-09-20 09:30:06 +00:00
stats.py Don't enforce microversion for stats API 2017-02-09 10:38:41 -06:00
types.py Update hacking for Python3 2020-03-31 20:09:46 +02:00