R3.2-build33 (continuous build) compute service endpoint is not configured after provision through fab

Bug #1713451 reported by Sudheendra Rao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Won't Fix
High
Unassigned
R3.2
Fix Committed
High
amudhar

Bug Description

on build33(continuous build) of R3.2 ubuntu mitaka, the compute service endpoint is not configured and causing the sanity TCs to fail. This problem is not seen always and things work fine the compute service endpoint is created manually (This is with fab provisioning)

The error in setup_all log:
2017-08-28 13:45:47:139903: [root@10.204.216.64] out: + openstack endpoint create --region RegionOne baf404e9240f4bef8cce64efaa73e535 --publicurl 'http://192.168.192.25:8774/v2.1/$(tenant_id)s' --adminurl 'http://localhost:8774/v2.1/$(tenant_id)s' --internalurl 'http://192.168.192.25:8774/v2.1/$(tenant_id)s'
2017-08-28 13:45:47:140000: [root@10.204.216.64] out: The request you have made requires authentication. (HTTP 401) (Request-ID: req-95f14354-409d-4ff0-a30f-57397ccbb655)

root@nodec7:~/fabric-utils# nova host-list
ERROR (EndpointNotFound): publicURL endpoint for compute service not found
root@nodec7:~/fabric-utils#

After running the command manually:

root@nodec7:~/fabric-utils# openstack endpoint create --region RegionOne baf404e9240f4bef8cce64efaa73e535 --publicurl 'http://192.168.192.25:8774/v2.1/$(tenant_id)s' --adminurl 'http://localhost:8774/v2.1/$(tenant_id)s' --internalurl 'http://192.168.192.25:8774/v2.1/$(tenant_id)s'
+--------------+-----------------------------------------------+
| Field | Value |
+--------------+-----------------------------------------------+
| adminurl | http://localhost:8774/v2.1/$(tenant_id)s |
| id | cbd983ec74c24a09b006d342b08f3474 |
| internalurl | http://192.168.192.25:8774/v2.1/$(tenant_id)s |
| publicurl | http://192.168.192.25:8774/v2.1/$(tenant_id)s |
| region | RegionOne |
| service_id | baf404e9240f4bef8cce64efaa73e535 |
| service_name | nova |
| service_type | compute |
+--------------+-----------------------------------------------+
root@nodec7:~/fabric-utils#
root@nodec7:~/fabric-utils# nova host-list
+-----------+-------------+----------+
| host_name | service | zone |
+-----------+-------------+----------+
| nodec7 | scheduler | internal |
| nodec7 | console | internal |
| nodec7 | consoleauth | internal |
| nodec7 | conductor | internal |
| nodec8 | scheduler | internal |
| nodec8 | console | internal |
| nodec8 | consoleauth | internal |
| nodec8 | conductor | internal |
| nodeg36 | scheduler | internal |
| nodeg36 | console | internal |
| nodeg36 | consoleauth | internal |
| nodeg36 | conductor | internal |
| nodei1 | compute | nova |
| nodei2 | compute | nova |
| nodei3 | compute | nova |
| nodec57 | compute | nova |
+-----------+-------------+----------+
root@nodec7:~/fabric-utils#

summary: R3.2-build33 (continuous build) compute service endpoint is not
- configured
+ configured after provision through fab
Changed in juniperopenstack:
status: New → Won't Fix
tags: added: provisioning sanity
removed: provisi
Jeba Paulaiyan (jebap)
tags: added: config
Revision history for this message
Jeba Paulaiyan (jebap) wrote :

Above testbed is in the bug state now.

Workaround:

root@nodec7:~/fabric-utils# openstack endpoint create --region RegionOne <service-id> --publicurl ‘http://192.168.192.25:8774/v2.1/$(tenant_id)s’ --adminurl ‘http://localhost:8774/v2.1/$(tenant_id)s' --internalurl ‘http://192.168.192.25:8774/v2.1/$(tenant_id)s

you may do the above command (replace service-id with service id of the compute service from keystone service-list output) to add the endpoint

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.2

Review in progress for https://review.opencontrail.org/35116
Submitter: amudha ramachandran (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/35116
Committed: http://github.com/Juniper/contrail-provisioning/commit/3364f50b8d5b1bbe98f4d1d31f3d2bb66d67407c
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit 3364f50b8d5b1bbe98f4d1d31f3d2bb66d67407c
Author: Amudha <email address hidden>
Date: Wed Aug 30 16:21:41 2017 -0700

R3.2 mitaka: Fix openstack endpoint create failure

Similar to the issue reported in
https://bugs.launchpad.net/juniperopenstack/+bug/1693348

Mitaka specific changes from below review needed in R3.2
https://github.com/Juniper/contrail-provisioning/commit/b1c44be46d8da438aada7b768782d70a979f6ff6
-> Starting mitaka, barbican-api runs behind apache2, remove barbican-api
and barbican-worker from supervisord-openstack
-> In mitaka, use keystone command to create nova endpoint

Change-Id: I77b58721cce227b6bef3c5fc151603ee3d0f1a16
Closes-Bug: #1713451

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.