Clusters created by the magnum-capi-helm driver do not have a heat stack, so
resize currently fails as it depends on the heat stack for a list of worker
nodes. To fix this, we change to querying the nodegroup information and
use that instead.
We keep the old heat stack way for now, as that is the way to get a list
of worker nodes to select candidate(s) for scaling down. This is not
available in capi driver yet, so capi will return an empty list of
worker nodes.
Change-Id: I0d66fc02a7f2c608a4a0b09b98c343017e04ed41
When creating a cluster using an existing network,
once the network has been selected from the dropdown
the subnet dropdown fails to populate. This is due to
an off-by-one indexing error.
Closes-Bug: #2087843
Change-Id: I0f7b20576e25c9f93ddc90fcfb501422d2adb7e1
* Replace 'floating_ip_enabled' with 'master_lb_floating_ip_enabled',
as the former implies floating ip on all nodes in addition to a
Floating IP on the API loadbalancer.
* Add 'api_master_lb_allowed_cidrs' so limitations can be placed
on K8s API loadbalancer.
Change-Id: I18bf64be9d9ddb4ee043cfba37bffe8e82f33d0d
* Apply limitations to 'master_lb_enabled' checkbox
interactions, such as master_count.
* Basic validation for cluster name, to reduce create failures.
* Rename 'Master' to 'Control Plane' in line with upstream Kubernetes.
* Add validation for 'master_count': min/max and odd numbers.
* 'Network' tab required indicator no longer shows when the
'create new network' checkbox is selected. This tab has no required
options initially and the form can submit without visting the tab.
* Help text updates to reflect the updated options.
Change-Id: I7840ab606eb4a39fe34509d7b49d738391148bae
Restrict enabled row actions on clusters which are not in
a 'COMPLETED' state. For example: disable resize cluster
action while cluster in 'IN_PROGRESS' or '_FAILED' state.
Change-Id: I78411dd91fb6e885a3407678472cbc6eef445cdb
* Resolve all npm lint warnings so we don't hide new ones.
* Any functionality changes from this change are unintentional
and should be fixed.
Change-Id: Ief1433bbe7e873999c94ca763f93a443d4234739
* Remove column 'keypair'
* Add column 'coe_version' as "Kubernetes Version"
* Add 'status_reason' and 'health_status_reason' sections
to cluster drawer.
* Rename 'Master' to 'Control Plane' in line with upstream.
Change-Id: I437d0f0f1ae07f29d41e1cd5d09b046d3d42b69e
When creating a cluster and the user decides to reuse an existing
network, it must also choose a subnet, otherwise the resulting
configuration may be invalid when trying to allocate a port.
Closes-Bug: #2038663
Related-Bug: #2038109
Change-Id: I08943f10418385a39eecc7b4117d162854d2d010
This change tests that the generated trackBy property contains the
expected value composed by the object id and updated_at when available
otherwise fallback to created_at.
Change-Id: I7becdd513cd17879d1c99c7b60ed708bb5a34a09
These functions were deprecated in Django 3.0 and have been removed
in Django 4.0. Switch to the functions they were aliased to.
Closes-Bug: #2039226
Change-Id: Iafb6615a7cd26a7746c52a18f11a86b27f1a66e4
success() is deprecated in modern Angular, causing
the 'Sign Certificate' UI to fail.
Fixes-bug: 2021588
Change-Id: Idf4ca74b8bc20a17bb53feeeaae9f9481b69b3e4
This patch aligns current code with AngularJS v1.8.2 requirements.
It also updates zun-ui to use the Firefox browser instead of phantomjs
browser to fix "nodjs-run-test" job because phantomjs browser has some
issue with backticks.
Change-Id: I61d9cfb795f7e789cd3c160934f05f54eb48fcda
This matches the default value in the Magnum API backend.
Signed-off-by: Md Safiyat Reza <reza.safiyat@gmail.com>
Change-Id: Idf74601b8efa195bae756005cc8f4b83400eac87
This ensures that magnum-ui requests default to DEFAULT_API_VERSION=1.10
to allow resize to zero worker nodes unless otherwise configured.
Story: 2005054
Task: 41835
Change-Id: I96d5cdbb669c4d2b92db6f7aa4f9970e33adf093
This erroneously displays a quota of 20 if quota is 0. Since Change
I1b278d221d0f15d92d67869cd3ac897d041eaf90, API always returns a quota,
so this check is no longer necessary.
Also fixed to show 100% if quota = 0; without this dashboard will show
NaN% when 0/0 .
Change-Id: Id59e63639667e2ec5fa01b57ef4a7ff5cd0db37d
Support enable/disable loadbalancer when creating cluster to
override the master_lb_enable config in cluster template.
Task: 40425
Story: 2007949
Change-Id: If548c7b7c95c3db191272a505ba3bff451076b13
There are two fixes included in this patch:
1. List nodes correctly. We have renamed minion to node, which
cause the filter doesn't work correctly.
2. The response from magnumclient resize method is not a json,
so we need to convert it to dict before return. Rolling upgrade
has the same issue.
Task: 39810
Story: 2007697
Change-Id: I7a03dfea2c84a423f15cfbe4194a8492f72dbd35
1. Show health status on cluster list table
2. Show health status and health status reason on the cluster
details page
Change-Id: I4d0751fc39d90cddc909b28ca0767bc811b6c3b8
Task: 39794
Story: 2007682
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: Ie3c9acbcfd21a7ef02c48dace486e80c502f0833
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
At present, resize cluster invocation via the magnum-ui fails because it
tries to resize production_group nodegroup which is not a thing. Until
we support ability to specify nodegroups, we ought to use the default of
default-worker nodegroup.
Change-Id: I3e9553e6d337ab1580c0e3bb3d1a88e8b97f2f23