-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include the request_type when creating a retirement request #17779
Conversation
3ce32d9
to
fd81fa9
Compare
fd81fa9
to
46dc853
Compare
Checked commit bdunne@46dc853 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@d-m-u @tinaafitz If retirement is being done as a request, does Vm even respond to I'm asking because I'm wondering if we should remove https://github.com/ManageIQ/manageiq/blob/master/app/models/vm/operations/lifecycle.rb#L21-L25 or is it still valid to call retire directly on a Vm or Service object? |
Oh I see, we added a method to the mixin rather than replacing the existing retire method. So it sounds like this broke when retirement went from a direct method on the Vm object to a request. Now instead of pushing the retire action over the API for central admin on the resource this PR is giving us the information we need for when we relay the create_request method. |
Correct, now that it's hitting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me. 👍
When was the retirement-as-a-request added? Does this need to be backported? |
I don't think it made it back to g-branch. @tinaafitz @d-m-u Can you confirm? |
@bdunne That is correct. The new retirement as a request changes were not back ported to the g-branch. |
Depends on ManageIQ/manageiq-api#439
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1604016