I could not reproduce by completing the following steps:
1) Stop c-api service via screen 2) Create a new K8s cluster-template: magnum cluster-template-create --name k8s-bug-template \ --image-id fedora-atomic-latest \ --keypair-id magnum_key \ --external-network-id public \ --dns-nameserver 8.8.8.8 \ --flavor-id m1.small \ --docker-volume-size 5 \ --coe kubernetes 3) Create a new K8s cluster using previous template: magnum cluster-create --name k8s-bug-cluster \ --cluster-template k8s-bug-template \ --node-count 1 4) Verify that cluster failed to create: swatson1@swatson1-linux:/opt/stack/magnum$ magnum cluster-list +--------------------------------------+-----------------+------------+--------------+--------------------+ | uuid | name | node_count | master_count | status | +--------------------------------------+-----------------+------------+--------------+--------------------+ | 76a1aa9d-33bf-45d1-aefa-c6e9ccd2d7cf | k8s-cluster | 1 | 1 | CREATE_COMPLETE | | 34987730-2e82-4cb1-a90e-5df054e2e2ff | k8s-bug-cluster | 1 | 1 | CREATE_IN_PROGRESS | +--------------------------------------+-----------------+------------+--------------+--------------------+ swatson1@swatson1-linux:/opt/stack/magnum$ magnum cluster-list +--------------------------------------+-----------------+------------+--------------+-----------------+ | uuid | name | node_count | master_count | status | +--------------------------------------+-----------------+------------+--------------+-----------------+ | 76a1aa9d-33bf-45d1-aefa-c6e9ccd2d7cf | k8s-cluster | 1 | 1 | CREATE_COMPLETE | | 34987730-2e82-4cb1-a90e-5df054e2e2ff | k8s-bug-cluster | 1 | 1 | CREATE_FAILED | +--------------------------------------+-----------------+------------+--------------+-----------------+ 5) Delete cluster and see if exception is thrown: swatson1@swatson1-linux:/opt/stack/magnum$ magnum cluster-delete k8s-bug-cluster Request to delete cluster k8s-bug-cluster has been accepted. swatson1@swatson1-linux:/opt/stack/magnum$ magnum cluster-list +--------------------------------------+-------------+------------+--------------+-----------------+ | uuid | name | node_count | master_count | status | +--------------------------------------+-------------+------------+--------------+-----------------+ | 76a1aa9d-33bf-45d1-aefa-c6e9ccd2d7cf | k8s-cluster | 1 | 1 | CREATE_COMPLETE | +--------------------------------------+-------------+------------+--------------+-----------------+
This was on the latest from master, not from mitaka-1.
I could not reproduce by completing the following steps:
1) Stop c-api service via screen template- create --name k8s-bug-template \ atomic- latest \ network- id public \ nameserver 8.8.8.8 \ volume- size 5 \ template k8s-bug-template \ swatson1- linux:/ opt/stack/ magnum$ magnum cluster-list ------- ------- ------- ------- ----+-- ------- ------- -+----- ------- +------ ------- -+----- ------- ------- -+ ------- ------- ------- ------- ----+-- ------- ------- -+----- ------- +------ ------- -+----- ------- ------- -+ 33bf-45d1- aefa-c6e9ccd2d7 cf | k8s-cluster | 1 | 1 | CREATE_COMPLETE | 2e82-4cb1- a90e-5df054e2e2 ff | k8s-bug-cluster | 1 | 1 | CREATE_IN_PROGRESS | ------- ------- ------- ------- ----+-- ------- ------- -+----- ------- +------ ------- -+----- ------- ------- -+ swatson1- linux:/ opt/stack/ magnum$ magnum cluster-list ------- ------- ------- ------- ----+-- ------- ------- -+----- ------- +------ ------- -+----- ------- -----+ ------- ------- ------- ------- ----+-- ------- ------- -+----- ------- +------ ------- -+----- ------- -----+ 33bf-45d1- aefa-c6e9ccd2d7 cf | k8s-cluster | 1 | 1 | CREATE_COMPLETE | 2e82-4cb1- a90e-5df054e2e2 ff | k8s-bug-cluster | 1 | 1 | CREATE_FAILED | ------- ------- ------- ------- ----+-- ------- ------- -+----- ------- +------ ------- -+----- ------- -----+ swatson1- linux:/ opt/stack/ magnum$ magnum cluster-delete k8s-bug-cluster swatson1- linux:/ opt/stack/ magnum$ magnum cluster-list ------- ------- ------- ------- ----+-- ------- ----+-- ------- ---+--- ------- ----+-- ------- ------- -+ ------- ------- ------- ------- ----+-- ------- ----+-- ------- ---+--- ------- ----+-- ------- ------- -+ 33bf-45d1- aefa-c6e9ccd2d7 cf | k8s-cluster | 1 | 1 | CREATE_COMPLETE | ------- ------- ------- ------- ----+-- ------- ----+-- ------- ---+--- ------- ----+-- ------- ------- -+
2) Create a new K8s cluster-template:
magnum cluster-
--image-id fedora-
--keypair-id magnum_key \
--external-
--dns-
--flavor-id m1.small \
--docker-
--coe kubernetes
3) Create a new K8s cluster using previous template:
magnum cluster-create --name k8s-bug-cluster \
--cluster-
--node-count 1
4) Verify that cluster failed to create:
swatson1@
+------
| uuid | name | node_count | master_count | status |
+------
| 76a1aa9d-
| 34987730-
+------
swatson1@
+------
| uuid | name | node_count | master_count | status |
+------
| 76a1aa9d-
| 34987730-
+------
5) Delete cluster and see if exception is thrown:
swatson1@
Request to delete cluster k8s-bug-cluster has been accepted.
swatson1@
+------
| uuid | name | node_count | master_count | status |
+------
| 76a1aa9d-
+------
This was on the latest from master, not from mitaka-1.