*** chlong has joined #openstack-sdks | 00:20 | |
*** LindaWang has joined #openstack-sdks | 00:47 | |
*** e0ne has joined #openstack-sdks | 01:58 | |
*** e0ne has quit IRC | 02:02 | |
*** chlong has quit IRC | 02:03 | |
openstackgerrit | lihaijing proposed openstack/python-openstackclient master: Add "volume service list --host" functional test case https://review.openstack.org/504989 | 02:07 |
---|---|---|
*** dave-mccowan has quit IRC | 02:35 | |
-openstackstatus- NOTICE: Gerrit is being restarted to feed its insatiable memory appetite | 02:41 | |
*** ldl has joined #openstack-sdks | 03:50 | |
*** e0ne has joined #openstack-sdks | 04:00 | |
*** e0ne has quit IRC | 04:04 | |
*** ldl has quit IRC | 04:14 | |
*** gildub_ has joined #openstack-sdks | 05:08 | |
*** gildub_ has quit IRC | 05:12 | |
*** gildub_ has joined #openstack-sdks | 05:17 | |
*** ldl has joined #openstack-sdks | 05:37 | |
*** amotoki_ has joined #openstack-sdks | 05:39 | |
*** lbragstad has quit IRC | 05:44 | |
*** amotoki__ has joined #openstack-sdks | 05:52 | |
*** amotoki_ has quit IRC | 05:52 | |
*** amotoki__ has quit IRC | 05:56 | |
*** amotoki_ has joined #openstack-sdks | 05:57 | |
*** Shrews has quit IRC | 06:05 | |
*** dhellmann has quit IRC | 06:05 | |
*** nakul_d has quit IRC | 06:05 | |
*** cmurphy has quit IRC | 06:05 | |
*** dhellmann has joined #openstack-sdks | 06:05 | |
*** cmurphy has joined #openstack-sdks | 06:05 | |
*** Shrews has joined #openstack-sdks | 06:05 | |
*** nakul_d has joined #openstack-sdks | 06:06 | |
*** pepijn has quit IRC | 06:07 | |
openstackgerrit | lihaijing proposed openstack/python-openstackclient master: Add "volume service list --host" functional test case https://review.openstack.org/504989 | 06:07 |
*** hoangcx has quit IRC | 06:20 | |
*** hoangcx has joined #openstack-sdks | 06:28 | |
*** gildub_ has quit IRC | 06:58 | |
*** gildub_ has joined #openstack-sdks | 07:03 | |
*** cdent has joined #openstack-sdks | 07:10 | |
-openstackstatus- NOTICE: Post jobs are not executed currently, do not tag any releases | 07:23 | |
*** ChanServ changes topic to "Post jobs are not executed currently, do not tag any releases" | 07:23 | |
*** gildub_ has quit IRC | 07:30 | |
*** fzdarsky has joined #openstack-sdks | 07:53 | |
*** ralonsoh has joined #openstack-sdks | 07:53 | |
*** d0ugal has quit IRC | 08:01 | |
*** d0ugal has joined #openstack-sdks | 08:09 | |
*** jpich has joined #openstack-sdks | 08:11 | |
*** gildub_ has joined #openstack-sdks | 08:12 | |
*** gildub_ has quit IRC | 08:28 | |
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:32 |
ldl | In the source code I do not find the compute property where is. | 08:35 |
ldl | https://github.com/openstack/python-openstacksdk/blob/master/openstack/connection.py | 08:35 |
*** pepijn has joined #openstack-sdks | 08:39 | |
openstackgerrit | liyi proposed openstack/python-openstacksdk master: Add force parameter for cluster and node deletion https://review.openstack.org/505117 | 08:50 |
Qiming | ldl, what do you want? | 08:51 |
ldl | I want to know how can I to read the openstack source code | 08:52 |
ldl | :Qiming | 08:52 |
Qiming | the proper way to read the source is to read | 08:52 |
openstackgerrit | Merged openstack/python-openstackclient master: Add python-zunclient plugin https://review.openstack.org/504533 | 08:53 |
Qiming | are you looking for someone to read the source for you? | 08:54 |
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:55 |
ldl | such as: conn.compute.servers() this method I can use to list the servers | 08:56 |
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 |
ldl | but in the source code I did not find the method | 08:56 |
seanhandley | ldl: ok | 08:56 |
seanhandley | Did you read all the source code in the sdk ? | 08:57 |
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 |
seanhandley | I think it's quite possible that servers() is defined dynamically | 09:00 |
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:01 |
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:02 |
seanhandley | Line 19 shows `class Server(resource2.Resource)` so you can see the server class inherits from the Resource class` | 09:03 |
seanhandley | Does that make sense ldl? | 09:03 |
ldl | yes | 09:04 |
ldl | I saw it | 09:04 |
ldl | thanks | 09:05 |
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 |
seanhandley | the code seems to use a method called `setattr` | 09:05 |
seanhandley | which lets you dynamically create methods on objects/classes | 09:06 |
ldl | yes , thank you , my friend. | 09:07 |
ldl | use the reflection | 09:10 |
openstackgerrit | Merged openstack/cliff master: Updates for stestr https://review.openstack.org/504257 | 09:12 |
*** e0ne has joined #openstack-sdks | 09:24 | |
*** reedip has joined #openstack-sdks | 10:13 | |
*** ldl has quit IRC | 10:37 | |
*** jkilpatr has quit IRC | 10:42 | |
*** dtantsur|afk is now known as dtantsur | 10:58 | |
*** ldl has joined #openstack-sdks | 11:01 | |
*** sdague has joined #openstack-sdks | 11:12 | |
*** jkilpatr has joined #openstack-sdks | 11:15 | |
*** cdent has quit IRC | 11:21 | |
*** ldl has quit IRC | 11:35 | |
*** ldl has joined #openstack-sdks | 11:37 | |
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:08 |
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:09 |
ldl | :briancurtin yeah, thanks. I have an issue, that is, when I create the user, the links to fill what? | 12:10 |
*** LindaWang has quit IRC | 12:17 | |
*** LindaWang has joined #openstack-sdks | 12:18 | |
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 |
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 |
ldl | I get that | 12:22 |
ldl | thank you, solved it, do not pass that param, I get it. | 12:22 |
openstackgerrit | yanpuqing proposed openstack/python-openstackclient master: Add interfaces info in router show https://review.openstack.org/477728 | 12:42 |
*** ldl has quit IRC | 12:42 | |
*** dave-mccowan has joined #openstack-sdks | 12:46 | |
openstackgerrit | Merged openstack/python-openstackclient master: Unroll the network qos policy functional tests https://review.openstack.org/497649 | 12:51 |
openstackgerrit | Merged openstack/python-openstackclient master: Add functional test cases for "volume qos associate/disassociate" https://review.openstack.org/504890 | 12:51 |
*** dave-mcc_ has joined #openstack-sdks | 12:51 | |
*** dave-mccowan has quit IRC | 12:51 | |
*** LindaWang has quit IRC | 12:53 | |
*** pepijn has quit IRC | 13:07 | |
*** bobh has joined #openstack-sdks | 13:07 | |
*** pepijn has joined #openstack-sdks | 13:07 | |
*** amotoki_ has quit IRC | 13:09 | |
*** gouthamr has joined #openstack-sdks | 13:13 | |
*** chlong has joined #openstack-sdks | 13:19 | |
*** markvoelker has joined #openstack-sdks | 13:30 | |
*** LindaWang has joined #openstack-sdks | 13:33 | |
*** dtantsur is now known as dtantsur|lunch | 13:38 | |
*** cdent has joined #openstack-sdks | 13:44 | |
*** cleong has joined #openstack-sdks | 13:50 | |
openstackgerrit | Merged openstack/os-api-ref master: Updated from global requirements https://review.openstack.org/478040 | 13:59 |
openstackgerrit | Merged openstack/service-types-authority master: Update the link of Zun API reference https://review.openstack.org/501773 | 14:00 |
*** erlon has joined #openstack-sdks | 14:05 | |
*** ldl has joined #openstack-sdks | 14:11 | |
*** ldl has quit IRC | 14:19 | |
*** bobh has quit IRC | 14:26 | |
*** sdague has quit IRC | 14:32 | |
openstackgerrit | Merged openstack/python-openstackclient feature/osc4: [Compute]Make column content readable for both human and machine https://review.openstack.org/493814 | 14:35 |
*** sdague has joined #openstack-sdks | 14:40 | |
*** sdague has quit IRC | 14:46 | |
*** lbragstad has joined #openstack-sdks | 14:59 | |
*** lbragstad has quit IRC | 15:11 | |
openstackgerrit | Hongbin Lu proposed openstack/python-openstackclient master: Support creating unaddress neutron port https://review.openstack.org/504817 | 15:12 |
*** bobh has joined #openstack-sdks | 15:26 | |
*** umbSublime has joined #openstack-sdks | 15:27 | |
*** bobh has quit IRC | 15:31 | |
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 |
umbSublime | right direction it would be great. | 15:32 |
*** e0ne has quit IRC | 15:37 | |
*** LindaWang has quit IRC | 15:45 | |
*** sdague has joined #openstack-sdks | 15:46 | |
*** dtantsur|lunch is now known as dtantsur | 16:00 | |
*** bobh has joined #openstack-sdks | 16:27 | |
*** bobh has quit IRC | 16:32 | |
*** rajathagasthya has joined #openstack-sdks | 16:33 | |
*** ralonsoh has quit IRC | 16:33 | |
*** sdague has quit IRC | 16:35 | |
*** sdague has joined #openstack-sdks | 16:36 | |
*** jpich has quit IRC | 16:36 | |
openstackgerrit | Merged openstack/os-client-config master: Fix requires_floating_ip https://review.openstack.org/504616 | 16:41 |
*** Qiming has quit IRC | 16:45 | |
*** Qiming has joined #openstack-sdks | 16:49 | |
*** gouthamr has quit IRC | 17:01 | |
*** gouthamr has joined #openstack-sdks | 17:02 | |
*** fzdarsky is now known as fzdarsky|afk | 17:17 | |
*** bobh has joined #openstack-sdks | 17:29 | |
*** bobh has quit IRC | 17:33 | |
*** ragasthya has joined #openstack-sdks | 17:39 | |
*** rajathagasthya has quit IRC | 17:42 | |
*** pepijn has quit IRC | 18:13 | |
*** bobh has joined #openstack-sdks | 18:27 | |
*** ragasthya has quit IRC | 18:32 | |
*** dtantsur is now known as dtantsur|afk | 18:40 | |
openstackgerrit | Merged openstack/os-api-ref master: doc: Remove deprecated call to sphinx.util.compat https://review.openstack.org/498825 | 18:44 |
*** rajathagasthya has joined #openstack-sdks | 18:45 | |
openstackgerrit | Merged openstack/os-api-ref master: Remove unconstraint package installation https://review.openstack.org/480715 | 18:45 |
openstackgerrit | Merged openstack/os-api-ref master: Clear description for max_version field https://review.openstack.org/459172 | 18:45 |
*** rajathagasthya has quit IRC | 18:51 | |
openstackgerrit | Monty Taylor proposed openstack/os-client-config master: Treat clouds.yaml with one cloud like envvars https://review.openstack.org/505388 | 19:41 |
*** rajathagasthya has joined #openstack-sdks | 19:47 | |
*** gouthamr has quit IRC | 20:03 | |
*** jkilpatr has quit IRC | 20:18 | |
*** e0ne has joined #openstack-sdks | 20:22 | |
-openstackstatus- NOTICE: Zuul and Gerrit are being restarted to address issues discovered with the Gerrit 2.13 upgrade. review.openstack.org will be inaccessible for a few minutes while we make these changes. Currently running jobs will be restarted for you once Zuul and Gerrit are running again. | 20:27 | |
*** e0ne has quit IRC | 20:28 | |
*** jkilpatr has joined #openstack-sdks | 20:42 | |
*** cleong has quit IRC | 20:44 | |
openstackgerrit | Slawek Kaplonski proposed openstack/python-openstacksdk master: Add support for network quota details command https://review.openstack.org/504111 | 20:59 |
*** e0ne has joined #openstack-sdks | 21:08 | |
openstackgerrit | Jackie Truong proposed openstack/python-openstackclient master: Create/Rebuild server with trusted certificate IDs https://review.openstack.org/501926 | 21:23 |
*** gouthamr has joined #openstack-sdks | 21:34 | |
*** e0ne has quit IRC | 21:37 | |
*** e0ne has joined #openstack-sdks | 21:38 | |
*** e0ne has quit IRC | 21:38 | |
*** bobh has quit IRC | 21:43 | |
*** gouthamr has quit IRC | 22:21 | |
*** chlong has quit IRC | 22:21 | |
*** sdague has quit IRC | 22:27 | |
*** dave-mcc_ has quit IRC | 22:33 | |
-openstackstatus- NOTICE: Gerrit is being restarted to address some final issues, review.openstack.org will be inaccessible for a few minutes while we restart | 22:33 | |
*** openstackgerrit has quit IRC | 22:47 | |
*** gouthamr has joined #openstack-sdks | 23:01 | |
*** bobh has joined #openstack-sdks | 23:12 | |
*** cdent has quit IRC | 23:23 | |
*** rajathagasthya has quit IRC | 23:37 | |
*** gouthamr has quit IRC | 23:40 | |
*** ChanServ changes topic to "#openstack-sdks" | 23:40 | |
-openstackstatus- NOTICE: Gerrit is once again part of normal puppet config management. Problems with Gerrit gitweb links and Zuul post jobs have been addressed. We currently cannot create new gerrit projects (fixes in progress) and email sending is slow (being debugged). | 23:40 | |
*** gouthamr has joined #openstack-sdks | 23:55 | |
*** bobh has quit IRC | 23:57 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!