Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLI] CLI clients: The request you have made requires authentication. #5

Closed
AJNOURI opened this issue Sep 23, 2016 · 2 comments
Closed
Assignees

Comments

@AJNOURI
Copy link
Owner

AJNOURI commented Sep 23, 2016

All service clients gives the following:

[root@localhost ajn(keystone_admin)]# neutron agent-list
The request you have made requires authentication. (HTTP 401) (Request-ID: req-80b3566a-93c2-42a8-9015-97e9cb925eaf)
@AJNOURI AJNOURI changed the title CLI clients: The request you have made requires authentication. [CLI] CLI clients: The request you have made requires authentication. Sep 23, 2016
@AJNOURI
Copy link
Owner Author

AJNOURI commented Sep 23, 2016

You need to log in to connect to "admin" tenant account from CLI (using admin rc file)

From HORIZON :

  1. go to project > access& security > API access > download openstack rc file
  2. copy openstack rc file to a file with the same name in your SSH client
  3. source the file
    source demorc.sh

@AJNOURI
Copy link
Owner Author

AJNOURI commented Sep 23, 2016

Or Create environment script manually

vi admin-openrc.sh

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

vi demo-openrc.sh

export OS_TENANT_NAME=demo
export OS_USERNAME=demo
export OS_PASSWORD=$DEMO_PASS
export OS_AUTH_URL=http://controller:5000/v2.0

@AJNOURI AJNOURI closed this as completed Sep 23, 2016
@AJNOURI AJNOURI self-assigned this Sep 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant