Friday, 2014-02-07

*** harlowja is now known as harlowja_away00:04
Haomengmorning ironic:)00:06
NobodyCammorning Haomeng :)00:10
HaomengNobodyCam: :)00:12
*** harlowja_away is now known as harlowja00:15
*** matsuhashi has joined #openstack-ironic00:19
*** anniec has joined #openstack-ironic00:22
*** mrda is now known as mrda_away00:23
* NobodyCam wanders afk00:32
*** datajerk has joined #openstack-ironic00:43
*** rloo_ has quit IRC00:54
*** anniec has quit IRC01:04
*** anniec has joined #openstack-ironic01:10
*** epim has quit IRC01:12
*** nosnos has joined #openstack-ironic01:28
*** hemna has quit IRC01:31
*** mrda_away is now known as mrda01:33
*** igor__ has joined #openstack-ironic01:42
*** igor has quit IRC01:42
*** wusWWW has quit IRC02:14
*** wusWWW has joined #openstack-ironic02:15
*** wusWWW has quit IRC02:26
*** anniec has quit IRC02:47
*** anniec has joined #openstack-ironic02:55
*** fandi has joined #openstack-ironic03:08
*** anniec has quit IRC03:14
*** anniec has joined #openstack-ironic03:39
*** harlowja is now known as harlowja_away03:53
*** anniec has quit IRC04:22
*** anniec has joined #openstack-ironic04:30
*** killer_prince has joined #openstack-ironic05:06
*** saju_m has joined #openstack-ironic05:08
*** pradipta` is now known as pradipta05:14
*** jcooley_ has quit IRC05:14
*** jcooley_ has joined #openstack-ironic05:15
*** shausy has joined #openstack-ironic05:30
openstackgerritJenkins proposed a change to openstack/ironic: Imported Translations from Transifex  https://review.openstack.org/7119206:05
*** mrda is now known as mrda_away06:17
*** saju_m has quit IRC06:18
*** lazy_prince has joined #openstack-ironic06:28
*** anniec has quit IRC06:48
*** jcooley_ has quit IRC07:05
*** matsuhashi has quit IRC07:05
*** jcooley_ has joined #openstack-ironic07:06
*** jcooley_ has quit IRC07:08
openstackgerritShane Wang proposed a change to openstack/ironic: Fix misspellings in ironic  https://review.openstack.org/7177707:14
*** matsuhashi has joined #openstack-ironic07:21
*** saju_m has joined #openstack-ironic07:32
*** jcooley_ has joined #openstack-ironic07:34
*** athomas has quit IRC07:43
*** nosnos_ has joined #openstack-ironic07:51
*** nosnos has quit IRC07:54
*** matsuhashi has quit IRC08:10
*** mdurnosvistov_ has joined #openstack-ironic08:20
*** martyntaylor has joined #openstack-ironic08:25
*** yuriyz has joined #openstack-ironic08:29
*** aignatov_ is now known as aignatov08:31
*** ndipanov_gone is now known as ndipanov08:41
*** mdurnosvistov_ has quit IRC08:57
*** Haomeng|2 has joined #openstack-ironic09:22
*** derekh has joined #openstack-ironic09:22
*** Haomeng has quit IRC09:25
*** lucasagomes has joined #openstack-ironic09:30
yuriyzMorning Ironic09:36
yuriyzping lucasagomes09:38
max_lobur_afkmorning folks09:41
*** nosnos_ has quit IRC09:43
mdurnosvistovMorning yuriyz, max_lobur_afk =)09:44
*** max_lobur_afk is now known as max_lobur09:46
lucasagomesyuriyz, morning :)09:46
lucasagomesmax_lobur, mdurnosvistov morning09:46
yuriyzLucas, there are not tests for get_one() in tests.api, is this ok?09:46
lucasagomesyuriyz, there's no? on the nodes?09:52
lucasagomeswell heh we should have tests for everything09:52
lucasagomesso it's not ok :(09:53
yuriyzfor all resources09:53
romchegMorning lucasagomes, yuriyz!09:54
yuriyzlucasagomes, I will put this task for Ironic newcomers, ok?09:55
lucasagomesyuriyz, oh good catch I can see we have tests for /nodes, /nodes/detail09:56
lucasagomesyuriyz, sure, thank u very much for that!09:56
lucasagomesromcheg, morning09:56
Haomeng|2morning all:)09:56
lucasagomesHaomeng|2, morning09:57
romchegI will poke my intern who's now working on expanding tempest API tests to add test for get_one09:57
Haomeng|2lucasagomes: :)09:57
romchegMorning Haomeng|209:57
Haomeng|2romcheg: morning:)09:57
*** Haomeng|2 has quit IRC09:58
mdurnosvistovMorning all!)))09:58
romchegmdurnosvistov: Ping, are you around?09:58
*** Haomeng has joined #openstack-ironic09:58
romchegHave you seen the problem with the missing test ^09:58
*** saju_m has quit IRC09:58
*** killer_prince has quit IRC10:05
*** Haomeng|2 has joined #openstack-ironic10:10
*** Haomeng has quit IRC10:11
mdurnosvistovromcheg, pong))10:13
mdurnosvistovromcheg, where?10:13
romchegmdurnosvistov: Since you're already working on improving API tests in tempest, could you please take care about testing get_one for nodes?10:14
romchegmdurnosvistov: The problem is that currently it's not tested in any way10:14
*** Haomeng|2 has quit IRC10:15
lucasagomesrloo, thanks for reviewing the driver :)10:18
mdurnosvistovromcheg, I've added you to patch review10:18
*** aignatov is now known as aignatov_10:25
max_loburfolks, how do you think, does change to RPC method (CAST to CALL) requires updating RPC_API_VERSION ?10:45
max_loburthe interface stays the same10:46
lucasagomesmax_lobur, is call() returning something?10:46
lucasagomesif so I would say we need to change the version10:46
lucasagomesohhh10:46
lucasagomescast to call10:46
lucasagomesignore my comment :P10:46
lucasagomeswell not really... after changing to call() ur going to return something for the user, ack?10:47
max_loburlucasagomes, nope10:47
lucasagomesif so we might want to change it yes, cause the return value is going to change10:47
max_loburthis is just to transferring exception back to the API10:48
max_loburit always returns None in normal case10:48
lucasagomesright10:48
lucasagomesbut it's going to raise a different exception or something like that?10:48
max_loburyep10:48
max_loburso it was asyng - returned nothing10:48
lucasagomesif nothing changes in the API POV, I think it's grand to keep the same version then10:49
max_loburand became sync - returns none10:49
lucasagomesic10:49
lucasagomeswell so I think we should keep the same10:49
max_loburwell, async returned None as well10:49
max_loburthe only difference in exceptions10:49
max_loburk, I agree10:49
*** jcooley_ has quit IRC10:52
*** jcooley_ has joined #openstack-ironic10:52
*** jcooley_ has quit IRC10:57
*** aignatov_ is now known as aignatov11:04
*** shausy has quit IRC11:12
*** shausy has joined #openstack-ironic11:13
*** romcheg is now known as romcheg_ltp11:24
*** romcheg_ltp is now known as romcheg11:24
openstackgerritSascha Peilicke proposed a change to stackforge/pyghmi: Support building wheels (PEP-427)  https://review.openstack.org/5717711:25
*** shausy has quit IRC11:35
*** shausy has joined #openstack-ironic11:36
*** viktors has joined #openstack-ironic11:42
*** martyntaylor has left #openstack-ironic11:51
*** lynxman has quit IRC12:12
*** lynxman has joined #openstack-ironic12:13
openstackgerritLucas Alvares Gomes proposed a change to openstack/ironic: PXE clean_up() to remove the pxe_deploy_key parameter  https://review.openstack.org/7187912:13
*** jcooley_ has joined #openstack-ironic12:24
*** jcooley_ has quit IRC12:30
*** lucasagomes is now known as lucas-hungry12:40
*** fandi has quit IRC12:42
*** athomas has joined #openstack-ironic13:16
*** jcooley_ has joined #openstack-ironic13:19
openstackgerritMax Lobur proposed a change to openstack/ironic: Fix race condition when changing node states  https://review.openstack.org/6913513:22
*** jdob has joined #openstack-ironic13:25
*** jcooley_ has quit IRC13:26
*** russellb is now known as rustlebee13:30
*** ndipanov is now known as ndipanoff13:31
*** lucas-hungry is now known as lucasagomes13:58
openstackgerritLucas Alvares Gomes proposed a change to openstack/ironic: PXE clean_up() to remove the pxe_deploy_key parameter  https://review.openstack.org/7187914:06
*** jbjohnso has joined #openstack-ironic14:09
*** jcooley_ has joined #openstack-ironic14:14
*** igor_ has joined #openstack-ironic14:15
*** igor__ has quit IRC14:15
*** jdob has quit IRC14:17
*** jdob has joined #openstack-ironic14:17
*** jcooley_ has quit IRC14:19
openstackgerritLucas Alvares Gomes proposed a change to openstack/ironic: PXE clean_up() to remove the pxe_deploy_key parameter  https://review.openstack.org/7187914:19
*** matty_dubs|gone is now known as matty_dubs14:32
openstackgerritMax Lobur proposed a change to openstack/ironic: Fix race condition when changing node states  https://review.openstack.org/6913514:39
*** martyntaylor has joined #openstack-ironic14:42
*** athomas has quit IRC14:44
*** jdob_ has joined #openstack-ironic14:46
*** jdob has quit IRC14:46
GheRiveromorning Ironic14:53
matty_dubsHowdy GheRivero14:53
max_loburmorning GheRivero, matty_dubs14:54
*** athomas has joined #openstack-ironic14:55
yuriyzmorning/evening all15:00
romchegMorning folks15:04
*** zul has quit IRC15:07
*** jcooley_ has joined #openstack-ironic15:08
*** zul has joined #openstack-ironic15:10
*** jcooley_ has quit IRC15:14
lucasagomesmorning all :)15:23
*** aignatov is now known as aignatov_15:25
*** aignatov_ is now known as aignatov15:32
*** athomas has quit IRC15:35
NobodyCamGood Morning Ironic15:41
max_loburGood Morning  NobodyCam :)15:44
NobodyCammorning max_lobur15:44
NobodyCamTGIFQ15:44
NobodyCams/Q/!/15:44
max_loburNobodyCam, +15:46
NobodyCamlucasagomes: as soon as I figure out what I messed up in root wrap I should have a patch refactoring libvirt15:54
lucasagomesNobodyCam, ack! morning15:54
lucasagomes:)15:54
max_loburlucasagomes, wanted to ask, as I guess you're the most experienced API man here :)15:57
NobodyCam:)15:57
max_loburtempest.common.rest_client: DEBUG: Request Body: {"description": "test1", "nonexistent": "abcd"}15:57
max_loburtempest.common.rest_client: INFO: Response Status: 20115:57
max_loburtempest.common.rest_client: DEBUG: Response Headers: {'date': 'Fri, 07 Feb 2014 15:54:47 GMT', 'content-length': '610', 'content-type': 'application/json; charset=UTF-8', 'server': 'WSGIServer/0.1 Python/2.7.3'}15:57
max_loburtempest.common.rest_client: DEBUG: Response Body: {"description": "test1", "links": [{"href": "http://192.168.122.224:6385/v1/chassis/b84fd02e-d1be-44cb-bf18-fad321c70c81", "rel": "self"}, {"href": "http://192.168.122.224:6385/v1/chassis/b84fd02e-d1be-44cb-bf18-fad321c70c81", "rel": "bookmark"}], "extra": {}, "created_at": "2014-02-07T15:54:47.296054+00:00", "updated_at": null, "nodes": [{"href": "http://192.168.122.224:6385/v1/chassis/b84fd02e-d15:57
max_lobur1be-44cb-bf18-fad321c70c81/nodes", "rel": "self"}, {"href": "http://192.168.122.224:6385/chassis/b84fd02e-d1be-44cb-bf18-fad321c70c81/nodes", "rel": "bookmark"}], "uuid": "b84fd02e-d1be-44cb-bf18-fad321c70c81"}15:57
max_loburdo you think we should fill a bug for this and fix?15:57
max_loburnonexistent property ignored when creating nodes15:57
max_loburs/nodes/chassis15:58
lucasagomesohh, max_lobur +115:58
max_loburnodes too I guess15:58
lucasagomesI think it's something, wsme will ignore all the other parameters sent in the request message15:58
lucasagomesif it's not part of the api object15:58
max_loburI think it should be 400 right?15:58
lucasagomesmax_lobur, yea, afaiui yes15:58
max_loburomg)15:59
max_loburas far as I ...15:59
lucasagomesunderstand it :D15:59
max_loburah :D15:59
max_loburwill add it to my dictionary :D15:59
lucasagomeshah16:00
*** zul has quit IRC16:00
* max_lobur filling a bug16:00
lucasagomesmax_lobur, thanks for that16:01
max_lobur:)16:01
*** jcooley_ has joined #openstack-ironic16:01
max_loburI'm expanding tempest coverage, discovering a lot of interesting things :)16:01
*** athomas has joined #openstack-ironic16:02
lucasagomesnice! yea I can imagine, I bet once we get ironic in tripleO/out of incubation16:03
lucasagomeswe are going to find so many things16:03
max_loburtrue16:04
*** jcooley_ has quit IRC16:08
*** yuriyz has quit IRC16:13
*** athomas has quit IRC16:17
*** romcheg1 has joined #openstack-ironic16:30
*** romcheg1 is now known as romcheg_ltp16:30
*** viktors has left #openstack-ironic16:40
SpamapSHey snarky Ironicites.. does Ironic support PXE booting off interface A, but configuring ports in Neutron for interface B? (as in, separate provisioning/data networks?)16:52
NobodyCamSpamapS: we should be able to support that16:53
NobodyCamand good morning :)16:53
SpamapSNobodyCam: ahoy there16:53
NobodyCamSpamapS: see lines 534 - 561 of https://review.openstack.org/#/c/51328/18/nova/virt/ironic/driver.py16:54
lucasagomesand https://review.openstack.org/#/c/70468/7/ironic/drivers/modules/pxe.py16:56
lucasagomeson review yet ^16:56
lucasagomesbtw, devananda I gave that a try but it didn't work for me :( wasn't able to pxe boot my machine16:56
lucasagomesit might be something in my enviroment as well, do I need to add some special configuration for neutron or something?16:57
SpamapSThere's a ton of shorthand and jargon in the code there16:57
SpamapSvifs, pifs, etc.16:57
NobodyCamvif - virtual interface / pif = phyical interface16:58
SpamapSyes I know what the abbreviation is :)16:58
NobodyCam:-p16:58
SpamapSno idea what it means to my use case :)16:58
NobodyCamwe're snarky16:58
SpamapSIronicalites16:58
SpamapSdoomed to wander the land of beta for 40 years16:58
NobodyCamlol NO!!!!16:59
SpamapShaha16:59
* SpamapS watches NobodyCam's heart explode16:59
lucasagomes:P16:59
*** jcooley_ has joined #openstack-ironic16:59
NobodyCamheeheh16:59
SpamapSSo what I see is that PXE configs are written for all macs16:59
NobodyCamyes16:59
SpamapShttps://git.openstack.org/cgit/openstack/ironic/tree/ironic/drivers/modules/pxe.py#n45917:00
SpamapSOk, so if my box boots and I want to distinguish one mac as "provision here" and the other as "traffic here" .. how's that done?17:00
SpamapSIf that is "not done" .. that's fine, just something I've had on the todo list for a while.17:01
NobodyCamhummm17:01
NobodyCamset the gateway on 2nd interface and not the first?17:02
*** jcooley_ has quit IRC17:03
SpamapSNobodyCam: gateway?17:04
SpamapSNobodyCam: what I want to prevent is pxe traffic travelling on the data network.17:04
SpamapSI guess17:05
SpamapSreally17:05
NobodyCamahh17:05
SpamapSthe server has to never ask for PXE on the data network17:05
SpamapSbecause that is where the trouble starts ;)17:05
*** shausy has quit IRC17:05
NobodyCamhumm,17:05
SpamapSok n/m I think Ironic is in the clear for the ase that I'm proxying for somebody else ;)17:05
SpamapScase17:05
NobodyCam:)17:05
*** shausy has joined #openstack-ironic17:05
SpamapSNobodyCam: I'm trying ot prevent "evil box observes or mitm's pxe" .. but you can't do that if your boxes are spewing DHCP discovers on the data network.17:06
NobodyCamSpamapS: that I think we will need to think about17:06
SpamapSIt really boils down to "openflow" so you can just shut down the provisioning ports when they're not in use.17:06
NobodyCamya17:07
*** aignatov is now known as aignatov_17:07
NobodyCamhow are you setting the functions of the interfaces17:07
SpamapSalso ipxe17:07
SpamapSNobodyCam: preconfig -> tomorrow's problem17:08
NobodyCamie pif 1 is pxe only pif2 is data only17:08
NobodyCam:-p17:08
SpamapSsits along side raid and firmware17:08
NobodyCamSpamapS: is there a bug / blueprint to address this on the nova BM side?17:09
NobodyCamlucasagomes: LOL .... Because I stole the tests from the libvirt test file and modifyed for our use! <- in ref to 7142917:12
lucasagomesNobodyCam, ahhh hahahah17:13
lucasagomesNobodyCam, ack, well I thought we would be using mock17:13
lucasagomesat least we should :P17:13
NobodyCamlol ya17:14
SpamapSNobodyCam: nah.. I'm just riffing ;)17:14
SpamapSNobodyCam: getting my head on straight for the impending "can we do this now?" question flood :)17:14
*** matty_dubs is now known as matty_dubs|lunch17:15
SpamapSbtw somebody in the know should respond to http://lists.openstack.org/pipermail/openstack-dev/2014-February/026617.html17:15
NobodyCam:) was about to17:16
*** martyntaylor has left #openstack-ironic17:17
*** dshulyak has quit IRC17:20
*** ndipanoff has quit IRC17:22
*** lazy_prince has quit IRC17:23
*** martyntaylor has joined #openstack-ironic17:24
max_loburlucasagomes, what do you think about this17:29
max_loburhttp://paste.openstack.org/show/63075/17:29
max_loburthis more like a jsonpatch lib bug17:30
max_loburexisting property silently replaced by 'add' op17:30
max_loburor maybe I missed that in RFC...17:30
lucasagomesmax_lobur, yea, it's a jsonpatch thing, I don't remember if that was a problem tho17:31
lucasagomesgotta take a look at the RFC as u said17:32
lucasagomesadd will add if the value is not present17:32
lucasagomesbut replace with the new value if it's already there17:32
max_loburthis was a member of extra17:33
max_loburI also just tested on root properties17:33
max_loburtempest.common.rest_client: INFO: Request: PATCH http://192.168.122.224:6385/v1/chassis/e7f706b2-f5b1-455a-a4b2-9e4f4b637dcd17:33
max_loburtempest.common.rest_client: DEBUG: Request Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<Token omitted>'}17:33
max_loburtempest.common.rest_client: DEBUG: Request Body: [{"path": "/description", "value": "whatever", "op": "add"}]17:33
max_loburtempest.common.rest_client: INFO: Response Status: 40017:33
max_loburtempest.common.rest_client: DEBUG: Response Headers: {'date': 'Fri, 07 Feb 2014 17:33:00 GMT', 'content-length': '173', 'content-type': 'application/json', 'server': 'WSGIServer/0.1 Python/2.7.3'}17:33
max_loburtempest.common.rest_client: DEBUG: Response Body: {"error_message": "{\"debuginfo\": null, \"faultcode\": \"Client\", \"faultstring\": \"Adding a new attribute (/description) to the root of  the resource is not allowed\"}"}17:33
lucasagomesmax_lobur, ah, ^ that is our test I think17:34
max_loburthis looks like a normal behavior17:34
max_loburhmm17:34
max_loburon Ironic side right?17:34
lucasagomesmaybe we should allow add to act like a replace on the attributes that is part of the resource17:34
lucasagomesmax_lobur, yes17:34
lucasagomestake a look at17:34
lucasagomesthe PatchType custom type for wsme17:35
max_loburRE: maybe we should allow add to act like a replace on the attributes that is part of the resource17:35
lucasagomesmax_lobur, if th RFC says that's allowed I think it's a bug on us17:35
max_loburneed to search this in RFC first :)17:35
lucasagomesmax_lobur, yea17:35
max_loburlucasagomes, +17:35
max_loburI'll make a note17:35
max_loburwill proceed with this on Monday17:35
lucasagomesmax_lobur, https://github.com/openstack/ironic/blob/master/ironic/api/controllers/v1/types.py#L15717:36
max_loburheh17:36
max_loburindeed17:36
max_loburk, thanks :)17:37
lucasagomesmax_lobur, :) thank u for finding all this!17:37
*** anniec has joined #openstack-ironic17:39
NobodyCambbt .. brb17:39
max_loburFolks, pls take a look when you have time https://review.openstack.org/#/c/67854/2 Expanded tempest tests for chassis17:45
max_loburthere will be some failing tests17:46
*** killer_prince has joined #openstack-ironic17:46
max_loburdue to bugs17:46
max_loburor cause I'm not sure how it should be (like with "add" op)17:46
max_loburbut you already can suggest more scenarios if you see that we missing something :)17:46
max_loburHave a good rest! bye!17:49
*** jcooley_ has joined #openstack-ironic17:50
*** max_lobur is now known as max_lobur_afk17:52
*** jcooley_ has quit IRC17:56
lucasagomesNobodyCam, there's a new patch-set up and I hope to finish the tests and some refactor in the code at monday tops18:08
lucasagomesand with that, I'm going to enjoy the irish weekend with a cold beer :)18:08
NobodyCam:) I'm working on libvirt refactor and then I push up a new vol driver patch too18:08
lucasagomesNobodyCam, have a good night, enjoy the weekend18:08
lucasagomesNobodyCam, awesome!18:08
NobodyCamhave one for me :)18:08
lucasagomesNobodyCam, there's one already18:09
lucasagomesvol driver patch18:09
lucasagomesNobodyCam, https://review.openstack.org/#/c/71026/18:09
NobodyCamya.. I push up over that18:09
lucasagomesah18:09
lucasagomessure18:09
lucasagomes:)18:09
NobodyCam:)18:09
lucasagomesNobodyCam, I will have one for u for sure18:09
lucasagomessee ya18:09
lucasagomesnight everybody18:09
NobodyCam:)18:09
*** shausy has quit IRC18:10
*** lucasagomes has quit IRC18:11
*** martyntaylor has left #openstack-ironic18:13
*** matty_dubs|lunch is now known as matty_dubs18:13
*** jcooley_ has joined #openstack-ironic18:16
*** igor_ has quit IRC18:17
*** igor_ has joined #openstack-ironic18:18
*** harlowja_away is now known as harlowja18:18
*** jcooley_ has quit IRC18:20
*** igor_ has quit IRC18:24
*** jcooley_ has joined #openstack-ironic18:40
*** jcooley_ has quit IRC18:47
*** jcooley_ has joined #openstack-ironic18:48
*** igor_ has joined #openstack-ironic18:50
devanandaSpamapS: right now ironic does not differentiate between boot-interfaces and data-interfaces18:51
devanandaSpamapS: shouldn't be hard to add, though18:51
NobodyCamGood Mornig devananda :)18:52
*** jcooley_ has quit IRC18:52
SpamapSdevananda: I think it is probably moot.. but it came up when talking to some HP folk.18:53
*** jcooley_ has joined #openstack-ironic18:53
devanandaSpamapS: *nod*18:53
*** shausy has joined #openstack-ironic18:55
*** igor_ has quit IRC18:55
*** anniec has quit IRC18:56
* NobodyCam makes a bagel18:56
*** martyntaylor has joined #openstack-ironic18:56
*** martyntaylor has left #openstack-ironic18:56
*** wusWWW has joined #openstack-ironic19:00
*** jbjohnso has quit IRC19:01
*** epim has joined #openstack-ironic19:02
*** anniec has joined #openstack-ironic19:03
*** jcooley_ has quit IRC19:06
*** jcooley_ has joined #openstack-ironic19:13
*** jbjohnso has joined #openstack-ironic19:16
* devananda has his second cup of coffee19:17
NobodyCam:)19:17
* NobodyCam is on 5 or 6 he thinks19:17
*** shausy has quit IRC19:18
*** anniec has quit IRC19:35
devanandahttps://review.openstack.org/#/c/71211/ could use a quick check19:36
*** jbjohnso has quit IRC19:39
russell_hto create a node in ironic, do I need to specify a chassis_uuid?19:39
devanandarussell_h: no19:40
NobodyCam^^ lgtm19:41
*** aignatov_ is now known as aignatov19:45
*** igor_ has joined #openstack-ironic19:49
*** mdurnosvistov_ has joined #openstack-ironic19:50
NobodyCamdo you have to rebuild test evn after making changes to rootwrap?19:53
*** anniec has joined #openstack-ironic19:55
russell_hdevananda: so is a chassis more like optional metadata? And the provisioning is all based on the parameters passed to the create node call?19:56
devanandarussell_h: for now, yes19:58
devanandarussell_h: in the initial approach, chassis was mandatory, but we've since realized that more types of grouping need to be supported. rather than ripping out the code which is there, we've made it optional and will expand on it in Juno19:59
russell_hgotcha20:00
russell_hwhat do you mean by more types of grouping?20:00
russell_hthe original source of my interest is I was trying to figure out why the API acts like there might be more than one node per chassis20:01
devanandayep20:03
devanandachassis 1:N nodes20:03
devanandarussell_h: chassis could be a rack. or it could be an 8U enclosure. or what ever.20:03
NobodyCamdevananda: I thought there was a patch (thou I cann't seem to find it atm) that removed the [required] from here : https://github.com/openstack/python-ironicclient/blob/master/ironicclient/v1/node_shell.py#L6720:04
russell_hdevananda: gotcha, thanks20:04
devanandarussell_h: there is interest in modelling multiple failure domains and mapping nodes accordingly to provide better hints to schedulers20:04
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Use threading.semaphore instead of lockutils  https://review.openstack.org/7197420:04
russell_hdevananda: right, "get me a node in (the same | a different) cabinet" and so on20:06
devanandaright20:08
*** anniec has quit IRC20:18
*** comstud is now known as bearhands20:18
*** aignatov is now known as aignatov_20:20
*** aignatov_ is now known as aignatov20:26
devanandahmm, i would like to stop all the spurious debug messages from lockutils20:28
devanandaNobodyCam: oh, it's not required on the server side. the CLI help needs to be updated, though, it seems20:28
devanandaNobodyCam: "ironic node-create -d fake" works with no chassis-id20:29
NobodyCamya just the doc string20:30
devanandaya20:30
devanandai'm waffling20:31
NobodyCamon requiring chassis?20:31
devanandathe patch i just posted, 71974, doesn't change the functionality in any meaningful way afaict. but it stops all the LOG.debug spam20:31
NobodyCamlol20:31
NobodyCamwhat log are you getting spam in?20:32
devanandadebug20:32
devanandaNobodyCam: http://paste.openstack.org/show/njde6BKP7gosiWAmMsaW/20:33
NobodyCamcan filter it out in logging-* conf20:33
devanandano - devug is good20:33
devanandabut this mkes it unreadable20:33
devanandaevery time task_manager.acquire is called, we get taht whole series of debug messages20:33
*** openstackgerrit has quit IRC20:34
devanandait's useful in other situations, eg. around instantiating a drver instance20:34
*** openstackgerrit has joined #openstack-ironic20:34
*** igor___ has joined #openstack-ironic20:34
devanandaoslo lockutils isn't meant to be called 100's of times per second20:34
devanandaor even 10's20:34
devanandaoooh, duh.20:35
NobodyCamadd to https://github.com/openstack/ironic/blob/master/etc/ironic/ironic.conf.sample#L15920:36
*** igor_ has quit IRC20:36
*** anniec has joined #openstack-ironic20:36
NobodyCambrb20:39
devanandai need to move my car, but i think ResourceManager is being naive about its locking20:39
devanandagoing to toss up an improvement in a bit20:39
devanandabbiab20:39
*** anniec has quit IRC20:42
*** jbjohnso has joined #openstack-ironic20:43
*** mdurnosvistov_ has quit IRC20:53
*** aignatov is now known as aignatov_20:59
*** anniec has joined #openstack-ironic21:03
NobodyCamquick walkies...21:11
openstackgerritMichael Davies proposed a change to openstack/ironic: Ensure parameter order of assertEqual correct  https://review.openstack.org/7148621:27
openstackgerritMichael Davies proposed a change to openstack/ironic: Ensure parameter order of assertEqual correct  https://review.openstack.org/7148621:28
*** anniec has quit IRC21:32
NobodyCamdevananda: https://review.openstack.org/#/c/72007/121:33
devanandai'm not happy with ersource_manager.py21:39
*** anniec has joined #openstack-ironic21:41
devanandaNobodyCam: lgtm21:41
NobodyCam:-p21:42
NobodyCamgetting there21:42
devanandaso now that we've got a lot more things doing stuff, i'm thinking about how taskmanager and resorucemanager are actually being used21:42
devanandavs what i initialy thought21:42
devanandaand really unhappy with the locking that's going on21:42
devanandaresourcemanager is doing waay too much unnecessary locking21:43
NobodyCamgah H306  imports not in alphabetical order21:43
NobodyCam:-p21:43
devanandalol21:43
NobodyCamgota check my local flake8 settings21:44
*** john-n-seattle has quit IRC21:44
*** john-n-seattle1 has joined #openstack-ironic21:48
*** jcooley_ has quit IRC21:48
NobodyCamdevananda: re the locking ... thought was prob better safe then sorry / easier to remove (in most cases) then add :-p21:48
NobodyCam:-/21:48
devanandamax_lobur_afk: i may make smoe changes to task_manager that conflict with your changes. i will help with refactoring if needed21:48
devanandaNobodyCam: yea21:48
devanandaNobodyCam: so this is very pessimistic, heh. there's a process-wide lock around entering any task, and a DB query is done inside that lock.21:49
*** jcooley_ has joined #openstack-ironic21:49
devanandaNobodyCam: essentially, everything could stall if one DB query gets dropped21:49
NobodyCamoh, I would expect several tasks to fail if the db get dropped out from under a running app21:50
devanandaerr, yes21:50
*** romcheg1 has joined #openstack-ironic21:51
*** romcheg_ltp has quit IRC21:51
NobodyCambut surlly we dont need to lock for things like get power state21:51
devanandaNobodyCam: well, we do21:56
devanandaNobodyCam: but not right now21:57
NobodyCamto ensure another conductor is not talking to our node21:57
devanandaNobodyCam: in principle, there are situations where we should respect $other_task and not tickle IPMI at all21:57
devanandaNobodyCam: but taht's a differnt type of lock21:58
NobodyCamif node locked return db.value for $request ?21:58
devanandaNobodyCam: that's the difference between a shared & exclusive lock. get_power_state should b a shared lock21:58
devanandaas should validate, etc21:58
devanandahmm21:58
NobodyCamhumm?21:59
devanandaok, we're goign to eventually need 3 types of lock: 1) i'm touching but not changing the node 2) i'm changing the node, no one else can change it now 3) i'm changing the node, no one else can touch it now22:00
devananda>1 of (1) can run22:00
devananda>1 of (1) can run while exactly 1 of (2) runs, but no more than 1 of (2) can ever run at a time22:00
*** anniec has quit IRC22:00
devanandaif a (3) wants to start, it needs to block the creation of new (1) nd (2), and wait for any existing (1) and (2) to finish22:01
devanandaright now we don't support (3)22:01
devanandawhich is fine -- afaik, that's only needed for firmware udpate22:01
devanandabut, i side track. the semaphore around resouce_manager has nothing to dowith this type of locking22:02
NobodyCamkinda wait I have the lock... get in line behind me22:02
NobodyCama queue of who gets the lock22:02
devanandai don't thnk we're actally getting any benefit from resource_manager right now, aside from bundling all the ports associated with a node22:02
*** matty_dubs is now known as matty_dubs|gone22:03
*** jdob_ has quit IRC22:07
*** jrist has quit IRC22:18
*** epim has quit IRC22:28
*** jrist has joined #openstack-ironic22:30
*** jcooley_ has quit IRC22:31
*** epim has joined #openstack-ironic22:32
*** anniec has joined #openstack-ironic22:38
*** anniec has quit IRC22:41
*** anniec has joined #openstack-ironic22:43
NobodyCamhumm my dependicy didn't get added to the volume review.... oh but it already a dep on another patch22:44
*** rwsu has quit IRC23:01
*** jcooley_ has joined #openstack-ironic23:01
*** rwsu has joined #openstack-ironic23:02
*** rwsu has quit IRC23:06
*** jcooley_ has quit IRC23:06
*** rwsu has joined #openstack-ironic23:19
devanandai must have brokensomething... this is acting all single threaded even after I remove all the locks that I can find23:21
devanandayep. i issue parallel requests for DIFFERENT nodes, and even that gets serialized23:25
*** wusWWW has quit IRC23:26
*** anniec has quit IRC23:31
NobodyCam:-p23:32
*** epim has quit IRC23:34
devanandalooks like it is serialized in the API layer23:37
devanandawtf23:37
*** anniec has joined #openstack-ironic23:40
* NobodyCam goes for walkies bbiaf23:43
*** anniec has quit IRC23:56

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