Thursday, 2015-04-23

*** stevemar has quit IRC00:24
*** bknudson has quit IRC00:45
*** pm90_ has quit IRC01:05
*** bknudson has joined #openstack-sdks01:20
*** sigmavirus24_awa is now known as sigmavirus2401:59
sigmavirus24lol02:05
*** sigmavirus24 is now known as sigmavirus24_awa02:19
*** stevemar has joined #openstack-sdks03:15
*** terrylhowe has quit IRC04:41
*** stevemar has quit IRC06:32
*** aufi has joined #openstack-sdks07:17
*** aufi_ has joined #openstack-sdks07:56
*** aufi has quit IRC08:00
*** aufi has joined #openstack-sdks08:44
*** aufi_ has quit IRC08:46
*** Hitrix has joined #openstack-sdks08:57
HitrixHi everybody, I'm just running a little sample code with the OpenStack .net SDK and I get the following error: Invalid type OpenStack.Common.Http.HttpAbstractionClient for instance field OpenStack.Common.Http.HttpAbstractionClient+<SendAsync>d__2:<>4__this09:03
Hitrixhas anyone ran into this problem before?09:04
*** ekarlso has joined #openstack-sdks09:04
ekarlsoHi guys!09:04
ekarlsoSo is the sdk going to replace the *clients ?09:05
briancurtinThough a combination of SDK and OpenStackClient, that's an eventual goal09:07
ekarlsobriancurtin: so the goal of the sdk is to replace the bindings part no of the clients ?09:07
briancurtinekarlso: sdk aims to provide a set of consistent interfaces to work with the rest apis. I think that's what you're asking09:10
ekarlsook :)09:10
ekarlsobriancurtin: so for designate, would our stuff go into the "dns" spacE?09:11
briancurtinekarlso: I believe so. We've been using he names that show up.09:12
briancurtinIn the service catalog, which I think is dns for designate09:12
ekarlso:)09:12
ekarlsoi'll try to get that going then : )09:12
briancurtinekarlso: awesome. I'm several hours past a reasonable bed time so I'm heading out of here, but feel free to ask on here for help or ping me at brian@python.org if you need any help getting it working09:14
ekarlsobriancurtin: :P09:15
*** d0ugal has quit IRC09:29
*** d0ugal has joined #openstack-sdks09:29
*** d0ugal is now known as Guest8147209:29
*** Guest81472 is now known as d0ugal209:40
*** d0ugal2 is now known as d0ugal09:47
*** d0ugal has quit IRC09:47
*** d0ugal has joined #openstack-sdks09:47
*** Hitrix has quit IRC10:22
*** elynn has joined #openstack-sdks10:23
*** Hitrix has joined #openstack-sdks11:01
*** bknudson has quit IRC11:57
*** pm90_ has joined #openstack-sdks12:05
*** pm90_ has quit IRC12:08
*** pm90_ has joined #openstack-sdks12:08
*** Shrews has quit IRC12:14
*** trown|outttypeww is now known as trown12:33
*** pm90_ has quit IRC12:52
*** bknudson has joined #openstack-sdks13:00
*** terrylhowe has joined #openstack-sdks13:11
*** pm90_ has joined #openstack-sdks13:16
*** mattfarina has joined #openstack-sdks13:16
*** pm90_ has quit IRC13:17
*** Shrews has joined #openstack-sdks13:19
*** pm90_ has joined #openstack-sdks13:19
*** Hitrix has quit IRC13:46
*** pm90_ has quit IRC14:23
ekarlsowhat's the _proxy.py stuff in osdk ?14:26
terrylhoweekarlso: the _proxy classes provide the user interface for the service14:28
terrylhoweekarlso: when you have a connection conn you you access conn.compute that is the compute proxy14:28
ekarlsoterrylhowe: uh, but why _proxy.py ?14:29
*** stevemar has joined #openstack-sdks14:32
*** aufi has quit IRC14:33
terrylhoweekarlso: it is supposed to be private as a class not intended for direct access14:41
*** trown is now known as trown|brb14:57
elynnHi15:00
elynnI new to use openstacksdk, and when I use it to create an instance, I always get an error.15:00
*** nosleep77 has quit IRC15:00
elynnfrom oslo.serialization import jsonutils15:01
elynnsorry , wrong line.15:01
*** trown|brb is now known as trown15:01
elynnInvalid imageRef provided15:02
terrylhowean import error?15:02
elynnsorry , that imageref error15:02
terrylhoweare you testing against devstack or some other cloud?15:02
terrylhoweare you using the example code?15:02
elynnI'm using devstack15:03
*** pm90_ has joined #openstack-sdks15:03
terrylhoweexample code?15:04
elynnNo, I use the codes written by myself15:04
elynnyou mean the codes in exampe                    folder?15:04
terrylhowehttps://github.com/stackforge/python-openstacksdk/blob/master/examples/jenkins.py#L5215:06
terrylhowedid you provide an imageRef?  It has to be a uuid is the only other thing that comes to mind15:06
elynnSeems I have something wrong in my codes15:07
elynnimageref only accept uuid or a image dict?15:08
elynnI use a image resource15:08
elynnNeed two imageRef https://github.com/stackforge/python-openstacksdk/blob/master/examples/jenkins.py#L4715:09
terrylhowewell, it is supposed to work with an image resource, but honestly, I haven’t tried that15:09
terrylhowethat is an error, taht double imageRef in there15:10
terrylhowea harmless one though15:10
terrylhoweit’d be nice to have an example that was a bit more simple15:10
elynnconn is conn = sdk.create_connection(params)?15:13
terrylhowethat gets created here elynn https://github.com/stackforge/python-openstacksdk/blob/master/examples/connection.py#L4215:15
terrylhoweuser preference is for versions or regions you want to interact with and the rest is auth information the **args15:16
elynnHmm, I need to modify my codes and test again.15:17
elynnI directly import server from openstack.compute.v215:17
elynnthen use obj= server.Server.new(**args), and obj.create()15:18
elynnIs that wrong?15:18
terrylhoweyou could do that, but the general idea is to use the Connection class to access that stuff15:19
terrylhoweCreate a connection with you auth info and call conn.compute.create_server(**args)15:19
elynnI will try that way, thanks!15:20
*** etoews has joined #openstack-sdks15:31
elynnThat works!15:31
terrylhowesweet elynn !15:32
elynnSeems I use it in a wrong way before.15:32
elynnAnother question, where is create_server function?15:33
elynnAh, they are in _proxy.py15:36
terrylhowehttps://github.com/stackforge/python-openstacksdk/blob/master/openstack/compute/v2/_proxy.py#L14615:36
terrylhoweright15:36
terrylhoweI think briancurtin has some changes in the works for that create method though15:37
elynnNice, thank you so much !15:37
elynnCan get_flavor accept a flavor name as parameter?15:40
briancurtinThat's something we're working on enabling.15:41
briancurtinRight now it works purely on ids but making it nicer is in the process15:44
elynnCool, I count on you!15:45
openstackgerritDoug Hellmann proposed openstack/cliff: fix author contact details  https://review.openstack.org/17686615:49
*** trown is now known as trown|lunch16:02
*** pm90__ has joined #openstack-sdks16:04
*** pm90_ has quit IRC16:04
*** pm90__ has quit IRC16:20
*** pm90_ has joined #openstack-sdks16:20
*** chellygel has joined #openstack-sdks16:29
*** jvrbanac has joined #openstack-sdks16:29
chellygelHey guys, just have a couple of questions about cliff and testing.16:29
chellygelfirst question is what other projects aside from barbican python client are using cliff16:30
chellygelsecond question is -- how do you test the CLI when cliff hides the exceptions?16:30
chellygelwe are seeing that regardless of errors, the tests are being passed. Is the solution to simply pass a debug flag into the test params?16:30
dhellmannchellygel: python-openstackclient and python-neutronclient are using cliff, as well as some non-openstack projects16:31
dhellmannchellygel: add the --debug flag to have cliff show tracebacks16:31
chellygelis that the only method for unit tests then?16:31
dhellmannchellygel: but you should probably be testing the command classes directly, rather than through cliff16:31
chellygeli'm assuming this is to ensure that the end user of the CLI has a good experience and doesnt see the errors?16:32
dhellmannyes16:32
dhellmannthey get an error message, and the return value from the process should be 1 to indicate an error16:32
chellygelokay, i understand that.16:32
chellygelthank you dhellmann !! just needed some reference points like these!16:33
dhellmannchellygel: sure, no problem -- check the tests for python-openstackclient to see how those work for some examples16:34
*** sigmavirus24_awa is now known as sigmavirus2416:49
*** trown|lunch is now known as trown17:14
openstackgerritMerged stackforge/python-openstacksdk: Apply delete changes to volume proxy  https://review.openstack.org/17502518:25
openstackgerritTerry Howe proposed stackforge/python-openstacksdk: Move jenkins create and delete in their onw files  https://review.openstack.org/17693918:35
*** pm90_ has quit IRC19:20
openstackgerritMerged openstack/cliff: fix author contact details  https://review.openstack.org/17686619:20
*** trown is now known as trown|outttypeww19:23
openstackgerritMerged openstack/python-openstackclient: Security group rule create fails  https://review.openstack.org/17581619:57
etoewsa question about the sdk and mutability of a Resource20:00
etoewsif you have code like this20:00
etoewshttps://www.irccloud.com/pastebin/Mz8QxHCW20:00
etoewsyou get the output20:00
etoewsvalue120:00
etoewsvalue120:00
etoewsnew_value120:00
etoewsnew_value120:00
*** pm90_ has joined #openstack-sdks20:01
etoewsa change to an attribute in foobar1 changes the attribute in foobar220:01
etoewsthat's pretty nutty20:01
etoewshowever if i instantiate with FakeResource.new() like so20:02
etoewshttps://www.irccloud.com/pastebin/8Lq0z9am20:02
etoewsi get the expected output20:02
etoewsvalue120:03
etoewsvalue120:03
etoewsnew_value120:03
etoewsvalue120:03
terrylhowesomehow those class variables never get translated to instance variables20:03
terrylhowehas it always been that way I wonder or did something get broken?20:04
etoewsi'm not sure20:04
openstackgerritMerged openstack/python-openstackclient: Fix security group create description bug  https://review.openstack.org/16595620:05
terrylhoweit has probably always been that way20:05
terrylhowepeople are supposed to be using new and existing20:06
terrylhowekind of a jamie question20:06
etoewsjamielennox|away: briancurtin: any insight on the above? ^20:06
briancurtinetoews: I'm at lunch right now, will get back in a bit and read up20:07
etoewsthx20:07
*** pm90_ has quit IRC20:15
*** trown|outttypeww is now known as trown20:37
briancurtinetoews: yeah, that first one is weird and probably should not be that way. blanking on what would be the case but i'll add it to my todo list21:00
*** mattfarina has quit IRC21:01
etoewsdo you have an idea about why it's like that?21:01
briancurtinsomething is a class member and not an instance member, i think. but _attrs is an instance member, so maybe that's not it. i will be spending a lot of time in airports starting in a few hours so i will dig in then21:07
*** pm90_ has joined #openstack-sdks21:26
*** pm90_ has joined #openstack-sdks21:27
openstackgerritEverett Toews proposed stackforge/python-openstacksdk: Move wait_for_status to resource module  https://review.openstack.org/17498021:38
*** openstackstatus has quit IRC22:09
*** sigmavirus24 is now known as sigmavirus24_awa22:19
*** trown is now known as trown|outttypeww22:31
*** bknudson has quit IRC22:33
*** pm90_ has quit IRC23:08
*** pm90_ has joined #openstack-sdks23:43

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