Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/

Bug 1226855

Summary: Role was added to a template with empty flavor value
Product: [Community] RDO Reporter: Ola Pavlenko <opavlenk>
Component: rdo-manager-cliAssignee: Jay Dobies <jason.dobies>
Status: CLOSED EOL QA Contact: Shai Revivo <srevivo>
Severity: high Docs Contact:
Priority: unspecified    
Version: trunkCC: hbrock, jtomasek, mcornea, morazi
Target Milestone: ---Keywords: Triaged
Target Release: Kilo   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1232435 (view as bug list) Environment:
Last Closed: 2016-05-19 15:39:56 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:
Bug Depends On:    
Bug Blocks: 1232435    
Attachments:
Description Flags
log.log none

Description Ola Pavlenko 2015-06-01 09:58:42 UTC
Created attachment 1033241 [details]
log.log

Description of problem:
Trying to deploy with "openstack overcloud deploy..." command and getting:
ERROR: Parameter 'Cinder-Storage-1::Flavor' is invalid: Error validating value u'baremetal': The Flavor ID (baremetal) could not be found.

Cinder flavor is not a "must" to deploy the overcloud.
Please see attached log.

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

]$ rpm -qa | grep rdo
rdo-release-kilo-1.noarch
rubygem-rdoc-4.0.0-24.el7.noarch
python-rdomanager-oscplugin-0.0.7-dev45.el7.centos.noarch

python-openstackclient-1.0.5-dev2.el7.centos.noarch

How reproducible:
100%

Steps to Reproduce:
1.create compute, control and ceph flavors
2.assuming images are loaded 
3.assuming plan is correct 

Actual results:
Error and deployment fails

Expected results:
Deployment succeeded

Additional info:
see attached log.log file

Comment 1 Jiri Tomasek 2015-06-02 11:57:59 UTC
I am experiencing similar problem in UI. If the Role is added to a Plan and it isn't assigned to any Flavor (we don't want to deploy that role) Tuskar adds the Role into the template anyway with empty Flavor value, causing the template validation to fail.

ERROR:tuskar_ui.infrastructure.overview.forms:ERROR: Parameter 'Cinder-Storage-1::Flavor' is invalid: Error validating value u'': The Flavor ID () could not be found.                                                                                                          
Traceback (most recent call last):                                                                                                      
  File "/home/stack/tuskar-ui/tuskar_ui/infrastructure/overview/forms.py", line 312, in handle                                          
    plan.provider_resource_templates)                                                                                                   
  File "/home/stack/tuskar-ui/tuskar_ui/api/heat.py", line 90, in create                                                                
    stack = heat.stack_create(request, **fields)                                                                                        
  File "/home/stack/horizon/openstack_dashboard/api/heat.py", line 102, in stack_create                                                 
    return heatclient(request, password).stacks.create(**kwargs)                                                                        
  File "/home/stack/horizon/.venv/lib/python2.7/site-packages/heatclient/v1/stacks.py", line 134, in create                             
    data=kwargs, headers=headers)                                                                                                       
  File "/home/stack/horizon/.venv/lib/python2.7/site-packages/heatclient/common/http.py", line 265, in json_request                     
    resp = self._http_request(url, method, **kwargs)                                                                                    
  File "/home/stack/horizon/.venv/lib/python2.7/site-packages/heatclient/common/http.py", line 220, in _http_request                    
    raise exc.from_response(resp)                                                                                                       
HTTPBadRequest: ERROR: Parameter 'Cinder-Storage-1::Flavor' is invalid: Error validating value u'': The Flavor ID () could not be found.
Recoverable error: ERROR: Parameter 'Cinder-Storage-1::Flavor' is invalid: Error validating value u'': The Flavor ID () could not be found.

Comment 3 Marius Cornea 2015-08-10 17:49:53 UTC
With current puddle Tuskar seems to be assigning the 'baremetal' flavor to the roles by default. I hit the same error while trying to deploy via CLI with manual nodes tagging. In order to get the deployment run I had to create the baremetal flavor.

Comment 5 Chandan Kumar 2016-05-19 15:39:56 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.