Bug 1223825

Summary: [RFE] Openstack power control - add support for "pause" and "shutdown" power operations
Product: Red Hat CloudForms Management Engine Reporter: Jan Krocil <jkrocil>
Component: ProvidersAssignee: Ladislav Smola <lsmola>
Status: CLOSED ERRATA QA Contact: Jiri Stefanisin <jistefan>
Severity: high Docs Contact:
Priority: medium    
Version: 5.4.0CC: dclarizi, gblomqui, hkataria, jfrey, jhardy, jprause, mfeifer, mpovolny, obarenbo, pakotvan
Target Milestone: GAKeywords: FutureFeature
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: openstack
Fixed In Version: 5.6.0.0 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 1291812 (view as bug list) Environment:
Last Closed: 2016-06-29 14:55:56 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:
Bug Depends On: 1278075    
Bug Blocks: 1291812    

Comment 3 CFME Bot 2015-08-04 13:42:21 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/e70fcbed638afffacdecab77e45633c936611709

commit e70fcbed638afffacdecab77e45633c936611709
Author:     Ladislav Smola <lsmola>
AuthorDate: Fri Jul 31 17:31:18 2015 +0200
Commit:     Ladislav Smola <lsmola>
CommitDate: Tue Aug 4 09:57:22 2015 +0200

    OpenStack missing action pause and stop
    
    OpenStack missing action pause and stop
    
    BZ
    https://bugzilla.redhat.com/show_bug.cgi?id=1223825

 app/controllers/api_controller/vms.rb              |  21 ++++++++
 .../application_controller/ci_processing.rb        |   2 +
 app/controllers/application_controller/explorer.rb |   6 +--
 app/models/ems_openstack.rb                        |   6 +++
 app/models/vm_openstack/operations/power.rb        |  16 ++++---
 config/api.yml                                     |   4 ++
 db/fixtures/miq_actions.csv                        |   1 +
 db/fixtures/miq_product_features.yml               |  16 ++++---
 db/fixtures/miq_user_roles.yml                     |  11 +++--
 product/toolbars/x_vm_cloud_center_tb.yaml         |   2 +-
 public/images/toolbars/power_pause.png             | Bin 0 -> 1186 bytes
 spec/models/miq_product_feature_spec.rb            |   6 +--
 spec/models/vm_openstack_spec.rb                   |   2 +-
 spec/requests/api/vms_spec.rb                      |  53 +++++++++++++++++++++
 14 files changed, 122 insertions(+), 24 deletions(-)
 create mode 100644 public/images/toolbars/power_pause.png

Comment 6 Ladislav Smola 2015-10-13 13:43:28 UTC
@Dan, can anybody from UI look at this, seems like something has changed in toolbars, there is some new condition I don't see and it is hiding the new buttons.

It also applies to this BZ https://bugzilla.redhat.com/show_bug.cgi?id=1202884

Comment 9 CFME Bot 2015-11-24 18:15:30 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/497f53491bc0529d5eb52b300b404405f80e052c

commit 497f53491bc0529d5eb52b300b404405f80e052c
Author:     Ladislav Smola <lsmola>
AuthorDate: Thu Oct 29 13:33:51 2015 +0100
Commit:     Ladislav Smola <lsmola>
CommitDate: Tue Nov 24 09:53:24 2015 +0100

    OpenStack bugfix actions pause, shelve and shelve offload
    
    The actions were broken due to refactoring.
    
    Fixes already merged fuctionality for BZs
    https://bugzilla.redhat.com/show_bug.cgi?id=1202884
    https://bugzilla.redhat.com/show_bug.cgi?id=1223825

 app/models/vm_or_template/operations/power.rb |  4 ++--
 db/fixtures/miq_event_definitions.csv         |  6 ++++++
 db/fixtures/miq_product_features.yml          | 12 ++++++++++++
 spec/models/miq_product_feature_spec.rb       |  2 +-
 4 files changed, 21 insertions(+), 3 deletions(-)

Comment 11 CFME Bot 2016-01-12 02:27:12 UTC
New commit detected on cfme/5.5.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=a89cceb1b00931cb52f11496d6c7dae1de5a4ad0

commit a89cceb1b00931cb52f11496d6c7dae1de5a4ad0
Author:     Ladislav Smola <lsmola>
AuthorDate: Thu Oct 29 13:33:51 2015 +0100
Commit:     Ladislav Smola <lsmola>
CommitDate: Mon Jan 11 15:26:21 2016 +0100

    OpenStack bugfix actions pause, shelve and shelve offload
    
    The actions were broken due to refactoring.
    
    Fixes already merged fuctionality for BZs
    https://bugzilla.redhat.com/show_bug.cgi?id=1202884
    https://bugzilla.redhat.com/show_bug.cgi?id=1223825
    
    Conflicts:
    	spec/models/miq_product_feature_spec.rb

 app/models/vm_or_template/operations/power.rb |  4 ++--
 db/fixtures/miq_event_definitions.csv         |  6 ++++++
 db/fixtures/miq_product_features.yml          | 12 ++++++++++++
 spec/models/miq_product_feature_spec.rb       |  2 +-
 4 files changed, 21 insertions(+), 3 deletions(-)

Comment 14 errata-xmlrpc 2016-06-29 14:55:56 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