Re: [openstack-dev] Devstack liberty with keystone v3

2016-04-27 Thread kiran vemuri UH
Hello ZhiQiang Fan,

I am able to fetch v3 catalog by using the openstack commands. But, as I
mentioned earlier, I am trying to setup a multi node setup using devstack
stable/liberty. I am using the documentation at
http://docs.openstack.org/developer/devstack/configuration.html#multi-region-setup
as reference.

I have the first node up and running without any issues.. and I think it
has keystone v2 used for authentication of all services and keystone v3
running alongside.(Because when I fetch v2 catalog, I am getting all the
endpoints and when I fetch v3 catalog, I see no endpoints)

Now when I deploy node2 with the local.conf changes suggested, everytime
stack.sh is failing at the same error as shown below:
--

16-04-27 02:54:59.101 | + local kernel_id= ramdisk_id=

2016-04-27 02:54:59.101 | + '[' -n
/devstack/devstack/files/images/cirros-0.3.4-x86_64-uec/cirros-0.3.4-x86_64-vmlinuz
']'

2016-04-27 02:54:59.104 | ++ openstack --os-cloud=devstack-admin image
create cirros-0.3.4-x86_64-uec-kernel --public --container-format aki
--disk-format aki

2016-04-27 02:54:59.104 | ++ grep ' id '

2016-04-27 02:54:59.106 | ++ get_field 2

2016-04-27 02:54:59.107 | ++ local data field

2016-04-27 02:54:59.107 | ++ read data

2016-04-27 02:55:01.273 | 500 Internal Server Error: The server has either
erred or is incapable of performing the requested operation. (HTTP 500)

2016-04-27 02:55:01.313 | + kernel_id=

2016-04-27 02:55:01.313 | + '[' -n
/devstack/devstack/files/images/cirros-0.3.4-x86_64-uec/cirros-0.3.4-x86_64-initrd
']'

2016-04-27 02:55:01.316 | ++ grep ' id '

2016-04-27 02:55:01.316 | ++ openstack --os-cloud=devstack-admin image
create cirros-0.3.4-x86_64-uec-ramdisk --public --container-format ari
--disk-format ari

2016-04-27 02:55:01.316 | ++ get_field 2

2016-04-27 02:55:01.318 | ++ local data field

2016-04-27 02:55:01.319 | ++ read data

2016-04-27 02:55:03.470 | 500 Internal Server Error: The server has either
erred or is incapable of performing the requested operation. (HTTP 500)

2016-04-27 02:55:03.512 | + ramdisk_id=

2016-04-27 02:55:03.513 | + openstack --os-cloud=devstack-admin image
create cirros-0.3.4-x86_64-uec --public --container-format ami
--disk-format ami

2016-04-27 02:55:05.631 | 500 Internal Server Error: The server has either
erred or is incapable of performing the requested operation. (HTTP 500)

2016-04-27 02:55:05.671 | + exit_trap

2016-04-27 02:55:05.671 | + local r=1

2016-04-27 02:55:05.673 | ++ jobs -p

2016-04-27 02:55:05.675 | + jobs=

2016-04-27 02:55:05.675 | + [[ -n '' ]]

2016-04-27 02:55:05.675 | + kill_spinner

2016-04-27 02:55:05.675 | + '[' '!' -z '' ']'

2016-04-27 02:55:05.675 | + [[ 1 -ne 0 ]]

2016-04-27 02:55:05.675 | + echo 'Error on exit'

2016-04-27 02:55:05.676 | Error on exit

2016-04-27 02:55:05.676 | + generate-subunit 1461720901 4804 fail

2016-04-27 02:55:06.079 | + [[ -z /opt/stack/logs ]]

2016-04-27 02:55:06.079 | + /devstack/devstack/tools/worlddump.py -d
/opt/stack/logs

2016-04-27 02:55:06.536 | + exit 1
--

I was hoping I could get some help on getting this up and running. Do I
have to disable v2 and have the node with pure v3 for this to be possible?

Thanks, Kiran Vemuri
kiran vemuri
www.kiranvemuri.info
Tel: (832)-701-8281
kkvem...@uh.edu
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Devstack liberty with keystone v3

2016-04-26 Thread ZhiQiang Fan
Sorry, I didn't notice you're using liberty branch, that patch is for
master, not sure if it can be cherry-picked to stable/liberty

As Dolph Mathews pointed out, you're using keystoneclient.v2 to request to
keystone API v3, so it fails with 404, which command are you using?
``openstack catalog list`` ?

