We're updating the issue view to help you get more done. 

fix_snapshot_ssh_db.py doesn't respect passed in tenant name (overwrites matching key paths with secret ID for all tenants' deployments)

Description

If 2 tenants use the same key path on the filesystem, when the snapshot is restored, cloudify-manager/workflows/cloudify_system_workflows/snapshots/fix_snapshot_ssh_db.py will scan the database for deployments and replace all occurrences of the path (where they appear as agent keys or fabric env keys) with the new secret.

Unfortunately this means only the 1st tenant will be in a sensible state after the restore: the 2nd will refer to a non-existent secret.

This has similar symptoms to but it is not really related at all.

Status

Assignee

Unassigned

Reporter

Matt Wheeler

Severity

None

Bug Type

None

Target Version

None

Severity

None

Time tracking

27h

Fix versions

Affects versions

4.1
4.0.1