Bug 1287635

Summary: Attached volume for Openstack instance could show up as swap or ephemeral disk
Product: Red Hat CloudForms Management Engine Reporter: Marius Cornea <mcornea>
Component: ProvidersAssignee: Ladislav Smola <lsmola>
Status: CLOSED ERRATA QA Contact: Ola Pavlenko <opavlenk>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.5.0CC: gblomqui, jfrey, jhardy, obarenbo
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: openstack
Fixed In Version: 5.6.0.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-29 15:15:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marius Cornea 2015-12-02 13:15:31 UTC
Description of problem:
When attaching a volume to an instance which has no swap or ephemeral disk assigned the volume shows up in the list of of disks as swap or ephemeral.

Version-Release number of selected component (if applicable):
5.5.0.12-rc2.20151124135609_653c0d4

How reproducible:
100% 

Steps to Reproduce:
1. Spawn an Openstack instance that has no swap or ephemeral disk 
2. Attach a volume to it
3. Check the instance list of disks 

Actual results:
The volume shows up in the list of swap or ephemeral disks.

Expected results:
The volume should be shown as a volume disk.

Comment 3 CFME Bot 2015-12-08 23:47:05 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/1b304f0722fde42fdf6ea2ff9e2afa2e32a6babe

commit 1b304f0722fde42fdf6ea2ff9e2afa2e32a6babe
Author:     Ladislav Smola <lsmola>
AuthorDate: Wed Dec 2 14:03:31 2015 +0100
Commit:     Ladislav Smola <lsmola>
CommitDate: Thu Dec 3 18:05:01 2015 +0100

    Do not store empty disks
    
    Disks are not really created and mounted. The mounpoint is used for
    comparing with attached volumes, so by storing empty disks we
    are showing the relation badly. The mountpoint is mandatory column
    so we cannot store disks without it.
    
    Fixes BZ:
    https://bugzilla.redhat.com/show_bug.cgi?id=1287635

 .../openstack/cloud_manager/refresh_parser.rb      |  6 +++---
 .../openstack/cloud_manager/refresh_spec_common.rb | 22 +++++++++++++++++-----
 2 files changed, 20 insertions(+), 8 deletions(-)

Comment 4 Ronnie Rasouli 2016-06-14 08:01:47 UTC
Tested with an instance that disk attached to it, it does not show swap or ephemeral assigned

Comment 6 errata-xmlrpc 2016-06-29 15:15:48 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1348