Comment 0 for bug 2038104

Revision history for this message
Felipe Reyes (freyes) wrote : cluster creation fails when fixed network and subnet not set in cluster template

[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.
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

openstack coe cluster create \
    --cluster-template k8s-cluster-template \
    --timeout 120 \
    --fixed-network private \
    k8scluster

Expected result

The cluster gets created

Actual result:

The cluster creation fails