Install and configure in OpenStack Installation Guide for Red Hat Enterprise Linux, CentOS, and Fedora  - juno

Bug #1381651 reported by Bill Borsari
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Invalid
Undecided
Matt Kassawara

Bug Description

This failed:

# keystone endpoint-create \
 --service-id $(keystone service-list | awk '/ image / {print $2}') \
--publicurl http://10.1.0.200:9292 \
  --internalurl http://10.1.0.200:9292 \
--adminurl http://10.1.0.200:9292 \
 --region regionOne

usage: keystone [--version] [--debug] [--os-username <auth-user-name>]
                [--os-password <auth-password>]
                [--os-tenant-name <auth-tenant-name>]
                [--os-tenant-id <tenant-id>] [--os-auth-url <auth-url>]
                [--os-region-name <region-name>]
                [--os-identity-api-version <identity-api-version>]
                [--os-token <service-token>]
                [--os-endpoint <service-endpoint>] [--os-cache]
                [--force-new-token] [--stale-duration <seconds>] [--insecure]
                [--os-cacert <ca-certificate>] [--os-cert <certificate>]
                [--os-key <key>] [--timeout <seconds>]
                <subcommand> ...
keystone: error: unrecognized arguments:

The help shows a different order:

# keystone help endpoint-create usage: keystone endpoint-create [--region <endpoint-region>] --service
                                <service> --publicurl <public-url>
                                [--adminurl <admin-url>]
                                [--internalurl <internal-url>]

Create a new endpoint associated with a service.

Arguments:
  --region <endpoint-region>
                        Endpoint region.
  --service <service>, --service-id <service>, --service_id <service>
                        Name or ID of service associated with endpoint.
  --publicurl <public-url>
                        Public URL endpoint.
  --adminurl <admin-url>
                        Admin URL endpoint.
  --internalurl <internal-url>
                        Internal URL endpoint.

And this worked:

# keystone endpoint-create --region regionONE --service-id $(keystone service-list | awk '/ image / {print $2}') --publicurl http://10.1.0.200:9292 --internalurl http://10.1.0.200:9292 --adminurl http://10.1.0.200:9292
+-------------+----------------------------------+
| Property | Value |
+-------------+----------------------------------+
| adminurl | http://10.1.0.200:9292 |
| id | 92205d1030af4431a922a3144b6b7cee |
| internalurl | http://10.1.0.200:9292 |
| publicurl | http://10.1.0.200:9292 |
| region | regionONE |
| service_id | 2141f8200fc749758252fc290a961ff2 |
+-------------+----------------------------------+

Looks like --region need to be the first parameter.

-----------------------------------
Built: 2014-10-15T12:08:54 00:00
git SHA: 498148900b1338f821f7b13df7eaa987b84b7251
URL: http://docs.openstack.org/trunk/install-guide/install/yum/content/glance-install.html
source File: file:/home/jenkins/workspace/openstack-manuals-tox-doc-publishdocs/doc/install-guide/section_glance-install.xml
xml:id: glance-install

Revision history for this message
Matt Kassawara (ionosphere80) wrote :

I can't validate this issue. The keystone client in my Juno test environment supports '--region' anywhere after 'endpoint-create'. Please tell me the keystone client version in your environment.

Example (different service name):

root@hst-os2ctl1:~# keystone endpoint-create \
> --service-id $(keystone service-list | awk '/ test / {print $2}') \
> --publicurl http://10.1.0.200:9292 \
> --internalurl http://10.1.0.200:9292 \
> --adminurl http://10.1.0.200:9292 \
> --region regionOne
+-------------+----------------------------------+
| Property | Value |
+-------------+----------------------------------+
| adminurl | http://10.1.0.200:9292 |
| id | 5e466c87c4bf458e8aa710a788bb8620 |
| internalurl | http://10.1.0.200:9292 |
| publicurl | http://10.1.0.200:9292 |
| region | regionOne |
| service_id | 8590e73bd618473587e03328b4c10dfc |
+-------------+----------------------------------+

Changed in openstack-manuals:
status: New → Incomplete
assignee: nobody → Matt Kassawara (ionosphere80)
Changed in openstack-manuals:
status: Incomplete → Invalid
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.