Implement Service Status
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.
The schema change (the start of this) is here: https://github.com/ManageIQ/manageiq-schema/pull/356
Not yet, I don't think it's finished.
https://github.com/ManageIQ/manageiq-schema/pull/374
https://github.com/ManageIQ/manageiq/pull/18803
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(+)
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(-)
https://github.com/ManageIQ/manageiq-ui-classic/pull/5736
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(-)
Created attachment 1588631 [details] state Provisioned
Created attachment 1588632 [details] state Provisioning
Created attachment 1588633 [details] State Error in Provisoning
Verified in Version 5.11.0.13.20190705140324_b74c283
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