CLoudForms 4.7 retirement issues

Greetings,

I’m trying to create custom button that will retire the service. I’m using the following code for that

$evm.root['service'].retire_now

Retirement tasks stars fine, but then just fails with the error below

[----] E, [2019-09-30T17:03:06.514415 #15974:3d6c4c] ERROR -- : <AEMethod start_retirement> Service retire task not found
[----] E, [2019-09-30T17:03:06.515153 #15974:3d6c4c] ERROR -- : <AEMethod start_retirement> The old style retirement is incompatible with the new retirement state machine.
[----] I, [2019-09-30T17:03:06.550244 #15974:358f54]  INFO -- : <AEMethod [/ManageIQ/Service/Retirement/StateMachines/Methods/start_retirement]> Ending
[----] I, [2019-09-30T17:03:06.551093 #15974:358f54]  INFO -- : Aborting instantiation because [Method exited with rc=MIQ_ABORT]
[----] E, [2019-09-30T17:03:06.551958 #15974:358f54] ERROR -- : State=<StartRetirement> running  raised exception: <Method exited with rc=MIQ_ABORT>

Can anyone advise me how to start service retirement from automation datastore?

Version 5.10.8.0.20190729222758_e725e22

Hi Kenny,

Retirement was changed recently to include a request and now the retire_now method doesn’t work. The following BZs address exposing the new service retirement to Automate.

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

Looks like should be in the next release CFME 5.10.11.

-Jeff