Converting SSH keys to secrets in snapshot create/restore breaks on Openstack

Description

The setup is:
2 managers - M1 and M2

The scenario is:
1. Create a deployment (e.g. openstack hello world) on M1, that has an SSH key path as one of the inputs.
2. Create a snapshot.
3. Upload the snapshot to M2 and restore.
4. Try to install the deployment.

You will get something like:

1 2 2018-01-30 12:33:48.152 CFY <dep> [keypair_5yiwv1.create] Task failed 'nova_plugin.keypair.create' -> Failed to use external keypair (node keypair): the public key pavel is available on Openstack, but the private key could not be found at -----BEGIN RSA PRIVATE KEY----- ...

This is due to the fact that we're converting paths to secrets here, and the OS plugin doesn't know how to handle this when creating keypairs (here).

Status

Assignee

Unassigned

Reporter

Pavel Brodsky

Severity

None

Bug Type

legacy bug

Target Version

4.4

Severity

None

Affects versions

4.3
4.2