Bug 1467664

Summary: RHEV compute resource submission fails on name has already been taken error correction
Product: Red Hat Satellite Reporter: Nikhil Kathole <nkathole>
Component: Compute Resources - RHEVAssignee: orabin
Status: CLOSED ERRATA QA Contact: Nikhil Kathole <nkathole>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbuckingham, ehelms, inecas, orabin, sjagtap, zhunting
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:51:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot of error
none
log in production.log file
none
log in production.log file after name already taken none

Description Nikhil Kathole 2017-07-04 13:36:31 UTC
Created attachment 1294214 [details]
screenshot of error

Description of problem: We are trying to create compute resource with provider RHEV.But at first, we entered name of compute resource which is already exists, so later tried by changing the name of compute resource and found the error as "something went wrong 401 unauthorized".


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


How reproducible: always

Steps to Reproduce:
1. Navigate to infrastructure >> compute resource
2. Create compute resource with some name with any provider.ex:"compute1"
3. Try to create again compute resource but with existing compute resource name with provider "RHEV".
4. It will say "Name has already benn taken"
5. Now change the name of compute resource to any name and click submit


Actual results:
It will show error as "Something went wrong 401 unauthorized" 

Expected results:
Compute resource should be created.


Additional info:

Comment 1 Nikhil Kathole 2017-07-04 13:57:53 UTC
Created attachment 1294228 [details]
log in production.log file

Comment 2 Nikhil Kathole 2017-07-04 14:03:34 UTC
while performing above steps, open production.log file using command:
tail -f /var/log/foreman/production.log

We can see 500 internal error as in attachment.

Comment 4 orabin 2017-07-31 09:29:17 UTC
Created redmine issue http://projects.theforeman.org/issues/20452 from this bug

Comment 5 Satellite Program 2017-07-31 10:06:26 UTC
Upstream bug assigned to orabin

Comment 6 Satellite Program 2017-07-31 10:06:29 UTC
Upstream bug assigned to orabin

Comment 7 Satellite Program 2017-08-07 14:06:28 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20452 has been resolved.

Comment 8 Nikhil Kathole 2017-09-17 09:06:55 UTC
VERIFIED

Version Tested:
Satellite-6.3 Snap 16

steps:
1. Created compute resource with name 'rhev'
2. Tried to create RHEV compute resource with name 'rhev'
3. Error as name has already taken
4. Change name as 'rhev1' and click save.

Successfully saved compute resource after name change.(see attachment for logs)

Comment 9 Nikhil Kathole 2017-09-17 09:07:48 UTC
Created attachment 1326919 [details]
log in production.log file after name already taken

Comment 10 Satellite Program 2018-02-21 16:51:07 UTC
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:0336