Bug 1513413 - Set host maintenance flag during host refresh
Summary: Set host maintenance flag during host refresh
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.9.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: GA
: 5.10.0
Assignee: Moti Asayag
QA Contact: Angelina Vasileva
URL:
Whiteboard:
Depends On:
Blocks: 1514153
TreeView+ depends on / blocked
 
Reported: 2017-11-15 11:24 UTC by Moti Asayag
Modified: 2019-07-31 11:28 UTC (History)
4 users (show)

Fixed In Version: 5.10.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1514153 (view as bug list)
Environment:
Last Closed: 2018-06-21 21:15:43 UTC
Category: Bug
Cloudforms Team: RHEVM
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ManageIQ manageiq-providers-ovirt issues 141 0 None None None 2017-11-15 11:27:41 UTC

Description Moti Asayag 2017-11-15 11:24:49 UTC
Description of problem:
The host's maintenance flag is now shown in the host's tab of the provision dialog. 

New attribute was added as part of Bug 1506268 and should be implemented for RHV provider as well.

Version-Release number of selected component (if applicable):
master

How reproducible:
always.

Steps to Reproduce:
1. Have a host in maintenance state.
2. Perform refresh (full/target)
3. Open VM provision dialog, go to Environment tab and watch the list of hosts.
4. Check maintenance column is set according to the host state.

Actual results:
No data for RHV on maintenance column.

Expected results:
Maintenance column should reflect the host's maintenance state.

Additional info:
Github Issue:
https://github.com/ManageIQ/manageiq-providers-ovirt/issues/141

The PR in which the new host maintenance attribute was introduced:
https://github.com/ManageIQ/manageiq/pull/16464

Comment 3 CFME Bot 2017-11-16 08:18:53 UTC
New commit detected on ManageIQ/manageiq-providers-ovirt/master:
https://github.com/ManageIQ/manageiq-providers-ovirt/commit/ab73cb1394d385ef75aced6b9a5303c1d6158403

commit ab73cb1394d385ef75aced6b9a5303c1d6158403
Author:     Moti Asayag <masayag>
AuthorDate: Thu Nov 16 00:26:49 2017 +0200
Commit:     Moti Asayag <masayag>
CommitDate: Thu Nov 16 08:42:05 2017 +0200

    Save host 'maintenance' value
    
    The host 'maintenance' attribute was added to provision vm dialog
    by https://github.com/ManageIQ/manageiq/pull/16464
    
    RHV should store this information which is already available during host
    refresh.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1513413

 .../manageiq/providers/redhat/infra_manager/refresh/parse/parser.rb    | 1 +
 .../redhat/infra_manager/refresh/parse/strategies/host_inventory.rb    | 1 +
 app/models/manageiq/providers/redhat/inventory/parser/infra_manager.rb | 1 +
 .../providers/redhat/inventory_collection_default/infra_manager.rb     | 3 ++-
 .../providers/redhat/infra_manager/refresh/refresher_3_1_spec.rb       | 1 +
 .../redhat/infra_manager/refresh/refresher_4_async_graph_spec.rb       | 1 +
 .../providers/redhat/infra_manager/refresh/refresher_4_async_spec.rb   | 1 +
 7 files changed, 8 insertions(+), 1 deletion(-)


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