Bug 1827787 - Unable to do future retirement of a VM via REST
Summary: Unable to do future retirement of a VM via REST
Keywords:
Status: POST
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: API
Version: 5.11.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: GA
: 5.11.z
Assignee: Gregg Tanzillo
QA Contact: Sudhir Mallamprabhakara
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-24 19:18 UTC by Parthvi Vala
Modified: 2023-06-30 18:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Parthvi Vala 2020-04-24 19:18:12 UTC
Description of problem:


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

How reproducible:
Always

Steps to Reproduce:
1. Provision a VM.
2. Send a request to retire the VM for future

i. /api/vms/:vm_id
   {'action': 'request_retire', 'resource': {'date': '2020/04/29', 'warn': '4'}}
ii. /api/vms
   {'action': 'request_retire', 'resources': [{'date': '2020/04/29', 'warn': '4', 'href': 'https://<hostname>/api/vms/:vm_id'}]}


Actual results:
Retires the VM immediately.

Expected results:
Should not retire the VM immediately.

Additional info:
This is broken on 510 as well.

Comment 3 CFME Bot 2020-05-01 21:06:14 UTC
New commit detected on ManageIQ/manageiq-api/master:

https://github.com/ManageIQ/manageiq-api/commit/d0ba780ba03b7a2f07288521f1d6fc1d45330eb3
commit d0ba780ba03b7a2f07288521f1d6fc1d45330eb3
Author:     d-m-u <drewuhlmann>
AuthorDate: Fri Apr 24 20:46:00 2020 +0000
Commit:     d-m-u <drewuhlmann>
CommitDate: Fri Apr 24 20:46:00 2020 +0000

    add functionality to retire vms in future

    fixes https://bugzilla.redhat.com/show_bug.cgi?id=1827787

 app/controllers/api/vms_controller.rb | 26 +-
 spec/requests/vms_spec.rb | 8 +
 2 files changed, 28 insertions(+), 6 deletions(-)

Comment 4 CFME Bot 2020-05-01 23:51:20 UTC
New commit detected on ManageIQ/manageiq-api/jansa:

https://github.com/ManageIQ/manageiq-api/commit/a3fc02aeaa7e76b943b1fcad62b86a1573df500d
commit a3fc02aeaa7e76b943b1fcad62b86a1573df500d
Author:     Brandon Dunne <bdunne>
AuthorDate: Fri May  1 21:01:29 2020 +0000
Commit:     Brandon Dunne <bdunne>
CommitDate: Fri May  1 21:01:29 2020 +0000

    Merge pull request #813 from d-m-u/vm_future_retirement

    add functionality to retire vms in future

    (cherry picked from commit 414f9aa3970857d84712c72cfcb4fd9b96c7127b)

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

 app/controllers/api/vms_controller.rb | 26 +-
 spec/requests/vms_spec.rb | 8 +
 2 files changed, 28 insertions(+), 6 deletions(-)

Comment 5 Parthvi Vala 2020-09-14 11:04:01 UTC
This bug has been in POST for a long time and no target release has been set. Can I get an update on when the fix will be released?

Comment 11 dmetzger 2022-07-12 13:59:35 UTC
will not be fixed resolved in Red Hat CloudForms


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