Bug 1389312 - [Beta 1] When provisioning a VM Notification and Service>Request are not in Sync
Summary: [Beta 1] When provisioning a VM Notification and Service>Request are not in Sync
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Provisioning
Version: 5.7.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.8.0
Assignee: Tina Fitzgerald
QA Contact: Shveta
URL:
Whiteboard: notification:service
Depends On:
Blocks: 1397076
TreeView+ depends on / blocked
 
Reported: 2016-10-27 12:37 UTC by Loic Avenel
Modified: 2017-06-12 16:32 UTC (History)
5 users (show)

Fixed In Version: 5.8.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1397076 (view as bug list)
Environment:
Last Closed: 2017-06-12 16:32:17 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Screenshot (61.54 KB, image/png)
2016-10-27 12:38 UTC, Loic Avenel
no flags Details

Description Loic Avenel 2016-10-27 12:37:32 UTC
Description of problem: When provisioning VM, User received 2 Notifications:
- request was approved
- Virtual Machine [xxx] has been provisioned 
 but if you look at the Service>Request, the request is not completed yet, and state machine is still running and then we have "Provisioned Successfully" message. This is confusing... Final messages should be in sync

Version-Release number of selected component (if applicable): 5.7.0.7-beta1.20161025153249_9376fbd

Comment 2 Loic Avenel 2016-10-27 12:38:44 UTC
Created attachment 1214585 [details]
Screenshot

Comment 3 Greg McCullough 2016-11-02 15:14:20 UTC
This is currently working as designed as the notifications are being driven off of the events.  The vm_provisioned event is raised once the VM is created on the provider but before post-provisioning is complete.

Tina is looking into possible changes to notifications to improve the messaging.

Comment 4 Loic Avenel 2016-11-02 16:33:46 UTC
My concern here is: if something breaks in post-provision.. the provisioning with fails but the notification will give the impression it worked ok.

Comment 7 CFME Bot 2016-11-19 14:01:26 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/89ddb9ca803916a4d99d9562eaebc9a730735a92

commit 89ddb9ca803916a4d99d9562eaebc9a730735a92
Author:     Tina Fitzgerald <tfitzger>
AuthorDate: Thu Nov 3 15:37:38 2016 -0400
Commit:     Tina Fitzgerald <tfitzger>
CommitDate: Fri Nov 18 15:47:42 2016 -0500

    Renamed vm_provisioned and service_provisioned notification_types to
    prevent them from being used for events.
    Add notification in task_finished common method.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1389312

 .../StateMachineMethods.class/__methods__/task_finished.rb     |  2 ++
 db/fixtures/notification_types.yml                             |  4 ++--
 spec/automation/unit/method_validation/task_finished_spec.rb   | 10 ++++++++--
 spec/lib/miq_automation_engine/miq_ae_service_spec.rb          |  4 ++--
 spec/models/notification_spec.rb                               |  2 +-
 5 files changed, 15 insertions(+), 7 deletions(-)

Comment 9 Shveta 2017-04-12 23:41:47 UTC
Correct order is shown in 5.8.0.10-beta1.20170411212748_e47d319.
Request approved , VM provisioned, Service Provisioned.


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