-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
So I've seen errors creating VM's when initally the vm's couldn't be scheduled due to a full storage pool.
When that issue was resolved the vm's couldn't be scheduled due to the pre-create check failing to get the ssh keys
Fix should be in this function:
docker-machine-driver-nerdalize/nerdalize.go
Lines 656 to 671 in d3c0d3f
| func (d *Driver) checkKeyPair() error { | |
| cs := d.getClient() | |
| log.Infof("Checking if SSH key pair (%v) already exists...", d.SSHKeyPair) | |
| p := cs.SSH.NewListSSHKeyPairsParams() | |
| p.SetName(d.SSHKeyPair) | |
| res, err := cs.SSH.ListSSHKeyPairs(p) | |
| if err != nil { | |
| return err | |
| } | |
| if res.Count > 0 { | |
| return fmt.Errorf("SSH key pair (%v) already exists.", d.SSHKeyPair) | |
| } | |
| return nil | |
| } |
Metadata
Metadata
Assignees
Labels
No labels
