| Posted | Nick | Remark | |
|---|---|---|---|
| #openstack-sdks - 2017-09-06 | |||
| 16:27:20 | cdent | dtantsur: my advice for scheduling stuff would be to just go to the interop stuff you need to go to and show up in the api room when you’re feeling into it | |
| 16:27:51 | dtantsur | okay, makes sense :) | |
| 16:28:01 | cdent | I’ve decided that for at least the first two days I’m going to try to use the ptg as a way to have conversations that allow some relaxed reflection and planning rather than panic | |
| 16:29:32 | cdent | dtantsur: I’ve started feeling like panic is hiding the real issues | |
| 16:30:56 | dtantsur | heh | |
| 16:55:18 | cdent | elmiko, edleafe, dtantsur I’m taking microversin theraphy off the api-sig etherpad unless someone squeals now | |
| 16:55:49 | dtantsur | cdent: there is something about it in the interop room, maybe we should just all show up there? :) | |
| 16:56:00 | cdent | yeah, saw that, put my name on it | |
| 17:02:34 | elmiko | cdent: no objection here | |
| 17:04:38 | cdent | elmiko, edleafe: did some adjustments: https://etherpad.openstack.org/p/api-ptg-queens | |
| 17:05:10 | edleafe | cdent: ack | |
| 17:05:55 | cdent | feel free to tweak, annotate, etc | |
| 17:08:02 | edleafe | cdent: please lighten your etherpad color. Hard to read! | |
| 17:10:21 | cdent | edleafe: now’s that? | |
| 17:10:29 | edleafe | much better! | |
| 17:10:35 | edleafe | my eyes thank you | |
| 17:19:38 | elmiko | cdent: lgtm, keep in mind i probably have to leave around 1-2pm on tuesday (flight out at 4:30pm) | |
| 17:20:20 | cdent | elmiko: noted | |
| 19:28:52 | openstackgerrit | Merged openstack/keystoneauth master: Add loading mock fixtures https://review.openstack.org/436012 | |
| 20:45:26 | openstackgerrit | Monty Taylor proposed openstack/keystoneauth master: Add version discovery support to BaseAuthPlugin https://review.openstack.org/500956 | |
| 20:55:24 | openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Replace profile with os-client-config https://review.openstack.org/501428 | |
| 20:55:24 | openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Strip endpoint_filter https://review.openstack.org/501429 | |
| 20:55:25 | openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Rename _Request.uri to _Request.url https://review.openstack.org/501430 | |
| 20:55:25 | openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Make proxy subclass of adapter https://review.openstack.org/501431 | |
| 20:55:26 | openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Rename bare_metal to baremetal https://review.openstack.org/501432 | |
| 20:55:26 | openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Rename cluster to clustering https://review.openstack.org/501433 | |
| 20:55:27 | openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Rename block_store to block_storage https://review.openstack.org/501434 | |
| 20:55:27 | openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Rename telemetry to meter https://review.openstack.org/501435 | |
| 20:55:28 | openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Create generic proxies for all services in STA https://review.openstack.org/501436 | |
| 20:55:28 | openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: More connection cleanup https://review.openstack.org/501437 | |
| 20:55:29 | openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Add notes about moving forward https://review.openstack.org/501438 | |
| 20:56:44 | mordred | johnsom, dtroyer ^^ that is my rough-draft sketch - there's notes in the last patch - I've been holding off pushing it up because crunch-time with zuul v3 so I won't really be able to discuss/respond a ton until PTG - but there it is for reading or ignoring as you see fit | |
| 20:57:39 | johnsom | mordred Thanks! | |
| 21:16:22 | briancurtin | interesting | |
| #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 | |