Bug 1287635 - Attached volume for Openstack instance could show up as swap or ephemeral disk
Summary: Attached volume for Openstack instance could show up as swap or ephemeral disk
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.5.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.6.0
Assignee: Ladislav Smola
QA Contact: Ola Pavlenko
URL:
Whiteboard: openstack
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-02 13:15 UTC by Marius Cornea
Modified: 2017-08-30 03:48 UTC (History)
4 users (show)

Fixed In Version: 5.6.0.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-29 15:15:48 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 0 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 18:50:04 UTC

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


Note You need to log in before you can comment on or make changes to this bug.