Uploaded image for project: 'Cloudify'
  1. CFY-6913

Restore from <4 snapshot puts plugins in wrong tenant

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.1
    • Fix Version/s: 4.1

      Description

      When restoring a snapshot created under 3.4, the operation reports success, but the plugin belonging to a deployment is copied to default_tenant

      [centos@cloudify ~]$ ls /opt/mgmtworker/env/plugins/default_tenant/
      e7bdd281-6133-42b5-8c7b-8e9216452640-openstack
      [centos@cloudify ~]$ cfy deployments list -t restore_tenant
      Explicitly using tenant `restore_tenant`
      Listing all deployments...
      
      Deployments:
      +--------------------------------------+--------------------------------------+--------------------------+--------------------------+------------+----------------+------------+
      |                  id                  |             blueprint_id             |        created_at        |        updated_at        | permission |  tenant_name   | created_by |
      +--------------------------------------+--------------------------------------+--------------------------+--------------------------+------------+----------------+------------+
      | e7bdd281-6133-42b5-8c7b-8e9216452640 | e7bdd281-6133-42b5-8c7b-8e9216452640 | 2017-05-20 01:09:44.359  | 2017-05-20 01:09:44.359  |    None    | restore_tenant |   admin    |
      +--------------------------------------+--------------------------------------+--------------------------+--------------------------+------------+----------------+------------+
      
      [centos@cloudify ~]$ cfy deployments list
      Listing all deployments...
      
      Deployments:
      +----+--------------+------------+------------+------------+-------------+------------+
      | id | blueprint_id | created_at | updated_at | permission | tenant_name | created_by |
      +----+--------------+------------+------------+------------+-------------+------------+
      +----+--------------+------------+------------+------------+-------------+------------+
      

      This causes further operations on the deployment to fail, e.g.:

      RuntimeError: Workflow failed: Task failed 'nova_plugin.server.stop' -> No module named nova_plugin.server (No module named nova_plugin.server)
      

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                yariv Yariv Hamamy
                Reporter:
                funkyhat Matt Wheeler
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: