Bug 1687524

Summary: State machine for Vm Retirement is using the old values
Product: Red Hat CloudForms Management Engine Reporter: Shveta <sshveta>
Component: UI - OPSAssignee: William Fitzgerald <wfitzger>
Status: CLOSED CURRENTRELEASE QA Contact: Niyaz Akhtar Ansari <nansari>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: 5.10.1CC: bmidwood, dmetzger, hkataria, kkulkarn, lavenel, mpovolny, obarenbo, tfitzger
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.11.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1695897 (view as bug list) Environment:
Last Closed: 2019-12-13 15:08:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1695897    

Description Shveta 2019-03-11 16:34:13 UTC
Description of problem:The state machine for Vm Retirement is using the old values:
/Infrastructure/VM/Retirement/Email/vm_retirement_emails?event=vm_retired
This needs to be changed to 
/System/Notification/Email/InfrastructureVmRetired?event=vm_retired



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

How reproducible:


Steps to Reproduce:
1. Create a service catalog and retire the service.
2. Edit the automate retirement emails to change the from Id.
3. Change does not take affect.

Actual results:


Expected results:


Additional info:

Comment 3 CFME Bot 2019-03-27 16:52:24 UTC
New commit detected on ManageIQ/manageiq-content/master:

https://github.com/ManageIQ/manageiq-content/commit/9c79f1eb30dae7f313bf6a534376db1088365849
commit 9c79f1eb30dae7f313bf6a534376db1088365849
Author:     william fitzgerald <wfitzger>
AuthorDate: Mon Mar 18 16:50:55 2019 -0400
Commit:     william fitzgerald <wfitzger>
CommitDate: Mon Mar 18 16:50:55 2019 -0400

    Fixed State machine for Vm Retirement using old values.

    Modified VMRetirement class schema values to use new email Instances For Infra and Cloud.
    Modified Email instances CloudVmRetired and InfrastructureVmRetired to use

    ${/#vm_retire_task.miq_request.requester.email} ||  ${/Configuration/Email/Default#default_recipient}

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

 content/automate/ManageIQ/Cloud/VM/Retirement/StateMachines/VMRetirement.class/__class__.yaml | 2 +-
 content/automate/ManageIQ/Infrastructure/VM/Retirement/StateMachines/VMRetirement.class/__class__.yaml | 2 +-
 content/automate/ManageIQ/System/Notification/Email.class/cloudvmretired.yaml | 3 +-
 content/automate/ManageIQ/System/Notification/Email.class/infrastructurevmretired.yaml | 3 +-
 4 files changed, 4 insertions(+), 6 deletions(-)

Comment 5 Niyaz Akhtar Ansari 2019-05-15 10:41:41 UTC
Verified in Version 5.11.0.4.20190514210444_0c91ee1