Bug 1570052 - tempest.api.orchestration.stacks.test_neutron_resources.NeutronResourcesTestJSON failing due wrong heat_metadata and heat_waitcondition_server address
Summary: tempest.api.orchestration.stacks.test_neutron_resources.NeutronResourcesTestJ...
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-heat
Version: 7.0 (Kilo)
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: ---
Assignee: Zane Bitter
QA Contact: Ronnie Rasouli
Depends On: 1316072
TreeView+ depends on / blocked
Reported: 2018-04-20 14:05 UTC by Filip Hubík
Modified: 2018-06-14 12:54 UTC (History)
27 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1316072
Last Closed: 2018-06-14 12:54:12 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Filip Hubík 2018-04-20 14:05:43 UTC
This issue is also present in OSP7, heat is configured by TripleO to use Internal API network's IP instead of public one. VM can not therefore reach the heat metadata service as it is trying to execute from within:

$ SIGNAL_DATA='{"Status": "SUCCESS", "Reason": "SmokeServerNeutron created", "Data": "Application has completed configuration.", "UniqueId": "00000"}'
$ curl --fail -X PUT -H 'Content-Type:' --data-binary "$SIGNAL_DATA" ''

and keystone catalog says:
Service: orchestration
|   Property  |                            Value                            |
|   adminURL  | |
|      id     |               80982cad82c845d298e5120592137eef              |
| internalURL | |
|  publicURL  | |
|    region   |                          regionOne                          |

VM can not reach private IP and therefore test will also fail.

Workaround - use public IP range(VIP) - https://access.redhat.com/solutions/2868471 .

+++ This bug was initially created as a clone of Bug #1316072 +++

Description of problem:
 is failing in ospd virtualized, because the ip address set in /etc/heat/heat.conf isn't reachable by the vm. It has to be the public_virtual_ip 

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

How reproducible:

Steps to Reproduce:
1. Install OSP-D
2. Run tempest 

Actual results:


Expected results:


Additional info:
Changing the /etc/heat/heat.conf ip address to the public_virtual_ip and restart the services works:

crudini --set /etc/heat/heat.conf DEFAULT heat_metadata_server+url
crudini --set /etc/heat/heat.conf DEFAULT heat_waitcondition_server_url

systemctl restart openstack-heat-api openstack-heat-api-cloudwatch openstack-heat-api openstack-heat-engine

--- Additional comment from Red Hat Bugzilla Rules Engine on 2016-03-09 06:13:22 EST ---

Since this issue was entered in bugzilla without a release flag set, rhos-8.0? has been automatically added to ensure that it is properly evaluated for this release.

--- Additional comment from Mike Burns on 2016-04-07 17:14:44 EDT ---

This bug did not make the OSP 8.0 release.  It is being deferred to OSP 10.

--- Additional comment from John Skeoch on 2016-07-31 21:04:29 EDT ---

User acruz@redhat.com's account has been closed

--- Additional comment from Pavel Sedlák on 2017-03-09 09:50:55 EST ---

This is not bug in tempest, instead it's more of heat misconfiguration (by tripleo/puppets...)

--- Additional comment from Zane Bitter on 2017-03-09 11:12:39 EST ---

Do we think this is the same issue as bug 1425189?

--- Additional comment from Pavel Sedlák on 2017-03-23 13:00:23 EDT ---

Btw this is still failed on latest OSP11 puddle 2017-03-22.1,

afazekas pointed to this bug, but i'm now not sure if the ip was 127....,
or if it was failing with proper empty value in heat.conf (and so catalog used).

it may be case of second, will need to check that, as it happens only in combination of IPv6 and SSL, so it seems like different issue now.

--- Additional comment from Attila Fazekas on 2017-03-27 03:44:15 EDT ---

The packaged version of newton tempest skips this test because, the test
in tempest had issues that time, it worked before and after.

The error messages in the above test run also not helpful,
it is expected to be some Timeout exception, not some KeyError (fixed in upstream master).

The timeout reason in 11 can be something ipv6/ssl specific.

--- Additional comment from Pavel Sedlák on 2017-03-27 13:06:32 EDT ---

In our case, it fails in IPv6 deployments (as the tenant network and vm used in test, has IPv4, and cannot reach IPv6 address).

Though, unlike mentioned in bug 1425189 linked commits, the url's in heat.conf are set:
> #heat_metadata_server_url = <None>
> heat_metadata_server_url = http://[2620:52:0:13b8:5054:ff:fe3e:9]:8000
> #heat_waitcondition_server_url = <None>
> heat_waitcondition_server_url = http://[2620:52:0:13b8:5054:ff:fe3e:9]:8000/v1/waitcondition
> #heat_watch_server_url =

So in our case it's different bug then this (in testcase, or our possibly setup/...).

And this one could be solved by that bug 1425189 (at least for 11).

Though unlike upstream reviews linked from bug 1425189, in our case the url are set (and so not defaulting to values from keystone catalog), which may be other issue.

--- Additional comment from Zane Bitter on 2017-07-17 09:41:38 EDT ---

Comment 4 Filip Hubík 2018-04-25 09:54:47 UTC
I think this BZ was re-assigned to Tempest by mistake, I'll switch component to tripleo-heat-templates since it seems to be heat and/or tripleo configuration issue.

Note You need to log in before you can comment on or make changes to this bug.