Thursday, 2013-10-24

*** CerealBox has joined #openstack-ironic00:03
CerealBoxI've updated the "troubleshooting" section of https://wiki.openstack.org/wiki/Baremetal with some additional information (thanks NobodyCam!)00:04
NobodyCamCerealBox: Awesome ... my I suggest one thing00:05
CerealBoxyes please. I wanted to find out how to fix the formatting, BTW00:05
NobodyCamcan you remove any info that is releated to you ... ie your ips and user names00:06
NobodyCamthat more so that people dont have you info!00:07
NobodyCams/you/your/00:07
CerealBoxI already did. Do you still see any? The IPs still showing up is for illustration only00:07
NobodyCamahh I just saw this:  ipmitool -I lanplus -H 7.7.7.4 -U ADMIN -f /tmp/tmp1mDmnB power status00:08
NobodyCam:-p00:08
CerealBoxYes, maybe I should have used 192.168.x.y instead00:09
CerealBoxThe log files entries are all messed up due to the wiki formatting (all CRLF removed). How do I fix this? I tried the editing options that the wiki page provides, but they didn't work for me00:09
clarkbthe wiki allows for literal text00:09
NobodyCamCerealBox: formatting like the one I just updated00:10
NobodyCam:-p00:10
NobodyCamCerealBox: take a look at the agenda https://wiki.openstack.org/wiki/Meetings/Ironic00:11
NobodyCamdo a edit on it.. it has a far part of the formatting going on00:12
NobodyCams/part/bit/00:12
CerealBoxthanks, looking at it now00:13
* NobodyCam notes that is now after 5 and all of his answers from this point will include the --beer --type: apple options00:14
HaomengCerealBox: one question, can we use devstack to depoly our nova baremetal node, I found devstack support it, and add devstack steps into our document00:17
NobodyCamHaomeng: devstack will support nova baremetal but ironic is fully intrgrated with it yet00:18
CerealBoxHaomeng: Yes, devstack should work too, but honestly I don't know for sure because I didn't try00:18
NobodyCamironic is NOT fully...00:18
HaomengI have try, encounter some br99 bridge issue,willtry00:24
*** matsuhashi has joined #openstack-ironic00:31
NobodyCambr99 sounds like a network bridge00:32
Haomengyes00:32
Haomengclarkb:ping00:32
Haomenglooks like dev-quickstart.rst#n29 line29 is for Fedora sys, but my sys is Ubuntu00:33
Haomengthis is for ubuntu - "sudo apt-get install python-dev swig libssl-dev python-pip libmysqlclient-dev libxml2-dev libxslt-dev libpq-dev"00:33
Haomengnot sure if we can add 'hacking' here00:33
Haomengor I just add new lineto install 'hacking'00:34
CerealBoxthanks clarkb, NobodyCam. I've updated the wiki to use 192.168.* addresses and the formatting looks much better now.00:40
NobodyCam:) awesome Ty CerealBox00:40
CerealBoxThank YOU for the awesome help over the past few days. I'm planning to update to Havana next, and try this again.00:41
NobodyCam:) let us know how it goes!00:42
CerealBoxwill do!00:42
*** nosnos has joined #openstack-ironic00:43
*** WillOchanda has quit IRC00:54
* NobodyCam wanders away00:56
clarkbHaomeng: you don't need nose00:57
clarkbeven on fedora you shouldn't need it00:57
*** CerealBox is now known as CerealBox_01:06
*** CerealBox_ is now known as CerealBox01:07
*** CerealBox is now known as CerealBox_01:07
*** CerealBox_ is now known as CerealBox_Away01:09
*** WillOchanda has joined #openstack-ironic01:19
*** CerealBox_Away has left #openstack-ironic01:20
*** sjing has joined #openstack-ironic01:24
openstackgerritlinggao proposed a change to openstack/python-ironicclient: Modifies CLI to show nodes by instance uuid  https://review.openstack.org/5348501:25
*** anniec has quit IRC01:25
*** linggao has quit IRC01:30
*** anniec has joined #openstack-ironic01:31
*** WillOchanda has quit IRC01:32
*** anteaya has quit IRC01:37
*** anniec has quit IRC01:41
*** anniec has joined #openstack-ironic01:47
Haomengclarkb: yes, but I am running on Ubuntu01:58
clarkbHaomeng: that shouldn't matter01:59
clarkbubuntu or fedora, you don't need nose. You can use nose to run the tests but testr is the preferred and tested way01:59
Haomengbut I am confusing, why I follow the step, but the H101 is missed by local flake801:59
clarkbbecause H101 comes from hacking02:00
clarkbyou need to make sure hacking is installed. The best way to do that is to run the tests with tox. `tox`02:00
HaomengI checked, the 'hacking' is defined as dependency in our test-requirements, I think once we run 'tox -evenv' or 'testr init', the required lib should be installed, but it is not true case in my ubuntu dev env02:02
Haomenglet me reinstall another ubuntu to have a look, thank you clarkt02:03
clarkbtestr init won't install the dependencies02:04
clarkband if you use tox -evenv, you have to source the venv after wards02:05
clarkbthe easiest way to run the tests is literally just `tox`02:05
Haomengyes, I follow the steps02:05
HaomengSetting up a local environment for development can be done with tox:02:06
Haomeng02:06
Haomeng# create virtualenv02:06
Haomengtox -evenv -- echo 'done'02:06
Haomeng02:06
Haomeng# activate the virtualenv02:06
Haomengsource .tox/venv/bin/activate02:06
Haomeng02:06
Haomeng# run testr init02:06
Haomengtestr init02:06
clarkbHaomeng: maybe you ran that before hacking became a dependency?02:07
HaomengI want to fix this document to make sure other guys will not encounter such same with hacking issue with me02:12
clarkbHaomeng: the way to do that is to just use `tox`02:12
Haomengnow your work-around works, just run 'pip install hacking' can fix my issue, but not sure how to change the dev guide, so need your comments, thank you02:12
Haomengyes02:13
*** rloo has quit IRC02:45
openstackgerritHaomeng,Wang proposed a change to openstack/ironic: Support uniform MAC address with colons  https://review.openstack.org/5276103:21
*** anniec has quit IRC03:23
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Conductors maintan driver list in the DB  https://review.openstack.org/5174303:41
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Fix a few missing i18n  https://review.openstack.org/5349103:41
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Remove several old TODO messages  https://review.openstack.org/5349203:42
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Remove redundant test stubs from conductor/manager  https://review.openstack.org/5349303:42
*** prekarat has quit IRC04:23
*** rwsu has quit IRC05:42
*** matsuhashi has quit IRC06:04
openstackgerritHaomeng,Wang proposed a change to openstack/ironic: Use assertItemsEqual to compare the list  https://review.openstack.org/5352206:08
*** matsuhashi has joined #openstack-ironic06:09
*** rwsu has joined #openstack-ironic06:21
*** rwsu has quit IRC06:26
*** prekarat has joined #openstack-ironic06:34
*** jianingy1afk has joined #openstack-ironic06:45
*** jianingy_afk has quit IRC06:45
*** jianingy_afk has joined #openstack-ironic06:45
*** jianingy1afk has quit IRC06:49
*** matsuhashi has quit IRC06:54
*** matsuhashi has joined #openstack-ironic06:55
*** matsuhashi has quit IRC06:59
*** matsuhashi has joined #openstack-ironic07:01
GheRiveromorning all07:39
*** romcheg has joined #openstack-ironic07:39
*** jistr has joined #openstack-ironic07:50
*** martyntaylor has joined #openstack-ironic07:55
*** lucasagomes has joined #openstack-ironic08:20
*** derekh has joined #openstack-ironic08:22
Haomenglucasagomes: ping08:33
HaomengGheRivero: morning:)08:34
lucasagomesHaomeng, morning buddy, how r u?08:35
GheRiveromorning all08:35
HaomengLucus, need your help, do you have idea about this defect https://bugs.launchpad.net/ironic/+bug/1244072, not sure why port object works with default value, but node does not work, strange:)08:35
lucasagomesHaomeng, oh, off the top of my head I don't know, gotta dig in the code a bit to see what's going on08:38
Haomengno problem, ok will go on to check code:)08:38
Haomengand another findings, some port properties can not be listed by command line, is there some display configurations to control the output, any comments?08:38
romchegMorning all08:39
romchegSorry folks, I got sick so was unavailable for the last two days08:39
Haomengmorning, romcheg08:40
romchegMorning Haomeng08:40
romchegI heard you have a question for me08:41
HaomengJust find helping, if you can help me thankyou08:41
Haomengtwo defects, no idea how to fix now, any comments? https://bugs.launchpad.net/ironic/+bug/1244072  https://bugs.launchpad.net/ironic/+bug/124410708:42
Haomengthese are tested out by me today:)08:42
Haomengwant to fix by myself:)08:42
Haomengwelcome all of your comments:_08:43
romchegOk, let's take a look08:43
Haomengthank you romcheg:)08:43
Haomengno rush, if you have time:)08:44
lucasagomesHaomeng, oh I see, weird, port-show should show all the port attributes (https://github.com/openstack/ironic/blob/master/ironic/api/controllers/v1/port.py#L48-L54)08:48
lucasagomesromcheg, welcome back :)08:48
lucasagomesromcheg, feeling better now buddy?08:48
Haomengok, let me debug it to find the bugs:)08:49
romchegHi lucasagomes. Better now but have to attend my doctor for a few days more08:49
romchegHow're you?08:49
*** sjing has quit IRC08:50
Haomengmaybe it is filted by IronicClient code08:50
Haomenglet me try with api call08:50
romchegHaomeng: you're always welcome to fix bugs :)08:50
lucasagomesromcheg, I see :)08:50
lucasagomesall is well here08:50
Haomengyes, I am focusing on Ironic these days, and our boss let me work with Ironic team full time to do more Contribution08:50
Haomengbut I am new guy, need all of you supporting:)08:51
romchegHaomeng, lucasagomes: I think the bug might be in the client so we need to add that project to it, agree?08:51
Haomengthanks for all supporting:)08:51
Haomengyes08:51
Haomenglet me do a API call first to compare the result first08:51
romchegHaomeng: that's a nice idea08:52
Haomeng:)08:52
lucasagomesromcheg, the port show? yes sir!08:52
HaomengI tested with API call, it can return these properteis:08:55
Haomeng{08:55
Haomeng    "node_id": "be83a857-aa23-493b-b13a-f01ebfcef68c",08:55
Haomeng    "extra": {},08:55
Haomeng    "uuid": "0ad5d609-3072-4499-97fc-ab2d666313b8",08:55
Haomeng    "links": [08:55
Haomeng        {08:55
Haomeng            "href": "http://9.123.136.76:6385/v1/ports/0ad5d609-3072-4499-97fc-ab2d666313b8",08:55
Haomeng            "rel": "self"08:55
Haomeng        },08:55
Haomeng        {08:55
Haomeng            "href": "http://9.123.136.76:6385/ports/0ad5d609-3072-4499-97fc-ab2d666313b8",08:55
Haomeng            "rel": "bookmark"08:55
Haomeng        }08:55
romchegHaomeng: please use http://paste.openstack.org for big snippets08:56
Haomengthanks08:56
lucasagomesdoes nodes return the internal attributes as well (created_at, updated_at) ?08:57
Haomengsorry, I dont know such way to paste a lot of information08:57
romcheglemme check that08:58
Haomengport api call does not return created_at, updated_a08:58
romchegI suspect the problem might be in the object model08:58
Haomengbut our node-show can return created_at, updated_at , but with empty value08:58
Haomenglet me check08:58
Haomengthank you romcheg08:58
romchegthe object model seems to be fine09:04
Haomengromcheg and lucasagomes, I will take care my Daughter, will be back after 1+ hours...09:07
Haomenganother finding09:07
*** matsuhashi has quit IRC09:08
Haomengour node api call can not return created_at and updated_at09:08
*** max_lobur has joined #openstack-ironic09:08
*** matsuhashi has joined #openstack-ironic09:09
Haomengbut "ironic node-show" can return created_at and updated_at with empty value, strange09:09
Haomengwill be back...09:09
lucasagomesHaomeng, I think these are internal values that's why they are not shown09:09
*** matsuhashi has quit IRC09:09
Haomengyes, agree with you Lucas09:09
*** matsuhashi has joined #openstack-ironic09:09
Haomengbut "ironic node-show" can return created_at and updated_at two fields, with empty value, strange09:09
lucasagomesHaomeng, https://github.com/openstack/python-ironicclient/blob/master/ironicclient/v1/node_shell.py#L24-L2709:10
Haomengyes, Lucas, this is client code, let me check09:11
lucasagomesthe CLI wants to show the create_at and update_at, but as they r not present on the body message it shows an empty value09:11
Haomenghere is gap09:11
Haomengapi can not return  create_at and update_at, but cli want to populate them09:11
lucasagomesyes09:11
Haomengif  create_at and update_at are required for us to show, we have to enable from api level09:12
lucasagomesexactly09:12
HaomengI will try to debug API code and let you know the result09:12
Haomengthank you Lucas09:12
Haomengand check all our APIs09:12
lucasagomesnow, should we show it in the API? as they r internal values we might need to discuss if there's any value in showing them or not09:12
lucasagomes:)09:13
Haomengyes09:13
Haomengif we should not show it by api, we have to remove the define from cli display list09:13
lucasagomesyes09:13
romchegIs't that a topic for the meeting?09:13
lucasagomessame for the "reservation" it's a internal value used by ResourceManage to control the locks of the nodes09:14
lucasagomesromcheg, I don't think so really09:14
lucasagomesI think the CLI is wrong and just should be removed from there, I don't see any value in showing such attributes to be honest09:14
Haomengand from my view, 'created_at', 'updated_at' are internal fields, but it is meaningful for us to check the object create time and latest updat time for investigations09:14
Haomengok09:14
lucasagomesyea maybe for some debug propose09:14
Haomengyes09:15
lucasagomeswell we can talk about it :)09:15
Haomeng:)09:15
Haomengthank you Lucas and RomCheg09:15
romchegmaybe it's reasonable to show created_at and updated_at if the —debug option is specified&09:15
romcheg?09:15
HaomengI think created_at and updated_at  are usefuy by my personal view:)09:16
Haomengwill be back, see you:)09:16
lucasagomesromcheg, yea... now thinking a bit more, yea such values might be kinda important, knowing when it was created is a good information hmmm09:20
*** liteIRC has joined #openstack-ironic09:22
romcheglucasagomes: is there an easy way to show some fields only in debug mode?09:23
romchegI'm not familiar with the client unfortunately09:24
lucasagomesoh the problem is that the API is not returning those fields so needs to be changed in the API first09:24
lucasagomesif you specify the --debug it will show the json  from the request on the CLI but that won't contain the created_at, updated_at fields09:25
max_loburHi romcheg , lucasagomes , Haomeng09:29
romchegMorning max_lobur09:29
lucasagomesmax_lobur, morning :)09:29
max_loburromcheg, to implement what you want we probably would need to send debug flag to the api in json09:30
max_loburbecause currently --debug is purely client option09:30
max_loburso the api will need to know whether to send created_at deleted_at back or not09:30
romchegmax_lobur: the API server accepts the debug option as well09:35
romchegHowever, that should be done on start09:36
*** liteIRC has quit IRC09:36
max_loburromcheg, true09:36
lucasagomesshould those options appear only by debug propose? created_at and updated_at sounds like a relevant information even for not debug propose09:37
romcheglucasagomes, max_lobur: Passing the date and time through the API is only the part of the task09:38
romchegthe second part is how and we represent the date to the user09:38
romchegBoth date and time a sensitive to the time zone09:39
romchegSo the problems start appearing when the client and the server are located in different time zones09:39
max_loburromcheg, good point09:40
romchegWhile it's an internal value, we should just use UTC09:40
*** liteIRC has joined #openstack-ironic09:40
romchegIf we want to make this an public information, however, we need to care about time zones09:40
max_loburFYI nova shows created, update fields in show command, and it shows it in UTC09:41
max_loburcreated                              | 2013-10-24T09:37:39Z09:41
lucasagomesromcheg, very good point yea09:41
romchegWe need to be better than nova :)09:42
max_loburargee=)09:42
lucasagomeshehe09:42
max_loburIMO possible way to show time in current TZ is to patch values from response according to the current time zone on the client09:45
romchegIndeed09:45
romchegThat does not require changing the API09:46
max_loburyep09:46
*** liteIRC has quit IRC09:55
*** prekarat has quit IRC10:10
*** prekarat has joined #openstack-ironic10:22
HaomengI am back, ok, I will check API side to return these  created_at  and update_dt10:30
Haomengthen try to enhance client to display time value againsting local TZ10:31
Haomengnot sure if we have such fields definations in API side, like the client code  _print_node_show method define the dislplay fields list10:40
*** matsuhashi has quit IRC10:46
*** nosnos has quit IRC11:12
*** nosnos has joined #openstack-ironic11:12
*** nosnos has quit IRC11:17
romchegI think it will be also useful if NobodyCam and devananda read this discussion ^^11:53
Haomeng:)11:54
HaomengOK, will wait  NobodyCam and devananda comments then to do fix11:55
romchegHaomeng: I think you can do a patch. If the guys don't like it, they can always reject it11:58
*** prekarat has quit IRC11:58
romchegHaomeng: in this case there's no reason to be afraid of rejections :)11:58
*** prekarat has joined #openstack-ironic11:58
*** anteaya has joined #openstack-ironic12:07
Haomengromcheg, ok12:11
Haomeng:)12:11
HaomengI think port fields returned by API   are controled by  Port class fields defination12:12
openstackgerritLucas Alvares Gomes proposed a change to openstack/python-ironicclient: Add node-set-power-state to cli  https://review.openstack.org/5335612:20
*** jdob has joined #openstack-ironic12:26
*** linggao has joined #openstack-ironic12:39
openstackgerritJenkins proposed a change to openstack/ironic: Updated from global requirements  https://review.openstack.org/5337113:16
*** jdob has quit IRC13:16
*** jdob has joined #openstack-ironic13:16
*** jbjohnso has joined #openstack-ironic13:22
*** rloo has joined #openstack-ironic13:32
*** jdob has quit IRC13:34
*** jdob has joined #openstack-ironic13:35
openstackgerritHaomeng,Wang proposed a change to openstack/ironic: node-show display created_at,updated_at empty value  https://review.openstack.org/5362713:37
*** yuriyz has joined #openstack-ironic13:42
openstackgerritYuriy Zveryanskyy proposed a change to openstack/ironic: Fix exceptions handling in controllers  https://review.openstack.org/5363213:44
romchegHaomeng: I just would like to remind you that this kind of change should be also covered by unittests13:45
openstackgerritYuriy Zveryanskyy proposed a change to openstack/ironic: Fix status codes in node controller  https://review.openstack.org/5292013:48
HaomengI have run cli function tested already in my local env13:49
Haomengand just commit first patch to review if can be accepted for our soution13:49
Haomengwill add unittest codes in next patchs13:49
romchegHaomeng: no problem in that case :)13:51
HaomengI will go to sleep, will add testcase code tomorrow morning,thanks for your reminder nomchg13:51
Haomeng:)13:51
yuriyzGood night Haomeng :)13:52
romchegGood night13:52
Haomengnice day, yuriyz, romcheg13:52
Haomeng:)13:52
*** rloo_ has joined #openstack-ironic14:03
*** rloo__ has joined #openstack-ironic14:04
*** rloo___ has joined #openstack-ironic14:07
*** rloo has quit IRC14:07
*** rloo_ has quit IRC14:08
*** rloo__ has quit IRC14:09
*** rloo___ has quit IRC14:11
*** rwsu has joined #openstack-ironic14:20
*** prekarat1 has joined #openstack-ironic14:28
NobodyCamGood morning Ironic14:31
*** prekarat has quit IRC14:31
max_loburMorning NobodyCam =)14:32
NobodyCamhey hey max_lobur how is your day going. well I hope:)14:32
max_loburso far so good =)14:33
NobodyCam:)14:34
yuriyzMorning Ironic14:34
NobodyCammornig yuriyz14:35
NobodyCammorning even14:35
linggaoMorning all.14:36
NobodyCammorning linggao14:36
linggaoHi Haomeng, I saw your comment on my code regarding sync with doc.  Is that something I should change in code?14:36
linggaoMorning NobodyCam14:37
linggaoNobodyCam, devananda, do we have a common API doc that I can update for the changes I have made /nodes/?instance_uud=<something> ?14:41
NobodyCamlinggao: this ? http://docs.openstack.org/developer/ironic/ ?14:43
linggaoNobodyCam, I am not sure this is the one that Haomeng talking about.14:47
NobodyCamlinggao: what review?14:47
linggaohttps://review.openstack.org/#/c/53262/14:47
NobodyCamlinggao: http://docs.openstack.org/developer/ironic/14:53
NobodyCambad paste14:53
NobodyCamlinggao: http://docs.openstack.org/developer/ironic/dev/api-spec-v1.html14:53
linggaoNobodyCam, that looks like the right one.14:54
NobodyCam:-p14:54
NobodyCam:014:55
linggaoShould I update it after the patch is approved?14:55
linggaoOr we have someone dedicated to update it?14:55
NobodyCamwe do not have a dedicated person14:55
linggaohmm, wonder how I can update it. There is not even a button for me to login. :)  Maybe only core people can do it.14:59
*** rloo has joined #openstack-ironic15:01
NobodyCamlinggao: here maybe https://github.com/openstack/ironic/blob/master/doc/source/dev/api-spec-v1.rst15:02
NobodyCamadd any edits to that file along with the review15:03
linggaoNobodyCam, thanks a lot.15:03
NobodyCam:)15:04
*** prekarat1 has quit IRC15:10
* NobodyCam makes mo coffee... brb15:16
openstackgerritLucas Alvares Gomes proposed a change to openstack/ironic: Required fields on nodes  https://review.openstack.org/5366415:24
openstackgerritLucas Alvares Gomes proposed a change to openstack/ironic: Expose /drivers on the API  https://review.openstack.org/5315715:24
NobodyCammorning lucasagomes15:24
lucasagomesNobodyCam, good morning :) how r u?15:25
NobodyCamdoing good.... slowly getting use this thing called "The Sun"...15:25
lucasagomesnice! here it's getting cold now15:26
lucasagomesand no sun, just cloudy15:26
* lucasagomes I actually likes it15:27
linggaoNobodyCam, I do not even know how to start change that doc  https://github.com/openstack/ironic/blob/master/doc/source/dev/api-spec-v1.rst15:28
linggaoit is not up-to-date at all.15:28
NobodyCam:) lol only going to be 90F here today :)15:28
NobodyCamlinggao: :(15:29
lucasagomeslinggao, :( yea it's not15:29
lucasagomeswow 90F is like 30C, that's pretty hot15:29
NobodyCamhehehe :) ahh palm springs15:29
lucasagomeshere it's 14C right now (57F)15:29
*** ben_duyujie has joined #openstack-ironic15:29
linggaoI'll just ignore it for now with my patch, can I?15:29
NobodyCamlinggao: how far off is that doc15:30
NobodyCamlucasagomes: Mr J. didn't like the expose driver patch15:31
NobodyCamlucasagomes: also dose that one need a doc update?15:31
linggaoNobodyCam, take Node for example http://docs.openstack.org/developer/ironic/dev/api-spec-v1.html#node15:31
linggaoA lot of attributes mentioned there are not in ironic.15:32
lucasagomesNobodyCam, it because it depends on the patch that add the list of drivers to the db15:32
lucasagomesand that's failing on py26 cause it uses one assert that is only supported by py27+15:32
linggaoarch, cpu, mem, ram, state etc.15:32
linggaoI am afraid to change it.15:33
lucasagomeslinggao, yea pretty much the whole thing should be updated15:34
NobodyCamlinggao: ack .. please comment on the review that the doc still need updating15:34
linggaoNobodyCam, ok. will do. thanks15:34
NobodyCamprob need a bug for api-spec-doc way out of date15:34
NobodyCam:)15:34
NobodyCambrb15:34
lucasagomeswe have one I think15:35
rloohi, quick question. As a general rule, should we LOG something when an exception is raised?15:35
lucasagomesif not I'm going to create15:35
linggaothanks lucasagomes.15:35
rlooor leave it to something that catches the exception, to maybe log it.15:35
lucasagomeshttps://bugs.launchpad.net/ironic/+bug/120274815:35
linggaook, I'll put that link in the review.15:36
NobodyCamlucasagomes: :)15:37
yuriyzHello lucasgomes rloo15:42
rloohi yuriyz15:42
openstackgerritlinggao proposed a change to openstack/ironic: Supports get node by instance uuid in API  https://review.openstack.org/5326215:44
yuriyzWhere is Martyn Taylor? He stop work with https://review.openstack.org/4958215:44
NobodyCammartyntaylor: are you around?15:46
martyntaylormartyntaylor: I am around15:46
martyntayloryuriyz: it's been inactive for week, going to try to get to is asap15:46
NobodyCamhey hey martyntaylor :) good mornign15:46
NobodyCammorning even15:47
martyntaylorNobodyCam: hey morning fella15:47
NobodyCam:)15:47
martyntaylorNobodyCam: well nearly 5pm here :D15:47
NobodyCamlol almost 9 here :)15:47
yuriyzmartyntaylor, I like your idea for validating, only some code cleanup needed15:47
martyntaylorhaha15:47
martyntayloryuriyz: yeah mate, I haven't forgotten about it I assure you :P15:47
martyntayloryuriyz: we just have a few bits of prep for openstack summit so I had to change priorities, but will get to it asap15:48
martyntayloryuriyz: I will get to it before the end of the week ;)15:49
NobodyCammartyntaylor: awesome :)15:49
* NobodyCam notes that is tomorrow is friday15:49
yuriyzmartyntaylog, good travel to HK :)15:49
NobodyCamheheheh15:49
NobodyCamyuriyz: are you comming?15:50
martyntayloryuriyz: haha thanks :D15:50
yuriyzNo, only romcheg15:50
martyntaylordoh :(15:50
NobodyCam:-P15:50
romchegMorning everyone15:50
romchegGood news everyone!15:50
NobodyCammorning romcheg :)15:51
romchegDevstack now installs ironic client15:51
NobodyCamwoot :)15:51
romchegthe authentication patch was merged as well15:51
* NobodyCam high fives romcheg :)15:51
NobodyCambbt... brb16:01
*** yuriyz has quit IRC16:06
*** yuriyz has joined #openstack-ironic16:11
*** jistr has quit IRC16:16
*** WillOchanda has joined #openstack-ironic16:26
openstackgerritLucas Alvares Gomes proposed a change to openstack/python-ironicclient: Add driver-list  https://review.openstack.org/5368316:27
lucasagomesromcheg, w00t!16:28
devanandag'morning, all16:33
NobodyCamgood morning devananda16:33
romchegMorning devananda16:34
devanandai seem to have a lot of reviews to catch up on ... :)16:34
devanandaHaomeng: hi! sorry i missed your comments yesterday -- was on a plane16:34
yuriyzMorning devananda, I posted some comments on my keystone-related patchs16:35
NobodyCamdevananda: http://eavesdrop.openstack.org/irclogs/%23openstack-ironic/16:35
NobodyCam:)16:35
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Fix a few missing i18n  https://review.openstack.org/5349116:35
*** martyntaylor has quit IRC16:37
*** ben_duyujie has quit IRC16:38
*** yuriyz has quit IRC16:39
NobodyCamloging errors in test seems odd to me.16:39
devanandaok, still some catching up to do, but on the created_at, updated_at discussion16:41
devanandayes, our API should expose those for every resource16:41
devanandaand I think client should list them by default16:41
devanandarloo: on exception logging, there are cases where we expect an exception to be caught at a higher layer of code and dealt with there16:45
devanandarloo: generally, we don't need to LOG when we raise, but we probably want to LOG when we catch the exception16:46
devanandalucasagomes: comments on API ^16:46
*** romcheg has left #openstack-ironic16:46
lucasagomesdevananda, I endorse ur statement :) as comments on https://review.openstack.org/#/c/53627/16:48
devananda:)16:48
lucasagomesI think that those information should be exposed in the api as well16:48
lucasagomesone note... the CLI also is trying to show the "reserved" field16:49
lucasagomeson nodes16:49
lucasagomesI don't think that should be exposed, that's an internal flag to control the node locks16:49
lucasagomesthe user shouldn't care about that16:49
NobodyCamlucasagomes: does 53356 imply a change to 52902?16:52
devanandalucasagomes: possibly, but it could be useful for troubleshooting16:53
lucasagomesNobodyCam, it does, I the chassis-list one also16:53
devanandalucasagomes: eg, knowing which conductor locked a node and, oh hey, that conductor is offline ....16:53
lucasagomesNobodyCam, I have to update that man page in general16:53
devanandalucasagomes: so taht will tie into the break-resource-locks blueprint16:53
*** harlowja has joined #openstack-ironic16:54
NobodyCamhehe :)16:54
lucasagomesdevananda, yea but should it be exposed by default? as u said it's good for developers to troubleshoot things16:54
lucasagomesand as a dev I'm happy to go to the db and check it16:54
lucasagomesthe normal user shouldn't really care IMO16:54
lucasagomesNobodyCam, ^ thoughts?16:57
NobodyCamlucasagomes: would it be worth showing "reserved" if --debug is included? so admins could get that info easily?16:57
devanandalucasagomes: "normal user" == cloud admin16:57
*** albionandrew has joined #openstack-ironic16:58
devanandaIMO, --debug shouldn't be used to get information about the resource. It should be used to debug the call to the API16:58
devanandaironic node-show --all-fields16:58
lucasagomesdevananda, the reserved will have the hostname of the conductor? or it's just a flag like 1 or 0?16:58
*** hemnafk is now known as hemna16:58
devanandawould be better IF we need to hide some fields by default, but I dont think we do16:59
devanandalucasagomes: hsotname16:59
lucasagomesI see16:59
lucasagomeshmm16:59
*** derekh has quit IRC16:59
NobodyCamwe dont have a --verbose do we17:00
NobodyCamdevananda: I do tent to aggree with you. our target audince is admins,17:01
NobodyCam*tend17:02
lucasagomesNobodyCam, good point I think it's on the CLI but doesnt seems to work17:02
lucasagomesI mean it returns the same with --verbose or without it hehe17:02
* lucasagomes think that we need a bug for it17:02
lucasagomeswe also have the --debug which dumps the json request and http codes etc17:03
NobodyCamlucasagomes: there are commnets on the man page review to clearify the --debug17:04
lucasagomesI see, yea I will try to submit a new patch for that tomorrow (came to the office today, and it's already 18:04 here)17:04
devananda--debug dumping http and json is good17:05
NobodyCamlol enjoy the drive home17:05
lucasagomesyea --debug is pretty useful17:05
lucasagomesnow idk what we should do with the --verbose17:05
NobodyCam:)17:06
devanandamordred: any opinion on unittest2 for py26 compat?17:07
clarkbdevananda: please don't :)17:08
clarkbdevananda: testtools should cover many things that unittest2 offers and keeps the number of dependencies down17:08
clarkbdevananda: is there a particular feature you need?17:08
devanandaclarkb: assertItemsEqual17:08
devanandaalso, unittest2 is still in global-requirements.txt17:09
clarkbdevananda: yes some projects still use it, but we are slowly killing it17:09
devanandak17:09
devanandaclarkb: is there an equivalent in testtools?17:09
devanandaah. looks like nova has collected a little library of matchers17:10
clarkbhttp://testtools.readthedocs.org/en/latest/for-test-authors.html#contains may need to be combined with another matcher to get the exact behavior17:11
devanandathanks. i'll poke at it17:12
NobodyCamquick walkies...brb17:13
max_loburHi devananda17:14
lucasagomesdevananda, NobodyCam I'm done for today, have a g'night17:14
max_loburSorry, I didn't think of 2.6 support when proposed assertItemsEqual17:15
*** lucasagomes has quit IRC17:16
devanandamax_lobur: isn't it fun trying to support 2.6, 2.7, and 3.3? :)17:16
NobodyCamdevananda: :-p17:16
max_loburto avoid unittest2 we could add our implementation of assertItemsEqual to tests/base.py TestCase class17:16
max_loburlike asserEquals(sorted(seq_1), sorted(seq_2))17:17
devanandamax_lobur: or use testtools17:17
devanandayour idea is certainly simpler. but over time we'll probably want to inherit some of the other matches from nova17:18
max_loburIMO contains will be less obvious17:18
devanandaeg, DictEqual, DictContains, DictHasSameKeys, etc17:18
max_loburdevananda, true17:18
devanandasee noav/tests/matchers.py17:18
*** jianingy_afk has quit IRC17:19
max_loburfor 2.6 and other versions support - yea=) just need to have a big poster above the monitor - DON'T FORGET ABOUT 2.6 AND 3.3 =)17:20
*** hemna has quit IRC17:22
*** rloo has quit IRC17:27
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Conductors maintan driver list in the DB  https://review.openstack.org/5174317:32
openstackgerritA change was merged to openstack/ironic: Fixes RootController to allow URL without version tag  https://review.openstack.org/5251617:36
*** martyntaylor has joined #openstack-ironic17:38
*** martyntaylor has left #openstack-ironic17:38
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Regenerate the sample config file.  https://review.openstack.org/5370217:41
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Group and unify ipmi configurations  https://review.openstack.org/5261517:41
* mordred votes for testtools matches17:52
mordredmatchers17:52
mordredwe should also consider upstreaming the matchers in nova17:52
*** datajerk has quit IRC17:52
openstackgerritlinggao proposed a change to openstack/python-ironicclient: Modifies CLI to show nodes by instance uuid  https://review.openstack.org/5348517:55
devanandaNobodyCam: I'm +A'ing some things to get the queue down18:02
NobodyCamlinggao: ^^^ can you check i18n on ^^^18:03
NobodyCamdevananda: :)18:03
linggaoNobodyCam, ?18:04
*** derekh has joined #openstack-ironic18:04
NobodyCamhttps://review.openstack.org/#/c/53485/2/ironicclient/v1/node_shell.py around lines 42-4818:04
NobodyCam_("I18n text")18:05
openstackgerritA change was merged to openstack/ironic: Updated from global requirements  https://review.openstack.org/5337118:05
NobodyCamit for translation18:05
NobodyCamit's*18:05
openstackgerritA change was merged to openstack/ironic: Support uniform MAC address with colons  https://review.openstack.org/5276118:06
*** datajerk has joined #openstack-ironic18:07
linggaoNobodyCam, what do you mean by "check i18n on"?  :)18:07
devanandalinggao: i18n == internationalization18:08
devananda_ is syntactic magic for translating strings to locale-specific langauges, when present18:08
NobodyCamlol there are several i18n updates needed i node_shell18:08
NobodyCambut look at line 15318:09
NobodyCamthat raise is i18n18:09
* NobodyCam wouldn't -1 if linggao fixed some of the others too. 18:10
linggao:)18:10
NobodyCamlike #143, 119 , ect18:10
linggaoNobodyCam, do you mean change18:11
NobodyCamdevananda: in the client do we need to i18n the prints... ie line 120 in node_shell.py18:11
linggaoraise exc.CommandError('Node not found: %s' % n)18:11
linggaoto18:11
linggaoraise exc.CommandError(_('Node not found: %s')  %  n)18:12
linggao?18:12
NobodyCamlinggao: :) yeppers18:12
linggaoah, that's something new for me. thanks for the help.18:13
NobodyCam:)18:13
devanandaHaomeng: i've commented on the sort() bug and review18:13
NobodyCamlinggao: there is a open bug for fixing all ironic's i18n issues18:14
linggaoNobodyCam, I'll take a look at it.18:15
NobodyCamlinggao: fixing the others I pointed out IS out side the scope of your patch...18:16
*** romcheg has joined #openstack-ironic18:16
linggaoyes :) phew!18:16
NobodyCam:)18:17
NobodyCamjsut saying I wouldn't -1 it fix they happen to get fixed :)18:17
NobodyCamhehehe18:17
NobodyCams/it/if/18:17
linggaolol18:17
NobodyCammordred: i18n question... if you have a second?18:19
NobodyCamgah who put that diff all side by side button there18:20
NobodyCam:-p18:20
*** derekh has quit IRC18:22
*** anniec has joined #openstack-ironic18:22
devanandaGheRivero: ping18:22
*** romcheg has left #openstack-ironic18:23
NobodyCamlol seems many of the other clients have nit done i18n updates yet18:30
linggaoSo NobodyCam, for i18n, every string should be use gettext alas _(), right?18:31
linggaolike18:31
NobodyCamnot every18:31
NobodyCamdef the raise's18:31
linggao@utils.arg('node', metavar='<id>',18:31
linggao           help=_("ID, UUID or instance UUID of node"))18:31
mordredNobodyCam: on the phone18:31
linggaohow about this?18:32
linggao@utils.arg('node', metavar='<id>',18:32
linggao           help="ID, UUID or instance UUID of node")18:32
linggaowrong paste18:32
NobodyCammordred: :) all good.. just have a quick i18n question when your free18:32
linggao    fields = ['uuid', 'instance_uuid', 'power_state', 'target_power_state',18:32
linggao              'provision_state', 'target_provision_state', 'driver',18:32
linggao              'driver_info', 'properties', 'extra',18:32
linggao              'created_at', 'updated_at', 'reservation']18:32
*** rloo has joined #openstack-ironic18:33
linggaoShould each filed be gettext-ed?18:33
NobodyCamlinggao: nope those are field names translating them would break things18:33
linggaoah, you are right.18:34
NobodyCamlinggao: think of it as text that gets displayed to uesrs18:34
NobodyCammainly I see it raises18:35
NobodyCamit in*18:35
NobodyCammy question for mordred is things like https://github.com/openstack/python-ironicclient/blob/master/ironicclient/v1/node_shell.py#L10018:35
NobodyCamthat one I'm not sure about18:35
linggaohttps://github.com/openstack/python-ironicclient/blob/master/ironicclient/v1/node_shell.py#L5418:36
linggaothat should, right?18:36
NobodyCamlinggao: good question... lets wait for mordred he may point us in the right direction. I have not seen other projects do that,18:38
linggaook18:38
NobodyCambut I can see values in it18:38
NobodyCamvalue18:38
NobodyCam:-p18:38
linggaoyes, we better do it as we changing the file.18:39
*** rloo has quit IRC18:46
*** rloo has joined #openstack-ironic18:46
devanandaNobodyCam: long discussion here you may be interested in: https://bugs.launchpad.net/ironic/+bug/123768818:47
devanandalifeless: also you may be interested in, too ^18:48
NobodyCamdevananda: rloo and I chatted about that yesterday18:49
devananda:)18:50
lifelessdevananda: btw assertItemsEqual is a matcher in testtools.18:51
NobodyCamI like rloo Idea #1 or #2 and #318:51
NobodyCamreading now18:51
devanandalifeless: ack18:51
lifelessdevananda: there isn't an exact match, but you can curry one up quickly or point me at the actual tests that are ugly and I'll see what makes sense to me18:56
lifelessdevananda: bug commented on18:56
NobodyCammorning lifeless :)18:57
devanandalifeless: assertItemsEqual came up in teh context of unsorted lists. in this case, I think it's sufficient to just continue to use assertEqual(sorted(a), sorted(b))18:59
devanandawe sidetracked into the "why is assertItemsEqual failing in py26" area a bit .... :)18:59
*** jianingy_afk has joined #openstack-ironic19:03
clarkbdevananda: I wonder why you are using a ordered type if order doesn't matter?19:04
clarkbit doesn't really hurt except for in cases like this where you are checking equality19:04
*** anniec has quit IRC19:06
NobodyCamclarkb: are you familiar with the i18n stuff?19:07
clarkbNobodyCam: sort of19:07
clarkbNobodyCam: I am familiar with the automation around it but less so code internals19:07
NobodyCamhttps://github.com/openstack/python-ironicclient/blob/master/ironicclient/v1/node_shell.py#L10019:08
NobodyCamshould something like that be print _("balh")19:08
*** anniec has joined #openstack-ironic19:12
devanandalifeless: seen this before? http://www.opencompute.org/assets/download/OpenComputeProjectOpenMachinesManagement.pdf19:14
NobodyCambrb19:14
NobodyCamback19:16
*** WillOchanda has quit IRC19:17
devanandai thought i saw an OCP-based ramdisk for hw mgmt, but can't find the link any more19:17
devanandait's mentioned as a goal in taht 2-yr-old paper19:17
linggaoNobodyCam, for i18n, I got "global name '_' is not defined" error for exception19:18
lifelessdevananda: I hadn't actually opened it before :)19:18
linggaosomething mut be missing.19:18
*** WillOchanda has joined #openstack-ironic19:19
NobodyCamlinggao: from ironic.openstack.common.gettextutils import _19:22
NobodyCamwhere are you geting that error?19:22
linggaohttps://github.com/openstack/python-ironicclient/blob/master/ironicclient/v1/node_shell.py#L3819:24
linggaoIf I add _() to the string and run "ironic node-show 5" where 5 is an invalide number19:24
linggaowithout _(), the command returns "Node not found: ..."19:25
NobodyCamhumm19:28
NobodyCamone sec19:28
linggaoAdding the following works:19:28
linggaofrom gettext import gettext as _19:29
NobodyCamlook like something with the loacalization:19:32
NobodyCamhttps://github.com/openstack/python-ironicclient/blob/master/ironicclient/openstack/common/gettextutils.py#L26-L3419:32
NobodyCamnot a whole lot going on there19:33
linggaoI did "from ironicclient.openstack.common import gettextutils" in the code, still not working19:35
clarkblinggao: you wuold need to do gettextutils._ with that import I think19:35
NobodyCamlol guess we should add a locale dir and ironicclient.pot file to the client huh19:36
NobodyCamclarkb: I think the client env is not correct19:36
NobodyCamno locale or pot file19:37
clarkbNobodyCam: it probably isn't. Getting those bits correct has been problematic in general19:37
NobodyCamlinggao: one sec going to do a test here19:37
WillOchandaNobodyCam & rloo: thanks for your help yesterday, we got our driver up and running!19:38
linggaoclarkb, from ironicclient.openstack.common.gettextutils import _   works19:38
NobodyCamWillOchanda: AWESOME!!!!19:38
rlooWillOchanda: yay!19:38
NobodyCamyour going to submit it ????!!!?????19:38
WillOchandanot yet, its very hacky now while we finalize APIs on our system, we'll clean it up and submit it in decemberish19:38
WillOchandaright now its just good for some show and tell in hong kong19:39
NobodyCamoh WillOchanda : keep an eye on https://review.openstack.org/#/c/53356/19:39
NobodyCam:) awesome look forward to seeing it in action there19:40
WillOchandaNobodyCam: that'll be useful, looking forward19:40
WillOchandaon to the next challenge - playing with /vendor_passthru/ :)19:40
WillOchandaare there any examples of this being implemented?19:40
NobodyCamWillOchanda: that may not be as well documented (yet) as was the power state stuff :-/19:41
WillOchandathat may be ok.. my understanding is if i call /vendor_passthrough/myfunction it'll map to myfunction in the driver, right?19:42
neo_hi NobodyCam, how are you?19:42
NobodyCamhey neo_ ... doing good.19:43
devanandaWillOchanda: that's the idea, yes19:43
NobodyCamthat image deploy?19:43
devanandaWillOchanda: there should be an example in the PXE driver19:43
neo_cool. just a quick upate... i tried with the partitioned image but i see the same issue. am stuck with this issue19:43
WillOchandagreat, let me take a look19:43
NobodyCamneo_: still the blkid error19:43
devanandaNobodyCam: I'm updating your proposal for communicating with the nodes & merging with one of romcheg's19:43
neo_yes19:43
NobodyCamdevananda: :) thank you19:44
NobodyCamneo_: ok lets take another look at the big picture.19:44
NobodyCamyou CAN deploy the ubuntu cloud image19:45
neo_yes19:45
neo_i can. its working just fine. i get the ubuntu cloud image from disk-image-builder19:45
neo_and that goes through fine.19:45
NobodyCambut you are NOT able to deploy your image19:45
NobodyCamok...19:45
neo_yes. correct. not able to deploy my image. i changed my image to be the "same" as the ubuntu cloud image.19:46
neo_i got the ubuntu cloud image, qcow2, changed to vmdk, brought up a vm, then added some packages in the vm, then got the vmdk and converted back to qcow2 and this qcow2 has the same issue.19:46
NobodyCamyes19:46
NobodyCamyou can not convert vmdk directly to qcow219:47
neo_i converted to raw in between ;)19:47
neo_yes i did19:47
NobodyCamI have had good luck going to raw19:47
NobodyCamok and same issue19:48
neo_yes19:48
NobodyCamand CB is working on a DIB element for your project?19:48
devanandaNobodyCam: I've copied your proposal and my edited summary to https://etherpad.openstack.org/p/IcehouseIronicNodeCommunication19:49
neo_i am sorry, what is that?19:49
NobodyCamdiskimage-builder is part of the TripleO (OpenstackOnOpenstack) story19:50
*** albionandrew has quit IRC19:50
NobodyCamit is the tool I use to create my images19:50
NobodyCamhttps://github.com/openstack/diskimage-builder19:51
NobodyCamwhen I last spoke with CBox he was going to work in a element for you19:51
neo_NobodyCam: yes you are right. i used DIB, yes i used it and could successfully deploy ubuntu cloud image on the baremetal server hardware.19:51
NobodyCam(I think) :-p19:51
linggaoNobodyCam, I think what's mising now for i18n19:52
linggaoWe need to add the following to ironicclient/__init_.py19:52
linggaofrom ironicclient.openstack.common import gettextutils19:52
linggaogettextutils.install('ironicclient')19:52
NobodyCamok.. if I understand what you are doing. quck recap: install you custom app and deploy..19:53
linggaothen we can use _('blah") everywhere in the ironicclient code.19:53
linggaono more import in each file.19:53
NobodyCamlinggao: yes that sounds correct19:53
rloodevananda: do you have a few minutes to discuss https://bugs.launchpad.net/ironic/+bug/123768819:54
*** albionandrew has joined #openstack-ironic19:54
devanandarloo: yes19:54
devanandaand then i need to get lunch :)19:54
NobodyCamneo_: see pm19:54
linggaoNobodyCam, should I include it in my current patch or in a seperate patch?19:54
rloodevananda: one thing I may be missing. When someone does a change-power-request and it fails, won't some error be returned to them?19:55
NobodyCamshould really be a seperate patch and then your current should depend on it19:55
devanandarloo: no19:57
devanandarloo: see conductor/rpcapi change_node_power_state19:57
neo_i am sorry i dint get you NobodyCam,19:57
devanandarloo: it is a "cast" -- which means there is no return possible from the manager19:57
WillOchandais the 'disk' property implemented for node objects yet? ie - should I be able to set it?19:58
linggaoNobodyCam, sure.19:58
NobodyCamneo_: I sent you a private message19:58
devanandaWillOchanda: what "disk" property? if you're reading the API spec, it's probably misleading you19:58
rloodevananda: ohhh. that explains things. Hmm. Now i have to think about it again. thx.19:58
devanandarloo: np. yea, that's why all this is an issue19:59
WillOchandadevananda: yup reading the API spec, each node has fields for disk, ram, arch, etc19:59
*** albionandrew has quit IRC19:59
devanandaWillOchanda: ah. so, all that has been subsumed by the 'properties' nested resource19:59
devanandaAPIdoc is out of date19:59
WillOchandadevananda: i suspected that, is 'properties' a free-form dictionary now, or is there a prescribed list of keys i can use?20:00
devanandaWillOchanda: so you can set what ever you want in there -- it's a list of key: value pairs20:00
devanandathe goal, which i haven't communicated clearly i nthe docs, is for properties to represent what is exposed to nova20:00
rloodevananda: in that case, I think having the 'error' be avail is the easiest soln (well, if we assume that the user wants some way of getting it outside of mining the logs)20:00
devanandaeg, # cpus, cpu arch, ram, and any other extra specs that the scheduler needs to know20:00
devanandarloo: i think that's a fair assumption :)20:01
*** albionandrew has joined #openstack-ironic20:01
devanandarloo: users -- even cloud admins -- may not have physical access to the log files20:01
devanandaWillOchanda: whereas driver-required info, such as "how big a root volume to create" should be set on the driver_info dict20:01
devanandaWillOchanda: see drivers.modules/pxe.py: 94 - 10020:02
devanandaimaeg_source, root_gb, deploy_kernel, etc20:02
devanandathese will come from Nova and be used by the PXE driver when deploying the image20:02
WillOchandaah ok, got it20:03
WillOchandanow for how to poke it, is it something like this:20:03
WillOchandacurl -X PATCH -d "disk=20000" http://localhost:6385/v1/nodes/db811f96-980f-4acb-ba7c-95a391413d9b/properties20:03
WillOchanda(because that doesn't work :/20:03
devanandaWillOchanda: you acn use the CLI to do it20:03
devanandaPATCH syntax is a bit more complex20:04
devanandaif you want to write your own client, you need to follow the RFC spec .... /me googles for it20:05
WillOchandaalright, thx, i'll keep playing20:05
devanandaeg, see "ironic node-update <uuid> replace driver_info/root_gb=10020:07
devanandas/see/try/20:07
openstackgerritlinggao proposed a change to openstack/python-ironicclient: Modifies CLI to show nodes by instance uuid  https://review.openstack.org/5348520:07
WillOchandagreat, got it working20:08
WillOchandaand if i want to modify this property from within the driver can i do node['properties'] = {"disk" : 20000} ?20:09
devanandathat would wipe out the current properties20:10
devanandai think you want to do this: node['driver_info']['disk'] = 2000020:11
WillOchandaah, right, so node['properties']['disk'] = ok yup20:11
devanandayea20:11
WillOchandathanks for fielding newbie questions, i'm not quite a python pro20:11
WillOchanda(obviously)20:12
devanandanp20:12
devanandabbiab20:14
*** lnxnut has joined #openstack-ironic20:20
openstackgerritlinggao proposed a change to openstack/python-ironicclient: Enable gettext alias for all ironicclient modules  https://review.openstack.org/5373020:20
*** lnxnut has quit IRC20:22
*** lnxnut has joined #openstack-ironic20:23
linggaoanyone, how do I add dependency for a patch that is under review? It had no depencies before.20:25
*** lnxnut has quit IRC20:27
NobodyCamlinggao: git review -d #####20:30
NobodyCamgit checkout YourPatchesBranch20:30
NobodyCamgit rebase20:30
NobodyCamgit review20:30
linggaoNobodyCam, let me try...20:31
NobodyCamanswer yes to git question20:32
*** jdob has quit IRC20:33
openstackgerritlinggao proposed a change to openstack/python-ironicclient: Modifies CLI to show nodes by instance uuid  https://review.openstack.org/5348520:33
NobodyCam:)20:33
linggaoyeah!20:35
linggaothanks20:35
NobodyCam:) great job linggao :)20:36
linggaothanks a lot NobodyCam for your patience and help.20:37
WillOchandadevananda: did the path for vendor_passthru change from this - http://localhost:6385/v1/nodes/add06ead-2de2-4012-8b79-60575c17d918/vendor_passthru ?20:38
WillOchandaoops, guess he stepped out, NobodyCam do you know?20:39
NobodyCamWillOchanda: he's getting a bite to eat20:43
NobodyCamlooks right20:44
NobodyCamhumm do_vendor_action20:45
NobodyCamrunning out for quick walk20:46
WillOchandacan't make that work either, alright20:46
NobodyCambrb about 10 / 20 min20:46
*** linggao has quit IRC20:57
*** anniec has quit IRC20:58
NobodyCamback20:59
*** anniec has joined #openstack-ironic21:04
*** CerealBox has joined #openstack-ironic21:06
*** jbjohnso has quit IRC21:10
*** WillOchanda has quit IRC21:21
devanandaback21:41
NobodyCamwb21:43
*** WillOchanda has joined #openstack-ironic21:47
WillOchandadevananda: back from lunch?21:53
devanandaya21:53
WillOchandaany ideas on /vendor_passthru/?21:54
WillOchandais it implemented?21:54
*** anniec has quit IRC22:04
*** anniec has joined #openstack-ironic22:22
*** holoirc has joined #openstack-ironic22:29
* NobodyCam start a new build and goes for quick walies22:35
NobodyCam*starts22:35
devanandaWillOchanda: it should be22:41
devanandaWillOchanda: did you look at drivers/modules/pxe.py: 582 - 591?22:41
devanandaWillOchanda: ooh. it may not be in the API yet22:41
devanandaWillOchanda: haha! yea .... http://git.openstack.org/cgit/openstack/ironic/tree/ironic/api/controllers/v1/node.py#n29622:43
devanandaso all the bits are on the back end (RPC, manager, driver) but the API isn't plugged in yet22:43
WillOchandaahh, bummer!22:46
devanandaWillOchanda: i'm implementing it now22:47
devanandasmall oversight :)22:47
WillOchanda:), is it a big effort?22:47
devanandait's done already (i think). just writing unit tests now22:48
devanandawas ~4 lines of code22:48
WillOchandasweet22:49
*** liteIRC has joined #openstack-ironic22:49
*** pky has joined #openstack-ironic22:51
*** michchap has joined #openstack-ironic22:56
* NobodyCam brb23:00
*** anniec has quit IRC23:00
*** anniec has joined #openstack-ironic23:03
devanandaas usual, unit tests are trickier than the actual code :)23:04
WillOchanda:)23:05
*** holoirc has quit IRC23:05
*** liteIRC has quit IRC23:06
WillOchandai'm also trying to get this PATCH stuff right - so i'm doing PATCH to /v1/UUID content-type=application/json, and my body is a json-encoded list of lines that look like this23:06
WillOchanda{"path": "/driver_info/address", "value": "10.216.142.87", "op": "add"}23:06
WillOchandaanything obviously wrong with that?23:07
devanandahrm. this is why we really need up-to-date API docs :)23:10
devanandai am not familiar with the PATCH syntax to off-hand spot anything wrong there23:10
*** albionandrew has quit IRC23:10
devanandaand would point you to lucasgomes....23:10
devanandabut he's probably asleep23:11
devanandausing our python library is not an option, eh?23:11
WillOchandai'm open to that, didn't know one existed23:12
WillOchandais it part of the main codebase?23:12
devanandaopenstack/python-ironicclient23:12
devanandahas a python API lib and a CLI23:12
NobodyCamneo_: get all that going?23:17
devanandahrm, why is _default not working?23:18
*** michchap has quit IRC23:19
*** michchap has joined #openstack-ironic23:22
*** anniec_ has joined #openstack-ironic23:24
*** anniec has quit IRC23:25
*** anniec_ is now known as anniec23:25
Haomengdevananda: ping23:43
devanandaHaomeng: pong23:43
Haomenggood afternoon:)23:43
HaomengI will add the common created_at updated_at fields into our base class APIBase, is ok?23:44
devanandathanks!23:44
Haomengthen all our API will have these properties, and I found our IronicBase Inherit oslo common class for these fields TimestampMixin, so our Ironic is same with other projects23:48
devanandayep23:50
Haomengdevananda: one more question, how do you think if we support client to display time in local TZ format?23:50
Haomengby default, we store/display in UTC23:50
HaomengI think this isnot required23:52
NobodyCamlinggao here23:52
NobodyCam?23:52
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Implement /nodes/UUID/vendor_passthru in the API  https://review.openstack.org/5376123:53
devanandaWillOchanda: ^^^23:53
devanandawoops, pep8 ....23:53
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Implement /nodes/UUID/vendor_passthru in the API  https://review.openstack.org/5376123:53
NobodyCam53730 is going to conflict with shell.py in 5335623:54
devanandaHaomeng: UTC is required23:54
devanandaHaomeng: all times should be stored in the database in UTC23:54
Haomengyes, it is our current code default behavior23:54
HaomengI want toknow show we support client to display time in local TZ format?23:55
devanandaHaomeng: as far as the client, I think silently converting to local TZ in the CLI is ... problematic in some cases.23:55
devanandaimagine if you are the admin23:55
Haomeng:)23:55
devanandayou SELECT some records from the DB, then you "ironic node-show" the same records23:55
devanandaand the times are totally different!23:55
Haomengyes23:55
WillOchandadevananda: thanks!  trying it now23:56
Haomengok, we keep current behavior23:56
Haomengwill not change client code23:56
NobodyCamdevananda: was that ever -D'd23:56
devananda?23:57
NobodyCamI don't see a "Uploaded patch set 1." comemnt23:57
devanandathere was a p123:58
devanandai just uploaded p2 really really quic23:58
devanandano -D23:58
NobodyCamoh well23:58

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