endpoint service for nova not well defined

Bug #977905 reported by Jérôme Gallard
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
High
Anne Gentle

Bug Description

Hello,

In this file :
http://docs.openstack.org/trunk/openstack-compute/install/content/defining-services.html
the nova endpoint is not well defined.

Instead of :
keystone --token 012345SECRET99TOKEN012345 --endpoint http://192.168.206.130:35357/v2.0 endpoint-create \
                       --region RegionOne \
                       --service_id=abc0f03c02904c24abdcc3b7910e2eed \
                       --publicurl http://192.168.206.130:8774/v2 \
                       --adminurl http://192.168.206.130:8774/v2 \
                       --internalurl http://192.168.206.130:8774/v2

It should be :
keystone --token 012345SECRET99TOKEN012345 --endpoint http://192.168.206.130:35357/v2.0 endpoint-create \
                       --region RegionOne \
                       --service_id=abc0f03c02904c24abdcc3b7910e2eed \
                       --publicurl http://192.168.206.130:8774/v2/$(tenant_id)s \
                       --adminurl http://192.168.206.130:8774/v2/$(tenant_id)s \
                       --internalurl http://192.168.206.130:8774/v2/$(tenant_id)s

regards,
Jérôme

description: updated
Anne Gentle (annegentle)
Changed in openstack-manuals:
assignee: nobody → Lorin Hochstein (lorinh)
importance: Undecided → Medium
importance: Medium → High
status: New → Confirmed
Revision history for this message
Stas Kholmanskikh (kholmanskikh-s-s) wrote :

Hello.

And I think that on the same page this:
--service_id=<id returned from endpoint creation>
should be changed to:
--service_id=<id returned from service creation>

Right?

Revision history for this message
Anne Gentle (annegentle) wrote :

Hi Jérôme -

Do you mean that the $(tenant_id)s is literal or that you should enter a tenant_id specifically to use, such as the Service tenant for the adminurl possibly?

Thanks,
Anne

Revision history for this message
Anne Gentle (annegentle) wrote :

From the mailing list:

The expression "$(tenant_id)s" is really contained inside the pattern
in the database. It is substituded with a specific tennant ID when
an application makes its request. The weird syntax is inherited from
Python, where one can use constructs like %s or %(key)s.

Revision history for this message
koolhead17 (koolhead17) wrote :

keystone service-create --name nova --type compute --description 'OpenStack Compute Service'

other way :--

NOVA_PUBLIC_URL="http://10.130.221.102:8774/v2/\$(tenant_id)s"
NOVA_ADMIN_URL=$NOVA_PUBLIC_URL
NOVA_INTERNAL_URL=$NOVA_PUBLIC_URL
REGION="RegionOne"
ID=$(keystone service-list | grep -i nova | awk '{print $2}')

keystone endpoint-create --region $REGION --service_id $ID --publicurl $NOVA_PUBLIC_URL --adminurl $NOVA_ADMIN_URL --internalurl $NOVA_INTERNAL_URL

Revision history for this message
Anne Gentle (annegentle) wrote :

Hey Lorin, I've got a local branch with these fixes in it, but didn't want to duplicate work. I'll propose though and you can take a look. Want to get this stuff correct since so many bugs are coming in on it.

Revision history for this message
Lorin Hochstein (lorinh) wrote :

Anne:

Go ahead and propose your fixes for commit, I haven't had time to work on this so I have no local changes with conflicts.

Anne Gentle (annegentle)
Changed in openstack-manuals:
assignee: Lorin Hochstein (lorinh) → Anne Gentle (annegentle)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-manuals (master)

Fix proposed to branch: master
Review: https://review.openstack.org/6525

Changed in openstack-manuals:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/6525
Committed: http://github.com/openstack/openstack-manuals/commit/d07d1a10dcb48e62c06cf04eb09922bc5a07f0fa
Submitter: Jenkins
Branch: master

commit d07d1a10dcb48e62c06cf04eb09922bc5a07f0fa
Author: annegentle <email address hidden>
Date: Thu Apr 12 22:58:25 2012 -0500

    Doc bug fixes: bug 977905, bug 980882, bug 977823

     * Add note about %(template_id)s in endpoints based on mailing list feedback
     * Also fix bug 981146
     * Add info about glance-manage version_control 0 and db_sync requirements on ubuntu 12.04

    Change-Id: I95ac970941d51e645ff3a6a9e0da7b5e08dfa953

Changed in openstack-manuals:
status: In Progress → Fix Committed
Anne Gentle (annegentle)
Changed in openstack-manuals:
status: Fix Committed → Fix Released
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.