Monday, 2015-05-11

*** Qiming_ has quit IRC00:04
*** Qiming has joined #openstack-sdks01:09
*** Qiming_ has joined #openstack-sdks01:09
mordredjamielennox: actually - the problem was that I mis-spelled "project_domain_id" :)01:11
jamielennoxmordred: heh, that happens - strange it didn't give you an attributeerror01:11
mordredwell, I mis-spelled it "project_domain_name"01:12
*** Qiming has quit IRC01:13
*** Qiming__ has joined #openstack-sdks01:29
*** Qiming__ is now known as Qiming01:30
*** Qiming_ has quit IRC01:32
*** Shrews has joined #openstack-sdks02:00
*** britthou_ has joined #openstack-sdks02:41
*** britthouser has quit IRC02:41
*** Yanyanhu has joined #openstack-sdks02:57
*** boris-42 has quit IRC02:58
*** Qiming_ has joined #openstack-sdks04:30
*** Qiming has quit IRC04:34
*** stevemar has joined #openstack-sdks04:42
*** chlong has quit IRC05:09
*** stevemar has quit IRC05:17
*** rmcall has quit IRC06:00
*** rmcall has joined #openstack-sdks06:14
*** jaosorior has joined #openstack-sdks06:53
*** aufi has joined #openstack-sdks07:32
*** rmcall has quit IRC07:48
*** rmcall has joined #openstack-sdks07:52
*** fifieldt has joined #openstack-sdks07:57
*** fifieldt has quit IRC07:58
*** Qiming__ has joined #openstack-sdks08:47
*** Qiming_ has quit IRC08:51
*** Yanyanhu has quit IRC10:05
*** Qiming__ has quit IRC10:16
*** Ashish_ has joined #openstack-sdks11:00
Ashish_Hi All,11:00
Ashish_Can anyone help me with image library ??11:00
*** Qiming has joined #openstack-sdks11:04
Ashish_@Qiming Can you help me with Image library ?11:05
QimingAshish_, could you be more specific?11:06
Ashish_yes sure11:06
Ashish_i am using openstacksdk from github11:06
Ashish_and interested in using image sdk library11:07
Ashish_but this command from examples is not working11: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
Qimingchecking11:08
Ashish_Ok11:08
QimingAshish_, I'm seeing the same error message as you do11:11
Qimingdigging11:11
Ashish_ohk that means this is not my setup specific, right ?11:11
QimingAshish_, seems so11:15
QimingSeems like a bug11:16
Qimingthe 'glance image-create' command translates to this request:11:16
Qimingcurl -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/images11:16
Qimingbut the SDK is doing things differently:11:17
Qimingcurl -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_ok11:17
QimingI'm suspecting if the error is still there if "-H 'Content-Type: application/octet-stream'" is added to the command line11:18
Ashish_how did you manage to get all curl details ?11:18
Qimingfor sdk command11:18
Qimingpython -m examples.create --debug openstack/image/v2/image.py --data '{"name": "foo"}'11:19
Qimingfor glance image-create, add '-d' or '--debug'11:19
Ashish_OK, cool thanks11:19
Ashish_I am using JUNO and what is your openstack version ?11:21
Qimingcommunity master from several days ago11:21
Ashish_is there any workaround ?11:22
*** Qiming_ has joined #openstack-sdks11:24
Qiming_em ... usually I will figure out a way and propose a patch11:25
Qiming_for testing's purpose, I will override the Image class, with a customized 'create' method11:25
*** Qiming has quit IRC11:27
*** trown|outttypeww is now known as trown11:51
*** boris-42 has joined #openstack-sdks12:04
openstackgerritJakub Libosvar proposed openstack/cliff: Set encoding to streams  https://review.openstack.org/18058712:09
openstackgerritJakub Libosvar proposed openstack/cliff: Set encoding to streams  https://review.openstack.org/18058712:11
*** bknudson has quit IRC13:01
*** sigmavirus24_awa is now known as sigmavirus2413:11
*** fifieldt has joined #openstack-sdks13:17
*** fifieldt has quit IRC13:17
*** terrylhowe has joined #openstack-sdks13:19
*** chlong has joined #openstack-sdks13:22
*** bknudson has joined #openstack-sdks13:22
*** b3nt_pin has quit IRC13:36
*** b3nt_pin has joined #openstack-sdks13:38
*** b3nt_pin is now known as beagles13:38
*** mattfarina has joined #openstack-sdks13:54
*** stevemar has joined #openstack-sdks14:01
*** openstackgerrit has quit IRC14:06
*** openstackgerrit has joined #openstack-sdks14:07
*** etoews has joined #openstack-sdks14:16
*** openstack has joined #openstack-sdks14:20
*** pm90_ has joined #openstack-sdks14:25
*** bnemec has joined #openstack-sdks14:25
briancurtinterrylhowe: 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 alright14:26
*** pm90_ has quit IRC14:27
*** pm90_ has joined #openstack-sdks14:29
openstackgerritOpenStack Proposal Bot proposed openstack/python-openstackclient: Updated from global requirements  https://review.openstack.org/18191414:29
terrylhowebriancurtin: it will support OCC with OS_CLOUD or just the regular env variables14:31
briancurtinterrylhowe: cool, thanks14:31
*** jsavak has joined #openstack-sdks14:38
openstackgerritMerged stackforge/python-openstacksdk: Add os-client-config support for examples  https://review.openstack.org/17966414:43
openstackgerritMerged openstack/cliff: Remove run_cross_tests.sh  https://review.openstack.org/17946814:47
openstackgerritTerry Howe proposed stackforge/python-openstacksdk: Basic object store container functional tests  https://review.openstack.org/17977914:50
openstackgerritTerry Howe proposed stackforge/python-openstacksdk: Create base class for functional tests  https://review.openstack.org/17958314:50
*** fifieldt has joined #openstack-sdks15:22
*** fifieldt has quit IRC15:23
*** Ashish_ has quit IRC15:39
*** britthou_ has quit IRC15:43
openstackgerritOpenStack Proposal Bot proposed openstack/cliff: Updated from global requirements  https://review.openstack.org/18119815:47
openstackgerritOpenStack Proposal Bot proposed openstack/python-openstackclient: Updated from global requirements  https://review.openstack.org/18191415:52
*** Qiming_ has quit IRC15:56
*** aufi has quit IRC16:03
*** trown is now known as trown|lunch16:16
*** rmcall has quit IRC16:31
*** rmcall has joined #openstack-sdks16:32
*** jsavak has quit IRC16:59
openstackgerritEverett Toews proposed stackforge/python-openstacksdk: Initial commit for the Messaging service (Zaqar)  https://review.openstack.org/18160717:10
*** trown|lunch is now known as trown17:17
*** ashish_ has joined #openstack-sdks17:25
ashish_hello i need help with python-openstack sdk17:25
ashish_i am getting an error in call glance image create api17:26
*** britthouser has joined #openstack-sdks17:26
ashish_Invalid disk format 'None' for image17:26
ashish_hello britthouser17:27
*** britthou_ has joined #openstack-sdks17:27
briancurtinashish_: 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 image17:28
briancurtinCan 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
briancurtinMaybe disk format is required and you're not passing it in?17:29
ashish_its optional17:29
ashish_though i have tried passing every parameter it fails with same error17:29
briancurtinCan you run that command with --debug and see what it's sending in the body?17:30
*** britthouser has quit IRC17: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 IRC17:34
openstackgerritTerry Howe proposed stackforge/python-openstacksdk: Add backtick for orchestration docs  https://review.openstack.org/18199317:37
ashish_ getting an error in call glance image create api17:39
ashish_Invalid disk format 'None' for image17: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
terrylhoweashish_: did you try giving a disk format?17:41
ashish_yeaah i have tried it17:42
ashish_i tried passing all parameters but with no luck17:42
openstackgerritTerry Howe proposed stackforge/python-openstacksdk: Add clouds.yaml file for contributor testing docs  https://review.openstack.org/18200117:54
*** pm90_ has joined #openstack-sdks17:57
*** pm90_ has quit IRC17:58
*** pm90_ has joined #openstack-sdks17:58
ashish_hello pm9018:08
*** ashish_ has quit IRC18:19
*** bnemec has quit IRC18:25
*** christiek has joined #openstack-sdks18:26
*** Shrews has quit IRC18:26
*** christi3k has quit IRC18:26
*** christiek is now known as christi3k18:26
*** bnemec has joined #openstack-sdks18:27
*** Shrews has joined #openstack-sdks18:28
openstackgerritTerry Howe proposed stackforge/python-openstacksdk: Orchestration proxy create changes  https://review.openstack.org/18150418:33
jaosoriorstevemar: are you around?19:00
stevemarjaosorior, sort of?19:01
*** britthou_ has quit IRC19:01
jaosoriorstevemar: 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" command19:04
*** britthouser has joined #openstack-sdks19: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 evening19:09
*** pm90_ has quit IRC19:18
*** britthouser has quit IRC19:47
openstackgerritMerged openstack/python-openstackclient: Add os-client-config cli tests  https://review.openstack.org/17953719:52
*** david-lyle has joined #openstack-sdks19:55
*** pm90_ has joined #openstack-sdks20:11
*** pm90_ has quit IRC20:12
*** pm90_ has joined #openstack-sdks20:12
*** b3nt_pin has joined #openstack-sdks20:16
openstackgerritTerry Howe proposed stackforge/python-openstacksdk: Basic object store container functional tests  https://review.openstack.org/17977920:16
*** pm90_ has quit IRC20:24
*** b3nt_pin has quit IRC20:25
*** b3nt_pin has joined #openstack-sdks20:26
*** pm90_ has joined #openstack-sdks20:33
openstackgerritMonty Taylor proposed openstack/os-client-config: Use appdirs for platform-independent locations  https://review.openstack.org/18207220:34
mordredwow. I totally just added support for OSX and Windows to something. I feel dirty20:34
mordredShrews: ^^20:35
Shrewsmordred: fwiw, already worked on osx, but cool20:35
mordredneat20:35
mordredShrews: 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 whatever20:36
Shrewsmordred: that actually probably breaks me on osx until i move the file to the new location  :(20:37
Shrewscurse you for making me do stuff20:37
mordredShrews: should we put in a hack for teh other location too?20:37
dtroyerI prefer to treat osx as a UNIX system for this kind of stuff20:38
Shrewsmordred: ++ to both20:38
dtroyerbecause, well, it is20:38
dtroyer++20:38
mordredkk. will follow up with taht20:38
*** rmcall has quit IRC20:41
*** lhcheng has joined #openstack-sdks20:42
*** openstackgerrit_ has joined #openstack-sdks20:44
*** pm90_ has quit IRC20:44
*** pm90_ has joined #openstack-sdks20:45
openstackgerritMonty Taylor proposed openstack/os-client-config: Use appdirs for platform-independent locations  https://review.openstack.org/18207220:46
mordredShrews, dtroyer: how's that ^^ ??20:46
lhchengjaosorior: 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
jaosoriorlhcheng: 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
jaosoriorlhcheng: I didn't know your IRC handle also, haha, so didn't know how to ping you here20:48
lhchengjaosorior: 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
dtroyermordred: that looks like it'll work, I'll try it after a bit20:58
lhchengjaosorior: 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
lhchengjaosorior: 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
jaosoriorlhcheng: 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 there21:03
lhchengjaosorior: 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|outttypeww21:04
lhchengjaosorior: if we need to clean it up, let's take as a separate effort.21:04
jaosoriorlhcheng: sure, I'm almost off for now (it's night over here) but tomorrow I could check if we could clean that function up21:04
stevemarlhcheng, ty for taking a look <321:05
lhchengjaosorior: thanks! have a good night21:06
lhchengstevemar: thanks for pinging me :)21:07
jaosoriorlhcheng: have a good day/evening or whatever timezone you're at :)21:07
stevemarjaosorior, he is west coast :P21:08
jaosoriorand thanks for helping out stevemar & lhcheng. Off to sleep now21:08
stevemarah right, i always forget you are on finnish time21:09
stevemargn21:09
etoewsterrylhowe: why tainer? https://review.openstack.org/#/c/179779/3/openstack/tests/functional/object/v1/test_container.py21:16
stevemaretoews, saves on characters?21:19
stevemaretoews, con sounds too negative?21:19
etoews:)21:20
stevemaretoews, strict 'variables must be less than 9 characters' rule21:20
* stevemar hides21:20
*** mattfarina has quit IRC21:42
*** stevemar has quit IRC21:59
*** pm90_ has quit IRC22:16
terrylhoweetoews: I was just trying to avoid the conflict with the import22:53
etoewsterrylhowe: ah. well that makes perfect sense.22:54
terrylhowelame name, but unitque22:55
etoewswe could always troll openstack and call it bucket22:55
openstackgerritDean Troyer proposed openstack/os-client-config: Add tests for OSC usage  https://review.openstack.org/18211422:55
*** bknudson has quit IRC22:56
terrylhowe:)22:56
etoewsterrylhowe: does that group_regex change to .testr.conf effectively serialize the tests?22:58
etoewsthe functional tests that is22:58
terrylhoweetoews: 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.py23:08
terrylhoweit works, setUpClass and tearDownClass only get called once for the entire test23:08
terrylhowethat isn’t the case without the grouping23:08
*** jaosorior has quit IRC23:12
etoewsterrylhowe: thanks. if gerrit wasn't down, i'd +1 it. :/23:13
*** britthouser has joined #openstack-sdks23:16
*** Daviey has quit IRC23:21
*** Daviey has joined #openstack-sdks23: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!