When creating a new "cluster" based from a "cluster template" that did NOT define the "Fixed Network" and "Fixed Subnet" fields, the cluster creation fails because it couldn't find a subnet for it, this is because the cluster object has its "fixed subnet" property set to `None`.
[Test Case]
1. Create a new cluster template WITHOUT a fixed network/subnet set.
openstack coe cluster template create k8s-cluster-template \
--image fedora-coreos-32 \
--keypair testkey \
--external-network ext_net \
--flavor m1.small \
--network-driver flannel \
--coe kubernetes
2. Create a new cluster using the template previously created and select an existing network
[Impact]
When creating a new "cluster" based from a "cluster template" that did NOT define the "Fixed Network" and "Fixed Subnet" fields, the cluster creation fails because it couldn't find a subnet for it, this is because the cluster object has its "fixed subnet" property set to `None`.
[Test Case]
1. Create a new cluster template WITHOUT a fixed network/subnet set. template \ network ext_net \ driver flannel \
openstack coe cluster template create k8s-cluster-
--image fedora-coreos-32 \
--keypair testkey \
--external-
--flavor m1.small \
--network-
--coe kubernetes
2. Create a new cluster using the template previously created and select an existing network
openstack coe cluster create \ template k8s-cluster- template \
--cluster-
--timeout 120 \
--fixed-network private \
k8scluster
Expected result
The cluster gets created
Actual result:
The cluster creation fails