Earlier  
Posted Nick Remark
#openstack-sdks - 2017-09-07
05:07:22 openstackgerrit Merged openstack/python-openstackclient master: Updated from global requirements https://review.openstack.org/500282
07:35:29 ldl hi
07:35:42 ldl Can I ask a question about openstacksdk?
07:35:42 ldl https://ask.openstack.org/en/question/110156/how-can-i-know-the-openstacksdk-connection-is-success-or-failture/
07:39:58 seanhandley ldl: Try using it :)
07:40:00 seanhandley conn.compute.servers()
07:40:09 ldl ok
07:40:11 seanhandley should list the instances available to your tenant
07:40:25 seanhandley If not, the error should hopefully tell you what's not working
07:44:19 ldl :seanhandley and how can I know the project name fill what?
07:45:10 seanhandley ldl: It depends. Where did you get the auth url, username and password from?
07:45:43 ldl I install a openstack ocata in a remote server
07:46:00 seanhandley Are you connecting using the `admin` account?
07:46:27 ldl yes
07:46:38 seanhandley then the project/tenant name is `admin` :-)
07:46:51 ldl and how about the region
07:46:52 ldl >
07:46:53 ldl ?
07:47:56 seanhandley Most likely `RegionOne`
07:48:20 ldl if in the dashboard, there do not show the region
07:48:27 seanhandley if you can load Horizon (the dashboard) in a web browser then you can download a file that contains all your credentials (except for password)
07:48:34 ldl because I set something to disable the region
07:49:05 seanhandley Don't set the region in the SDK then, I guess
07:49:16 seanhandley unless you have an error specifically warning against its absence
07:49:50 ldl thank you
07:50:16 seanhandley No problem. You may need to set it to `None` or the empty string
07:50:28 ldl ok
07:50:42 ldl i dnowload the RC file, there shows RegionOne
07:52:20 seanhandley Ok, try it out
08:12:15 seanhandley Did it work ldl?
08:12:28 ldl yes
08:12:41 ldl it report error
08:12:58 ldl because I did not get the correct username
08:13:46 ldl I am looking for a mysql visualize tool to add data to my myswal
10:40:51 ldl HttpException: Expecting to find domain in project. The server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-6ed9ff3f-d04f-43e9-aa9b-5bc03793134c), Expecting to find domain in project. The server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error.
10:41:04 ldl I can not login the openstack sdk still
10:41:07 ldl get this error
10:41:32 ldl May I ask a other question?
10:43:33 ldl the openstack user's password is use which encryption method?
11:23:03 ldl some friend can help me with this?
11:23:03 ldl https://ask.openstack.org/en/question/110171/whats-the-encryption-method-does-the-openstack-user-password-use/
11:29:15 seanhandley ldl: https://developer.openstack.org/sdks/python/openstacksdk/users/connection.html Try adding 'domain': 'default' to the auth args (see the link for the example code)
11:29:41 ldl ok, i am tru=ying
12:20:57 briancurtin ldl: on your original question, figuring out of the connection will work, seanhandley is right that you generally just use it, but if you had some need to know before even trying anything that the creds will work, you could call `conn.authorize()` given your example
12:22:30 briancurtin ldl: you don’t encrypt anything. you have to know what the password is and then you just send the string
12:23:13 briancurtin ldl: you probably need project_domain_id or project_domain_name in your Connection args
12:23:43 ldl i don't know some params means what
12:23:57 ldl such as domain name
12:25:18 briancurtin ldl: maybe try project_domain_name=“default”? I’m not really sure. your cloud is configured in some way and you need the credentials the sdk connects with to be the same
12:25:56 amotoki I think perhaps project_domain_id=“default” or project_domain_name=“Default”
12:26:15 amotoki the name of the default domain is capitalized "Default"
12:28:05 amotoki briancurtin: btw, I think we need to update the connection docs to have keystone v3 :)
12:29:27 briancurtin amotoki: is there a good keystone v3 reference we can point to instead of documenting it directly in the sdk docs? I’ve wanted to have a better set of params there, but this is really something that just gets passed off to keystoneauth, so rather than maintain two separate sets of args i’d rather tell people straight from the source in KSA
12:30:25 amotoki briancurtin: ah, good point!
12:32:00 amotoki briancurtin: keystoneauth docs like https://docs.openstack.org/keystoneauth/latest/using-sessions.html and https://docs.openstack.org/keystoneauth/latest/authentication-plugins.html are possible candidates, but it might be a bit advanced version for regular users
12:32:24 amotoki i see two aspects. the one is how to reduce duplication and refer to e.g. keystoneauth docs.
12:32:44 amotoki the other point is how we can provide a simple example to regular users.
12:33:29 amotoki IMHO basic password plugin examples are worth documented in openstacksdk docs. for more advanced usage, keystoneauth docs can be referred.
12:34:34 briancurtin amotoki: so i think the latter is one we could solve by having some better “user guide” like examples that just show in code how common v3 situations work. another is that i’d maybe link to something like https://docs.openstack.org/keystoneauth/latest/api/keystoneauth1.identity.v3.html#keystoneauth1.identity.v3.PasswordMethod straight from the Connection args saying that those parameters are what you
12:34:34 briancurtin need. something like that
12:35:00 briancurtin “straight from the Connection args” meaning from the Connection docstring so it gets in the actual API docs
12:36:17 amotoki briancurtin: yeah, I totally agree. what we need to document in the openstacksdk docs is that the SDK passes these arguments to keystoneauth directly
12:37:56 amotoki briancurtin: I can propose it once nobody propose an improvement. I have more prioritized things until the PTG is over.
12:38:45 briancurtin amotoki: i’m creating a launchpad bug right now, and then maybe i can write this up soon as i’m busy the rest of this week (but i do need to work on a bunch of doc things soon)
12:40:02 amotoki briancurtin: nice. I am glad to help reviewing and checking it works anyway
12:42:15 briancurtin amotoki: https://bugs.launchpad.net/python-openstacksdk/+bug/1715628 i assigned it to myself as a reminder to get to it soon, but if you find later on that it’s not done, let me know and we’ll figure something out
12:42:16 openstack Launchpad bug 1715628 in OpenStack SDK "Improve Connection docs for use with Keystone v3" [High,Confirmed] - Assigned to Brian Curtin (brian.curtin)
14:23:29 edleafe cdent: elmiko: I added some rough time box numbers to the PTG etherpad https://etherpad.openstack.org/p/api-ptg-queens
14:27:32 elmiko edleafe: thanks, i'm skeptical about some of the 15 minutes slots. but i think your initial swag is a good starting point
14:38:40 edleafe elmiko: yeah, well, I did that on purpose, as those could easily become rambling topics
14:43:22 elmiko edleafe: ack, probably better to estimate short then ;)
14:59:53 amotoki briancurtin: thanks. bug description looks perfect. I will add some input based on my testing if any
15:24:12 openstackgerrit Hongbin Lu proposed openstack/service-types-authority master: Update the link of Zun API reference https://review.openstack.org/501773
16:36:03 openstackgerrit Ed Leafe proposed openstack/api-wg master: Explain, simply, why extensions are bad https://review.openstack.org/491611
16:36:30 edleafe cdent: elmiko: ^^ I just removed the "first draft" wording in the commit message
16:38:08 cdent edleafe: +1
16:40:42 elmiko thanks edleafe, +1
16:47:46 elmiko edleafe: cdent: https://etherpad.openstack.org/p/api-sig-newsletter
16:49:22 cdent elmiko: maybe a link to the existing service discovery doc?
16:50:05 elmiko cdent: this one https://review.openstack.org/#/c/459405/ ?
16:50:22 cdent no, i meant the published stuff
16:50:55 cdent this one perhaps? http://specs.openstack.org/openstack/api-wg/guidelines/consuming-catalog.html
16:51:58 elmiko ok, i'm spacing cdent, where should i drop that link?
16:53:04 elmiko thanks, i thought that's what you meant but wasn't sure
16:53:25 elmiko edleafe: yes, so much yes
16:54:04 edleafe elmiko: ok, lgtm
16:54:12 elmiko thanks!
16:54:54 elmiko cdent, edleafe, safe travels to you both. see ya next week =)
16:55:28 cdent o/
16:55:44 openstackgerrit Ed Leafe proposed openstack/api-wg master: Fix typo in liaisons.json https://review.openstack.org/501808
16:56:08 edleafe cdent: elmiko: when adding reviewers I found this typo ^^
16:56:24 edleafe I think this qualifies as a slam dunk trivial fix
16:56:45 cdent slammed
16:56:59 elmiko agreed
17:08:06 openstackgerrit Merged openstack/api-wg master: Fix typo in liaisons.json https://review.openstack.org/501808
19:51:37 openstackgerrit Slawek Kaplonski proposed openstack/python-openstacksdk master: Add getting of QoS rule type details https://review.openstack.org/501855
20:02:05 briancurtin is Slawek Kaplonski in here? if so, please don’t add tons of names to reviews—half of those people don’t work on openstack anymore and some of them never worked on this project at all
20:20:39 openstackgerrit Doug Hellmann proposed openstack/cliff master: show the distribution providing the command in help output https://review.openstack.org/501863
20:28:50 dhellmann dtroyer : I promised ^^ at the start of pike. Better late than never? :-)
20:29:56 dtroyer dhellmann: before PTG is still before PTG \o/

Earlier   Later