Resource status doesn't update after restore was finished

Bug #1710540 reported by luqitao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Karbor
Fix Released
Undecided
luqitao

Bug Description

Steps to reproduce:
1.Create a plan use 'OS Infra Provider with volume snapshot plugin':
karbor plan-create 'OS volumes protection plan.' 90d5bfea-a259-41e6-80c6-dcfcfcd9d827 'a7da2a52-7e66-437c-9394-e391150b6dd0'='OS::Cinder::Volume'='volume2'
2.Create a checkpoint use the plan:
karbor checkpoint-create 90d5bfea-a259-41e6-80c6-dcfcfcd9d827 d0e69bdb-e213-45fa-832c-7933bd21ee48
3.After the volume snapshot create successfully, restore from it:
karbor restore-create 90d5bfea-a259-41e6-80c6-dcfcfcd9d827 5f9e0ab3-6c23-489b-8038-0e4d2ca87bcc
4.Query the result, the resources_status is always be 'creating' even if restore is successfully.
# karbor restore-show 2bfff44f-27ca-43d4-a213-eaab115da229
+------------------+---------------------------------------------------------------------------+
| Property | Value |
+------------------+---------------------------------------------------------------------------+
| checkpoint_id | eb393c9f-9c0d-48fc-a14b-57b097ad3672 |
| id | 2bfff44f-27ca-43d4-a213-eaab115da229 |
| parameters | { |
| | "OS::Cinder::Volume": { |
| | "restore_description": null, |
| | "restore_name": null |
| | } |
| | } |
| project_id | 65b4ae220623472194a162d519eb2080 |
| provider_id | 90d5bfea-a259-41e6-80c6-dcfcfcd9d827 |
| resources_reason | {} |
| resources_status | {u'OS::Cinder::Volume#981fb659-25de-49b3-84ad-4b763aa211f1': u'creating'} |
| restore_target | None |
| status | success |
+------------------+---------------------------------------------------------------------------+
The resources_status should be the same as the volume's status.

luqitao (qtlu)
Changed in karbor:
assignee: nobody → luqitao (qtlu)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to karbor (master)

Fix proposed to branch: master
Review: https://review.openstack.org/493419

Changed in karbor:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to karbor (master)

Reviewed: https://review.openstack.org/493419
Committed: https://git.openstack.org/cgit/openstack/karbor/commit/?id=4df11604cba48fb75c376369aecfaefc58fdb82b
Submitter: Jenkins
Branch: master

commit 4df11604cba48fb75c376369aecfaefc58fdb82b
Author: luqitao <email address hidden>
Date: Mon Aug 14 12:30:04 2017 +0800

    Fixes the wrong resources status after restore was finished

    Change-Id: I6e85d4c6c7a1dfa81d086f5b316f9ac9b8d0f83c
    Closes-Bug: #1710540

Changed in karbor:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/karbor 0.5.0

This issue was fixed in the openstack/karbor 0.5.0 release.

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.