*** Qiming_ has quit IRC | 00:04 | |
*** Qiming has joined #openstack-sdks | 01:09 | |
*** Qiming_ has joined #openstack-sdks | 01:09 | |
mordred | jamielennox: actually - the problem was that I mis-spelled "project_domain_id" :) | 01:11 |
---|---|---|
jamielennox | mordred: heh, that happens - strange it didn't give you an attributeerror | 01:11 |
mordred | well, I mis-spelled it "project_domain_name" | 01:12 |
*** Qiming has quit IRC | 01:13 | |
*** Qiming__ has joined #openstack-sdks | 01:29 | |
*** Qiming__ is now known as Qiming | 01:30 | |
*** Qiming_ has quit IRC | 01:32 | |
*** Shrews has joined #openstack-sdks | 02:00 | |
*** britthou_ has joined #openstack-sdks | 02:41 | |
*** britthouser has quit IRC | 02:41 | |
*** Yanyanhu has joined #openstack-sdks | 02:57 | |
*** boris-42 has quit IRC | 02:58 | |
*** Qiming_ has joined #openstack-sdks | 04:30 | |
*** Qiming has quit IRC | 04:34 | |
*** stevemar has joined #openstack-sdks | 04:42 | |
*** chlong has quit IRC | 05:09 | |
*** stevemar has quit IRC | 05:17 | |
*** rmcall has quit IRC | 06:00 | |
*** rmcall has joined #openstack-sdks | 06:14 | |
*** jaosorior has joined #openstack-sdks | 06:53 | |
*** aufi has joined #openstack-sdks | 07:32 | |
*** rmcall has quit IRC | 07:48 | |
*** rmcall has joined #openstack-sdks | 07:52 | |
*** fifieldt has joined #openstack-sdks | 07:57 | |
*** fifieldt has quit IRC | 07:58 | |
*** Qiming__ has joined #openstack-sdks | 08:47 | |
*** Qiming_ has quit IRC | 08:51 | |
*** Yanyanhu has quit IRC | 10:05 | |
*** Qiming__ has quit IRC | 10:16 | |
*** Ashish_ has joined #openstack-sdks | 11:00 | |
Ashish_ | Hi All, | 11:00 |
Ashish_ | Can anyone help me with image library ?? | 11:00 |
*** Qiming has joined #openstack-sdks | 11:04 | |
Ashish_ | @Qiming Can you help me with Image library ? | 11:05 |
Qiming | Ashish_, could you be more specific? | 11:06 |
Ashish_ | yes sure | 11:06 |
Ashish_ | i am using openstacksdk from github | 11:06 |
Ashish_ | and interested in using image sdk library | 11:07 |
Ashish_ | but this command from examples is not working | 11:07 |
Ashish_ | # python -m examples.create openstack/image/v2/image.py --data '{"name": "foo"}' | 11:07 |
Ashish_ | error given is : | 11:07 |
Ashish_ | Invalid disk format 'None' for image. | 11:07 |
Ashish_ | what is wrong with this example ? | 11:08 |
Qiming | checking | 11:08 |
Ashish_ | Ok | 11:08 |
Qiming | Ashish_, I'm seeing the same error message as you do | 11:11 |
Qiming | digging | 11:11 |
Ashish_ | ohk that means this is not my setup specific, right ? | 11:11 |
Qiming | Ashish_, seems so | 11:15 |
Qiming | Seems like a bug | 11:16 |
Qiming | the 'glance image-create' command translates to this request: | 11:16 |
Qiming | curl -g -i -X POST -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'X-Auth-Token: {SHA1}a2d9c88276b1563c1f1425943e0dbe8570f43b7c' -H 'Connection: keep-alive' -H 'x-image-meta-is_public: None' -H 'User-Agent: python-glanceclient' -H 'Content-Type: application/octet-stream' http://192.168.42.11:9292/v1/images | 11:16 |
Qiming | but the SDK is doing things differently: | 11:17 |
Qiming | curl -i -X 'POST' 'http://192.168.42.11:9292/v1/images' -H 'User-Agent: python-openstacksdk/0.4.2 python-requests/2.6.2 CPython/2.7.5 Linux/3.10.0-229.1.2.el7.x86_64' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'X-Auth-Token: 49b699b62ab24241a20d8fd0ad12aa06' | 11:17 |
Ashish_ | ok | 11:17 |
Qiming | I'm suspecting if the error is still there if "-H 'Content-Type: application/octet-stream'" is added to the command line | 11:18 |
Ashish_ | how did you manage to get all curl details ? | 11:18 |
Qiming | for sdk command | 11:18 |
Qiming | python -m examples.create --debug openstack/image/v2/image.py --data '{"name": "foo"}' | 11:19 |
Qiming | for glance image-create, add '-d' or '--debug' | 11:19 |
Ashish_ | OK, cool thanks | 11:19 |
Ashish_ | I am using JUNO and what is your openstack version ? | 11:21 |
Qiming | community master from several days ago | 11:21 |
Ashish_ | is there any workaround ? | 11:22 |
*** Qiming_ has joined #openstack-sdks | 11:24 | |
Qiming_ | em ... usually I will figure out a way and propose a patch | 11:25 |
Qiming_ | for testing's purpose, I will override the Image class, with a customized 'create' method | 11:25 |
*** Qiming has quit IRC | 11:27 | |
*** trown|outttypeww is now known as trown | 11:51 | |
*** boris-42 has joined #openstack-sdks | 12:04 | |
openstackgerrit | Jakub Libosvar proposed openstack/cliff: Set encoding to streams https://review.openstack.org/180587 | 12:09 |
openstackgerrit | Jakub Libosvar proposed openstack/cliff: Set encoding to streams https://review.openstack.org/180587 | 12:11 |
*** bknudson has quit IRC | 13:01 | |
*** sigmavirus24_awa is now known as sigmavirus24 | 13:11 | |
*** fifieldt has joined #openstack-sdks | 13:17 | |
*** fifieldt has quit IRC | 13:17 | |
*** terrylhowe has joined #openstack-sdks | 13:19 | |
*** chlong has joined #openstack-sdks | 13:22 | |
*** bknudson has joined #openstack-sdks | 13:22 | |
*** b3nt_pin has quit IRC | 13:36 | |
*** b3nt_pin has joined #openstack-sdks | 13:38 | |
*** b3nt_pin is now known as beagles | 13:38 | |
*** mattfarina has joined #openstack-sdks | 13:54 | |
*** stevemar has joined #openstack-sdks | 14:01 | |
*** openstackgerrit has quit IRC | 14:06 | |
*** openstackgerrit has joined #openstack-sdks | 14:07 | |
*** etoews has joined #openstack-sdks | 14:16 | |
*** openstack has joined #openstack-sdks | 14:20 | |
*** pm90_ has joined #openstack-sdks | 14:25 | |
*** bnemec has joined #openstack-sdks | 14:25 | |
briancurtin | terrylhowe: does https://review.openstack.org/#/c/179664/2 force you to use OCC? it doesn't look like it, but just wanted to make sure the old way of having env vars is alright | 14:26 |
*** pm90_ has quit IRC | 14:27 | |
*** pm90_ has joined #openstack-sdks | 14:29 | |
openstackgerrit | OpenStack Proposal Bot proposed openstack/python-openstackclient: Updated from global requirements https://review.openstack.org/181914 | 14:29 |
terrylhowe | briancurtin: it will support OCC with OS_CLOUD or just the regular env variables | 14:31 |
briancurtin | terrylhowe: cool, thanks | 14:31 |
*** jsavak has joined #openstack-sdks | 14:38 | |
openstackgerrit | Merged stackforge/python-openstacksdk: Add os-client-config support for examples https://review.openstack.org/179664 | 14:43 |
openstackgerrit | Merged openstack/cliff: Remove run_cross_tests.sh https://review.openstack.org/179468 | 14:47 |
openstackgerrit | Terry Howe proposed stackforge/python-openstacksdk: Basic object store container functional tests https://review.openstack.org/179779 | 14:50 |
openstackgerrit | Terry Howe proposed stackforge/python-openstacksdk: Create base class for functional tests https://review.openstack.org/179583 | 14:50 |
*** fifieldt has joined #openstack-sdks | 15:22 | |
*** fifieldt has quit IRC | 15:23 | |
*** Ashish_ has quit IRC | 15:39 | |
*** britthou_ has quit IRC | 15:43 | |
openstackgerrit | OpenStack Proposal Bot proposed openstack/cliff: Updated from global requirements https://review.openstack.org/181198 | 15:47 |
openstackgerrit | OpenStack Proposal Bot proposed openstack/python-openstackclient: Updated from global requirements https://review.openstack.org/181914 | 15:52 |
*** Qiming_ has quit IRC | 15:56 | |
*** aufi has quit IRC | 16:03 | |
*** trown is now known as trown|lunch | 16:16 | |
*** rmcall has quit IRC | 16:31 | |
*** rmcall has joined #openstack-sdks | 16:32 | |
*** jsavak has quit IRC | 16:59 | |
openstackgerrit | Everett Toews proposed stackforge/python-openstacksdk: Initial commit for the Messaging service (Zaqar) https://review.openstack.org/181607 | 17:10 |
*** trown|lunch is now known as trown | 17:17 | |
*** ashish_ has joined #openstack-sdks | 17:25 | |
ashish_ | hello i need help with python-openstack sdk | 17:25 |
ashish_ | i am getting an error in call glance image create api | 17:26 |
*** britthouser has joined #openstack-sdks | 17:26 | |
ashish_ | Invalid disk format 'None' for image | 17:26 |
ashish_ | hello britthouser | 17:27 |
*** britthou_ has joined #openstack-sdks | 17:27 | |
briancurtin | ashish_: I'm on mobile in an airport so i can only sort of help, but what are you doing? | 17:27 |
ashish_ | i am trying to create an glance image | 17:28 |
briancurtin | Can you share the code you're running? | 17:28 |
ashish_ | python -m examples.create openstack/image/v2/image.py --data '{"name": "foo"}' | 17:28 |
ashish_ | 2015-05-11 04:05:37,368 ERROR: examples.common Exception raised: HttpException: 400 Client Error: Bad Request, 400 Bad Request Invalid disk format 'None' for image. | 17:28 |
briancurtin | Maybe disk format is required and you're not passing it in? | 17:29 |
ashish_ | its optional | 17:29 |
ashish_ | though i have tried passing every parameter it fails with same error | 17:29 |
briancurtin | Can you run that command with --debug and see what it's sending in the body? | 17:30 |
*** britthouser has quit IRC | 17:31 | |
ashish_ | curl -i -X 'POST' 'http://10.209.177.10:5000/v2.0/tokens' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'User-Agent: python-openstacksdk/0.4.2 python-requests/2.6.2 CPython/2.7.5 Linux/3.10.0-229.el7.x86_64' --data ' {"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "root123"}}} ' | 17:32 |
*** pm90_ has quit IRC | 17:34 | |
openstackgerrit | Terry Howe proposed stackforge/python-openstacksdk: Add backtick for orchestration docs https://review.openstack.org/181993 | 17:37 |
ashish_ | getting an error in call glance image create api | 17:39 |
ashish_ | Invalid disk format 'None' for image | 17:39 |
-openstackstatus- NOTICE: We have discovered post-upgrade issues with Gerrit affecting nova (and potentially other projects). Some changes will not appear and some actions, such as queries, may return an error. We are continuing to investigate. | 17:39 | |
*** ChanServ changes topic to "We have discovered post-upgrade issues with Gerrit affecting nova (and potentially other projects). Some changes will not appear and some actions, such as queries, may return an error. We are continuing to investigate." | 17:39 | |
ashish_ | any workaround for this problem @Chanserv? | 17:40 |
terrylhowe | ashish_: did you try giving a disk format? | 17:41 |
ashish_ | yeaah i have tried it | 17:42 |
ashish_ | i tried passing all parameters but with no luck | 17:42 |
openstackgerrit | Terry Howe proposed stackforge/python-openstacksdk: Add clouds.yaml file for contributor testing docs https://review.openstack.org/182001 | 17:54 |
*** pm90_ has joined #openstack-sdks | 17:57 | |
*** pm90_ has quit IRC | 17:58 | |
*** pm90_ has joined #openstack-sdks | 17:58 | |
ashish_ | hello pm90 | 18:08 |
*** ashish_ has quit IRC | 18:19 | |
*** bnemec has quit IRC | 18:25 | |
*** christiek has joined #openstack-sdks | 18:26 | |
*** Shrews has quit IRC | 18:26 | |
*** christi3k has quit IRC | 18:26 | |
*** christiek is now known as christi3k | 18:26 | |
*** bnemec has joined #openstack-sdks | 18:27 | |
*** Shrews has joined #openstack-sdks | 18:28 | |
openstackgerrit | Terry Howe proposed stackforge/python-openstacksdk: Orchestration proxy create changes https://review.openstack.org/181504 | 18:33 |
jaosorior | stevemar: are you around? | 19:00 |
stevemar | jaosorior, sort of? | 19:01 |
*** britthou_ has quit IRC | 19:01 | |
jaosorior | stevemar: Hey man, when you have time (doesn't have to be now) can you take a look at this CR? https://review.openstack.org/#/c/180712/ not sure if I misunderstood the scenario that Lin Hua Cheng mentioned, and it's related to the "role add" command | 19:04 |
*** britthouser has joined #openstack-sdks | 19:06 | |
briancurtin | terrylhowe: I'm about to get on two flights so I'll be MIA on the recent review movement. I'll catch up in the evening | 19:09 |
*** pm90_ has quit IRC | 19:18 | |
*** britthouser has quit IRC | 19:47 | |
openstackgerrit | Merged openstack/python-openstackclient: Add os-client-config cli tests https://review.openstack.org/179537 | 19:52 |
*** david-lyle has joined #openstack-sdks | 19:55 | |
*** pm90_ has joined #openstack-sdks | 20:11 | |
*** pm90_ has quit IRC | 20:12 | |
*** pm90_ has joined #openstack-sdks | 20:12 | |
*** b3nt_pin has joined #openstack-sdks | 20:16 | |
openstackgerrit | Terry Howe proposed stackforge/python-openstacksdk: Basic object store container functional tests https://review.openstack.org/179779 | 20:16 |
*** pm90_ has quit IRC | 20:24 | |
*** b3nt_pin has quit IRC | 20:25 | |
*** b3nt_pin has joined #openstack-sdks | 20:26 | |
*** pm90_ has joined #openstack-sdks | 20:33 | |
openstackgerrit | Monty Taylor proposed openstack/os-client-config: Use appdirs for platform-independent locations https://review.openstack.org/182072 | 20:34 |
mordred | wow. I totally just added support for OSX and Windows to something. I feel dirty | 20:34 |
mordred | Shrews: ^^ | 20:35 |
Shrews | mordred: fwiw, already worked on osx, but cool | 20:35 |
mordred | neat | 20:35 |
mordred | Shrews: well, now you can put the file in a more "OSX-ish" location which should make you feel the emotion of a bounding icon or something brushed metal or whatever | 20:36 |
Shrews | mordred: that actually probably breaks me on osx until i move the file to the new location :( | 20:37 |
Shrews | curse you for making me do stuff | 20:37 |
mordred | Shrews: should we put in a hack for teh other location too? | 20:37 |
dtroyer | I prefer to treat osx as a UNIX system for this kind of stuff | 20:38 |
Shrews | mordred: ++ to both | 20:38 |
dtroyer | because, well, it is | 20:38 |
dtroyer | ++ | 20:38 |
mordred | kk. will follow up with taht | 20:38 |
*** rmcall has quit IRC | 20:41 | |
*** lhcheng has joined #openstack-sdks | 20:42 | |
*** openstackgerrit_ has joined #openstack-sdks | 20:44 | |
*** pm90_ has quit IRC | 20:44 | |
*** pm90_ has joined #openstack-sdks | 20:45 | |
openstackgerrit | Monty Taylor proposed openstack/os-client-config: Use appdirs for platform-independent locations https://review.openstack.org/182072 | 20:46 |
mordred | Shrews, dtroyer: how's that ^^ ?? | 20:46 |
lhcheng | jaosorior: just got back from lunch, you got a question about the 'role' add command? | 20:46 |
mordred | (also there are some dependent changes you both my like) | 20:47 |
jaosorior | lhcheng: hey, I actually responded to your comment. I think the way it works is correct with the way python-keystoneclient works also. but, I might be misunderstanding the scenario you put up. Can you clarify? | 20:47 |
jaosorior | lhcheng: I didn't know your IRC handle also, haha, so didn't know how to ping you here | 20:48 |
lhcheng | jaosorior: lol It is actually my first time logging-in this room, stevemar let me know to log-in here. :) | 20:49 |
* lhcheng checking the comments.. | 20:50 | |
dtroyer | mordred: that looks like it'll work, I'll try it after a bit | 20:58 |
lhcheng | jaosorior: hey my bad, you're right. I got confused with the call get(name_or_id), thought that was filtering by name too. | 21:02 |
lhcheng | jaosorior: the call to manager.find(**kwargs) may have some opportunity for improvement. It does a client side filtering rather than leveraging the exists filter capability of the api. | 21:03 |
jaosorior | lhcheng: It actually is a pretty confusing function. Could be changed... but I'm not sure if the other clients/api's actually are able to take a name there | 21:03 |
lhcheng | jaosorior: I'll change my vote. I check the other code in the project, what you have is consistent with others. Let keep it as is. | 21:03 |
*** trown is now known as trown|outttypeww | 21:04 | |
lhcheng | jaosorior: if we need to clean it up, let's take as a separate effort. | 21:04 |
jaosorior | lhcheng: sure, I'm almost off for now (it's night over here) but tomorrow I could check if we could clean that function up | 21:04 |
stevemar | lhcheng, ty for taking a look <3 | 21:05 |
lhcheng | jaosorior: thanks! have a good night | 21:06 |
lhcheng | stevemar: thanks for pinging me :) | 21:07 |
jaosorior | lhcheng: have a good day/evening or whatever timezone you're at :) | 21:07 |
stevemar | jaosorior, he is west coast :P | 21:08 |
jaosorior | and thanks for helping out stevemar & lhcheng. Off to sleep now | 21:08 |
stevemar | ah right, i always forget you are on finnish time | 21:09 |
stevemar | gn | 21:09 |
etoews | terrylhowe: why tainer? https://review.openstack.org/#/c/179779/3/openstack/tests/functional/object/v1/test_container.py | 21:16 |
stevemar | etoews, saves on characters? | 21:19 |
stevemar | etoews, con sounds too negative? | 21:19 |
etoews | :) | 21:20 |
stevemar | etoews, strict 'variables must be less than 9 characters' rule | 21:20 |
* stevemar hides | 21:20 | |
*** mattfarina has quit IRC | 21:42 | |
*** stevemar has quit IRC | 21:59 | |
*** pm90_ has quit IRC | 22:16 | |
terrylhowe | etoews: I was just trying to avoid the conflict with the import | 22:53 |
etoews | terrylhowe: ah. well that makes perfect sense. | 22:54 |
terrylhowe | lame name, but unitque | 22:55 |
etoews | we could always troll openstack and call it bucket | 22:55 |
openstackgerrit | Dean Troyer proposed openstack/os-client-config: Add tests for OSC usage https://review.openstack.org/182114 | 22:55 |
*** bknudson has quit IRC | 22:56 | |
terrylhowe | :) | 22:56 |
etoews | terrylhowe: does that group_regex change to .testr.conf effectively serialize the tests? | 22:58 |
etoews | the functional tests that is | 22:58 |
terrylhowe | etoews: the way I understand it is it makes sure that each test file is run on one thread, so no serialized, but there won’t be multiple threads running test_container.py | 23:08 |
terrylhowe | it works, setUpClass and tearDownClass only get called once for the entire test | 23:08 |
terrylhowe | that isn’t the case without the grouping | 23:08 |
*** jaosorior has quit IRC | 23:12 | |
etoews | terrylhowe: thanks. if gerrit wasn't down, i'd +1 it. :/ | 23:13 |
*** britthouser has joined #openstack-sdks | 23:16 | |
*** Daviey has quit IRC | 23:21 | |
*** Daviey has joined #openstack-sdks | 23:21 | |
-openstackstatus- NOTICE: Gerrit is going offline while we perform an emergency downgrade to version 2.8. | 23:55 | |
*** ChanServ changes topic to "Gerrit is going offline while we perform an emergency downgrade to version 2.8." | 23:55 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!