The status metadata of resouce in checkpoint has not been set to available in volume plugin

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

Bug Description

The status of resouce metadata in checkpoint have not been set to available in volume plugin.
After the volume being protected successfully, the status of resouce metadata in checkpoint has not changed to 'available '.

root@SZX1000288074:/opt/checkpoints/486d93cd-7277-4c00-a3bf-f95ceb88165c# cat index.json
{"status": "available", "provider_id": "cf56bd3e-97a7-4078-b6d5-f36246333fd9", "resource_graph": "[{\"0x1\": [\"OS::Nova::Server\", \"0631680a-03e6-4fbc-89d3-29e4892b4614\", \"serverbootfromvol\"], \"0x0\": [\"OS::Cinder::Volume\", \"cb8c4d65-24aa-4136-bc32-5799c7b60344\", \"bootablevolume\"]}, [[\"0x1\", [\"0x0\"]]]]", "timestamp": 1491925723, "created_at": "2017-04-11", "owner_id": "2fe857ad-af6c-4c70-a7d7-335e313afa5a", "id": "486d93cd-7277-4c00-a3bf-f95ceb88165c", "version": "0.9", "project_id": "b8583edc81a8426a8615153a7b19bf21", "protection_plan": {"provider_id": "cf56bd3e-97a7-4078-b6d5-f36246333fd9", "id": "35ecc1cc-c8a4-4ec6-ac22-29dbbf86566c", "resources": [{"type": "OS::Nova::Server", "id": "0631680a-03e6-4fbc-89d3-29e4892b4614", "name": "serverbootfromvol"}], "name": "Test server boot form volume."}, "extra_info": null}root@SZX1000288074:/opt/checkpoints/486d93cd-7277-4c00-a3bf-f95ceb88165c#
root@SZX1000288074:/opt/checkpoints/486d93cd-7277-4c00-a3bf-f95ceb88165c#
root@SZX1000288074:/opt/checkpoints/486d93cd-7277-4c00-a3bf-f95ceb88165c#
root@SZX1000288074:/opt/checkpoints/486d93cd-7277-4c00-a3bf-f95ceb88165c# ll
total 16
drwxr-xr-x 3 root root 4096 Apr 20 16:31 ./
drwxr-xr-x 14 root root 4096 Apr 20 16:31 ../
-rw-r--r-- 1 root root 843 Apr 20 16:31 index.json
drwxr-xr-x 4 root root 4096 Apr 20 16:31 resource-data/
root@SZX1000288074:/opt/checkpoints/486d93cd-7277-4c00-a3bf-f95ceb88165c# cd resource-data/
root@SZX1000288074:/opt/checkpoints/486d93cd-7277-4c00-a3bf-f95ceb88165c/resource-data# ls
0631680a-03e6-4fbc-89d3-29e4892b4614 cb8c4d65-24aa-4136-bc32-5799c7b60344
root@SZX1000288074:/opt/checkpoints/486d93cd-7277-4c00-a3bf-f95ceb88165c/resource-data# cd cb8c4d65-24aa-4136-bc32-5799c7b60344/
root@SZX1000288074:/opt/checkpoints/486d93cd-7277-4c00-a3bf-f95ceb88165c/resource-data/cb8c4d65-24aa-4136-bc32-5799c7b60344#
root@SZX1000288074:/opt/checkpoints/486d93cd-7277-4c00-a3bf-f95ceb88165c/resource-data/cb8c4d65-24aa-4136-bc32-5799c7b60344# cat metadata
{"backup_id": "ddec0d60-ad44-4714-b34e-ce7ca60dfdd7", "volume_id": "cb8c4d65-24aa-4136-bc32-5799c7b60344"}root@SZX1000288074:/opt/checkpoints/486d93cd-7277-4c00-a3bf-f95ceb88165c/resource-data/cb8c4d65-24aa-4136-bc32-5799c7b60344#
root@SZX1000288074:/opt/checkpoints/486d93cd-7277-4c00-a3bf-f95ceb88165c/resource-data/cb8c4d65-24aa-4136-bc32-5799c7b60344#
root@SZX1000288074:/opt/checkpoints/486d93cd-7277-4c00-a3bf-f95ceb88165c/resource-data/cb8c4d65-24aa-4136-bc32-5799c7b60344#
root@SZX1000288074:/opt/checkpoints/486d93cd-7277-4c00-a3bf-f95ceb88165c/resource-data/cb8c4d65-24aa-4136-bc32-5799c7b60344#
root@SZX1000288074:/opt/checkpoints/486d93cd-7277-4c00-a3bf-f95ceb88165c/resource-data/cb8c4d65-24aa-4136-bc32-5799c7b60344# ll
total 16
drwxr-xr-x 2 root root 4096 Apr 20 16:31 ./
drwxr-xr-x 4 root root 4096 Apr 20 16:31 ../
-rw-r--r-- 1 root root 106 Apr 20 16:31 metadata
-rw-r--r-- 1 root root 10 Apr 20 16:31 status
root@SZX1000288074:/opt/checkpoints/486d93cd-7277-4c00-a3bf-f95ceb88165c/resource-data/cb8c4d65-24aa-4136-bc32-5799c7b60344# cat status
protectingroot@SZX1000288074:/opt/checkpoints/486d93cd-7277-4c00-a3bf-f95ceb88165c/resource-data/cb8c4d65-24aa-4136-bc32-5799c7b60344#
root@SZX1000288074:/opt/checkpoints/486d93cd-7277-4c00-a3bf-f95ceb88165c/resource-data/cb8c4d65-24aa-4136-bc32-5799c7b60344#
root@SZX1000288074:/opt/checkpoints/486d93cd-7277-4c00-a3bf-f95ceb88165c/resource-data/cb8c4d65-24aa-4136-bc32-5799c7b60344#
root@SZX1000288074:/opt/checkpoints/486d93cd-7277-4c00-a3bf-f95ceb88165c/resource-data/cb8c4d65-24aa-4136-bc32-5799c7b60344#

chenying (ying-chen)
summary: - The status of resouce metadata in checkpoint has not been set to
+ The status metadata of resouce in checkpoint has not been set to
available in volume plugin
chenying (ying-chen)
Changed in karbor:
status: New → Invalid
status: Invalid → New
assignee: nobody → chenying (ying-chen)
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/460116

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/460116
Committed: https://git.openstack.org/cgit/openstack/karbor/commit/?id=8b4184945e413a652f07bf27048de96a3e66450c
Submitter: Jenkins
Branch: master

commit 8b4184945e413a652f07bf27048de96a3e66450c
Author: chenying <email address hidden>
Date: Wed Apr 26 21:53:55 2017 +0800

    Fix updating the status metadata of checkpoint in volume plugin

    After the volume being protected successfully, the status metadata
    of resouce in checkpoint has not changed to 'available '.

    Change-Id: I91ec6d58ec20818efe526a12bc5d4120d431f39a
    Closes-Bug: #1686399

Changed in karbor:
status: In Progress → Fix Released
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.