Bug 1677571 - [RFE] Implement Service State
Summary: [RFE] Implement Service State
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.11.0
Assignee: Harpreet Kataria
QA Contact: Niyaz Akhtar Ansari
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-15 09:27 UTC by Loic Avenel
Modified: 2019-12-12 13:35 UTC (History)
9 users (show)

Fixed In Version: 5.11.0.11
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-12-12 13:35:26 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
state Provisioned (135.01 KB, image/png)
2019-07-09 07:36 UTC, Niyaz Akhtar Ansari
no flags Details
state Provisioning (135.75 KB, image/png)
2019-07-09 07:37 UTC, Niyaz Akhtar Ansari
no flags Details
State Error in Provisoning (133.70 KB, image/png)
2019-07-09 07:38 UTC, Niyaz Akhtar Ansari
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:4199 0 None None None 2019-12-12 13:35:51 UTC

Description Loic Avenel 2019-02-15 09:27:22 UTC
Implement Service Status

Comment 2 Tina Fitzgerald 2019-03-25 15:54:46 UTC
The Service object is created before the state machine is processed, so there's no way to tell if it was provisioned successfully without looking at the request.
The UI can use this new state to determine if the "retire now" button should be enabled because it should be disabled if the service is still provisioning.

Comment 3 drew uhlmann 2019-03-25 16:07:23 UTC
The schema change (the start of this) is here: https://github.com/ManageIQ/manageiq-schema/pull/356

Comment 5 drew uhlmann 2019-04-02 12:05:29 UTC
Not yet, I don't think it's finished.

Comment 9 CFME Bot 2019-06-10 18:38:56 UTC
New commit detected on ManageIQ/manageiq-schema/master:

https://github.com/ManageIQ/manageiq-schema/commit/be037cc24003a22a448c40cf8ad4abe6ca92c4b4
commit be037cc24003a22a448c40cf8ad4abe6ca92c4b4
Author:     Lucy Fu <lufu>
AuthorDate: Tue May 21 13:31:43 2019 -0400
Commit:     Lucy Fu <lufu>
CommitDate: Tue May 21 13:31:43 2019 -0400

    Rename service state to lifecycle_state.

    https://bugzilla.redhat.com/show_bug.cgi?id=1677571

 db/migrate/20190521172822_rename_service_state.rb | 5 +
 1 file changed, 5 insertions(+)

Comment 10 CFME Bot 2019-06-21 14:11:05 UTC
New commit detected on ManageIQ/manageiq/master:

https://github.com/ManageIQ/manageiq/commit/da1c4363fe7c8a27225a79cc0392f439a1023952
commit da1c4363fe7c8a27225a79cc0392f439a1023952
Author:     Lucy Fu <lufu>
AuthorDate: Thu May 23 13:57:02 2019 -0400
Commit:     Lucy Fu <lufu>
CommitDate: Thu May 23 13:57:02 2019 -0400

    Update a service's lifecycle_state.

    https://bugzilla.redhat.com/show_bug.cgi?id=1677571

 app/models/mixins/lifecycle_mixin.rb | 25 +
 app/models/service.rb | 2 +
 app/models/service_template_provision_task.rb | 6 +-
 spec/models/service_template_provision_request_spec.rb | 1 +
 spec/models/service_template_provision_task_spec.rb | 23 +
 5 files changed, 56 insertions(+), 1 deletion(-)

Comment 13 CFME Bot 2019-06-24 12:27:21 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/a3ee0a6018712fbe5c4c73a9bf14e1660da38aca
commit a3ee0a6018712fbe5c4c73a9bf14e1660da38aca
Author:     Harpreet Kataria <hkataria>
AuthorDate: Fri Jun 21 11:15:11 2019 -0400
Commit:     Harpreet Kataria <hkataria>
CommitDate: Fri Jun 21 11:15:11 2019 -0400

    Display Lifecycle State on Service details screen

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1677571

 app/helpers/service_helper/textual_summary.rb | 6 +-
 spec/helpers/service_helper/textual_summary_spec.rb | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

Comment 15 Niyaz Akhtar Ansari 2019-07-09 07:36:42 UTC
Created attachment 1588631 [details]
state Provisioned

Comment 16 Niyaz Akhtar Ansari 2019-07-09 07:37:44 UTC
Created attachment 1588632 [details]
state Provisioning

Comment 17 Niyaz Akhtar Ansari 2019-07-09 07:38:34 UTC
Created attachment 1588633 [details]
State Error in Provisoning

Comment 18 Niyaz Akhtar Ansari 2019-07-09 07:45:14 UTC
Verified in Version 5.11.0.13.20190705140324_b74c283

Comment 20 errata-xmlrpc 2019-12-12 13:35:26 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-2019:4199


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