Bug 1601530

Summary: Delete a volume backup does not trigger a Target Refresh
Product: Red Hat CloudForms Management Engine Reporter: Ido Ovadia <iovadia>
Component: ProvidersAssignee: Sam Lucidi <slucidi>
Status: CLOSED CANTFIX QA Contact: Ido Ovadia <iovadia>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.10.0CC: cpelland, gblomqui, jfrey, jhardy, maufart, obarenbo
Target Milestone: GA   
Target Release: 5.10.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: openstack:storage
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-23 18:00:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Openstack Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1532796    

Description Ido Ovadia 2018-07-16 14:49:54 UTC
Description of problem:
=======================
Delete a volume backup does not trigger a Target Refresh


Version-Release number of selected component:
=============================================
CFME 5.10.0.4

How reproducible:
=================
100%

Steps to Reproduce:
===================
1. Create a volume
2. Create a backup from the volume
2. Browse: Storage --> Block Storage --> Volume Backups
3. Select a volume backup
4. Click Configuration --> Delete selected Backups

Actual results:
===============
Target Refresh of storage manager Cinder does not triggers, 
Therefor volume deleted from the list only after manual refresh    

Expected results:
=================
Target Refresh of storage manager Cinder triggers and volume backup should delete about 1-2 Min.  

Additional info:
================
I verified the event does exists by the following ways:

-On Ceilometer:
ceilometer event-list -q "event_type=backup.create.end"

-On evm.log
INFO -- : MIQ(ManageIQ::Providers::Openstack::StorageManager::CinderManager::EventCatcher::Runner#queue_event) EMS [10.0.0.101] as [admin] Caught event [backup.delete.end]

Comment 1 Sam Lucidi 2018-07-23 18:00:42 UTC
Backup events don't seem to contain the ID of the backup object that was created. Without that ID, targeted refresh cannot work for backups.

Comment 2 Sam Lucidi 2018-07-23 18:01:59 UTC
"created" in the above comment https://bugzilla.redhat.com/show_bug.cgi?id=1601530#c1 should read as "deleted"