Tuesday, 2017-09-19

*** chlong has joined #openstack-sdks00:20
*** LindaWang has joined #openstack-sdks00:47
*** e0ne has joined #openstack-sdks01:58
*** e0ne has quit IRC02:02
*** chlong has quit IRC02:03
openstackgerritlihaijing proposed openstack/python-openstackclient master: Add "volume service list --host" functional test case  https://review.openstack.org/50498902:07
*** dave-mccowan has quit IRC02:35
-openstackstatus- NOTICE: Gerrit is being restarted to feed its insatiable memory appetite02:41
*** ldl has joined #openstack-sdks03:50
*** e0ne has joined #openstack-sdks04:00
*** e0ne has quit IRC04:04
*** ldl has quit IRC04:14
*** gildub_ has joined #openstack-sdks05:08
*** gildub_ has quit IRC05:12
*** gildub_ has joined #openstack-sdks05:17
*** ldl has joined #openstack-sdks05:37
*** amotoki_ has joined #openstack-sdks05:39
*** lbragstad has quit IRC05:44
*** amotoki__ has joined #openstack-sdks05:52
*** amotoki_ has quit IRC05:52
*** amotoki__ has quit IRC05:56
*** amotoki_ has joined #openstack-sdks05:57
*** Shrews has quit IRC06:05
*** dhellmann has quit IRC06:05
*** nakul_d has quit IRC06:05
*** cmurphy has quit IRC06:05
*** dhellmann has joined #openstack-sdks06:05
*** cmurphy has joined #openstack-sdks06:05
*** Shrews has joined #openstack-sdks06:05
*** nakul_d has joined #openstack-sdks06:06
*** pepijn has quit IRC06:07
openstackgerritlihaijing proposed openstack/python-openstackclient master: Add "volume service list --host" functional test case  https://review.openstack.org/50498906:07
*** hoangcx has quit IRC06:20
*** hoangcx has joined #openstack-sdks06:28
*** gildub_ has quit IRC06:58
*** gildub_ has joined #openstack-sdks07:03
*** cdent has joined #openstack-sdks07:10
-openstackstatus- NOTICE: Post jobs are not executed currently, do not tag any releases07:23
*** ChanServ changes topic to "Post jobs are not executed currently, do not tag any releases"07:23
*** gildub_ has quit IRC07:30
*** fzdarsky has joined #openstack-sdks07:53
*** ralonsoh has joined #openstack-sdks07:53
*** d0ugal has quit IRC08:01
*** d0ugal has joined #openstack-sdks08:09
*** jpich has joined #openstack-sdks08:11
*** gildub_ has joined #openstack-sdks08:12
*** gildub_ has quit IRC08:28
ldlmay 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
ldlIn the source code I do not find the compute property where is.08:35
ldlhttps://github.com/openstack/python-openstacksdk/blob/master/openstack/connection.py08:35
*** pepijn has joined #openstack-sdks08:39
openstackgerritliyi proposed openstack/python-openstacksdk master: Add force parameter for cluster and node deletion  https://review.openstack.org/50511708:50
Qimingldl, what do you want?08:51
ldlI want to know how can I to read the openstack source code08:52
ldl:Qiming08:52
Qimingthe proper way to read the source is to read08:52
openstackgerritMerged openstack/python-openstackclient master: Add python-zunclient plugin  https://review.openstack.org/50453308:53
Qimingare you looking for someone to read the source for you?08:54
seanhandleyldl: Describe more clearly what it is you're trying to achieve and perhaps someone can guide you to the right part of the source code08:55
ldlsuch as:  conn.compute.servers() this method I can use to list the servers08:56
seanhandleyproperties 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 module08:56
ldlbut in the source code I did not find the method08:56
seanhandleyldl: ok08:56
seanhandleyDid you read all the source code in the sdk ?08:57
seanhandleyI'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.py09:00
seanhandleyI think it's quite possible that servers() is defined dynamically09:00
seanhandleyif 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
seanhandleyI'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 etc09:02
seanhandleyLine 19 shows `class Server(resource2.Resource)` so you can see the server class inherits from the Resource class`09:03
seanhandleyDoes that make sense ldl?09:03
ldlyes09:04
ldlI saw it09:04
ldl thanks09:05
seanhandleyThis SO thread might help clarify: https://stackoverflow.com/questions/17929543/how-can-i-dynamically-create-class-methods-for-a-class-in-python09:05
seanhandleythe code seems to use a method called `setattr`09:05
seanhandleywhich lets you dynamically create methods on objects/classes09:06
ldlyes , thank you , my friend.09:07
ldluse the reflection09:10
openstackgerritMerged openstack/cliff master: Updates for stestr  https://review.openstack.org/50425709:12
*** e0ne has joined #openstack-sdks09:24
*** reedip has joined #openstack-sdks10:13
*** ldl has quit IRC10:37
*** jkilpatr has quit IRC10:42
*** dtantsur|afk is now known as dtantsur10:58
*** ldl has joined #openstack-sdks11:01
*** sdague has joined #openstack-sdks11:12
*** jkilpatr has joined #openstack-sdks11:15
*** cdent has quit IRC11:21
*** ldl has quit IRC11:35
*** ldl has joined #openstack-sdks11:37
briancurtinldl: 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
briancurtinthey 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 IRC12:17
*** LindaWang has joined #openstack-sdks12:18
briancurtinldl: 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 a12:21
briancurtinREST 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 can12:21
ldlI get that12:22
ldl thank you, solved it, do not pass that param, I get it.12:22
openstackgerrityanpuqing proposed openstack/python-openstackclient master: Add interfaces info in router show  https://review.openstack.org/47772812:42
*** ldl has quit IRC12:42
*** dave-mccowan has joined #openstack-sdks12:46
openstackgerritMerged openstack/python-openstackclient master: Unroll the network qos policy functional tests  https://review.openstack.org/49764912:51
openstackgerritMerged openstack/python-openstackclient master: Add functional test cases for "volume qos associate/disassociate"  https://review.openstack.org/50489012:51
*** dave-mcc_ has joined #openstack-sdks12:51
*** dave-mccowan has quit IRC12:51
*** LindaWang has quit IRC12:53
*** pepijn has quit IRC13:07
*** bobh has joined #openstack-sdks13:07
*** pepijn has joined #openstack-sdks13:07
*** amotoki_ has quit IRC13:09
*** gouthamr has joined #openstack-sdks13:13
*** chlong has joined #openstack-sdks13:19
*** markvoelker has joined #openstack-sdks13:30
*** LindaWang has joined #openstack-sdks13:33
*** dtantsur is now known as dtantsur|lunch13:38
*** cdent has joined #openstack-sdks13:44
*** cleong has joined #openstack-sdks13:50
openstackgerritMerged openstack/os-api-ref master: Updated from global requirements  https://review.openstack.org/47804013:59
openstackgerritMerged openstack/service-types-authority master: Update the link of Zun API reference  https://review.openstack.org/50177314:00
*** erlon has joined #openstack-sdks14:05
*** ldl has joined #openstack-sdks14:11
*** ldl has quit IRC14:19
*** bobh has quit IRC14:26
*** sdague has quit IRC14:32
openstackgerritMerged openstack/python-openstackclient feature/osc4: [Compute]Make column content readable for both human and machine  https://review.openstack.org/49381414:35
*** sdague has joined #openstack-sdks14:40
*** sdague has quit IRC14:46
*** lbragstad has joined #openstack-sdks14:59
*** lbragstad has quit IRC15:11
openstackgerritHongbin Lu proposed openstack/python-openstackclient master: Support creating unaddress neutron port  https://review.openstack.org/50481715:12
*** bobh has joined #openstack-sdks15:26
*** umbSublime has joined #openstack-sdks15:27
*** bobh has quit IRC15:31
umbSublimeHey, 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 the15:32
umbSublimeright direction it would be great.15:32
*** e0ne has quit IRC15:37
*** LindaWang has quit IRC15:45
*** sdague has joined #openstack-sdks15:46
*** dtantsur|lunch is now known as dtantsur16:00
*** bobh has joined #openstack-sdks16:27
*** bobh has quit IRC16:32
*** rajathagasthya has joined #openstack-sdks16:33
*** ralonsoh has quit IRC16:33
*** sdague has quit IRC16:35
*** sdague has joined #openstack-sdks16:36
*** jpich has quit IRC16:36
openstackgerritMerged openstack/os-client-config master: Fix requires_floating_ip  https://review.openstack.org/50461616:41
*** Qiming has quit IRC16:45
*** Qiming has joined #openstack-sdks16:49
*** gouthamr has quit IRC17:01
*** gouthamr has joined #openstack-sdks17:02
*** fzdarsky is now known as fzdarsky|afk17:17
*** bobh has joined #openstack-sdks17:29
*** bobh has quit IRC17:33
*** ragasthya has joined #openstack-sdks17:39
*** rajathagasthya has quit IRC17:42
*** pepijn has quit IRC18:13
*** bobh has joined #openstack-sdks18:27
*** ragasthya has quit IRC18:32
*** dtantsur is now known as dtantsur|afk18:40
openstackgerritMerged openstack/os-api-ref master: doc: Remove deprecated call to sphinx.util.compat  https://review.openstack.org/49882518:44
*** rajathagasthya has joined #openstack-sdks18:45
openstackgerritMerged openstack/os-api-ref master: Remove unconstraint package installation  https://review.openstack.org/48071518:45
openstackgerritMerged openstack/os-api-ref master: Clear description for max_version field  https://review.openstack.org/45917218:45
*** rajathagasthya has quit IRC18:51
openstackgerritMonty Taylor proposed openstack/os-client-config master: Treat clouds.yaml with one cloud like envvars  https://review.openstack.org/50538819:41
*** rajathagasthya has joined #openstack-sdks19:47
*** gouthamr has quit IRC20:03
*** jkilpatr has quit IRC20:18
*** e0ne has joined #openstack-sdks20: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 IRC20:28
*** jkilpatr has joined #openstack-sdks20:42
*** cleong has quit IRC20:44
openstackgerritSlawek Kaplonski proposed openstack/python-openstacksdk master: Add support for network quota details command  https://review.openstack.org/50411120:59
*** e0ne has joined #openstack-sdks21:08
openstackgerritJackie Truong proposed openstack/python-openstackclient master: Create/Rebuild server with trusted certificate IDs  https://review.openstack.org/50192621:23
*** gouthamr has joined #openstack-sdks21:34
*** e0ne has quit IRC21:37
*** e0ne has joined #openstack-sdks21:38
*** e0ne has quit IRC21:38
*** bobh has quit IRC21:43
*** gouthamr has quit IRC22:21
*** chlong has quit IRC22:21
*** sdague has quit IRC22:27
*** dave-mcc_ has quit IRC22:33
-openstackstatus- NOTICE: Gerrit is being restarted to address some final issues, review.openstack.org will be inaccessible for a few minutes while we restart22:33
*** openstackgerrit has quit IRC22:47
*** gouthamr has joined #openstack-sdks23:01
*** bobh has joined #openstack-sdks23:12
*** cdent has quit IRC23:23
*** rajathagasthya has quit IRC23:37
*** gouthamr has quit IRC23: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-sdks23:55
*** bobh has quit IRC23:57

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!