*** stevemar has quit IRC | 00:24 | |
*** bknudson has quit IRC | 00:45 | |
*** pm90_ has quit IRC | 01:05 | |
*** bknudson has joined #openstack-sdks | 01:20 | |
*** sigmavirus24_awa is now known as sigmavirus24 | 01:59 | |
sigmavirus24 | lol | 02:05 |
---|---|---|
*** sigmavirus24 is now known as sigmavirus24_awa | 02:19 | |
*** stevemar has joined #openstack-sdks | 03:15 | |
*** terrylhowe has quit IRC | 04:41 | |
*** stevemar has quit IRC | 06:32 | |
*** aufi has joined #openstack-sdks | 07:17 | |
*** aufi_ has joined #openstack-sdks | 07:56 | |
*** aufi has quit IRC | 08:00 | |
*** aufi has joined #openstack-sdks | 08:44 | |
*** aufi_ has quit IRC | 08:46 | |
*** Hitrix has joined #openstack-sdks | 08:57 | |
Hitrix | Hi 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__this | 09:03 |
Hitrix | has anyone ran into this problem before? | 09:04 |
*** ekarlso has joined #openstack-sdks | 09:04 | |
ekarlso | Hi guys! | 09:04 |
ekarlso | So is the sdk going to replace the *clients ? | 09:05 |
briancurtin | Though a combination of SDK and OpenStackClient, that's an eventual goal | 09:07 |
ekarlso | briancurtin: so the goal of the sdk is to replace the bindings part no of the clients ? | 09:07 |
briancurtin | ekarlso: sdk aims to provide a set of consistent interfaces to work with the rest apis. I think that's what you're asking | 09:10 |
ekarlso | ok :) | 09:10 |
ekarlso | briancurtin: so for designate, would our stuff go into the "dns" spacE? | 09:11 |
briancurtin | ekarlso: I believe so. We've been using he names that show up. | 09:12 |
briancurtin | In the service catalog, which I think is dns for designate | 09:12 |
ekarlso | :) | 09:12 |
ekarlso | i'll try to get that going then : ) | 09:12 |
briancurtin | ekarlso: 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 working | 09:14 |
ekarlso | briancurtin: :P | 09:15 |
*** d0ugal has quit IRC | 09:29 | |
*** d0ugal has joined #openstack-sdks | 09:29 | |
*** d0ugal is now known as Guest81472 | 09:29 | |
*** Guest81472 is now known as d0ugal2 | 09:40 | |
*** d0ugal2 is now known as d0ugal | 09:47 | |
*** d0ugal has quit IRC | 09:47 | |
*** d0ugal has joined #openstack-sdks | 09:47 | |
*** Hitrix has quit IRC | 10:22 | |
*** elynn has joined #openstack-sdks | 10:23 | |
*** Hitrix has joined #openstack-sdks | 11:01 | |
*** bknudson has quit IRC | 11:57 | |
*** pm90_ has joined #openstack-sdks | 12:05 | |
*** pm90_ has quit IRC | 12:08 | |
*** pm90_ has joined #openstack-sdks | 12:08 | |
*** Shrews has quit IRC | 12:14 | |
*** trown|outttypeww is now known as trown | 12:33 | |
*** pm90_ has quit IRC | 12:52 | |
*** bknudson has joined #openstack-sdks | 13:00 | |
*** terrylhowe has joined #openstack-sdks | 13:11 | |
*** pm90_ has joined #openstack-sdks | 13:16 | |
*** mattfarina has joined #openstack-sdks | 13:16 | |
*** pm90_ has quit IRC | 13:17 | |
*** Shrews has joined #openstack-sdks | 13:19 | |
*** pm90_ has joined #openstack-sdks | 13:19 | |
*** Hitrix has quit IRC | 13:46 | |
*** pm90_ has quit IRC | 14:23 | |
ekarlso | what's the _proxy.py stuff in osdk ? | 14:26 |
terrylhowe | ekarlso: the _proxy classes provide the user interface for the service | 14:28 |
terrylhowe | ekarlso: when you have a connection conn you you access conn.compute that is the compute proxy | 14:28 |
ekarlso | terrylhowe: uh, but why _proxy.py ? | 14:29 |
*** stevemar has joined #openstack-sdks | 14:32 | |
*** aufi has quit IRC | 14:33 | |
terrylhowe | ekarlso: it is supposed to be private as a class not intended for direct access | 14:41 |
*** trown is now known as trown|brb | 14:57 | |
elynn | Hi | 15:00 |
elynn | I new to use openstacksdk, and when I use it to create an instance, I always get an error. | 15:00 |
*** nosleep77 has quit IRC | 15:00 | |
elynn | from oslo.serialization import jsonutils | 15:01 |
elynn | sorry , wrong line. | 15:01 |
*** trown|brb is now known as trown | 15:01 | |
elynn | Invalid imageRef provided | 15:02 |
terrylhowe | an import error? | 15:02 |
elynn | sorry , that imageref error | 15:02 |
terrylhowe | are you testing against devstack or some other cloud? | 15:02 |
terrylhowe | are you using the example code? | 15:02 |
elynn | I'm using devstack | 15:03 |
*** pm90_ has joined #openstack-sdks | 15:03 | |
terrylhowe | example code? | 15:04 |
elynn | No, I use the codes written by myself | 15:04 |
elynn | you mean the codes in exampe folder? | 15:04 |
terrylhowe | https://github.com/stackforge/python-openstacksdk/blob/master/examples/jenkins.py#L52 | 15:06 |
terrylhowe | did you provide an imageRef? It has to be a uuid is the only other thing that comes to mind | 15:06 |
elynn | Seems I have something wrong in my codes | 15:07 |
elynn | imageref only accept uuid or a image dict? | 15:08 |
elynn | I use a image resource | 15:08 |
elynn | Need two imageRef https://github.com/stackforge/python-openstacksdk/blob/master/examples/jenkins.py#L47 | 15:09 |
terrylhowe | well, it is supposed to work with an image resource, but honestly, I haven’t tried that | 15:09 |
terrylhowe | that is an error, taht double imageRef in there | 15:10 |
terrylhowe | a harmless one though | 15:10 |
terrylhowe | it’d be nice to have an example that was a bit more simple | 15:10 |
elynn | conn is conn = sdk.create_connection(params)? | 15:13 |
terrylhowe | that gets created here elynn https://github.com/stackforge/python-openstacksdk/blob/master/examples/connection.py#L42 | 15:15 |
terrylhowe | user preference is for versions or regions you want to interact with and the rest is auth information the **args | 15:16 |
elynn | Hmm, I need to modify my codes and test again. | 15:17 |
elynn | I directly import server from openstack.compute.v2 | 15:17 |
elynn | then use obj= server.Server.new(**args), and obj.create() | 15:18 |
elynn | Is that wrong? | 15:18 |
terrylhowe | you could do that, but the general idea is to use the Connection class to access that stuff | 15:19 |
terrylhowe | Create a connection with you auth info and call conn.compute.create_server(**args) | 15:19 |
elynn | I will try that way, thanks! | 15:20 |
*** etoews has joined #openstack-sdks | 15:31 | |
elynn | That works! | 15:31 |
terrylhowe | sweet elynn ! | 15:32 |
elynn | Seems I use it in a wrong way before. | 15:32 |
elynn | Another question, where is create_server function? | 15:33 |
elynn | Ah, they are in _proxy.py | 15:36 |
terrylhowe | https://github.com/stackforge/python-openstacksdk/blob/master/openstack/compute/v2/_proxy.py#L146 | 15:36 |
terrylhowe | right | 15:36 |
terrylhowe | I think briancurtin has some changes in the works for that create method though | 15:37 |
elynn | Nice, thank you so much ! | 15:37 |
elynn | Can get_flavor accept a flavor name as parameter? | 15:40 |
briancurtin | That's something we're working on enabling. | 15:41 |
briancurtin | Right now it works purely on ids but making it nicer is in the process | 15:44 |
elynn | Cool, I count on you! | 15:45 |
openstackgerrit | Doug Hellmann proposed openstack/cliff: fix author contact details https://review.openstack.org/176866 | 15:49 |
*** trown is now known as trown|lunch | 16:02 | |
*** pm90__ has joined #openstack-sdks | 16:04 | |
*** pm90_ has quit IRC | 16:04 | |
*** pm90__ has quit IRC | 16:20 | |
*** pm90_ has joined #openstack-sdks | 16:20 | |
*** chellygel has joined #openstack-sdks | 16:29 | |
*** jvrbanac has joined #openstack-sdks | 16:29 | |
chellygel | Hey guys, just have a couple of questions about cliff and testing. | 16:29 |
chellygel | first question is what other projects aside from barbican python client are using cliff | 16:30 |
chellygel | second question is -- how do you test the CLI when cliff hides the exceptions? | 16:30 |
chellygel | we 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 |
dhellmann | chellygel: python-openstackclient and python-neutronclient are using cliff, as well as some non-openstack projects | 16:31 |
dhellmann | chellygel: add the --debug flag to have cliff show tracebacks | 16:31 |
chellygel | is that the only method for unit tests then? | 16:31 |
dhellmann | chellygel: but you should probably be testing the command classes directly, rather than through cliff | 16:31 |
chellygel | i'm assuming this is to ensure that the end user of the CLI has a good experience and doesnt see the errors? | 16:32 |
dhellmann | yes | 16:32 |
dhellmann | they get an error message, and the return value from the process should be 1 to indicate an error | 16:32 |
chellygel | okay, i understand that. | 16:32 |
chellygel | thank you dhellmann !! just needed some reference points like these! | 16:33 |
dhellmann | chellygel: sure, no problem -- check the tests for python-openstackclient to see how those work for some examples | 16:34 |
*** sigmavirus24_awa is now known as sigmavirus24 | 16:49 | |
*** trown|lunch is now known as trown | 17:14 | |
openstackgerrit | Merged stackforge/python-openstacksdk: Apply delete changes to volume proxy https://review.openstack.org/175025 | 18:25 |
openstackgerrit | Terry Howe proposed stackforge/python-openstacksdk: Move jenkins create and delete in their onw files https://review.openstack.org/176939 | 18:35 |
*** pm90_ has quit IRC | 19:20 | |
openstackgerrit | Merged openstack/cliff: fix author contact details https://review.openstack.org/176866 | 19:20 |
*** trown is now known as trown|outttypeww | 19:23 | |
openstackgerrit | Merged openstack/python-openstackclient: Security group rule create fails https://review.openstack.org/175816 | 19:57 |
etoews | a question about the sdk and mutability of a Resource | 20:00 |
etoews | if you have code like this | 20:00 |
etoews | https://www.irccloud.com/pastebin/Mz8QxHCW | 20:00 |
etoews | you get the output | 20:00 |
etoews | value1 | 20:00 |
etoews | value1 | 20:00 |
etoews | new_value1 | 20:00 |
etoews | new_value1 | 20:00 |
*** pm90_ has joined #openstack-sdks | 20:01 | |
etoews | a change to an attribute in foobar1 changes the attribute in foobar2 | 20:01 |
etoews | that's pretty nutty | 20:01 |
etoews | however if i instantiate with FakeResource.new() like so | 20:02 |
etoews | https://www.irccloud.com/pastebin/8Lq0z9am | 20:02 |
etoews | i get the expected output | 20:02 |
etoews | value1 | 20:03 |
etoews | value1 | 20:03 |
etoews | new_value1 | 20:03 |
etoews | value1 | 20:03 |
terrylhowe | somehow those class variables never get translated to instance variables | 20:03 |
terrylhowe | has it always been that way I wonder or did something get broken? | 20:04 |
etoews | i'm not sure | 20:04 |
openstackgerrit | Merged openstack/python-openstackclient: Fix security group create description bug https://review.openstack.org/165956 | 20:05 |
terrylhowe | it has probably always been that way | 20:05 |
terrylhowe | people are supposed to be using new and existing | 20:06 |
terrylhowe | kind of a jamie question | 20:06 |
etoews | jamielennox|away: briancurtin: any insight on the above? ^ | 20:06 |
briancurtin | etoews: I'm at lunch right now, will get back in a bit and read up | 20:07 |
etoews | thx | 20:07 |
*** pm90_ has quit IRC | 20:15 | |
*** trown|outttypeww is now known as trown | 20:37 | |
briancurtin | etoews: 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 list | 21:00 |
*** mattfarina has quit IRC | 21:01 | |
etoews | do you have an idea about why it's like that? | 21:01 |
briancurtin | something 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 then | 21:07 |
*** pm90_ has joined #openstack-sdks | 21:26 | |
*** pm90_ has joined #openstack-sdks | 21:27 | |
openstackgerrit | Everett Toews proposed stackforge/python-openstacksdk: Move wait_for_status to resource module https://review.openstack.org/174980 | 21:38 |
*** openstackstatus has quit IRC | 22:09 | |
*** sigmavirus24 is now known as sigmavirus24_awa | 22:19 | |
*** trown is now known as trown|outttypeww | 22:31 | |
*** bknudson has quit IRC | 22:33 | |
*** pm90_ has quit IRC | 23:08 | |
*** pm90_ has joined #openstack-sdks | 23:43 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!