Ask Your Question
0

Call to api sahara? [closed]

asked 2015-03-18 12:18:24 -0500

Kaka gravatar image

updated 2015-03-18 14:39:30 -0500

Hi everyone,

I installed openstack juno+sahara, all ok. Now, i want call to api sahara, example:

http://ip_openstack:8386/v1.1/{tenant_id}/plugins

But response: Authentication required

Status: 401 Unauthorized

This is my config: sahara.conf

...
connection = mysql://sahara:openstack@controller/sahara
...
auth_uri = http://controller:5000/v2.0
...
identity_uri = http://controller:35357
...
admin_user = admin
admin_password = $pass
admin_tenant_name = admin

[DEFAULT]
...
use_neutron = true
...
verbose = true
...
debug = true

I created keystone:

keystone service-create --name sahara --type data_processing --description "Sahara Data Processing"
keystone endpoint-create --service sahara --region RegionOne --publicurl "http://ip_openstack:8386/v1.1/%(tenant_id)s" --adminurl "http://ip_openstack:8386/v1.1/%(tenant_id)s" --internalurl "http://ip_openstack:8386/v1.1/%(tenant_id)s"

Can you help me? Thanks :)

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by Kaka
close date 2015-03-20 11:43:23.524588

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-03-20 10:31:02 -0500

datts gravatar image

Hi! Please note that: Authentication required

You can try:

curl -H "X-Auth-Token: $tokenId" http://$ip_openstack:8386/v1.1/$tenantId/plugins/
edit flag offensive delete link more

Comments

thank you,

Kaka gravatar imageKaka ( 2015-03-20 11:42:14 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-03-18 12:14:25 -0500

Seen: 134 times

Last updated: Mar 20 '15