| Posted | Nick | Remark | |
|---|---|---|---|
| #openstack-sdks - 2017-09-15 | |||
| 19:18:05 | openstackgerrit | Merged openstack/os-client-config master: Updates for stestr https://review.openstack.org/504261 | |
| 22:24:13 | openstackgerrit | Hongbin Lu proposed openstack/python-openstackclient master: Add python-zunclient plugin https://review.openstack.org/504533 | |
| 23:13:49 | openstackgerrit | Merged openstack/python-openstackclient master: Updates for stestr https://review.openstack.org/504255 | |
| #openstack-sdks - 2017-09-16 | |||
| 17:44:32 | openstackgerrit | Merged openstack/python-openstackclient master: Attempt to work around chronically failing server issues with aggregates and qos https://review.openstack.org/504473 | |
| 18:13:55 | openstackgerrit | Monty Taylor proposed openstack/os-client-config master: Fix requires_floating_ip https://review.openstack.org/504616 | |
| 23:21:21 | openstackgerrit | OpenStack Proposal Bot proposed openstack/os-client-config master: Updated from global requirements https://review.openstack.org/504709 | |
| 23:23:59 | openstackgerrit | OpenStack Proposal Bot proposed openstack/python-openstacksdk master: Updated from global requirements https://review.openstack.org/504718 | |
| #openstack-sdks - 2017-09-17 | |||
| 00:50:56 | openstackgerrit | Merged openstack/python-openstacksdk master: Updated from global requirements https://review.openstack.org/504718 | |
| 17:47:11 | mordred | dtroyer, Shrews, stevemar, jamielennox: if any of y'all are around, https://review.openstack.org/#/c/504616/ would be great | |
| 18:00:44 | openstackgerrit | Merged openstack/os-client-config master: Updated from global requirements https://review.openstack.org/504709 | |
| 18:52:31 | openstackgerrit | Dean Troyer proposed openstack/python-openstackclient master: Unroll the network qos policy functional tests https://review.openstack.org/497649 | |
| #openstack-sdks - 2017-09-18 | |||
| 01:47:16 | openstackgerrit | Hongbin Lu proposed openstack/python-openstackclient master: Support creating unaddress neutron port https://review.openstack.org/504817 | |
| 04:03:16 | openstackgerrit | Merged openstack/python-openstackclient master: Useless line of code in shell.py https://review.openstack.org/501966 | |
| 07:16:26 | openstackgerrit | Rui Chen proposed openstack/python-openstackclient feature/osc4: [Compute]Make column content readable for both human and machine https://review.openstack.org/493814 | |
| 08:17:55 | LindaWang | Hi Guys, when I execute conn = connection.Connection(**auth_args) via openstacksdk on the https supported depyloyment, error shows: OpenSSL.SSL.Error: [('PEM routines', 'PEM_read_bio', 'no start line'), ('SSL routines', 'SSL_CTX_use_PrivateKey_file', 'PEM lib')] | |
| 08:18:14 | LindaWang | Anyone would like to help? thanks | |
| 08:18:35 | LindaWang | openstacksdk (0.9.13) | |
| 09:07:24 | openstackgerrit | lihaijing proposed openstack/python-openstackclient master: Add functional test cases for “volume qos associate/disassociate” https://review.openstack.org/504890 | |
| 09:08:49 | openstackgerrit | lihaijing proposed openstack/python-openstackclient master: Add functional test cases for "volume qos associate/disassociate" https://review.openstack.org/504890 | |
| 11:28:41 | ldl | Hi, friends, I want to know whether I can create a project by openstacksdk? | |
| 11:31:10 | seanhandley | You can ldl | |
| 11:31:37 | ldl | there is no demo, right? | |
| 11:31:42 | seanhandley | As long as your user is an administrator (i.e. has the admin role) | |
| 11:32:59 | ldl | i can also create user using openstacksdk, alright? | |
| 11:33:14 | seanhandley | Yeah | |
| 11:34:09 | seanhandley | I believe conn.identity.create_project and conn.identity.create_user | |
| 11:34:17 | seanhandley | I don't know all the params it expects | |
| 11:34:38 | seanhandley | but if you call the methods without supplying params it'll hopefully tell you what it expects | |
| 11:44:22 | ldl | :seanhandley thank you first. because I want when a user register his account, I will create a project and user for him. As your said, must via admin account , then can create project and user , alright? | |
| 12:02:40 | seanhandley | Yes | |
| 12:03:04 | seanhandley | The company I work for runs a public cloud based on OpenStack | |
| 12:03:22 | seanhandley | so we ended up writing code that creates users/projects in response to people signing up to our service | |
| 12:03:33 | seanhandley | so our service has its own account in Keystone with the admin role | |
| 12:03:42 | seanhandley | and the users created are non-admin users | |
| 12:04:35 | seanhandley | I believe it's going to be possible to have more granular permission hierarchies where users are admins of their own domain and all projects/users belonging to that domain | |
| 12:05:03 | seanhandley | but when we first started using OpenStack that wasn't possible - an admin had access to everything on the whole cloud (including all customers) | |
| 12:05:35 | seanhandley | for us at least, it meant that our users couldn't create their own users/projects directly in the OpenStack APIs | |
| 12:05:45 | seanhandley | so we made it possible via our own API/dashboard | |
| 12:06:04 | seanhandley | Hope that answers your question ldl | |
| 12:08:03 | ldl | :seanhandley Thanks for your sobering answer. | |
| 12:15:16 | briancurtin | ldl: see https://developer.openstack.org/sdks/python/openstacksdk/users/proxies/identity_v3.html for details about what you’re trying to do. | |
| 12:18:34 | ldl | :seanhandley I don't know whether can create a user that only can create project and user. use the policy to set the permission limits. | |
| 12:18:44 | ldl | to the created user. | |
| 12:19:36 | seanhandley | What version of OpenStack are you running ldl ? | |
| 12:19:41 | ldl | n | |
| 12:20:35 | seanhandley | Ask in #openstack-keystone | |
| 12:20:43 | ldl | ok | |
| 12:20:48 | seanhandley | You want to create users with domain-level admin privileges | |
| 12:21:06 | seanhandley | I'm not sure a) if that's currently possible b) which version introduced that change | |
| 12:30:14 | openstackgerrit | Steve Martinelli proposed openstack/python-openstackclient master: Add functional test cases for "volume qos associate/disassociate" https://review.openstack.org/504890 | |
| 12:33:29 | seanhandley | ldl: https://dstanek.com/keystone-domain-admins/ | |
| 12:33:41 | ldl | wow | |
| 12:33:47 | seanhandley | Sounds like domain-level admins are possible in Newton and more recent | |
| 12:34:08 | seanhandley | you need to create a domain for each customer/account | |
| 12:34:29 | seanhandley | then users within that domain with the correct domain-admin role will be able to create users/projects inside that domain | |
| #openstack-sdks - 2017-09-19 | |||
| 02:07:17 | openstackgerrit | lihaijing proposed openstack/python-openstackclient master: Add "volume service list --host" functional test case https://review.openstack.org/504989 | |
| 06:07:31 | openstackgerrit | lihaijing proposed openstack/python-openstackclient master: Add "volume service list --host" functional test case https://review.openstack.org/504989 | |
| 08:32:32 | ldl | may I ask a question?, my friends. we know we can use the conn to do many things. such as: conn.compute.servers(), but in the source code, how can I know the connection's the property? | |
| 08:35:51 | ldl | https://github.com/openstack/python-openstacksdk/blob/master/openstack/connection.py | |
| 08:35:51 | ldl | In the source code I do not find the compute property where is. | |
| 08:50:15 | openstackgerrit | liyi proposed openstack/python-openstacksdk master: Add force parameter for cluster and node deletion https://review.openstack.org/505117 | |
| 08:51:52 | Qiming | ldl, what do you want? | |
| 08:52:26 | ldl | I want to know how can I to read the openstack source code | |
| 08:52:30 | ldl | :Qiming | |
| 08:52:48 | Qiming | the proper way to read the source is to read | |
| 08:53:56 | openstackgerrit | Merged openstack/python-openstackclient master: Add python-zunclient plugin https://review.openstack.org/504533 | |
| 08:54:05 | Qiming | are you looking for someone to read the source for you? | |
| 08:55:56 | seanhandley | ldl: Describe more clearly what it is you're trying to achieve and perhaps someone can guide you to the right part of the source code | |
| 08:56:21 | ldl | such as: conn.compute.servers() this method I can use to list the servers | |
| 08:56:34 | seanhandley | properties aren't always defined where you expect them to be because classes inherit from other classes, or composite behaviours from elsewhere in the code directly into their own module | |
| 08:56:48 | ldl | but in the source code I did not find the method | |
| 08:56:58 | seanhandley | ldl: ok | |
| 08:57:04 | seanhandley | Did you read all the source code in the sdk ? | |
| 09:00:09 | seanhandley | I'm not personally very familiar with the code in the SDK but at a glance it seems a lot of shared behaviour is defined here: https://github.com/openstack/python-openstacksdk/blob/master/openstack/resource.py | |
| 09:00:44 | seanhandley | I think it's quite possible that servers() is defined dynamically | |
| 09:01:42 | seanhandley | if you read https://github.com/openstack/python-openstacksdk/blob/79462437058e37b83b8153531b5078ddc5a1edb8/openstack/compute/v2/server.py you'll see that it defines its `resources_key` as "servers" | |
| 09:02:31 | seanhandley | I'd imagine the code in the SDK sets up most methods dynamically since they all follow common CRUD patterns e.g. create_project, list_servers, update_user etc | |
| 09:03:12 | seanhandley | Line 19 shows `class Server(resource2.Resource)` so you can see the server class inherits from the Resource class` | |
| 09:03:49 | seanhandley | Does that make sense ldl? | |
| 09:04:51 | ldl | yes | |
| 09:04:59 | ldl | I saw it | |
| 09:05:02 | ldl | thanks | |
| 09:05:45 | seanhandley | This SO thread might help clarify: https://stackoverflow.com/questions/17929543/how-can-i-dynamically-create-class-methods-for-a-class-in-python | |
| 09:05:53 | seanhandley | the code seems to use a method called `setattr` | |
| 09:06:06 | seanhandley | which lets you dynamically create methods on objects/classes | |
| 09:07:31 | ldl | yes , thank you , my friend. | |
| 09:10:17 | ldl | use the reflection | |
| 09:12:49 | openstackgerrit | Merged openstack/cliff master: Updates for stestr https://review.openstack.org/504257 | |
| 12:08:25 | briancurtin | ldl: openstack/resource2.py and openstack/proxy2.py are the core things to get to know. each service is comprised of resources, and each service has one proxy. in your example, there’s a compute proxy and it contains methods for each resource, for example, the server resource. | |
| 12:09:09 | briancurtin | they have a 2 on them because we changed a while ago and currently need both for compatibility, but there will eventually be just one (the originals will go away, and #2 will become the only one) | |
| 12:10:01 | ldl | :briancurtin yeah, thanks. I have an issue, that is, when I create the user, the links to fill what? | |
| 12:21:24 | briancurtin | REST client—it sends what you give it, and it receives what the server sent, and it does very little else. if you have user creation issues you might want to talk to people in the keystone team after you’ve read all of the documentation you can | |
| 12:21:24 | briancurtin | ldl: i don’t understand what the question is. something you should know is that openstacksdk is merely a library that brings together many services, and it does some things to make it a consistent experience regardless of the service you’re using. however, if you’re creating users, you need to know what you’re doing within Keystone as to what is good or what is right or just about anything. the openstacksdk is purely a | |
| 12:22:13 | ldl | I get that | |
| 12:22:34 | ldl | thank you, solved it, do not pass that param, I get it. | |
| 12:42:09 | openstackgerrit | yanpuqing proposed openstack/python-openstackclient master: Add interfaces info in router show https://review.openstack.org/477728 | |
| 12:51:08 | openstackgerrit | Merged openstack/python-openstackclient master: Unroll the network qos policy functional tests https://review.openstack.org/497649 | |
| 12:51:14 | openstackgerrit | Merged openstack/python-openstackclient master: Add functional test cases for "volume qos associate/disassociate" https://review.openstack.org/504890 | |
| 13:59:07 | openstackgerrit | Merged openstack/os-api-ref master: Updated from global requirements https://review.openstack.org/478040 | |
| 14:00:37 | openstackgerrit | Merged openstack/service-types-authority master: Update the link of Zun API reference https://review.openstack.org/501773 | |