Bug 1601242

Summary: Attach volume to an instance does not trigger a Target Refresh
Product: Red Hat CloudForms Management Engine Reporter: Ido Ovadia <iovadia>
Component: ProvidersAssignee: Sam Lucidi <slucidi>
Status: CLOSED CURRENTRELEASE QA Contact: Ido Ovadia <iovadia>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.10.0CC: cpelland, gblomqui, jfrey, jhardy, maufart, obarenbo, simaishi
Target Milestone: GA   
Target Release: 5.10.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: openstack:storage
Fixed In Version: 5.10.0.6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-11 13:58:50 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-15 13:07:05 UTC
Description of problem:
=======================
Attach volume to an instance 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 an instance
2. Create a volume
3. Browse: Storage --> Block Storage --> Volumes
4. Click on cloud volume 
5. Click Configuration --> Attach this Cloud Volume to an Instance 

Actual results:
===============
Target Refresh of storage manager Cinder does not triggers 
Therefor volume status update to in-use only after manual refresh    

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

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

-On Ceilometer:
ceilometer event-list -q "event_type=volume.attach.end"

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

-On Timelines:
Storage --> Block Storage --> Managers --> Timelines

Comment 2 Ido Ovadia 2018-08-21 11:54:46 UTC
Verified
========
5.10.0.11