Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1490639 - Automate Script Fails in Service UI with VM Record Not Found
Automate Script Fails in Service UI with VM Record Not Found
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - Service (Show other bugs)
5.8.0
Unspecified Unspecified
medium Severity medium
: GA
: 5.9.0
Assigned To: Allen W
Shveta
: Reopened
Depends On:
Blocks: 1507818
  Show dependency treegraph
 
Reported: 2017-09-11 19:09 EDT by myoder
Modified: 2018-06-06 18:11 EDT (History)
5 users (show)

See Also:
Fixed In Version: 5.9.0.1
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1507818 (view as bug list)
Environment:
Last Closed: 2018-03-01 08:17:22 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: Bug
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:0380 normal SHIPPED_LIVE Moderate: Red Hat CloudForms security, bug fix, and enhancement update 2018-03-01 13:37:12 EST

  None (edit)
Description myoder 2017-09-11 19:09:12 EDT
Description of problem:
Automate script is failing in the Self Service UI with a RecordNotFound for a VM [1].  This issue isn't present in the Classic Admin UI.  It seems the Self Service UI is making API requests against the wrong vm id.  When I tracked it down, the instance had an id 99r464, but the API request was for 99r906.  Also noticed the instances are marked with status 'Retired' in the Self Service UI, when they are not in the Admin UI.

[1]
[----] E, [2017-09-06T09:43:28.540628 #11080:196c868] ERROR -- : MIQ(Api::VmsController.api_error) API Error
[----] E, [2017-09-06T09:43:28.540777 #11080:196c868] ERROR -- : MIQ(Api::VmsController.api_error) ActiveRecord::RecordNotFound: Couldn't find Vm with 'id'=99000000000906 [WHERE "vms"."type" IN ('Vm', 'ManageIQ::Providers::CloudManager::Vm', 'ManageIQ::Providers::InfraManager::Vm', 'VmServer', 'ManageIQ::Providers::Azure::CloudManager::Vm', 'ManageIQ::Providers::Google::CloudManager::Vm', 'ManageIQ::Providers::Openstack::CloudManager::Vm', 'ManageIQ::Providers::Amazon::CloudManager::Vm', 'ManageIQ::Providers::Vmware::CloudManager::Vm', 'ManageIQ::Providers::Microsoft::InfraManager::Vm', 'ManageIQ::Providers::Redhat::InfraManager::Vm', 'VmXen', 'ManageIQ::Providers::Vmware::InfraManager::Vm') AND "vms"."template" = $1]


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

How reproducible:
customer environment

Steps to Reproduce:
1. 
2.
3.

Actual results:
SSUI fails to find VM record.

Expected results:
SSUI should find the VM record

Additional info:
Comment 3 Allen W 2017-09-12 12:54:15 EDT
Hi!  Thanks for noticing this bug! Would it be possible for you to provide an ip address or steps to reproduce this issue ?
Comment 4 Allen W 2017-09-12 12:54:21 EDT
Hi!  Thanks for noticing this bug! Would it be possible for you to provide an ip address or steps to reproduce this issue ?
Comment 5 Allen W 2017-09-13 10:15:49 EDT
SOOOOO this was fixed and backported here, https://github.com/ManageIQ/manageiq-ui-service/pull/856 unsure of this fix made it into 5.8.1 or if its coming up in 5.8.2, can anyone provide details?
Comment 9 Milan Falešník 2018-01-05 05:30:03 EST
Verified in 5.9.0.15. There was no issue executing actions via buttons against a VM in the Self-Service UI.
Comment 12 errata-xmlrpc 2018-03-01 08:17:22 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0380

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