On Wed, Apr 27, 2016 at 1:34 AM, kiran vemuri UH  wrote:

> Hello Sean,
>
> I tried doing what you suggested and what  ZhiQiang Fan  suggested as
> well.
>
> But both of them give me similar error when I try to fetch keystone
> catalog.
>
> DEBUG:keystoneclient.auth.identity.v2:Making authentication request to
> http://10.10.50.101:5000/v3/tokens
>
> INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection
> (1): 10.10.50.101
>
> DEBUG:requests.packages.urllib3.connectionpool:"POST /v3/tokens HTTP/1.1"
> 404 93
>
> DEBUG:keystoneclient.session:Request returned failure status: 404
>
> Authorization Failed: The resource could not be found. (HTTP 404)
> (Request-ID: req-a2b71b1d-b58f-46c3-9e99-2837699a5750)
>
> --
>
> DEBUG:keystoneclient.auth.identity.v2:Making authentication request to
> http://10.10.50.101:5000/v3/tokens
>
> INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection
> (1): 10.10.50.101
>
> DEBUG:requests.packages.urllib3.connectionpool:"POST /v3/tokens HTTP/1.1"
> 404 93
>
> DEBUG:keystoneclient.session:Request returned failure status: 404
>
> Authorization Failed: The resource could not be found. (HTTP 404)
> (Request-ID: req-ff589197-07af-47bf-8d66-4cc575a12924)
>
> --
>
> Also, I am doubtful if openrc change result in all the services using v3?
>
> Thanks,
> Kiran Vemuri
>
>
> *kiran vemuri*
> www.kiranvemuri.info
> Tel: (832)-701-8281
> kkvem...@uh.edu
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Devstack liberty with keystone v3

2016-04-26 Thread Dolph Mathews
On Tuesday, April 26, 2016, kiran vemuri UH  wrote:

> Hello Sean,
>
> I tried doing what you suggested and what  ZhiQiang Fan  suggested as
> well.
>
> But both of them give me similar error when I try to fetch keystone
> catalog.
>
> DEBUG:keystoneclient.auth.identity.v2:Making authentication request to
> http://10.10.50.101:5000/v3/tokens
>
> You have a v2 client configured with a versioned /v3/ endpoint, and the
API it's looking doesn't exist. Use a v3 client with the same endpoint.

> INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection
> (1): 10.10.50.101
>
> DEBUG:requests.packages.urllib3.connectionpool:"POST /v3/tokens HTTP/1.1"
> 404 93
>
> DEBUG:keystoneclient.session:Request returned failure status: 404
>
> Authorization Failed: The resource could not be found. (HTTP 404)
> (Request-ID: req-a2b71b1d-b58f-46c3-9e99-2837699a5750)
>
> --
>
> DEBUG:keystoneclient.auth.identity.v2:Making authentication request to
> http://10.10.50.101:5000/v3/tokens
>
> INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection
> (1): 10.10.50.101
>
> DEBUG:requests.packages.urllib3.connectionpool:"POST /v3/tokens HTTP/1.1"
> 404 93
>
> DEBUG:keystoneclient.session:Request returned failure status: 404
>
> Authorization Failed: The resource could not be found. (HTTP 404)
> (Request-ID: req-ff589197-07af-47bf-8d66-4cc575a12924)
>
> --
>
> Also, I am doubtful if openrc change result in all the services using v3?
>
> Thanks,
> Kiran Vemuri
>
>
> *kiran vemuri*
> www.kiranvemuri.info
> Tel: (832)-701-8281
> kkvem...@uh.edu 
>
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Devstack liberty with keystone v3

2016-04-26 Thread kiran vemuri UH
Hello Sean,

I tried doing what you suggested and what  ZhiQiang Fan  suggested as well.

But both of them give me similar error when I try to fetch keystone catalog.

DEBUG:keystoneclient.auth.identity.v2:Making authentication request to
http://10.10.50.101:5000/v3/tokens

INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection
(1): 10.10.50.101

DEBUG:requests.packages.urllib3.connectionpool:"POST /v3/tokens HTTP/1.1"
404 93

DEBUG:keystoneclient.session:Request returned failure status: 404

Authorization Failed: The resource could not be found. (HTTP 404)
(Request-ID: req-a2b71b1d-b58f-46c3-9e99-2837699a5750)

--

DEBUG:keystoneclient.auth.identity.v2:Making authentication request to
http://10.10.50.101:5000/v3/tokens

INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection
(1): 10.10.50.101

DEBUG:requests.packages.urllib3.connectionpool:"POST /v3/tokens HTTP/1.1"
404 93

