Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 649473

Summary: Instance: name too long throws PGError
Product: [Retired] CloudForms Cloud Engine Reporter: Dave Johnson <dajohnso>
Component: aeolus-conductorAssignee: Mo Morsi <mmorsi>
Status: CLOSED CURRENTRELEASE QA Contact: Dave Johnson <dajohnso>
Severity: medium Docs Contact:
Priority: medium    
Version: 0.3.1CC: deltacloud-maint, mmorsi, ssachdev, sseago, whayutin
Target Milestone: alpha   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://10.16.120.182/deltacloud/instance/create
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 651514    
Attachments:
Description Flags
ss none

Description Dave Johnson 2010-11-03 19:31:07 UTC
Created attachment 457561 [details]
ss

Description of problem:

When launching a instance and adding a extra long name, instead of throwing a pretty error message the user will see a PGError in the UI.


Steps to Reproduce:
1.  Login to deltacloud
2.  Create a template if not already present
3.  Build template
4.  On the Instance Management tab, launch a instance
5.  In the name field, enter in 256 characters
6.  See PGError   (screenshot attached)

PGError: ERROR: value too long for type character varying(255);

Comment 1 Dave Johnson 2010-11-04 15:41:20 UTC
Because of this issue, there is a chance that the user can go beyond his quota.  

Basically I configured the user to have a quota of 2 and launched 3 instances, the third one didn't start as expected and stayed in the 'new' state.  I then launched a instance with the extra long name (this bug write up) and the third instance started thus surpasing the user's quota.

Comment 2 Mo Morsi 2010-11-04 20:59:35 UTC
Patch fixing this sent to list

https://fedorahosted.org/pipermail/deltacloud-devel/2010-November/003176.html

This is actually caused by the instance.condor_job_id field being too short to handle the long name. We will have to make sure condor can handle these long ids / names.

Comment 3 wes hayutin 2011-06-14 15:39:47 UTC
moving to on_qa for review

Comment 4 Shveta 2011-07-07 07:17:21 UTC
In the New UI , we do not provide name for instance .

Comment 5 wes hayutin 2011-08-01 19:58:03 UTC
release pending...

Comment 6 wes hayutin 2011-08-01 19:59:09 UTC
release pending...

Comment 7 wes hayutin 2011-12-08 13:55:04 UTC
perm close

Comment 8 wes hayutin 2011-12-08 13:58:04 UTC
closing out old bugs