Ask Your Question

openstack-swift: keystone endpoint-create: error: argument --service/--service-id/--service_id: expected one argument

asked 2015-03-01 13:46:43 -0500

enojado gravatar image

updated 2015-03-06 11:40:44 -0500


From this site:

Everything goes wel until I run this:


 keystone endpoint-create  
> --service-id $(keystone service-list | awk '/ object-store / {print $2}')  
> --publicurl 'http://controller:8080/v1/AUTH_%(tenant_id)s'
> --internalurl 'http://controller:8080/v1/AUTH_%(tenant_id)s'
> --adminurl 'http://controller:8080'   --region 'regionOne'

I got this message:


 Expecting an auth URL via either
> --os-auth-url or env[OS_AUTH_URL] usage: keystone endpoint-create
> [--region <endpoint-region>] --service
>                                 <service> --publicurl <public-url>
>                                 [--adminurl <admin-url>]
>                                 [--internalurl <internal-url>]
> keystone endpoint-create: error:
> argument
> --service/--service-id/--service_id: expected one argument

I have been searched for the error message but cant fint anything:

export no_proxy="localhost,"

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2015-03-06 03:49:28 -0500

Poonam Agarwal gravatar image

You will need to export the below variables as per your environment and then retry the command.

export OS_USERNAME=admin
export OS_PASSWORD=<Password>
export OS_TENANT_NAME=admin
export OS_AUTH_URL=
edit flag offensive delete link more

answered 2015-03-06 11:38:46 -0500

Hi, Restart all services like mysql,rabbitmq-server, keystone etc. Run the command source or

export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_AUTH_URL=http://controller:35357/v2.0

Now create a swift user.Add admin role to the swift user.Create swift service entity and Finally create the Object Storage service endpoints :)

edit flag offensive delete link more

answered 2015-03-08 16:27:59 -0500

enojado gravatar image

Perfect, thank you!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2015-03-01 13:46:43 -0500

Seen: 2,145 times

Last updated: Mar 08 '15