Comment 6 for bug 1451118

Revision history for this message
Stephen Watson (stephen-watson) wrote :

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.