Bug 835210

Summary: cloud provider names are hardcoded in BuildDispatcher.py
Product: [Retired] CloudForms Cloud Engine Reporter: Ricky Nelson <rnelson>
Component: imagefactoryAssignee: Ian McLeod <imcleod>
Status: CLOSED CANTFIX QA Contact: Rehana <aeolus-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0.0CC: wduffee
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-16 15:45:15 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
traceback from new provider titled "amazon" none

Description Ricky Nelson 2012-06-25 19:25:54 UTC
Created attachment 594261 [details]
traceback from new provider titled "amazon"

Description of problem:

When creating a new account and entering the provider information, the provider name must start with 'ec2' or 'rackspace'. Naming the provider 'amazon' fails with the traceback attached.



Steps to Reproduce:
1. Select /conductor/providers/new url.
2. Create a new provider with a name that does not start with 'ec2' or 'rackspace', for example "amazon".
3. Traceback should be produced.
  

Additional info:
It is hard coded in /usr/lib/python2.6/site-packages/imgfac/BuildDispatcher.py

        elif provider.startswith('ec2-'):
            return 'ec2'
        elif provider == 'rackspace':