DEBUG:keystoneclient.session:Request returned failure status: 404

Authorization Failed: The resource could not be found. (HTTP 404)
(Request-ID: req-ff589197-07af-47bf-8d66-4cc575a12924)

--

Also, I am doubtful if openrc change result in all the services using v3?

Thanks,
Kiran Vemuri


*kiran vemuri*
www.kiranvemuri.info
Tel: (832)-701-8281
kkvem...@uh.edu
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Devstack liberty with keystone v3

2016-04-25 Thread ZhiQiang Fan
what you need is this patch: https://review.openstack.org/#/c/307574/

after install finished, to use admin:demo account and v3 API, run ``source
openrc -k3 admin``, then it is done.

Cheers!

On Tue, Apr 26, 2016 at 7:10 AM, kiran vemuri UH  wrote:

> Hello All,
>
> I recently got started with OpenStack with a goal of bringing up a multi
> region setup i.e., 2 regions using the same keystone service.
>
> I started with devstack liberty stable release by following the
> documentation available at:
> http://docs.openstack.org/developer/devstack/#configuration
>
> I am able to bring up the liberty but it boots with keystone v2 as
> default. Could anyone please point me to the documentation on how to enable
> keystone v3?
>
> I tried making changes to local.conf file with the following parameters.
>
> ENABLE_IDENTITY_V2=False
> IDENTITY_API_VERSION=3
> OS_IDENTITY_API_VERSION=3
> DEFAULT_DOMAIN=default
>
> but, everytime I do unstack and stack, it results in error similar to this
> https://bugs.launchpad.net/devstack/+bug/1490950
>
> I also tried solutions listed in the above bug.. but nothing helped.
>
> Could anyone help me out with this?
>
> Thanks,
> Kiran Vemuri
>
> *kiran vemuri*
> www.kiranvemuri.info
> Tel: (832)-701-8281
> kkvem...@uh.edu
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Devstack liberty with keystone v3

2016-04-25 Thread Perry, Sean
The trick is to let devstack install and then switch openrc to 
IDENTITY_API_VERSION=3. Both v2 and v3 endpoints are created already. The tools 
just need to be told to use them.


From: kiran vemuri UH [kkvem...@uh.edu]
Sent: Monday, April 25, 2016 4:10 PM
To: openstack-dev@lists.openstack.org
Subject: [openstack-dev] Devstack liberty with keystone v3

Hello All,

I recently got started with OpenStack with a goal of bringing up a multi region 
setup i.e., 2 regions using the same keystone service.

I started with devstack liberty stable release by following the documentation 
available at: http://docs.openstack.org/developer/devstack/#configuration

I am able to bring up the liberty but it boots with keystone v2 as default. 
Could anyone please point me to the documentation on how to enable keystone v3?

I tried making changes to local.conf file with the following parameters.

ENABLE_IDENTITY_V2=False
IDENTITY_API_VERSION=3
OS_IDENTITY_API_VERSION=3
DEFAULT_DOMAIN=default

but, everytime I do unstack and stack, it results in error similar to this 
https://bugs.launchpad.net/devstack/+bug/1490950

I also tried solutions listed in the above bug.. but nothing helped.

Could anyone help me out with this?

Thanks,
Kiran Vemuri

kiran vemuri
www.kiranvemuri.info<http://www.kiranvemuri.info/>
Tel: (832)-701-8281
kkvem...@uh.edu<mailto:kkvem...@uh.edu>

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] Devstack liberty with keystone v3

2016-04-25 Thread kiran vemuri UH
Hello All,

I recently got started with OpenStack with a goal of bringing up a multi
region setup i.e., 2 regions using the same keystone service.

I started with devstack liberty stable release by following the
documentation available at:
http://docs.openstack.org/developer/devstack/#configuration

I am able to bring up the liberty but it boots with keystone v2 as default.
Could anyone please point me to the documentation on how to enable keystone
v3?

I tried making changes to local.conf file with the following parameters.

ENABLE_IDENTITY_V2=False
IDENTITY_API_VERSION=3
OS_IDENTITY_API_VERSION=3
DEFAULT_DOMAIN=default

but, everytime I do unstack and stack, it results in error similar to this
https://bugs.launchpad.net/devstack/+bug/1490950

I also tried solutions listed in the above bug.. but nothing helped.

Could anyone help me out with this?

Thanks,
Kiran Vemuri

*kiran vemuri*
www.kiranvemuri.info
Tel: (832)-701-8281
kkvem...@uh.edu
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev