Ask Your Question
0

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

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

enojado gravatar image

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

Hi,

From this site: http://docs.openstack.org/trunk/insta...

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,127.0.0.1"

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

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

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=http://controller1.example.com:35357/v2.0
edit flag offensive delete link more
1

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

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

export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=ADMIN_PASS
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
0

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

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

Stats

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

Seen: 2,030 times

Last updated: Mar 08 '15