Earlier  
Posted Nick Remark
#openstack-sdks - 2017-09-18
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 In the source code I do not find the compute property where is.
08:35:51 ldl https://github.com/openstack/python-openstacksdk/blob/master/openstack/connection.py
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 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: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: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
14:35:54 openstackgerrit Merged openstack/python-openstackclient feature/osc4: [Compute]Make column content readable for both human and machine https://review.openstack.org/493814
15:12:07 openstackgerrit Hongbin Lu proposed openstack/python-openstackclient master: Support creating unaddress neutron port https://review.openstack.org/504817
15:32:08 umbSublime Hey, I'm trying to remove a host from an aggregate programaticaly using python-openstacksdk. The API call I want to reproduce is this one: https://developer.openstack.org/api-ref/compute/#remove-host From what I get from the docs I basically want to use this class openstackclient.compute.v2.aggregate.RemoveAggregateHost, but I have no idea how to instantiate this class. If anyone can just give me a basic example or a pointer in the
15:32:08 umbSublime right direction it would be great.
16:41:03 openstackgerrit Merged openstack/os-client-config master: Fix requires_floating_ip https://review.openstack.org/504616
18:44:50 openstackgerrit Merged openstack/os-api-ref master: doc: Remove deprecated call to sphinx.util.compat https://review.openstack.org/498825
18:45:26 openstackgerrit Merged openstack/os-api-ref master: Remove unconstraint package installation https://review.openstack.org/480715
18:45:44 openstackgerrit Merged openstack/os-api-ref master: Clear description for max_version field https://review.openstack.org/459172
19:41:54 openstackgerrit Monty Taylor proposed openstack/os-client-config master: Treat clouds.yaml with one cloud like envvars https://review.openstack.org/505388
20:59:56 openstackgerrit Slawek Kaplonski proposed openstack/python-openstacksdk master: Add support for network quota details command https://review.openstack.org/504111
21:23:41 openstackgerrit Jackie Truong proposed openstack/python-openstackclient master: Create/Rebuild server with trusted certificate IDs https://review.openstack.org/501926
#openstack-sdks - 2017-09-20
01:15:36 openstackgerrit OpenStack Proposal Bot proposed openstack/os-service-types master: Updated from global requirements https://review.openstack.org/503644
01:18:16 openstackgerrit OpenStack Proposal Bot proposed openstack/python-openstackclient master: Updated from global requirements https://review.openstack.org/505455
02:07:59 openstackgerrit lidong proposed openstack/python-openstacksdk master: Update links in CONTRIBUTING.rst https://review.openstack.org/505465
03:26:20 openstackgerrit liyi proposed openstack/python-openstacksdk master: Remove 'conditions' section in heat stack template https://review.openstack.org/505481
03:29:39 openstackgerrit liyi proposed openstack/python-openstacksdk master: Remove 'conditions' section in heat stack template https://review.openstack.org/505481
03:41:55 openstackgerrit OpenStack Proposal Bot proposed openstack/os-service-types master: Updated from global requirements https://review.openstack.org/503644
03:44:24 openstackgerrit OpenStack Proposal Bot proposed openstack/python-openstackclient master: Updated from global requirements https://review.openstack.org/505455
05:52:46 openstackgerrit Lingyong Xu proposed openstack/python-openstackclient master: Update the documentation link for doc migration https://review.openstack.org/505497
10:21:33 slaweq_ hello core reviewers of openstacksdk, can You take a look at https://review.openstack.org/#/c/501855/ and https://review.openstack.org/#/c/504111/ ?
10:21:36 slaweq_ thx in advance
11:43:05 Vishal_ Hi...I am creating a script in which I am creating a project and a user...I am not able to find the sdk function to assign admin role to the user
11:43:16 Vishal_ Can somebody please help me for the same?
12:11:25 openstackgerrit Merged openstack/os-service-types master: Updated from global requirements https://review.openstack.org/503644
13:18:34 Vishal_ ??
13:58:25 briancurtin Vishal_: look at the identity docs. probably in there. if it’s not maybe it has to be added.
13:59:51 openstackgerrit OpenStack Proposal Bot proposed openstack/python-openstackclient master: Updated from global requirements https://review.openstack.org/505455
14:01:22 Vishal_ briancurtin: thanks for the reply. I am referring to https://developer.openstack.org/sdks/python/openstacksdk/users/resources/identity/v3/project.html
14:02:03 Vishal_ briancurtin: there is a function called assign_role_to_user on it...but I feel the function does not exist anymore...can you please confirm
14:11:29 openstackgerrit OpenStack Proposal Bot proposed openstack/keystoneauth master: Updated from global requirements https://review.openstack.org/502660
14:21:18 openstackgerrit OpenStack Proposal Bot proposed openstack/python-openstackclient master: Updated from global requirements https://review.openstack.org/505455
14:26:33 briancurtin why would i confirm that when you can just do it yourself? try running it, try looking at the code, etc. the docs are generated from the source...
15:00:27 openstackgerrit OpenStack Proposal Bot proposed openstack/python-openstackclient master: Updated from global requirements https://review.openstack.org/505455
15:07:50 openstackgerrit OpenStack Proposal Bot proposed openstack/keystoneauth master: Updated from global requirements https://review.openstack.org/502660
15:17:22 openstackgerrit OpenStack Proposal Bot proposed openstack/python-openstackclient master: Updated from global requirements https://review.openstack.org/505455
15:25:00 openstackgerrit OpenStack Proposal Bot proposed openstack/keystoneauth master: Updated from global requirements https://review.openstack.org/502660
15:34:38 openstackgerrit OpenStack Proposal Bot proposed openstack/python-openstackclient master: Updated from global requirements https://review.openstack.org/505455
15:41:47 openstackgerrit OpenStack Proposal Bot proposed openstack/keystoneauth master: Updated from global requirements https://review.openstack.org/502660
15:51:15 openstackgerrit OpenStack Proposal Bot proposed openstack/python-openstackclient master: Updated from global requirements https://review.openstack.org/505455
15:58:36 openstackgerrit OpenStack Proposal Bot proposed openstack/keystoneauth master: Updated from global requirements https://review.openstack.org/502660
16:15:26 openstackgerrit OpenStack Proposal Bot proposed openstack/keystoneauth master: Updated from global requirements https://review.openstack.org/502660
16:25:00 openstackgerrit OpenStack Proposal Bot proposed openstack/python-openstackclient master: Updated from global requirements https://review.openstack.org/505455
18:01:06 openstackgerrit Monty Taylor proposed openstack/keystoneauth master: Split request logging into four different loggers https://review.openstack.org/505764
20:47:18 openstackgerrit Monty Taylor proposed openstack/keystoneauth master: Split request logging into four different loggers https://review.openstack.org/505764
20:47:19 openstackgerrit Monty Taylor proposed openstack/keystoneauth master: Migrate to stestr https://review.openstack.org/505803
21:54:18 openstackgerrit OpenStack Proposal Bot proposed openstack/keystoneauth master: Updated from global requirements https://review.openstack.org/502660
22:03:33 openstackgerrit OpenStack Proposal Bot proposed openstack/python-openstackclient master: Updated from global requirements https://review.openstack.org/505455
22:30:09 openstackgerrit OpenStack Proposal Bot proposed openstack/python-openstackclient master: Updated from global requirements https://review.openstack.org/505455
#openstack-sdks - 2017-09-21
00:07:02 openstackgerrit Merged openstack/keystoneauth master: Migrate to stestr https://review.openstack.org/505803
00:44:05 openstackgerrit OpenStack Proposal Bot proposed openstack/python-openstackclient master: Updated from global requirements https://review.openstack.org/505455

Earlier   Later