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

Bug 1055862

Summary: Error deploying cfn heat template with neutron multiple tenant network -Multiple possible networks found, use a Network ID to be more specific. (HTTP 400)
Product: Red Hat OpenStack Reporter: Rabi Mishra <ramishra>
Component: openstack-heatAssignee: RHOS Maint <rhos-maint>
Status: CLOSED NOTABUG QA Contact: Shai Revivo <srevivo>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.0CC: sbaker, sdake, shardy, yeylon, zbitter
Target Milestone: ---   
Target Release: 5.0 (RHEL 7)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-23 20:42: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:

Description Rabi Mishra 2014-01-21 05:14:44 UTC
Description of problem:

Deploying wordpress single instance template with multiple tenant networks results in error.

2014-01-20 20:34:32.884 1078 INFO heat.engine.resource [-] creating Instance "WikiDatabase"
2014-01-20 20:34:35.184 1078 ERROR heat.engine.resource [-] CREATE : Instance "WikiDatabase"
2014-01-20 20:34:35.184 1078 TRACE heat.engine.resource Traceback (most recent call last):
2014-01-20 20:34:35.184 1078 TRACE heat.engine.resource   File "/usr/lib/python2.6/site-packages/heat/engine/resource.py", line 362, in _do_action
2014-01-20 20:34:35.184 1078 TRACE heat.engine.resource     handle_data = handle()
2014-01-20 20:34:35.184 1078 TRACE heat.engine.resource   File "/usr/lib/python2.6/site-packages/heat/engine/resources/instance.py", line 354, in handle_create
2014-01-20 20:34:35.184 1078 TRACE heat.engine.resource     availability_zone=availability_zone)
2014-01-20 20:34:35.184 1078 TRACE heat.engine.resource   File "/usr/lib/python2.6/site-packages/novaclient/v1_1/servers.py", line 658, in create
2014-01-20 20:34:35.184 1078 TRACE heat.engine.resource     **boot_kwargs)
2014-01-20 20:34:35.184 1078 TRACE heat.engine.resource   File "/usr/lib/python2.6/site-packages/novaclient/base.py", line 402, in _boot
2014-01-20 20:34:35.184 1078 TRACE heat.engine.resource     return_raw=return_raw, **kwargs)
2014-01-20 20:34:35.184 1078 TRACE heat.engine.resource   File "/usr/lib/python2.6/site-packages/novaclient/base.py", line 145, in _create
2014-01-20 20:34:35.184 1078 TRACE heat.engine.resource     _resp, body = self.api.client.post(url, body=body)
2014-01-20 20:34:35.184 1078 TRACE heat.engine.resource   File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 232, in post
2014-01-20 20:34:35.184 1078 TRACE heat.engine.resource     return self._cs_request(url, 'POST', **kwargs)
2014-01-20 20:34:35.184 1078 TRACE heat.engine.resource   File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 213, in _cs_request
2014-01-20 20:34:35.184 1078 TRACE heat.engine.resource     **kwargs)
2014-01-20 20:34:35.184 1078 TRACE heat.engine.resource   File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 195, in _time_request
2014-01-20 20:34:35.184 1078 TRACE heat.engine.resource     resp, body = self.request(url, method, **kwargs)
2014-01-20 20:34:35.184 1078 TRACE heat.engine.resource   File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 189, in request
2014-01-20 20:34:35.184 1078 TRACE heat.engine.resource     raise exceptions.from_response(resp, body, url, method)
2014-01-20 20:34:35.184 1078 TRACE heat.engine.resource BadRequest: Multiple possible networks found, use a Network ID to be more specific. (HTTP 400) (Request-ID: req-5ba89873-866e-42e5-b5a8-aee1938bea9c)
2014-01-20 20:34:35.184 1078 TRACE heat.engine.resource 


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

RHEL OSP 4.0

How reproducible:

Deploy multi-node RHEL OSP4. Deploy WordPress_Single_Instance.template. 

Steps to Reproduce:

1. Deploy multi-node RHEL OSP4
2. Create multiple tenant networks for demo tenant.
3.heat create teststack --template-file=WordPress_Single_Instance.template --parameters="InstanceType=m1.small;DBUsername=wp;DBPassword=wp;KeyName=heat_key;LinuxDistribution=F17"

Actual results:
BadRequest: Multiple possible networks found, use a Network ID to be more specific. (HTTP 400) (Request-ID: req-5ba89873-866e-42e5-b5a8-aee1938bea9c)

Expected results:

Should select one of the possible networks or both networks.

Additional info:

Comment 2 Steven Dake 2014-01-21 08:03:05 UTC
Steve Baker,

My thought is this is working as intended, since it is not reliable to randomly connect various networks to an instance.  Could you verify that logic is correct, or provide your thoughts on how this should work if it is indeed broken?

Comment 4 Zane Bitter 2014-07-23 20:42:15 UTC
This is not a bug as such, but it is a commonly-asked question:

https://ask.openstack.org/en/question/10085/multiple-possible-networks-found-use-a-network-id-to-be-more-specific/?answer=25956#post-id-25956