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

About username and password #4

Closed
uMtMu opened this issue Nov 2, 2017 · 4 comments
Closed

About username and password #4

uMtMu opened this issue Nov 2, 2017 · 4 comments

Comments

@uMtMu
Copy link

uMtMu commented Nov 2, 2017

Hi,
I'm new to openstack. I'm trying to understand your code.

In auth files(from_auth, to_auth) there are OS_USERNAME and OS_PASSWORD envars. Which user's username and password they are? Keystone? Nova? I used keystone admin password but i didn't work.

@eglute
Copy link
Owner

eglute commented Nov 2, 2017

Hello,
They need to be the same ones as in your openrc file: https://docs.openstack.org/mitaka/install-guide-obs/keystone-openrc.html
The code reads from_auth and to_auth files. If you have SSL (https) enabled, you will also need to provide SSL certificates.

@eglute eglute closed this as completed Nov 3, 2017
@uMtMu
Copy link
Author

uMtMu commented Nov 6, 2017

Okey. I used this vagrant box.https://app.vagrantup.com/charliejllewellyn/boxes/openstack-packstack-liberty. Created 2 box with VagrantFile below.

Vagrant source

config.vm.network :forwarded_port, guest: 80, host: 8080 # horizon
config.vm.network :forwarded_port, guest: 5000, host: 5000 # keystone
config.vm.network :forwarded_port, guest: 35357, host: 35357 # keystone
config.vm.network :forwarded_port, guest: 6080, host: 6080 # vnc

Vagrant dest

config.vm.network :forwarded_port, guest: 80, host: 8082 # horizon
config.vm.network :forwarded_port, guest: 5000, host: 5002 # keystone
config.vm.network :forwarded_port, guest: 35357, host: 35359 # keystone
config.vm.network :forwarded_port, guest: 6080, host: 6082 # vnc

I filled like https://docs.openstack.org/mitaka/install-guide-obs/keystone-openrc.html already. I find info from /root/keystone_adminrc file. My auth files like below.
from_auth

export OS_USERNAME=admin
export OS_PASSWORD=xxxxx
export OS_TENANT_NAME=default
export OS_AUTH_URL=http://localhost:35357/v3
export OS_IDENTITY_API_VERSION=3

export OS_AUTH_IP=http://localhost:35357
export OS_CACERT=False

export USER_DOMAIN_ID=xxx
export PROJECT_DOMAIN_ID=xx

to_auth

export OS_USERNAME=admin
export OS_PASSWORD=xxxx
export OS_TENANT_NAME=default
export OS_AUTH_URL=http://localhost:35359/v3
export OS_IDENTITY_API_VERSION=3

export OS_AUTH_IP=http://localhost:35359
export OS_CACERT=False

export USER_DOMAIN_ID=xxxx
export PROJECT_DOMAIN_ID=xxxx

What is OS_AUTH_IP? I couldn't find any thing in google and https://docs.openstack.org/mitaka/install-guide-obs/keystone-openrc.html

@uMtMu
Copy link
Author

uMtMu commented Nov 6, 2017

I think there is problem in my devstack understanding. I will read more and return to you.

@eglute
Copy link
Owner

eglute commented Nov 7, 2017

OS_AUTH_IP is keystone's auth URL, but in format http://IP or http://domain. Can also be HTTPS.

export OS_AUTH_IP=https://172.16.56.128

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants