Using keypair name on clusters and templates breaks with multiple users

Bug #1670836 reported by Corey O'Brien
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
In Progress
Undecided
Anandprakash

Bug Description

When UserA creates a cluster template and/or a cluster, they specify a keypair.

However, that keypair does not exist for all users. When UserB tries to create a cluster with a cluster template, a keypair with a matching name likely won't exist resulting in an error.

Furthermore, if UserA creates a cluster and then UserB updates the node_count (and happens to have a matching keypair name), the result is destructive because the keypair data for UserB is different so the Nova server has to be recreated.

In order to have multiple users manage Magnum clusters, Magnum may need to control the public key data and make it available to any account acting on the cluster.

Anandprakash (atandale)
Changed in magnum:
assignee: nobody → Anandprakash (atandale)
status: New → In Progress
Revision history for this message
Anandprakash (atandale) wrote :

Hi, Corey, can you give an example of this scenario?
Can you please tell me steps to reproduce?

Revision history for this message
Corey O'Brien (coreypobrien) wrote :

Hi, I'm not working on Magnum anymore, so I can't give you exact commands, but there are two examples to work with in the original bug description. Here's my rough guess at the commands from docs.

Example:

1. As UserA, create a template with `--name SharedTemplate --keypair UserA`
1. As UserA, create a cluster with `--name SharedCluster --cluster-template SharedTemplate --node-count=1`
1. As UserB, resize the cluster with `SharedCluster replace node_count=3`

Since UserB has no access to the keypair named "UserA", Heat re-creates all of the servers.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.