openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #20810
Re: keystone question - Solved
-
To:
"openstack@xxxxxxxxxxxxxxxxxxx" <openstack@xxxxxxxxxxxxxxxxxxx>
-
From:
"Miller, Mark M (EB SW Cloud - R&D - Corvallis)" <mark.m.miller@xxxxxx>
-
Date:
Tue, 12 Feb 2013 00:25:12 +0000
-
Accept-language:
en-US
-
In-reply-to:
<CAC=h7gVoMBEcxhxKj=wTgNGiNgxJf8Vms3vtPukJaPm1X182Ag@mail.gmail.com>
-
Thread-index:
AQHOCHpmcBRsMGghO0+yJVUCiUEPL5h0+gkAgAAWMRCAAAYjgIAAJX7w
-
Thread-topic:
[Openstack] keystone question - Solved
Hello,
Thank you for the answer. So I tried to install openstackclient on an Ubuntu box and am getting the following error. Does anyone have suggestions or know what caused the exception?
Regards,
Mark
sudo python tools/install_venv.py
venv already exists...
Installing dependencies with pip (this can take a while)...
Traceback (most recent call last):
File "tools/install_venv.py", line 67, in <module>
main(sys.argv)
File "tools/install_venv.py", line 61, in main
install.install_dependencies()
File "/home/build/keystone-grizzly-2/python-openstackclient-master/tools/install_venv_common.py", line 126, in install_dependencies
self.pip_install('pip==1.1')
File "/home/build/keystone-grizzly-2/python-openstackclient-master/tools/install_venv_common.py", line 116, in pip_install
redirect_output=False)
File "/home/build/keystone-grizzly-2/python-openstackclient-master/tools/install_venv_common.py", line 76, in run_command
check_exit_code)[0]
File "/home/build/keystone-grizzly-2/python-openstackclient-master/tools/install_venv_common.py", line 68, in run_command_with_code
proc = subprocess.Popen(cmd, cwd=self.root, stdout=stdout)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
From: Dolph Mathews [mailto:dolph.mathews@xxxxxxxxx]
Sent: Monday, February 11, 2013 12:09 PM
To: Miller, Mark M (EB SW Cloud - R&D - Corvallis)
Subject: Re: [Openstack] keystone question - Solved
- keystoneclient currently provides a python client library for both Identity API v2 and v3
- keystoneclient currently provides a command line interface for Identity API v2 -- but will not do so for Identity API v3
- openstackclient is working towards providing a unified CLI for all openstack projects, by consuming their python client libraries
So, the answer depends on your use case. If you want to write python, consume keystoneclient directly. If you want to use the CLI, use openstackclient, which uses keystoneclient behind the scenes.
All that said, work on openstackclient only recently ramped up, and a lot of major changes are still in review.
Hope this helps!
-Dolph
On Mon, Feb 11, 2013 at 1:55 PM, Miller, Mark M (EB SW Cloud - R&D - Corvallis) <mark.m.miller@xxxxxx<mailto:mark.m.miller@xxxxxx>> wrote:
Hello Dolph,
I have read your email several times. Would you mind giving me a few more detais? I noticed that the keystone CLI does not support the V3 commands/resources such as groups, domains, credentials, and policies. I think you are alluding to this topic but Are you suggesting that I move away from the keystoneclient and instead use the openstackclient?
Regards,
Mark
From: Dolph Mathews [mailto:dolph.mathews@xxxxxxxxx<mailto:dolph.mathews@xxxxxxxxx>]
Sent: Monday, February 11, 2013 10:28 AM
To: Miller, Mark M (EB SW Cloud - R&D - Corvallis)
Cc: Adam Young; openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Openstack] keystone question - Solved
As for the client-side implementation, keystoneclient supports v3 as a python library, whereas the CLI is being exposed in a different project (by consuming keystoneclient): https://github.com/openstack/python-openstackclient
-Dolph
On Mon, Feb 11, 2013 at 11:08 AM, Miller, Mark M (EB SW Cloud - R&D - Corvallis) <mark.m.miller@xxxxxx<mailto:mark.m.miller@xxxxxx>> wrote:
Guang provided the answer for me with a sample JSON create domain request:
{ "domain":{
"name": "myDomain"
}
}
What through me off were the examples in the identity-api-v3 document. None of the domain JSON examples include the highest level "domain" element. The same is true for most of the other examples in the document.
Mark
-----Original Message-----
From: openstack-bounces+mark.m.miller=hp.com@xxxxxxxxxxxxxxxxxxx<mailto:hp.com@xxxxxxxxxxxxxxxxxxx> [mailto:openstack-bounces+mark.m.miller=hp.com@xxxxxxxxxxxxxxxxxxx] On Behalf Of Miller, Mark M (EB SW Cloud - R&D - Corvallis)
Sent: Thursday, February 07, 2013 1:42 PM
To: Adam Young; openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Openstack] keystone question
Hi all,
I have spent several days installing Grizzly-2 Keystone with SSL and PKI and think I have been successful. I can see some of the new API resources such as "v3/domains", "v3/groups", and "v3/services", but I don't see these listed as commands in the keystoneclient. Are they simply not implemented yet or was I unsuccessful when I installed Grizzly-2? I also want to know if the above resource APIs are fully functional?
Regards,
Mark Miller
_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp
_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp
References