Friday, 2016-06-03

*** sdake_ has joined #openstack-ironic00:02
*** Sukhdev has joined #openstack-ironic00:03
*** Sukhdev has quit IRC00:03
JayFI have two, somewhat related, patches for the Ironic virt driver that fix major bugs awaiting review for backport to stable/mitaka: https://review.openstack.org/#/c/323477 + https://review.openstack.org/#/c/323196 your reviews would be appreciated :) -- I know nobody in here can land Nova stable patches, but it certainly won't hurt to have Ironic votes on the patches00:04
JayFthanks!!00:04
*** vishwanathj has quit IRC00:09
*** vishwanathj has joined #openstack-ironic00:10
*** aNupoisc has quit IRC00:10
*** vishwana_ has joined #openstack-ironic00:11
*** aNupoisc has joined #openstack-ironic00:11
*** garthb_ has joined #openstack-ironic00:12
*** praneshp has quit IRC00:13
*** garthb has quit IRC00:15
*** vishwanathj has quit IRC00:15
*** jrist has quit IRC00:16
*** Sukhdev has joined #openstack-ironic00:17
*** garthb_ has quit IRC00:19
*** ayoung has joined #openstack-ironic00:20
*** Sukhdev has quit IRC00:21
*** jrist has joined #openstack-ironic00:21
*** piet_ has quit IRC00:21
*** david-lyle has quit IRC00:25
*** david-lyle has joined #openstack-ironic00:26
*** hoangcx has joined #openstack-ironic00:29
*** david-lyle has quit IRC00:30
*** hshiina has quit IRC00:30
*** baoli has joined #openstack-ironic00:36
*** Sukhdev has joined #openstack-ironic00:37
*** lindycoder has joined #openstack-ironic00:38
*** amotoki has joined #openstack-ironic00:40
*** amotoki has quit IRC00:45
*** phuongnh has joined #openstack-ironic00:48
*** lindycoder has quit IRC00:52
*** lindycoder has joined #openstack-ironic00:58
*** YiboCai has joined #openstack-ironic00:58
*** hshiina has joined #openstack-ironic00:59
*** mtanino has quit IRC01:01
*** Goneri has joined #openstack-ironic01:05
*** Sukhdev has quit IRC01:09
*** aNupoisc has quit IRC01:11
*** Sukhdev has joined #openstack-ironic01:13
*** Sukhdev has quit IRC01:15
*** spandhe has left #openstack-ironic01:17
*** vishwana_ has quit IRC01:18
*** baoli has quit IRC01:23
*** adu has quit IRC01:23
*** praneshp has joined #openstack-ironic01:26
*** baoli has joined #openstack-ironic01:27
*** adu has joined #openstack-ironic01:29
*** baoli has quit IRC01:30
*** baoli has joined #openstack-ironic01:31
*** praneshp has quit IRC01:35
*** baoli has quit IRC01:36
*** vishwanathj has joined #openstack-ironic01:39
*** vishwanathj has quit IRC01:40
*** vishwanathj has joined #openstack-ironic01:42
*** Sukhdev has joined #openstack-ironic01:46
*** vishwanathj has quit IRC01:47
*** frontrunner has quit IRC01:55
*** joprovost has quit IRC01:58
*** PollyZ has joined #openstack-ironic01:59
*** joprovost has joined #openstack-ironic02:00
*** ijw has quit IRC02:00
*** mtanino has joined #openstack-ironic02:01
*** rbudden has quit IRC02:01
*** PollyZ__ has joined #openstack-ironic02:03
*** baoli has joined #openstack-ironic02:06
*** lindycoder has quit IRC02:09
*** lindycoder has joined #openstack-ironic02:09
*** baoli has quit IRC02:09
*** vishwanathj has joined #openstack-ironic02:11
openstackgerritAndre Aranha proposed openstack/python-oneviewclient: Extend python-oneviewclient to Network  https://review.openstack.org/29455902:12
*** penick has quit IRC02:13
*** baoli has joined #openstack-ironic02:15
*** frontrunner has joined #openstack-ironic02:19
*** vishwana_ has joined #openstack-ironic02:20
openstackgerritZhenguo Niu proposed openstack/ironic: Add some missed test cases in node object tests  https://review.openstack.org/26804502:20
*** vishwanathj has quit IRC02:20
*** PollyZ__ has quit IRC02:21
*** PollyZ has quit IRC02:21
*** vishwana_ has quit IRC02:22
openstackgerritZhenguo Niu proposed openstack/ironic: Add description filed to ports - DB  https://review.openstack.org/32464402:23
*** lindycoder has quit IRC02:25
*** lindycoder has joined #openstack-ironic02:26
*** joprovost1 has joined #openstack-ironic02:34
*** joprovost has quit IRC02:36
*** joprovost1 is now known as joprovost02:36
*** sacharya has joined #openstack-ironic02:37
*** amotoki has joined #openstack-ironic02:41
*** mtanino has quit IRC02:46
*** lindycoder has quit IRC02:46
*** amotoki has quit IRC02:46
*** joprovost1 has joined #openstack-ironic02:47
*** joprovost has quit IRC02:49
*** joprovost1 is now known as joprovost02:49
*** yuanying has quit IRC02:50
*** r-daneel has quit IRC02:53
*** piet has joined #openstack-ironic02:57
*** joprovost1 has joined #openstack-ironic02:58
*** joprovost has quit IRC03:00
*** joprovost1 is now known as joprovost03:00
*** rloo has quit IRC03:00
*** joprovost1 has joined #openstack-ironic03:09
*** piet has quit IRC03:11
*** joprovost has quit IRC03:11
*** joprovost1 is now known as joprovost03:11
*** frontrunner has quit IRC03:28
*** Sukhdev has quit IRC03:28
openstackgerritTan Lin proposed openstack/ironic: Add a new db_api get_remains_conductors  https://review.openstack.org/32502603:29
*** Sukhdev has joined #openstack-ironic03:29
*** aparnav has quit IRC03:33
*** Sukhdev has quit IRC03:33
*** piet has joined #openstack-ironic03:35
openstackgerritAndre Aranha proposed openstack/python-oneviewclient: Extend python-oneviewclient to Uplink Set  https://review.openstack.org/29598103:36
*** appu103_ has joined #openstack-ironic03:36
*** amotoki has joined #openstack-ironic03:42
*** appu103_ is now known as aparnav03:46
openstackgerritAndre Aranha proposed openstack/python-oneviewclient: Remove insecure connection warnings  https://review.openstack.org/32387303:47
*** amotoki has quit IRC03:47
openstackgerritAndre Aranha proposed openstack/python-oneviewclient: Remove insecure connection warnings  https://review.openstack.org/32387303:48
*** yuanying has joined #openstack-ironic03:49
*** lindycoder has joined #openstack-ironic03:49
openstackgerritZhenguo Niu proposed openstack/ironic: Add description filed to ports - DB  https://review.openstack.org/32464403:51
*** adu has quit IRC03:52
*** hparekh has quit IRC03:55
*** appu103_ has joined #openstack-ironic03:57
*** aparnav has quit IRC03:57
*** lindycoder has quit IRC03:58
*** baoli has quit IRC03:59
*** Sukhdev has joined #openstack-ironic04:04
*** vmud213 has joined #openstack-ironic04:06
*** piet has quit IRC04:06
*** hparekh has joined #openstack-ironic04:07
*** harlowja_at_home has joined #openstack-ironic04:08
*** ayoung has quit IRC04:20
*** ishant|away is now known as ishant04:32
*** hoangcx has quit IRC04:33
*** vishwanathj has joined #openstack-ironic04:34
*** links has joined #openstack-ironic04:38
*** amotoki has joined #openstack-ironic04:43
*** e0ne has quit IRC04:46
*** e0ne has joined #openstack-ironic04:46
*** e0ne has quit IRC04:46
*** Sukhdev has quit IRC04:47
*** amotoki has quit IRC04:47
*** hoangcx has joined #openstack-ironic04:49
*** harlowja_at_home has quit IRC04:56
*** rcernin has joined #openstack-ironic04:58
*** rcernin has quit IRC05:04
*** adu has joined #openstack-ironic05:05
*** yuanying has quit IRC05:17
*** praneshp has joined #openstack-ironic05:22
*** joprovost has quit IRC05:24
*** vishwanathj has quit IRC05:30
*** vmud213 has quit IRC05:40
*** vmud213 has joined #openstack-ironic05:41
*** amotoki has joined #openstack-ironic05:44
*** rcernin has joined #openstack-ironic05:46
*** adu has quit IRC05:47
*** amotoki has quit IRC05:49
*** adu has joined #openstack-ironic05:54
divya_hi vmud21305:56
divya_nova failed to boot instance05:56
divya_Failed to deploy. Error: 400 Bad Request: Unknown scheme 'swift+config' found in URI (HTTP 400)05:56
divya_any inputs ?05:57
vmud213divya: I usualy run it with ironic client.06:00
vmud213What error s u are getting on the conductor? or glance,swift06:00
vmud213can u look and paste them if possible06:00
*** yuanying has joined #openstack-ironic06:05
*** vishwanathj has joined #openstack-ironic06:08
*** sabeen has quit IRC06:08
divya_am using glance as backened store - file instead of swift06:09
divya_http://paste.openstack.org/show/507518/06:09
divya_pasted the ironic-cond error06:09
divya_pls look into it06:09
*** vmud213 has quit IRC06:10
*** vmud213 has joined #openstack-ironic06:11
*** mjura has joined #openstack-ironic06:11
*** sabeen has joined #openstack-ironic06:12
divya_hi vmud21306:13
divya_n-cpu.log06:13
divya_ am using glance as backened store - file instead of swift06:13
divya_http://paste.openstack.org/show/507518/06:13
*** vishwanathj has quit IRC06:16
*** openstackgerrit has quit IRC06:17
*** openstackgerrit has joined #openstack-ironic06:18
*** mjura has quit IRC06:20
*** mjura has joined #openstack-ironic06:20
*** phuongnh has quit IRC06:21
*** phuongnh has joined #openstack-ironic06:22
*** ohamada has joined #openstack-ironic06:26
*** yuanying has quit IRC06:28
*** yuanying has joined #openstack-ironic06:29
*** mkoderer has quit IRC06:30
*** yuanying has quit IRC06:31
*** mkoderer has joined #openstack-ironic06:31
*** yuanying has joined #openstack-ironic06:31
*** yuanying has quit IRC06:33
*** yuanying has joined #openstack-ironic06:34
*** harlowja has quit IRC06:35
*** adu has quit IRC06:37
openstackgerritOpenStack Proposal Bot proposed openstack/ironic: Imported Translations from Zanata  https://review.openstack.org/32507706:39
vmud213divya: Sry abt the delay..06:43
vmud213Cpl of things need to check06:43
*** amotoki has joined #openstack-ironic06:45
vmud213what is the /etc/glance/glance-ap.conf configured for swift?06:45
vmud213what swift file it is refering to06:45
vmud213Looks like glance image-download is failing06:46
*** praneshp has quit IRC06:49
*** amotoki has quit IRC06:49
*** kromanenko__ has joined #openstack-ironic06:50
*** Romanenko_K has joined #openstack-ironic06:50
*** kromanenko_ has joined #openstack-ironic06:50
divya_thanks vmud21306:50
divya_i configured back swift now06:51
divya_but the new error os  Error: Failed to connect to Glance to get the properties of the image06:51
divya_any idea06:51
vmud213Are u sure u are using the correct swift account key06:55
vmud213oh..ok.not much idea Divya. But hard to follow what errors u'r getting unless see the log06:56
divya_http://paste.openstack.org/show/507523/07:01
divya_ironic-cond logs07:01
*** harlowja_at_home has joined #openstack-ironic07:02
*** harlowja_at_home has quit IRC07:02
*** openstackgerrit has quit IRC07:03
*** openstackgerrit has joined #openstack-ironic07:03
*** SiRiuS__ has joined #openstack-ironic07:06
*** sacharya has quit IRC07:07
*** phuongnh has quit IRC07:11
*** phuongnh has joined #openstack-ironic07:12
*** jistr is now known as jistr|mtg07:22
*** watanabe_isao has joined #openstack-ironic07:25
*** watanabe_isao has quit IRC07:26
*** watanabe_isao has joined #openstack-ironic07:27
*** watanabe_isao has quit IRC07:29
*** watanabe_isao has joined #openstack-ironic07:29
*** vmud213 has quit IRC07:31
*** vmud213 has joined #openstack-ironic07:31
divya_hi vmud213, i am still getting error during deploy -" Failed to connect to Glance to get the properties of the image"07:42
divya_[glance] swift_temp_url_duration = 3600 swift_container = glance swift_account = AUTH_46bd1bb3a96e42e39d9c53f6c30387fd swift_api_version = v1 swift_endpoint_url = http://172.26.24.110:5000 swift_temp_url_key = password07:43
divya_these are the glance configuraton in ironic conf07:43
divya_do i need to update any few?07:43
divya_no error are observed in glance or swift logs07:44
divya_only ironic logs have the errors07:44
*** vishwanathj has joined #openstack-ironic07:44
*** amotoki has joined #openstack-ironic07:45
*** amotoki has quit IRC07:50
*** yuanying has quit IRC07:50
vmud213divya_: two things i'd like to know.07:56
vmud213First the image that corresponds to the ID in the log exists.07:56
vmud213and "netstat -tupln|grep 9292" is listing glance-api process07:56
*** ChrisMead has quit IRC07:58
*** yonglihe has quit IRC07:58
*** evgenyl has quit IRC07:58
*** kozhukalov has quit IRC07:58
*** rajinir has quit IRC07:58
*** agordeev has quit IRC07:58
*** romcheg has quit IRC07:58
*** sergek has quit IRC07:58
*** zzzeek has quit IRC08:00
*** zzzeek has joined #openstack-ironic08:01
*** sdake_ has quit IRC08:03
*** mgoddard has joined #openstack-ironic08:04
*** daemontool has joined #openstack-ironic08:06
*** ifarkas has joined #openstack-ironic08:06
*** sacharya has joined #openstack-ironic08:08
openstackgerritDavanum Srinivas (dims) proposed openstack/ironic: [WIP] Testing latest u-c  https://review.openstack.org/31844008:10
openstackgerritDavanum Srinivas (dims) proposed openstack/ironic: [WIP] Testing latest u-c  https://review.openstack.org/31844008:10
*** lucas-afk is now known as lucasagomes08:11
lucasagomesmorning all08:13
*** sacharya has quit IRC08:13
*** derekh has joined #openstack-ironic08:13
*** jimmy_ has joined #openstack-ironic08:16
jimmy_Good morning all.08:16
betherlymorning!08:16
jimmy_When I run "tox -e py27" the stdout is redirected to virtualenv. How can I disable this?08:17
jimmy_I mean I want to see it in console.08:17
openstackgerritAnton Arefiev proposed openstack/ironic-inspector: Test commit  https://review.openstack.org/32511808:22
*** e0ne has joined #openstack-ironic08:24
*** dtantsur|afk is now known as dtantsur08:28
dtantsurMorning Ironic08:28
lucasagomesjimmy_, not sure if I get the question, the ouput goes to stdout no?08:30
*** mjura has quit IRC08:31
*** MattMan has quit IRC08:31
*** MattMan has joined #openstack-ironic08:31
vsaienkoMorning Ironic, dtantsur, lucasagomes08:36
*** betherly_ has joined #openstack-ironic08:36
*** phschwartz_ has joined #openstack-ironic08:36
*** lekha-away_ has joined #openstack-ironic08:36
*** MattMan_ has joined #openstack-ironic08:37
*** ildikov_ has joined #openstack-ironic08:38
*** daemontool has quit IRC08:38
*** clif has joined #openstack-ironic08:38
*** e0ne has quit IRC08:38
*** e0ne has joined #openstack-ironic08:39
*** ildikov has quit IRC08:39
*** johnthetubaguy has quit IRC08:39
*** lekha-away has quit IRC08:39
*** bradjones has quit IRC08:39
*** vishwanathj has quit IRC08:39
*** phschwartz has quit IRC08:39
*** morgabra has quit IRC08:39
*** clif_h has quit IRC08:39
*** joemonk- has quit IRC08:39
*** MattMan has quit IRC08:39
*** watanabe_isao has quit IRC08:39
*** tonyb has quit IRC08:39
*** betherly has quit IRC08:39
*** tonyb has joined #openstack-ironic08:39
*** johnthetubaguy has joined #openstack-ironic08:39
*** ildikov_ is now known as ildikov08:39
*** joemonk has joined #openstack-ironic08:39
*** yuanying has joined #openstack-ironic08:39
*** lekha-away_ is now known as lekha-away08:39
*** bradjones has joined #openstack-ironic08:39
*** bradjones has quit IRC08:39
*** bradjones has joined #openstack-ironic08:39
*** morgabra_ has joined #openstack-ironic08:40
*** betherly_ is now known as betherly08:41
*** mjura has joined #openstack-ironic08:43
*** sabeen has quit IRC08:43
jimmy_lucasagomes, By default, I can't see the output. How can I see it?08:43
*** sabeen has joined #openstack-ironic08:43
*** jistr|mtg is now known as jistr08:43
alinebmorning all08:44
dtantsurmorning alineb08:44
dtantsurand vsaienko08:44
*** amotoki has joined #openstack-ironic08:46
alinebo/ dtantsur08:46
*** phuongnh has quit IRC08:48
*** sabeen has quit IRC08:48
*** phuongnh has joined #openstack-ironic08:48
vsaienkoo/ alineb08:48
lucasagomesjimmy_, when you run tox -epy27 you don't see any output at all!/08:49
lucasagomes?*08:49
openstackgerritTan Lin proposed openstack/ironic: Add a new DB API get_remains_conductors()  https://review.openstack.org/32502608:50
jimmy_lucasagomes, Yes, I see something.08:50
lucasagomesjimmy_, can you paste it?08:50
lucasagomeslike do you see the results of the tests? The traceback of the tests that failed ?08:50
*** amotoki has quit IRC08:51
alinebmorning vsaienko08:51
jimmy_lucasagomes, These tests passes...08:51
lucasagomesjimmy_, sure, but when a test fails do you see the traceback I mean?08:52
lucasagomesjimmy_, can you paste the output u see please?08:52
jimmy_lucasagomes, when a test fails, I can see the traceback.08:53
*** rajinir has joined #openstack-ironic08:54
jimmy_lucasagomes, How can I see the stdout of the tested code?08:55
lucasagomesjimmy_, I think we are out of sync about the output expectations here08:56
lucasagomesjimmy_, you want to debug the tests ?08:56
lucasagomesbecause you won't see a "print" in the tests that passes08:57
jimmy_lucasagomes, yes, I want to debug the tests.08:57
lucasagomesneither logs08:57
lucasagomesok then08:57
jimmy_lucasagomes, Yes I mean it.08:57
*** agordeev has joined #openstack-ironic08:57
*** kozhukalov has joined #openstack-ironic08:57
*** evgenyl has joined #openstack-ironic08:57
jimmy_lucasagomes, How can I see these "print"?08:59
* lucasagomes thinks, never did that either09:03
lucasagomesI know that you can use pdb with testr and all09:03
*** romcheg has joined #openstack-ironic09:05
sambetts|afkthiagop: Seems to have gone ok so far, I'm not using puppet-openstackci right now so that might be why :)09:08
*** sambetts|afk is now known as sambetts09:08
jimmy_lucasagomes, Thanks for remind me of this way!!!09:09
lucasagomesjimmy_, yeah, but I don't know about the output :-(09:09
jimmy_lucasagomes, I searched it.09:09
lucasagomescool :-)09:10
sambettslucasagomes, jimmy_: if you are trying debug a specfic test and want to use prints statements, just add an assertTrue(False) to the end of the test, and it'll fail the test and you'll get to see the output09:10
lucasagomessambetts, hah09:10
* dtantsur adores our testing tool09:10
lucasagomesor print to a file09:10
jimmy_lucasagomes, https://wiki.openstack.org/wiki/Testr#Debugging_.28pdb.29_Tests09:10
*** yonglihe has joined #openstack-ironic09:11
divyastill same error "am not getting the error now Failed to connect to Glance to get the properties of the image 2aee8624-f020-49db-af2d-2ea7b117ad08 (HTTP 500)"09:11
lucasagomesjimmy_, yup, yeah with pdb after you set the the points you can print an all09:11
jimmy_lucasagomes, I will use this way!!!09:11
lucasagomesjimmy_, cool, yeah that's useful09:11
sambettslucasagomes, dtantsur: nice to see the gate is lovely and stable today -> https://review.openstack.org/#/c/172067/09:12
*** sergek has joined #openstack-ironic09:12
lucasagomes:-)09:12
lucasagomeson a friday yeah09:13
dtantsurWOW09:13
dtantsuryeah, Friday09:13
dtantsurbtw happy Friday everyone09:13
sambettsTGIF!09:13
lucasagomes#pixiesay happy friday -m happy09:15
PixieBootsʕ^ᴥ^ʔ: happy friday09:15
lucasagomesit's bank holiday on monday here too o/09:15
lucasagomessambetts, same there, isn't it?09:15
*** ChrisMead has joined #openstack-ironic09:16
*** vdrok has joined #openstack-ironic09:19
divyaFailed to connect to Glance to get the properties of the image 2aee8624-f020-49db-af2d-2ea7b117ad0809:22
divyanot able to come out of this..deploy failing :( :(09:22
dtantsurlucasagomes, do you plan to work on the new 'baremetal create' command or should someone else take it?09:23
vdrokmorning ironic09:24
openstackgerritLucas Alvares Gomes proposed openstack/ironic: Add debug environment to tox  https://review.openstack.org/32515109:24
lucasagomesdtantsur, I think vsaienko would do it ? :-)09:24
lucasagomesbut if not I can give it a first stab09:25
vdroklucasagomes, dtantsur, yuriyz so how do you think, how long should we be backwards compatible with old IPA ramdisks? for one release, like mitaka IPA, newton ironic, or longer, or forever? :)09:25
lucasagomesjimmy_, ^ see my patch there09:25
dtantsurvdrok, one release is pretty standard in openstack09:25
lucasagomesjimmy_, https://review.openstack.org/325151 this will allow you to use pdb and also see prints09:25
vdrokbrb09:25
lucasagomesvdrok, yeah I would say 1 release too09:26
sambettslucasagomes: :/ I don't think it is for England, it looks like an Ireland only holiday09:26
vdrokmorning sambetts09:26
lucasagomessambetts, oh, too bad09:26
sambettso/ vdrok09:26
vdrokok, 1 release makes sense09:26
lucasagomesjroll, JayF vdrok I'm thinking on approving https://review.openstack.org/#/c/186700/ , it looks good and just extend the power capabilities with something already supported bu IPMI[tool]09:27
lucasagomesany concerns?09:28
vdroklucasagomes, I'll take one more look at it in a half an hour or so, but I'm not a core in specs :)09:30
lucasagomesvdrok, cool, np09:30
divyaError finding address for https://172.26.24.110:9292/v1/images/2aee8624-f020-49db-af2d-2ea7b117ad08: [Errno 1] _ssl.c:510: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol09:30
*** rcernin is now known as rcernin|lunch09:31
divyahow to resolve this09:32
divya_Error finding address for https://172.26.24.110:9292/v1/images/2aee8624-f020-49db-af2d-2ea7b117ad08:09:32
dtantsurvsaienko, please let us know if you plan on working on https://bugs.launchpad.net/ironic/+bug/158833909:33
openstackLaunchpad bug 1588339 in Ironic "[RFE] A command to import Ironic resources from a file" [Wishlist,Confirmed]09:33
*** SiRiuS__ has quit IRC09:33
lucasagomesdivya, it's glance related. Plus, as pointed out yesterday this is a *dev* channel not a support channel09:35
lucasagomesdig into it more, find the problem, open a bug if needed09:35
lucasagomesbut be more precisely on the questions here and don't flood the channel please09:36
-openstackstatus- NOTICE: CI is experiencing issues with test logs, all jobs are currently UNSTABLE as a result. No need to recheck until this is fixed! Thanks for your patience.09:37
openstackgerritZhenguo Niu proposed openstack/ironic: Add some missed test cases in node object tests  https://review.openstack.org/26804509:40
jimmy_lucasagomes, oslo_debug_helper works well im my environment!!09:43
lucasagomesjimmy_, cool, if you can please comment on the patch it would be great :-)09:43
*** pcaruana has joined #openstack-ironic09:44
jimmy_lucasagomes, It seems jenkins is unstable...09:44
lucasagomes:-(09:44
lucasagomeswhen it's back09:44
jimmy_lucasagomes, Of course, I will.09:45
lucasagomesthanks a lot09:45
*** amotoki has joined #openstack-ironic09:47
sambettslucasagomes: I'm looking at that spec, and I'm not sure i see NMI as a power state09:51
*** amotoki has quit IRC09:51
sambettslucasagomes: I'm stoked about soft reboot, but the NMI part seems like it doesn't fit to me09:51
lucasagomessambetts, I think this is following the way ipmitool actually sees it? (power on/off/dig)09:52
lucasagomessambetts,09:53
lucasagomeshttp://linux.die.net/man/1/ipmitool09:53
* lucasagomes is not saying that, just because ipmitool do that we also have to. But we've been basing our api on it for various things, power, boot devices (the name of the boot devices are all based on ipmitool) etc09:54
sambettslucasagomes: yeah, it just bugs me because it isn't actually a power state09:55
sambettsand it doesn't change the power state either as far as I can tell09:55
lucasagomesyeah, more like a power "action" or something09:55
sambettslucasagomes: it just seems like (to me at least) it fits better in the managment interface, unless it actually reboots the machine09:57
*** logan_ has joined #openstack-ironic09:57
lucasagomessambetts, I don't think it does reboot the machine09:58
* lucasagomes have to test09:58
*** logan_ is now known as Guest6297109:58
sambettsso its a power action that goes from Power ON to Power ON without a reboot, it doesn't sound like a power action to me09:58
*** _milan_ has joined #openstack-ironic09:58
*** _milan_ has quit IRC09:59
*** logan- has quit IRC09:59
*** mkovacik__ has joined #openstack-ironic10:01
*** mkovacik__ is now known as milan_10:01
*** milan_ has quit IRC10:01
*** milan_ has joined #openstack-ironic10:01
*** Guest62971 is now known as logan-10:01
*** agordeev has quit IRC10:02
*** kozhukalov has quit IRC10:02
*** romcheg has quit IRC10:02
*** evgenyl has quit IRC10:02
*** yonglihe has quit IRC10:02
*** sergek has quit IRC10:02
*** rajinir has quit IRC10:02
*** ChrisMead has quit IRC10:02
lucasagomessambetts, yeah, def it's an arguable thing... I'm kinda indifferent, I think I would be happy with either having it on the mgmt interface or as a power command (following what ipmitool does)10:04
openstackgerritZhenguo Niu proposed openstack/ironic: Replace vif_portgroup_id with vif_port_id  https://review.openstack.org/32519710:04
*** YiboCai has quit IRC10:04
lucasagomessambetts, please comment on the spec10:04
sambettslucasagomes: leaving comments as we speak :)10:04
lucasagomescool10:04
lucasagomesty!10:04
*** vishwanathj has joined #openstack-ironic10:06
-openstackstatus- NOTICE: CI is experiencing issues with test logs, all jobs are currently UNSTABLE as a result. No need to recheck until this is fixed! Thanks for your patience.10:08
*** ChanServ changes topic to "CI is experiencing issues with test logs, all jobs are currently UNSTABLE as a result. No need to recheck until this is fixed! Thanks for your patience."10:08
sambettslucasagomes: do we have a way to set/look at image properties today? so we can enable/disable something based on if an image has a certain feature?10:11
*** rajinir has joined #openstack-ironic10:15
*** milan_ has quit IRC10:16
*** Romanenko_K has quit IRC10:16
*** mkoderer has quit IRC10:16
*** slagle has quit IRC10:16
*** lintan has quit IRC10:16
*** xavierr has quit IRC10:16
*** hshiina has quit IRC10:17
*** parlos has quit IRC10:17
openstackgerritVladyslav Drok proposed openstack/ironic: Gracefully degrade start_iscsi_target for Mitaka ramdisk  https://review.openstack.org/31918310:18
*** agordeev has joined #openstack-ironic10:19
*** kozhukalov has joined #openstack-ironic10:19
*** evgenyl has joined #openstack-ironic10:19
*** rcernin|lunch is now known as rcernin10:20
*** vishwanathj has quit IRC10:20
*** sylwesterB has left #openstack-ironic10:20
*** vishwanathj has joined #openstack-ironic10:26
*** tangchen has quit IRC10:27
*** romcheg has joined #openstack-ironic10:29
*** dtantsur is now known as dtantsur|lunch10:30
vmud213Morning all10:32
openstackgerritLucas Alvares Gomes proposed openstack/ironic: Add debug environment to tox  https://review.openstack.org/32515110:34
*** yonglihe has joined #openstack-ironic10:35
*** sergek has joined #openstack-ironic10:36
*** ChrisMead has joined #openstack-ironic10:41
*** ishant is now known as ishant|away10:42
*** phuongnh has quit IRC10:44
*** amotoki has joined #openstack-ironic10:48
*** lucasagomes is now known as lucas-lunch10:49
*** milan_ has joined #openstack-ironic10:49
*** Romanenko_K has joined #openstack-ironic10:49
*** mkoderer has joined #openstack-ironic10:49
*** slagle has joined #openstack-ironic10:49
*** lintan has joined #openstack-ironic10:49
*** xavierr has joined #openstack-ironic10:49
*** orwell.freenode.net changes topic to "Bare Metal Provisioning | Status: http://bit.ly/ironic-whiteboard | Docs: http://docs.openstack.org/developer/ironic/ | Bugs: https://bugs.launchpad.net/ironic"10:49
*** vishwanathj has quit IRC10:50
*** vishwanathj has joined #openstack-ironic10:52
*** amotoki has quit IRC10:52
*** hoangcx has quit IRC11:00
*** thrash|g0ne is now known as thrash11:03
*** vishwanathj has quit IRC11:04
*** vishwanathj has joined #openstack-ironic11:05
*** vdrok has quit IRC11:10
*** vdrok has joined #openstack-ironic11:12
*** vishwanathj has quit IRC11:14
openstackgerritBharath kumar proposed openstack/ironic: adding back the inspect_ports as an optional parameter  https://review.openstack.org/32523011:15
*** parlos has joined #openstack-ironic11:16
*** vishwanathj has joined #openstack-ironic11:26
*** tesseract has joined #openstack-ironic11:33
*** d0ugal has quit IRC11:34
*** ishant|away has quit IRC11:39
*** kirankv has quit IRC11:39
*** lazy_prince has quit IRC11:39
jrollmorning y'all11:39
sambettsMorning jim11:39
*** kirankv has joined #openstack-ironic11:40
-openstackstatus- NOTICE: CI is experiencing issues with test logs, all jobs are currently UNSTABLE as a result. No need to recheck until this is fixed! Thanks for your patience.11:41
*** ChanServ changes topic to "CI is experiencing issues with test logs, all jobs are currently UNSTABLE as a result. No need to recheck until this is fixed! Thanks for your patience."11:41
jrollthat means it's time to go home, right?11:43
sambettspretty much heh11:43
*** pcaruana has quit IRC11:45
*** vishwanathj has quit IRC11:45
*** ishant|away has joined #openstack-ironic11:45
*** vishwanathj has joined #openstack-ironic11:45
*** lazy_prince has joined #openstack-ironic11:46
*** jimmy_ has quit IRC11:46
*** amotoki has joined #openstack-ironic11:48
*** baoli has joined #openstack-ironic11:51
vmud213JayF: I'd like to discuss about https://review.openstack.org/#/c/302143. Just ping me when you are here11:52
*** lucas-lunch is now known as lucasagomes11:52
lucasagomesjroll, morning11:52
*** amotoki has quit IRC11:53
*** baoli_ has joined #openstack-ironic11:53
*** baoli has quit IRC11:56
*** appu103_ has quit IRC12:00
*** vishwana_ has joined #openstack-ironic12:03
*** vishwanathj has quit IRC12:04
*** SiRiuS has joined #openstack-ironic12:07
nicodemosgood morning, ironic12:08
TheJuliagood morning12:09
TheJuliajroll: I think it means to go back to bed12:09
*** sacharya has joined #openstack-ironic12:10
*** dtantsur|lunch is now known as dtantsur12:11
dtantsurmorning jroll, TheJulia, nicodemos, vmud213 and everyone12:11
*** trown|outtypewww is now known as trown12:11
TheJuliagood morning dtantsur12:11
*** aarefiev has quit IRC12:12
vmud213morning dtantsur12:12
openstackgerritSam Betts proposed openstack/ironic: [DO NOT MERGE] Testing Cisco CI  https://review.openstack.org/28931212:12
*** aarefiev has joined #openstack-ironic12:13
*** dprince has joined #openstack-ironic12:14
*** sacharya has quit IRC12:15
*** daemontool has joined #openstack-ironic12:16
*** joprovost has joined #openstack-ironic12:16
*** vishwana_ has quit IRC12:18
lucasagomesnicodemos, TheJulia morning12:19
openstackgerritKyrylo Romanenko proposed openstack/python-ironicclient: Add CLI tests to check JSON response body  https://review.openstack.org/29123912:21
TheJuliagood morning lucasagomes12:23
xavierrmorning Ironic12:25
*** frontrunner has joined #openstack-ironic12:25
xavierrmorning lucasagomes nicodemos TheJulia12:25
dtantsurmorning xavierr12:25
xavierrHey dtantsur :)12:25
lucasagomesxavierr, hey hey :-)12:26
*** lindycoder has joined #openstack-ironic12:30
*** alaski is now known as lascii12:40
vdrokmorning vmud213 jroll nicodemos TheJulia xavierr12:44
vmud213vdrok o/ :)12:44
nicodemos\o vdrok12:45
xavierrhi vdrok o/12:45
nicodemoslucasagomes, dtantsur, xavierr  o/12:45
*** mjturek1 has joined #openstack-ironic12:47
*** piet has joined #openstack-ironic12:48
*** amotoki has joined #openstack-ironic12:49
*** sdake has joined #openstack-ironic12:49
*** daemontool has quit IRC12:50
*** amotoki has quit IRC12:54
*** d0ugal has joined #openstack-ironic12:55
openstackgerritKyrylo Romanenko proposed openstack/python-ironicclient: Add CLI tests to check JSON response body  https://review.openstack.org/29123912:55
*** jcoufal has joined #openstack-ironic12:56
*** vmud213 has quit IRC12:56
openstackgerritAndre Aranha proposed openstack/python-oneviewclient: Extend python-oneviewclient to Network  https://review.openstack.org/29455913:05
*** parlos has quit IRC13:07
vdroklucasagomes, sambetts I wonder should we allow things like http://127.0.0.1:6385/v1/nodes/4df80221-8da6-4cbc-8a1d-ef7214401cb7/ports?portgroup=79f9ae41-60e2-4b9f-9319-e465b197a345 in our API?13:07
vdrokor if it is a subcontroller, we just say no additional filtering?13:07
openstackgerritAndre Aranha proposed openstack/python-oneviewclient: Extend python-oneviewclient to Uplink Set  https://review.openstack.org/29598113:08
lucasagomesI think that we accept filtering on subcontrollers already, no?13:08
*** phschwartz_ is now known as pschwartz13:08
*** pschwartz is now known as phschwartz13:09
*** amotoki has joined #openstack-ironic13:09
vdroklucasagomes, ah, yes, I guess we do, api-ref just does not tell that yet13:09
lucasagomesvdrok, yeah :-/ it's undocumented but, urgh, it's some "magic" we have in our code13:13
lucasagomesbut deeply, I hope people are not using it heh13:14
*** [1]cdearborn has joined #openstack-ironic13:15
vdroklucasagomes, then, should we documented at all? :) because now it get weird with ports being subcontroller of both node and portgroup, and portgroup is a subcontroller of a node - https://review.openstack.org/#/c/206244/108/ironic/api/controllers/v1/port.py@27713:15
sambettsthat sounds fine13:16
vdroks/documented/document it/13:16
*** daemontool has joined #openstack-ironic13:16
lucasagomesvdrok, I feel a bit divided. But, yeah to be fair I think we should document it + add tests to make sure we don't break it13:17
lucasagomesI don't think we have tests like that on tempest13:17
vdroknope13:17
lucasagomesmy fear is that, if we document it people will use so, we better guarantee that we won't break them in the first place13:18
lucasagomesmaybe tests + document13:18
TheJuliagood morning vdrok13:19
vdroko/ :)13:20
openstackgerritAndre Aranha proposed openstack/python-oneviewclient: Extend python-oneviewclient to Network  https://review.openstack.org/29455913:20
openstackgerritAndre Aranha proposed openstack/python-oneviewclient: Extend python-oneviewclient to Uplink Set  https://review.openstack.org/29598113:22
*** wajdi has quit IRC13:26
*** rama_y has joined #openstack-ironic13:28
*** ohamada has quit IRC13:31
*** PollyZ has joined #openstack-ironic13:32
*** joprovost has quit IRC13:34
*** Goneri has quit IRC13:34
openstackgerritVladyslav Drok proposed openstack/ironic: Add api-ref for new port fields  https://review.openstack.org/32529913:35
*** PollyZ has left #openstack-ironic13:36
*** PollyZ__ has joined #openstack-ironic13:37
*** PollyZ__ has quit IRC13:37
openstackgerritVladyslav Drok proposed openstack/ironic: Add api-ref for new port fields  https://review.openstack.org/32529913:39
*** PollyZ has joined #openstack-ironic13:39
*** trown is now known as trown|brb13:42
*** mbound has joined #openstack-ironic13:43
*** thiagop has joined #openstack-ironic13:45
*** mgoddard_ has joined #openstack-ironic13:45
openstackgerritVladyslav Drok proposed openstack/ironic: Add api-ref for new port fields  https://review.openstack.org/32529913:46
*** vdrok has quit IRC13:46
thiagopGood morning Ironic13:48
thiagopTGIF13:48
*** mgoddard has quit IRC13:49
sambettsHey thiagop TGIF13:49
NobodyCamGood Morning Ironicers13:49
NobodyCamthiagop morning and Yes TGIF13:49
NobodyCammorning sambetts13:49
*** piet has quit IRC13:50
lucasagomesthiagop, NobodyCam morning13:50
NobodyCammorning TheJulia13:50
NobodyCammorning lucasagomes13:50
xavierrmorning NobodyCam13:50
NobodyCammorning xavierr13:50
*** dansmith is now known as superdan13:51
*** ametts has joined #openstack-ironic13:52
xavierrthat moment you are looking for ironic on youtube and you see NobodyCam talking about that :)13:52
dtantsurmorning thiagop, NobodyCam13:53
*** dprince has quit IRC13:53
*** dprince has joined #openstack-ironic13:54
*** piet has joined #openstack-ironic13:54
NobodyCamdoh13:56
NobodyCammorning dtantsur happy Friday13:57
dtantsurFriday is happy as usual, especially with gates broken :D13:57
*** trown|brb is now known as trown13:57
NobodyCamyea13:57
NobodyCamwhite board has a Check plus for status13:58
NobodyCamjust waking up is there a bug I can add to the WhiteBoard?13:59
*** ChanServ changes topic to "Bare Metal Provisioning | Status: http://bit.ly/ironic-whiteboard | Docs: http://docs.openstack.org/developer/ironic/ | Bugs: https://bugs.launchpad.net/ironic"13:59
-openstackstatus- NOTICE: Cleanup from earlier block storage disruption on static.openstack.org has been repaired, and any jobs which reported an "UNSTABLE" result or linked to missing logs between 08:00-14:00 UTC can be retriggered by leaving a "recheck" comment.13:59
*** e0ne has quit IRC13:59
*** mgoddard_ has quit IRC13:59
*** e0ne has joined #openstack-ironic14:00
*** mgoddard has joined #openstack-ironic14:00
sambettsNobodyCam: ^14:00
sambettsheh14:00
NobodyCamlol14:00
*** PollyZ has quit IRC14:00
sambettsNobodyCam: Morning TGIF14:00
NobodyCammorning sambetts :)14:00
*** ayoung has joined #openstack-ironic14:00
NobodyCamupdated status to check -14:01
*** mjura has quit IRC14:02
*** rama_y has quit IRC14:04
*** PollyZ has joined #openstack-ironic14:08
*** [1]cdearborn has quit IRC14:08
*** [1]cdearborn has joined #openstack-ironic14:09
milan_morning all!14:10
milan_I'm wondering about this line: https://github.com/openstack/ironic/blob/master/devstack/files/debs/ironic#L1214:10
dtantsur"morning" milan_ :)14:10
milan_dtantsur, :P14:11
NobodyCamgood morning milan_14:11
milan_NobodyCam, morning14:11
*** rloo has joined #openstack-ironic14:11
milan_w/r that line, ubuntu kernels newer than 3.13 don't seem to require it14:11
NobodyCamgood morning and happy Friday rloo :)14:11
*** parlos has joined #openstack-ironic14:12
milan_moreover, 16.4 LTS doesn't even have that package any more14:12
rlooHi NobodyCam! I'm not here today (not sure how this started up...)14:12
* milan_ not sure what to do about that14:12
*** rloo has quit IRC14:12
*** PollyZ has quit IRC14:12
*** e0ne has quit IRC14:14
*** e0ne has joined #openstack-ironic14:14
milan_actually, to make it even more fun: https://github.com/openstack-dev/devstack/blob/master/lib/neutron_plugins/ovs_base#L5714:14
milan_so it seems we're getting smarter here than the devstack neutron plugin14:15
* milan_ confused14:15
milan_any suggestions? should I remove it from ironic's devstack conf?14:16
milan_sambetts, maybe ^ ;)14:17
*** mbound has quit IRC14:18
sambettsmilan_: interesting, we shouldn't need to replicate anything installed by the neutron plugin right?14:19
milan_sambetts, +114:19
milan_but it's unconditional14:19
milan_in that file14:19
milan_not sure what else should be removed14:20
milan_openvswitch-switch ?14:20
*** mjturek1 has quit IRC14:20
* milan_ would like to drop at least the dkms package as it breaks things on 16.4 LTS (my poor grenade VM)14:21
*** Goneri has joined #openstack-ironic14:23
vsaienkolucasagomes: http://logs.openstack.org/29/299229/8/check/gate-ironic-staging-drivers-dsvm-nv/e6829ef/logs/screen-ir-cond.txt.gz#_2016-06-03_13_32_19_54214:24
sambettsmilan_: most of those depedencies were added over 2 years ago https://review.openstack.org/#/c/70348/ I think we can probably drop at least some of them because they are covered by the other plugins now14:25
sambettslucasagomes: ^14:25
*** r-daneel has joined #openstack-ironic14:25
*** wajdi has joined #openstack-ironic14:25
lucasagomesvsaienko, w00t!14:25
lucasagomesthat's awesome14:25
vsaienkolucasagomes, I think we can enable all staging drivers by default14:26
*** parlos has quit IRC14:26
lucasagomessambetts, reading...14:26
milan_sambetts, lucasagomes preferably we'd remove that from the mitaka as well -- because of grenade testing -- but don't kill me for removing stuff from stable branch  right away ;)14:26
lucasagomesvsaienko, on the tests you mean?14:27
lucasagomesmilan_, I'm a bit out of context (/me reading scrollback)14:27
vsaienkolucasagomes, yes14:28
milan_lucasagomes, TL;DR: our devstack/files/debs gives me a headache: we're enforcing a neutron-related package to be installed all the time no matter the circumstances14:29
lucasagomesmilan_, if not needed anymore and the base os that we use in the gate is happy with it +1 to remove14:29
*** ChrisAusten has joined #openstack-ironic14:29
milan_lucasagomes, ack14:29
lucasagomesvsaienko, ++14:29
* milan_ removes14:29
lucasagomesthanks :D14:30
sambetts:d14:31
sambetts:D14:31
*** joprovost has joined #openstack-ironic14:32
*** PollyZ has joined #openstack-ironic14:33
*** e0ne has quit IRC14:33
*** vdrok has joined #openstack-ironic14:35
*** links has quit IRC14:36
*** rama_y has joined #openstack-ironic14:37
*** e0ne has joined #openstack-ironic14:37
jlvillalvsaienko, ping: https://review.openstack.org/#/c/317082/  Would you be able to respond to the comments?14:39
*** mjturek1 has joined #openstack-ironic14:39
vsaienkojlvillal I will14:40
vsaienkojlvillal I will upload new version soon14:41
jlvillalvsaienko, Spasibo :)14:41
*** jcoufal has quit IRC14:42
*** Jabadia has joined #openstack-ironic14:43
*** jcoufal has joined #openstack-ironic14:43
PollyZHi, I am installing dev-stack, even after reading the instruction, I still don't know which driver should I choose14:44
NobodyCammorning jlvillal sambetts14:45
jlvillalNobodyCam, Good morning :)14:45
NobodyCam:)14:45
jrollPollyZ: we typically run devstack with pxe_ssh or agent_ssh, we also support pxe_ipmitool and agent_ipmitool now14:46
thiagopPollyZ: that depends on what you are doing (and wich type or baremetal hardware you are using)14:46
*** rcernin has quit IRC14:46
jrollPollyZ: the sample config will give you a good general start that should work for developing anything that isn't driver-specific14:47
NobodyCamjroll: Morning14:47
jrollhey NobodyCam :D14:47
thiagopPollyZ: If you're only going for a test and not using real hardware, I'd use agent_ssh which is the default on the instruction14:47
vdrokmorning jlvillal and NobodyCam14:48
NobodyCamhey vdrok :) morning14:48
jlvillalvdrok, good morning :)14:48
*** Goneri has quit IRC14:52
openstackgerritMilan Kováčik proposed openstack/ironic: remove neutron stuff from devstack deb packages  https://review.openstack.org/32534614:53
lucasagomesJayF, mind if I pick ur mind for a second? The syslog thing, running out of ideas on coreos :-/14:54
openstackgerritKyrylo Romanenko proposed openstack/python-ironicclient: Add tests for openstackclient plugin  https://review.openstack.org/30168714:54
openstackgerritKyrylo Romanenko proposed openstack/python-ironicclient: Add tests for openstackclient plugin  https://review.openstack.org/30168714:55
lucasagomesJayF, I wonder if a mix between ur suggestion and what is proposed would be acceptable. What about documenting that "distros without systemd should make sure that all logs are redirected under /var/log"14:55
lucasagomesand we continue to use journald for the systemd ones14:55
lucasagomesinstead of trying to forward journald -> syslog -> syslogd14:56
lucasagomesfwiw, journald -> syslog is not problem, now coreos doesn't have any syslogd, rsyslog or the old sysklog so :-/14:56
lucasagomesso the second part, the proxy, is missing14:56
jrollsolution: kill the coreos image14:56
lucasagomesjroll, that's another way out heh14:57
* jroll sick of the shenanigans14:57
lucasagomesjroll, the ultimate goal would be to have every distro to log under /var/log, but is it too bad if some distros the logs come from journald and others from /var/log ?14:57
TheJuliaI kind of feel a very strong +1 to that, is there a strong case that anyone can make to keep it?14:58
lucasagomesit's more cosmetic IMO, because the problem is having no access to any logs14:58
openstackgerritDmitry Tantsur proposed openstack/ironic-inspector: Remove deprecated alias "root_device_hint" for "raid_device" hook  https://review.openstack.org/32535114:58
lucasagomesTheJulia, the coreos image? Nop, I think the strongest argument is the tooling around it14:58
jrollTheJulia: it's incredibly easy to customize, has ssh access built in, etc14:58
*** adu has joined #openstack-ironic14:58
lucasagomesTheJulia, since we've moved to use chroot there's no security/isolation gain14:59
lucasagomesjroll, would you be ok with the journald + /var/log for non-systemd distros case?14:59
jrollI mean, the agent is meant to destroy a machine, security/isolation was never a reason :)14:59
TheJuliajroll: true, biggest issue I hear from people is using the devuser element to customize their deployment ramdisk when they use diskimage-builder14:59
openstackgerritDmitry Tantsur proposed openstack/ironic-inspector: Remove deprecated alias "root_device_hint" for "raid_device" hook  https://review.openstack.org/32535114:59
lucasagomesjroll, heh fair15:00
TheJuliaoh, coreos lacks ipmitool internally so part of the information collection for discovery just doesn't work15:00
lucasagomesjroll, was thinking on the long running agent thingy15:00
jrollTheJulia: right, I want to add ssh keys for my team when I build a ramdisk15:00
jrolllucasagomes: I'm not stongly opinionated, I do agree with jay that distro-specific code in IPA isn't good, but I think eventually we may have no choice15:00
TheJuliajroll: and truthfully, I think that is just everyone needs a bit better doc15:00
*** mgoddard_ has joined #openstack-ironic15:01
*** ifarkas has quit IRC15:01
PollyZthiagop: it should be only testing15:01
jrollTheJulia: sure15:01
jrolllucasagomes: what about it?15:01
lucasagomesjroll, so it's not really distro specific. I mean, the idea is: If systemd is present use it, if not collect the logs from /var/log15:01
lucasagomesthe fallback works for all dsitros15:01
TheJuliajroll: ++  Well, even in a ramdisk it could still be in like a debian chroot.... :)15:01
PollyZjroll: thank you for your information. working on it :)15:01
jrollPollyZ: np15:02
*** joprovost has quit IRC15:02
lucasagomesmost if not all biggest distros now uses systemd, so, the fallback is more to cover the tiny ipa case15:02
*** ijw has joined #openstack-ironic15:02
jrolllucasagomes: let's go back because I don't have context15:03
lucasagomesjroll, ack, maybe if you can skim the comments here https://review.openstack.org/#/c/323511/ ?15:03
jrollyeah15:03
*** mtanino has joined #openstack-ironic15:04
*** mgoddard has quit IRC15:04
jrolllucasagomes: so your original question, What about documenting that "distros without systemd should make sure that all logs are redirected under /var/log"15:04
jrollisn't that what JayF suggested?15:05
jroll" we should instead set a logging standard for ramdisks; i.e. "IPA logs must be in dir X" and then modify the ramdisks to match the standard?"15:05
lucasagomesjroll, he suggested (AFAIUI) that we should proxy the logs from journald to /var/log using syslog15:05
lucasagomesso that the ramdisk would always get the logs from /var/log15:05
*** Goneri has joined #openstack-ironic15:05
*** e0ne has quit IRC15:05
jrollsure, so the problem is you can't do that in coreos?15:05
lucasagomesexactly15:06
jrollhrm15:06
lucasagomesbecause I can forward the logs to syslog15:06
lucasagomesbut coreos does not have any daemon to get from syslog and put it on /var/log15:06
lucasagomeswhich would be rsyslog, syslogd etc...15:06
jroll:|15:06
jrollwell, this is a chroot right15:07
jrollwhat if we bind-mount /var/log15:07
jrolland redirect IPA logs to /var/log15:07
lucasagomesyeah but I will still miss the system logs15:07
lucasagomeslike the logs from boot15:07
*** joprovost has joined #openstack-ironic15:07
jroll'dmesg > /var/log/xxx'15:07
*** e0ne has joined #openstack-ironic15:07
*** e0ne has quit IRC15:08
jrollOH15:08
jrollurgh, I get it15:08
jrollgrr15:08
lucasagomesyeah there's more logs hehe15:08
lucasagomesI would love to have access to as much info as I can get15:08
lucasagomesbecause it's troubleshooting15:08
jrollthe objection is actually calling 'journalctl' from IPA,r ight?15:09
lucasagomesyeah, because tinyipa does have it15:09
lucasagomesthat's why I thought about falling back to zip the /var/log + dmesg for distros where it's not present15:09
jrollecho '* * * * * journalctl > /var/log/journal-foo' > crontab15:09
jroll:P15:09
lucasagomeslol15:09
dtantsurthat's pretty terrible, unless you do it every 1-2 msec15:10
jrolloh I know15:10
dtantsuras I said on the patch, we already struggle from stripped logs :)15:10
lucasagomeshonestly I think that people using ironic will create their ramdisks based on a single distro15:10
jrolldoes bash have a sleep in ms15:10
jroll?15:10
lucasagomesI wouldn't mix many distros in my env15:10
lucasagomesso, the logs will be uniform on the same "cloud"15:10
openstackgerritChris Krelle proposed openstack/ironic: Correct RAID documentation JSON  https://review.openstack.org/32186215:11
lucasagomesthe main problem is not having access to the logs15:11
lucasagomesmix distros == for the deploy ramdisk only, not talking about user image15:11
*** mgoddard has joined #openstack-ironic15:11
openstackgerritMerged openstack/python-ironic-inspector-client: Updated from global requirements  https://review.openstack.org/32391615:11
jrollecho 'while 1; do journalctl > /var/log/myjournal; sleep .001; done' > some-systemd-unit15:11
jroll(I'm only half serious here)15:11
jrollright, I agree a cloud won't have mixed ramdisk distros15:12
jrollI'm not 100% against calling journalctl, honestly, but I do want jay on board15:12
*** mgoddard_ has quit IRC15:12
lucasagomesjroll, yeah sure. I also want his opnion on it15:13
lucasagomesI just don't want it to be a hard block on it. And if in the future we decide to the kill coreos based ramdisk15:13
lucasagomeswe can rethink the idea15:13
lucasagomesit's all internal implementation anyway15:14
jrollI wish we were more opinionated with ipa15:14
jrollsingle distro, hard requirements on what's in the ramdisk15:15
sambettsif its the SSH part thats keeping people on Coreos over TinyIPA, thats an easy fix15:15
lucasagomesjroll, yeah, we may get there someday15:15
jrollit isn't just ssh, it's the extensibility15:16
jrollI wish I could show our agent builder repo15:16
lucasagomesjroll, be happy that we have only 1 ramdisk implementation at the moment :-)15:16
jrolllucasagomes: >.>15:16
* jroll rewrites in go15:16
* lucasagomes is serious15:16
jrolllucasagomes: are there people that want to implement their own agent?15:16
lucasagomesjroll, I hope not, but we had the bash one before15:17
PollyZ:thiagop: I think the default driver on the instruction is pxe_ssh15:17
lucasagomesand took us > 1 year to get rid of it15:17
*** dprince has quit IRC15:17
jrollah right15:17
*** jcoufal has quit IRC15:17
*** r-daneel has quit IRC15:18
lucasagomesjroll, TheJulia anyway, thanks for the inputs15:18
lucasagomesI will follow up with JayF when he's available15:18
lucasagomes(review on the spec also appreciated :-) )15:18
jrollyeah np15:19
sambettsI think the difference between the bash ramdisk and alternate ramdisks is that the bash ramdisk was always intended to be replaced by IPA and therefore we had to use the same driver right, if someone makes an alternate ramdisk I expect them to create their own driver specific to that ramdisk15:19
jrollsambetts: well, it's a protocol, anyone could go build a better ramdisk15:20
lucasagomessambetts, yea, I was thinking on the bash ramdisk when I said "only 1 implementation"15:20
lucasagomesI hope nobody is working on a separated implementation15:20
jrollalso, it wasn't always intended to be replaced by IPA afaik :)15:20
lucasagomesyeah, history15:20
* lucasagomes is glad we did tho, bash was a pain15:20
sambetts++15:21
jrollagree15:21
*** piet has quit IRC15:22
thiagopPollyZ: you're right :)15:22
*** ChubYann has quit IRC15:23
*** thiagop is now known as thiagop-afk15:23
*** bsilverman has quit IRC15:23
PollyZ:thiagop on the previous message, you refered agent_ssh as default, so should I use agent or pxe which is the deault driver15:25
*** rcernin has joined #openstack-ironic15:31
*** ChubYann has joined #openstack-ironic15:35
*** d0ugal has quit IRC15:39
*** rcernin has quit IRC15:39
JayFjroll: that's actually the inverse of what I want with IPA15:43
JayFjroll: I want IPA to follow a standard, and as such not care about what is in the ramdisk it's running in15:43
jrollJayF: 'that' being opinionated?15:43
jrollsure15:43
*** ccarmack has joined #openstack-ironic15:43
JayFjroll: I see a day where we need IPA to run on non-x86, maybe even in a non-linux ramdisk15:43
JayFSo the "opinion" of IPA should be to explicitly not be distro specific, and follow standards15:43
jrollI think something this low-level, it's very difficult to do that15:43
jrollespecially not-linux-specific :|15:43
JayFI think it would've been three lines of config (in the logging case) if pxe image hadn't been slimmed so considerably15:44
JayF(for coreos)15:44
JayFLike in the case of logging, file logging or journald are basically the two standards, so now that we know it's not possible to standardize I think that's reasonable15:44
JayFbut we should be vigilant against having distro-specific stuff in IPA15:44
JayFand/or requiring code changes to IPA to run in a different linux distribution15:44
jrollsure15:45
jrollso maybe I should re-phrase15:45
jrollI wish it was possible for us to be more opinionated with IPA15:45
JayFsince journald is systemd and a standard, I'm cool with having to do it both ways since doing it one way is technically difficult15:45
JayFheh15:45
JayFI have lots of opinions about IPA ramdisks ...15:45
JayF ... downstream15:45
jrollheh15:45
jrollfair :)15:45
*** absubram has joined #openstack-ironic15:46
*** sacharya has joined #openstack-ironic15:49
devanandamorning, all15:49
jrollhai devananda15:50
NobodyCammorning devananda :) happy friday15:50
JayFjroll: did you give me write access to the ironic trello?15:52
lucasagomesdevananda, morning15:52
jrollJayF: I did not15:52
mat128JayF, rama_y: whenever you're ready15:52
jrollJayF: thinking of restricting it to cores for now (see the email I just sent)15:53
*** mjturek1 has quit IRC15:53
JayFjroll: I'm a specs core and an IPA core, are we really going to split that hair?15:53
lucasagomesJayF, so, are you ok with the current proposal + documenting in the image build docs the case for non-systemd distros?15:53
JayFfrankly, if I was not a core right now, given my review velocity and quality on IPA, I'd have core on the whole project by now15:53
jrollJayF: oh yeah, specs core ++15:53
rama_yGood morning mat128, JayF; I am ready15:53
* JayF tired of being the last person with partial-core15:53
JayFlucasagomes: /var/log || journald is fine, since we know coreos image isn't going to cooperate15:54
JayFrama_y: mat128: let me get a hangouts url for us, and i'll pass it on15:54
JayF/win 3315:54
devanandajroll: keytone v3 and policy support isn't on our priority list currently, but is something I've wanted to hack on - and something we need to do before keystone v2 is completely dropped15:54
lucasagomesJayF, yeah, cool. If we one day kill the coreos then we can revist that and use the proxy15:54
jrolldevananda: policy is on the 'small things' list15:54
devanandajroll: cool. also, I've been hacking on it this week. should have patches up for devstack soon, and policy in ironic soon after that15:55
jrolldevananda: v3 is also important to me, though you're right that it isn't on any lists15:55
JayFdevananda: policy is something I'm working on now15:56
JayFdevananda: rama_y, myslef, and mat128 are about to work on the spec for it15:56
devanandaJayF: oh?15:56
devanandaJayF: I have code working for it already15:56
devanandaJayF: let's chat :)15:56
openstackgerritChuck Carmack proposed openstack/bifrost: Add redeploy-dynamic playbook  https://review.openstack.org/32537915:56
mat128devananda: wanna join the workgroup?15:57
JayFdevananda: we have a scheduled hangout in 3 minutes15:57
mat128:)15:57
devanandagood timing15:57
jrolllol15:57
devanandayes15:57
JayFdevananda: mat128: rama_y: https://hangouts.google.com/hangouts/_/4vwp7752f5fmhozhax746orqpme15:57
ccarmackdevananda: wondering if you could review https://review.openstack.org/#/c/325379/ ?15:58
*** milan_ has quit IRC15:59
JayFdevananda: mat128: rama_y: https://etherpad.openstack.org/p/ironic-policy-worksession-20160060315:59
dtantsurmorning devananda, JayF15:59
JayFdevananda: joining? we'll wait for you if so16:00
*** penick has joined #openstack-ironic16:01
dtantsurjroll, I'm dtantsur on trello I think16:01
jrolldtantsur: added, grabbed lucas too16:02
jrolland devananda16:02
jrolland NobodyCam16:02
jrollpeople with irc nicks that match trello usernames ++16:03
dtantsurthnx :)16:03
NobodyCam+++ awesome16:03
lucasagomesthanks16:03
* lucasagomes is thinking about shortening his irc handle16:04
lucasagomesI've "lcs" on freenode, I may use it16:04
openstackgerritKyrylo Romanenko proposed openstack/python-ironicclient: Add tests for openstackclient plugin  https://review.openstack.org/30168716:07
*** sabeen has joined #openstack-ironic16:08
openstackgerritLucas Alvares Gomes proposed openstack/ironic: Add debug environment to tox  https://review.openstack.org/32515116:09
lucasagomesvdrok, oslotest was already part of our test-requirements ^ (/me missed it)16:09
*** garthb has joined #openstack-ironic16:11
*** lindycod_ has joined #openstack-ironic16:11
*** piet has joined #openstack-ironic16:12
*** PollyZ has quit IRC16:12
*** sabeen1 has joined #openstack-ironic16:13
*** trown is now known as trown|lunch16:13
*** kromanenko__ has quit IRC16:14
*** lindycoder has quit IRC16:14
*** Romanenko_K has quit IRC16:14
*** sabeen has quit IRC16:15
*** kromanenko_ has quit IRC16:15
* sambetts -> afk 16:15
sambettsNight all16:15
jrollnight \o16:15
*** sambetts is now known as sambetts|afk16:15
sambetts|afkcya jroll16:15
*** frontrunner has quit IRC16:17
*** aarefiev has quit IRC16:17
*** bnemec has quit IRC16:17
*** tesseract has quit IRC16:19
openstackgerritYosef Hoffman proposed openstack/ironic-python-agent: lldp-timeout kernel parameter missing ipa- prefix  https://review.openstack.org/32460816:19
*** PollyZ has joined #openstack-ironic16:19
*** aarefiev has joined #openstack-ironic16:20
openstackgerritMerged openstack/ironic-specs: Update metrics spec to reflect review comments  https://review.openstack.org/32115316:20
*** bnemec has joined #openstack-ironic16:23
*** PollyZ has quit IRC16:24
*** frontrunner has joined #openstack-ironic16:30
*** rcernin has joined #openstack-ironic16:31
*** dprince has joined #openstack-ironic16:32
*** [1]cdearborn has quit IRC16:33
*** PollyZ has joined #openstack-ironic16:33
*** rbrud has joined #openstack-ironic16:35
lucasagomessambetts|afk, see ya16:36
*** PollyZ has quit IRC16:38
*** piet has quit IRC16:39
*** piet has joined #openstack-ironic16:39
openstackgerritVladyslav Drok proposed openstack/ironic: Add API reference for portgroups  https://review.openstack.org/32279616:40
openstackgerritVladyslav Drok proposed openstack/ironic: Add api-ref for new port fields  https://review.openstack.org/32529916:40
*** SiRiuS has quit IRC16:40
lucasagomesfolks, calling it a day16:41
lucasagomeshave a great evening, enjoy the weekend16:41
*** r-daneel has joined #openstack-ironic16:42
dtantsurlucasagomes, g'night16:42
dtantsuralso leaving, have a great weekend16:42
lucasagomesit's national holiday on monday here, so I will try to make it to the meeting16:42
lucasagomesdtantsur, g'night! Enjoy the weekend16:42
jrollhave a good weekend guys :)16:42
*** dtantsur is now known as dtantsur|afk16:42
*** lucasagomes is now known as lucas-afk16:42
*** derekh has quit IRC16:44
openstackgerritVladyslav Drok proposed openstack/ironic: Add API reference for portgroups  https://review.openstack.org/32279616:45
openstackgerritVladyslav Drok proposed openstack/ironic: Add api-ref for new port fields  https://review.openstack.org/32529916:45
*** bnemec is now known as beekneemech16:54
*** harlowja has joined #openstack-ironic16:55
*** garthb has quit IRC16:58
*** PollyZ has joined #openstack-ironic17:03
*** ElCoyote_ has quit IRC17:05
*** ElCoyote_ has joined #openstack-ironic17:06
SpamapSTheJulia: whoa, http://logs.openstack.org/34/305634/5/check/gate-bifrost-releasenotes/bd3849a/console.html ... that recheck failed reno in a weird way. any ideas?17:07
NobodyCammorning SpamapS17:07
SpamapSNobodyCam: howdy!17:07
SpamapSTheJulia: https://review.openstack.org/305634 as a reminder. Also hi. ;)17:07
TheJuliaSpamapS: wow....17:08
*** _vsaienko has joined #openstack-ironic17:09
*** _vs has joined #openstack-ironic17:09
NobodyCamdoc error?17:09
TheJuliayeah17:09
TheJuliaI think so17:09
TheJuliasections defined with no values in the reno file submitted17:09
TheJuliaI suspect that would explode it qutie nicely17:10
NobodyCamnot line #2 with the >17:10
SpamapSsounds like reno needs to be defensive17:10
TheJulia#2 is valid yaml as far as I can see17:10
*** sacharya_ has joined #openstack-ironic17:11
TheJuliabut not the intent of prelude as I understand it17:11
SpamapSNobodyCam: >'s just mean "ignore newlines"17:11
TheJuliayup17:11
SpamapShttp://paste.openstack.org/show/507755/17:11
SpamapS(except the last one)17:12
SpamapSI believe it's called "folded"17:12
SpamapSIt's what you use when you want something else to format the data17:12
openstackgerritGanesh Maharaj Mahalingam proposed openstack/bifrost: Make ansible installation directory configurable  https://review.openstack.org/32478917:12
SpamapSTheJulia: the reno input is valid yaml, but reno may not allow nulls17:12
NobodyCamyep had to refresh yaml knowledge17:12
* SpamapS will try local17:13
TheJuliaSpamapS: that is kind of what I'm thinking actually17:13
*** sacharya has quit IRC17:13
*** garthb has joined #openstack-ironic17:14
* SpamapS may have a patch for reno today :)17:15
SpamapSstill breaks on reno master17:18
*** yohoffman has joined #openstack-ironic17:20
SpamapSoh this is annoying17:21
*** _vsaienko has quit IRC17:21
*** _vs has quit IRC17:21
SpamapSI updated to Ubuntu 16.04 so now I can't easily do py34 tests17:21
jrolldevananda: what's the difference between doing policy with keystone v2 vs v3, does the client/oslo.policy not just handle it?17:28
devanandajroll: I *think* it will just work in both17:30
devanandajroll: however, the environment setup for me is quite different17:30
*** notmorgan has joined #openstack-ironic17:30
notmorgano/17:30
devanandanotmorgan: ohhai!17:30
openstackgerritVladyslav Drok proposed openstack/ironic: Fix markup in documentation  https://review.openstack.org/32543217:30
notmorgana wild notmorgan has appeared17:30
jrolldevananda: okay, the way JayF described it to me was that it was difficult/undesirable to implement policy support for Keystone v217:31
TheJuliaohhh... it is a wild notmorgan17:31
TheJuliaGreetings wild notmorgan17:31
devanandanotmorgan: great minds think (and time things) alike. JayF already had started looking into adding policy to ironic as well17:31
jrollnotmorgan: hai17:31
notmorganOOOH it's a TheJulia ! woohoo, this is where a bunch of cool people are17:31
jrollduh!17:31
notmorganjroll: hehe17:31
* JayF barely restrains himself from making the obvious "surely that's not morgan" joke17:31
notmorganJayF: never restrain from such jokes17:32
notmorganespecially not on fridays17:32
notmorganbut since today is friday....17:32
*** notmorgan is now known as morgan17:32
devanandahah!17:32
morgancasual nick friday?17:32
morgan:P17:32
TheJuliaIt feels like a thursday, but it is Friday17:32
jrollheh17:32
*** JayF is now known as notJayF17:32
*** devananda is now known as deva17:32
*** notJayF is now known as JasonF17:32
JasonFThere, I'll use my old nick for casual nick friday, lol17:33
*** deva is now known as devananda17:33
* TheJulia suspects notjulie would be her choice17:33
* JasonF 's IRC nickname is older than his r/l nickname17:33
morganJasonF: so you know if you do not<xxxx> you just make notmyname's life less fun in shared channels :P17:33
morgananyway17:34
morganso policy17:34
jrollheh17:34
*** devananda is now known as deva17:34
jrollwe have enough j*'s in here that all of our life is not so fun17:34
JasonFhttps://etherpad.openstack.org/p/ironic-policy-worksession-201600603 is our (very rough) notes from the hour worksession earlier, to give context if some folks don't have it17:34
*** deva is now known as devananda17:34
morganjroll: i like morgan cause it means people in -infra fall into the mor<tab> trap when talking to mordred17:35
morgan:P17:35
devanandamorgan: the question was, I believe, whether, if by implementing support for policy as you and I started, which I know works with keystone v3, whether that will _also_ just work for v217:35
morganor even here. :P17:35
morgandevananda: would work the same for both17:35
jrollhooray17:35
morganwith the exception that all projects are in the "default domain" in keystone v2.17:35
morganand users must also be*17:35
*** [1]cdearborn has joined #openstack-ironic17:35
morgan* = there is a weird exception to this with auth by ID cases, but assume this is not relevant for your use17:36
devanandaJasonF: my gripe on hangouts was that I do not want to, nor presently know how to, set up the right things in keystone v2 to test this17:36
devanandaJasonF: and doing it in v3 "just worked"17:36
morganbasically, the token data is extracted, converted into the headers17:36
morganand oslo_policy consumes that and compares against the policy.json17:36
JasonFdevananda: cool, yeah, that makes sense17:36
morganasserting authz success/failure17:36
morgannow. keep in mind that if you use a dedicated "ironic" domain, that is incompat with v2 (but v2 is deprecated, dying, going away, shuffled off the mortal coil...etc <insert more dead parrot jokes>)17:37
devanandamorgan: s/domain/tenant/ ?17:38
morgandevananda: domain is the v3 construct17:38
morganproject is under a domain17:38
jrollmorgan: for context, my reaction to "we need v3 to make this work right" was "wat" and "how do I bribe dolph and friends to finally get me v3 downstream"17:38
morganin v2 all projects (for compat) end up in the domain "default"17:38
morganjroll: most deployments support v3 now. devstack mostly is all v3, we expect v3-only to be gated on in newton17:39
devanandamorgan: so the way we want to isolate access to ironic resources for non-cloud-admin users is to assign them to a specific "baremetal" domain, and create specific roles within that17:39
morgandevananda: right.17:39
jrollmorgan: right, I understand, my deployment (rackspace) does not as I'm sure you've heard :)17:39
morganjroll: which i *think* means you're not fully defcore compliant :P but that... is a different topic for a different time.17:40
morgan(v3 auth is required for defcore last i checked - with exceptions etc)17:40
jrollmorgan: well, it's complicated, our user facing thing supports it or something17:40
*** htruta has joined #openstack-ironic17:40
* devananda gets a bucket of blue paint for the bikeshed17:41
jrollidk all the details except that I can't use v217:41
morganjroll: yeah i know you guys have an insane thing ;)17:41
morganjroll: but that aside17:41
*** ijw has quit IRC17:41
morgandevananda: it better be #0033cc17:41
morgandevananda: /bikeshed17:41
morgananyway, you can also use a "project" instead of a domain (project==tenant) that users need a role on to access ironic api17:42
devanandajroll: so - the policy checking that I'm hacking on ought to work in keystone v2, however, the way I think we should restrict access (eg, by adding users to a special "baremetal" domain) will not17:42
devanandaor maybe it will, sort of?17:42
* jroll wonders where we're getting bikesheddy here17:42
morgandomain_scope is not commonly used (even in keystone)17:42
morganwhere most everything else uses project_scope. *however* i think ironic's use is much more in line with a domain -- you don't want resources on this thing, it's a policy-authz only thing17:43
*** piet has quit IRC17:43
morganand projects tend to have the ability to own resources.17:43
jrolldevananda: surely role: would work on both17:43
jrollassign the role to a domain/tenant/project/whatever17:44
morgani need to check to see if we can assign a role across domains to a user (we should, if we don't... ugh)17:44
morganjroll: correct.17:44
*** daemontool has quit IRC17:44
morganjroll: it works on either it's a question of how the policy file references it: domain_id or project_id17:44
jrollmorgan: well, the policy file should use roles and then a domain or project with that role has access, no?17:45
morgan(and you ... unfortunately... need to use the _id_ since it's the only thing that is guaranteed "unique"17:45
morganjroll: yes. you would say something like--17:45
morganjroll:   bearmetal:node:list => role:admin and project_id:<project_id_expected>17:46
jroll"ironic_admin": "role:ironic_admin or role:admin"17:46
devanandamorgan: right -- by combinding role name and project_id17:46
*** thrash is now known as thrash|biab17:46
morganjroll: be careful, that allows for any one on any project (or domain) with the role "ironic_admin" or "admin" to access the apis17:46
jrollwell, I would hope not to use specific project_ids17:46
jrollah17:47
jroll:/17:47
morganyes i know :(17:47
devanandajroll: now you see the conundrum17:47
jrollso if I wanted 10 accounts to have access... what's the best thing? have them all in a project with the right access?17:47
morganit's a behavior i dislike. i would like a set of "global" roles that cannot ever be attached to a project17:47
morganjroll: assign the users <role X> on <known project>17:47
jrollalso, does "project_id:foo or domain_id:foo" work between both versions?17:48
morganyes.17:48
jrollok, cool17:48
morganbecause empty values should not *ever* break things17:48
morganand it's always project_id iirc now17:48
jroll(though I guess a deployer could use whichever matches the right keystone version)17:48
morganeven if it was a v2 token17:48
morganit's fine to use logical ors in the policy DSL17:49
jrolloh, so project_id works everywhere then?17:49
devanandaeg,     "ironic_admin": "role:ironic_admin and (project_id:baremetal or domain_id:baremetal)",17:49
devananda?17:49
morgandevananda: yep17:49
morganthough the parens are superfluous17:49
morganas and preceeds or in the DSL17:49
morganbut it makes it easier to read17:50
devanandaright - but improve readability17:50
*** morgan is now known as notmorgan17:50
notmorganthat should 100% work17:50
notmorganexcept .......17:51
notmorganyou can't use project_names iirc17:51
notmorganmust be the unfriendly uuids17:51
notmorganunless you explicitly build the context to include the name(s).17:51
devanandawat?17:51
notmorganand if you use names .. remember you must always specify the domain as well17:51
notmorgansince project names are not globally unique17:52
notmorganonly domains are...17:52
devanandanotmorgan: so that should be "project_id:baremetal AND domain_id:baremetal" ?17:52
notmorganeh. hard to explain on irc... sec. trying to figure that out17:52
notmorganso. project_id expects the project_id (uuid) always17:53
*** vdrok has quit IRC17:53
notmorgani do not think we can check against project name from the context provided from keystone middleware at the moment17:53
notmorganlet me see what KSM passes down17:53
*** piet has joined #openstack-ironic17:54
*** praneshp has joined #openstack-ironic17:54
notmorganso ok. we *do* pass down project_domain_name, domain_name, project_name17:55
notmorganso we should be able to encode that in the policy dsl. but i have never tried it17:55
notmorgandevananda: if you are using project or domain via name it would be:17:56
notmorganironic_admin: "role:ironic_admin and ((project_name:baremetal and domain_name:baremetal) or domain_name:baremetal)17:56
notmorgani *think*.17:57
thiagop-afkI did some time ago, it worked17:57
* notmorgan will need to create a keystone instance with that domain structure and snag a token to check against the policy file.17:57
thiagop-afk(like 2 years ago...)17:57
*** mjturek1 has joined #openstack-ironic17:58
devanandanotmorgan: that looks redundant17:58
notmorgandevananda: the first or is if you're using a role on the project17:58
notmorgandevananda: first part of the or.17:58
devanandanotmorgan: yes, but it's superceded by the second part of the or17:59
notmorgandevananda: the second paryt would be if you're using a domain role.17:59
*** yolanda has quit IRC17:59
notmorganoh wait sorry17:59
notmorganironic_admin: "role:ironic_admin and ((project_name:baremetal and project_domain_name:baremetal) or domain_name:baremetal)"17:59
notmorganthere17:59
devanandaahhh17:59
devanandathat looks logicaly correct17:59
notmorganand i don't 100% know if that works as you'd expect from a keystone token -> policy dict18:00
devanandai'll test it!18:00
notmorganbecause i don't know what gets shoved in for the matcher off the top of my head (i can figure it out though)18:00
* notmorgan nods.18:00
notmorgannow if you're in v2, you'd need to do project_domain_name:default18:01
notmorganor... uh18:01
notmorgansorry project_domain_id:default18:01
notmorgan(because the name is mutable and seems to be either Default or default or something else weird)18:01
notmorganbut the id is always "default" (and cannot be changed)18:01
notmorgan[and i *think* ksm populates "default" in the v2 case... and if it doesn't it's a massive security hole i need to fix]18:02
jrollso I got totally lost here18:02
jrollbut18:02
*** PollyZ has quit IRC18:03
jrollI'm thinking the best thing to do here is just use domain_id in the default18:03
jrolland document if you're on v2, use project_id18:03
devanandahttps://gist.github.com/devananda/beec03ac995a6e780ec66749949592a918:04
devanandaJasonF: notmorgan: how's that look ^ ?18:04
JasonFthat's pretty clean18:05
JasonFcan you push up the prototype code you used to get there, too?18:05
devanandaoops - it's also backwards18:05
devanandaJasonF: not yet, but I will18:06
devanandafixed the gist -- observer should be able to get/list :)18:06
notmorgandevananda: ok so, lets consider. do we want to recommend using a domain or a project?18:09
devanandanotmorgan: you tell me18:09
notmorganproject is more v2/v3 compat.18:09
notmorgan(key is "more")18:09
notmorganhmm.18:09
thiagop-afkdevananda: your is_cloud_admin is saying that basically every user that has admin role is cloud admin (in any project)18:09
JasonFthiagop-afk: yes, that's required for backwards compatibility18:10
JasonFthiagop-afk: oooh, you're saying it has to be admin in agmin?18:10
notmorgandevananda: ok, so lets recommend a project. most people don't know how to get a domain scoped role elegantly18:10
*** clif is now known as clif_h18:10
notmorgandevananda: just thinking that domain-scoped token is just not commonly used.18:10
devanandathiagop-afk: the current default policy rule is: "admin_api": "role:admin or role:administrator",18:11
openstackgerritOpenStack Proposal Bot proposed openstack/bifrost: Updated from global requirements  https://review.openstack.org/32544218:11
*** trown|lunch is now known as trown18:12
*** PollyZ has joined #openstack-ironic18:12
openstackgerritOpenStack Proposal Bot proposed openstack/ironic: Updated from global requirements  https://review.openstack.org/32482718:13
openstackgerritOpenStack Proposal Bot proposed openstack/ironic-inspector: Updated from global requirements  https://review.openstack.org/32482818:13
openstackgerritOpenStack Proposal Bot proposed openstack/ironic-lib: Updated from global requirements  https://review.openstack.org/32545018:13
openstackgerritOpenStack Proposal Bot proposed openstack/ironic-python-agent: Updated from global requirements  https://review.openstack.org/32545118:13
thiagop-afkdevananda: which default? I thought you were using https://github.com/openstack/keystone/blob/master/etc/policy.v3cloudsample.json as basis18:13
JasonFthiagop-afk: in Ironic, today18:13
devanandathiagop-afk: ironic/etc/ironic/policy.json18:13
JasonFhttps://github.com/openstack/ironic/blob/master/etc/ironic/policy.json18:13
thiagop-afkwe have policy on Ironic? Seriously?18:14
devanandayes18:14
JasonFbut today it only blocks password viewing18:14
thiagop-afkNever saw that, sorry18:14
devanandait doesn't _do_ much -- but it's been there for a while18:14
devanandaall it really does is enforce "are you an admin or not" and "can you see passwords"18:14
JasonFIt's going to do a lot more soon :)18:14
notmorgandevananda: and your gist looks correct as long as it tests sanely18:15
*** joprovost has quit IRC18:20
thiagop-afkgoing out for the day18:23
thiagop-afksee ya18:23
*** thiagop-afk has quit IRC18:24
*** cdearborn has joined #openstack-ironic18:27
*** mgoddard has quit IRC18:27
*** ijw has joined #openstack-ironic18:28
*** joprovost has joined #openstack-ironic18:32
JasonFHey btw; I usually plug my own reviews, but devananda's api-ref stuff is gorgeous rendered; if you haven't reviewed it yet you should (and it's on my list for today)18:33
*** joprovost1 has joined #openstack-ironic18:36
devanandaeg, https://review.openstack.org/#/c/313187/18:37
*** joprovost has quit IRC18:37
*** joprovost1 is now known as joprovost18:37
JasonFhttps://review.openstack.org/#/q/topic:api-ref+and+project:openstack/ironic is what I was using, it catches the other patch too18:37
devanandaah - better link18:38
*** rbrud has quit IRC18:42
*** [1]cdearborn has quit IRC18:42
*** thrash|biab is now known as thrash18:43
*** dprince has quit IRC18:45
openstackgerritGanesh Maharaj Mahalingam proposed openstack/bifrost: Make ansible installation directory configurable  https://review.openstack.org/32478918:46
*** dprince has joined #openstack-ironic18:46
*** PollyZ_ has joined #openstack-ironic18:48
*** rama_y has quit IRC18:49
*** PollyZ has quit IRC18:50
*** adu has quit IRC18:55
TheJuliagmmaha: is 324789 ready to go?18:55
openstackgerritMerged openstack/bifrost: Remove invalid directory_mode from ironic install  https://review.openstack.org/32226718:55
gmmahaTheJulia: yes, i think i have got all the things fixed18:55
gmmahahopefully i havent missed anything18:56
gmmahai thougth about updating docs, but not sure quite sure hwo to put this down18:56
TheJuliaok, thanks!18:56
gmmahawithout setting this flag, the doc is true as is..:)18:56
TheJuliaYeah :)19:00
*** rbrud has joined #openstack-ironic19:04
*** rama_y has joined #openstack-ironic19:13
TheJuliagmmaha: I think 324789 needs a release note or some sort of documentation19:13
TheJuliaalso, I think your about to merge conflict on testing changes19:14
TheJulia:(19:14
gmmahaTheJulia: ohh..19:14
gmmahai can try and rebase the patch.. shouldnt be hard..19:15
gmmahaand for the doc change, do suggestions on where i should land that?19:15
*** piet has quit IRC19:16
openstackgerritMerged openstack/bifrost: Unify testing scripts  https://review.openstack.org/29742419:16
TheJuliagmmaha: README.vagrant.rst  and likely a note in README.rst I think19:21
TheJuliagmmaha: the revision that merge conflicts just landed19:21
gmmahaTheJulia: thanks.. let me do the rebase and start fixing up the docs19:22
*** ametts has quit IRC19:22
openstackgerritChuck Carmack proposed openstack/bifrost: Add redeploy-dynamic playbook  https://review.openstack.org/32537919:22
gmmahaTheJulia: yeah saw that.. much easier change to jump onto and was thinking about unificaiton when i saw the places i had to make the INSTALL_ROOT change19:22
*** PollyZ_ has quit IRC19:23
*** garthb_ has joined #openstack-ironic19:24
*** garthb has quit IRC19:25
*** nicodemos is now known as nico-afk19:25
TheJuliagmmaha: oh, sorry!  I wasn't thinking for you to try and take that on19:25
TheJuliaI was just kind of tossing out "this would be kind of awesome and useful... we should do this... at some point" if that makes sense19:25
gmmahaTheJulia: :) totally.. i was just thinking that might be a nice thing to have hwen i was making my change19:26
cineramawe actually talked about this yesterday19:26
TheJuliabut I can totally see the ansible_install_root too19:26
TheJuliacinerama: sorry for missing that discussion, i've been crazy busy. :(19:27
*** yolanda has joined #openstack-ironic19:27
TheJuliagmmaha: awesome :)19:27
TheJuliagreetings yolanda19:27
* TheJulia wonders if yolanda has some awesome coffee19:28
yolandahi TheJulia , how are you?19:28
* yolanda is trying to setup a new laptop19:28
cineramagmmaha, i haven't looked at your updated change yet, working on a couple of other things19:28
cineramagmmaha, but thanks for contributing it!19:29
gmmahacinerama: aah, my pleasure.. :)19:29
gmmahaand no rush on my change.. will need to update the docs as well.. so should have a final review-able version soon19:29
openstackgerritChuck Carmack proposed openstack/bifrost: Add redeploy-dynamic playbook  https://review.openstack.org/32537919:29
TheJuliayolanda: crazy busy :(19:30
openstackgerritJohn L. Villalovos proposed openstack/ironic: Patch to test Grenade.  https://review.openstack.org/31775119:30
*** piet has joined #openstack-ironic19:30
yolandaTheJulia, not sure if that's good or bad :)19:30
ccarmackHi, I'm new to bifrost… is there a way to have bifrost_inventory call ironic only for a subset of nodes?19:34
TheJuliayolanda: it is a mixed curse I think19:35
TheJuliaccarmack: yes... I think so, one moment, I think there is a standing example19:35
ccarmackTheJulia: thanks :-)19:35
*** adu has joined #openstack-ironic19:36
TheJuliaccarmack: Something like https://github.com/openstack/bifrost/blob/master/playbooks/example-deploy-all-available-nodes.yaml ? :)19:36
jrollit's too nice out, see y'all tomorrow19:37
TheJuliajroll: enjoy!19:37
TheJuliajroll: tomorrow is saturday!19:37
jrollheh19:37
jrollsee y'all monday :D19:37
jrollhave a good weekend TheJulia19:37
ccarmackTheJulia:  I'd like to set BIFROST_INVENTORY_SOURCE to gather data from ironic, but only for a few nodes in my env (otherwise using ironic as the source goes to all my nodes)19:37
*** jjohnson2 has joined #openstack-ironic19:38
TheJuliaso out of the box, we just don't have that capability :(19:38
ccarmackTheJulia: ok, thats what I found reading the code…I was going to try extracting the shade function out of bifrost_inventory.py and calling it node by node19:40
ccarmackI tried making a json file for the inventory source, but I don't know things like the nic mac addresses…19:40
TheJuliaccarmack: Maybe node discovery, but we don't have that enabled19:42
TheJuliaand coreos can't discover the bmc address :(19:43
TheJuliaccarmack: you could also create a search of sorts via an env var... since you can't pass an argument really to the inventory program, a env var that you could use as a search19:44
ccarmackTheJulia: ok… that's an option… do you think adding this support to bifrost_inventory is a good addition?19:45
TheJuliawithout fully understanding the scenario, it _might_ be to do some sort of search, or to have an env var that defines a list of nodes to get instead of get_all_machines from shade19:47
TheJuliayeah, would be kind of easy to do either actually if blah exists, collect machines and build the data structure one at a time19:47
ccarmackok, I might take a crack at that..19:50
TheJuliaccarmack: feel free to ping me if you need a [in]sanity check ;)19:51
* TheJulia wonders how crazy she can make herself look right now19:51
ccarmackthanks TheJulia19:53
TheJuliano problem :)19:57
* TheJulia goes back to reviews19:57
*** joprovost has quit IRC19:58
-openstackstatus- NOTICE: The infrastructure team is taking Gerrit offline for maintenance this afternoon, beginning shortly after 20:00 UTC. We aim to have it back online around 00:00 UTC.19:59
*** rama_y has quit IRC20:00
*** e0ne has joined #openstack-ironic20:00
TheJuliaugh, well I know what I'm doing in the morning then :)20:00
*** joprovost has joined #openstack-ironic20:00
*** absubram has quit IRC20:01
*** adu has quit IRC20:01
NobodyCamso much for catching up on reviews20:01
openstackgerritStephanie Miller proposed openstack/bifrost: Make boolean usage consistent across playbooks  https://review.openstack.org/32131020:03
TheJuliaIt has been one of those weeks :(20:05
*** baoli_ has quit IRC20:06
*** rama_y has joined #openstack-ironic20:07
openstackgerritOpenStack Proposal Bot proposed openstack/bifrost: Updated from global requirements  https://review.openstack.org/32544220:07
* TheJulia blinks20:07
NobodyCamlol... didn't I just recheck that one20:08
-openstackstatus- NOTICE: Gerrit is offline for maintenance until 00:00 UTC20:09
*** ChanServ changes topic to "Gerrit is offline for maintenance until 00:00 UTC"20:09
NobodyCamthere we go20:10
cineramadoh20:11
* TheJulia thinks projector + beer == ??20:13
NobodyCam++20:14
*** rcernin has quit IRC20:15
*** wajdi_ has joined #openstack-ironic20:18
*** praneshp has quit IRC20:19
*** wajdi__ has joined #openstack-ironic20:20
*** wajdi has quit IRC20:22
*** wajdi_ has quit IRC20:23
*** wajdi__ has quit IRC20:24
devanandanotmorgan: I am now getting this error. "baremetal:node:get on ..... disallowed by policy (HTTP 500)"20:26
devanandanotmorgan: anything immediately come to mind?20:27
*** PollyZ has joined #openstack-ironic20:28
notmorganhuh not off the top of my head20:28
*** amotoki has quit IRC20:30
devanandak20:30
PollyZwhen installing devstack, how to get the password for the credentials on the local_conf, or do not need them20:30
*** yohoffman has quit IRC20:30
JasonFPollyZ: What exactly do you mean? The passwords are set in the local conf20:32
*** frontrunner has quit IRC20:32
JasonFPollyZ: also the openrc file should help you get creds sourced into your environment20:32
*** persia has quit IRC20:33
*** [1]cdearborn has joined #openstack-ironic20:34
*** persia has joined #openstack-ironic20:35
*** baoli has joined #openstack-ironic20:37
*** flwang1 has quit IRC20:38
*** amotoki has joined #openstack-ironic20:39
*** amotoki has quit IRC20:39
*** PollyZ has quit IRC20:41
*** joprovost has quit IRC20:43
*** lindycod_ has quit IRC20:43
*** dprince has quit IRC20:43
*** ayoung has quit IRC20:44
*** flwang has joined #openstack-ironic20:46
*** e0ne has quit IRC20:46
*** cdearborn has quit IRC20:49
*** wajdi has joined #openstack-ironic20:58
*** piet has quit IRC20:59
*** wajdi has quit IRC21:02
*** Goneri has quit IRC21:03
*** mbound has joined #openstack-ironic21:03
xavierrguys, while trying to cleaning a node (automatic option) I'm getting this error in last_error field: "Timeout reached while cleaning the node. Please check if the ramdisk responsible for the cleaning is running on the node. "21:04
xavierrany idea how to have it checked?21:04
*** ccarmack1 has joined #openstack-ironic21:04
*** ccarmack has quit IRC21:08
*** jjohnson2 has quit IRC21:08
*** mbound has quit IRC21:11
*** fragatin_ has joined #openstack-ironic21:19
*** harlowja has quit IRC21:20
*** fragatina has quit IRC21:22
*** praneshp has joined #openstack-ironic21:22
*** rbrud has quit IRC21:22
*** ElCoyote_ has quit IRC21:22
*** baoli has quit IRC21:22
*** baoli has joined #openstack-ironic21:24
*** ccarmack1 has quit IRC21:24
*** lascii is now known as alaski21:27
*** trown is now known as trown|outtypewww21:30
*** daemontool has joined #openstack-ironic21:31
*** baoli has quit IRC21:37
*** ccarmack has joined #openstack-ironic21:38
*** ccarmack has left #openstack-ironic21:38
*** PollyZ has joined #openstack-ironic21:39
PollyZJasonF: I tried with the source, but it gives me "Warning: setting legancy OS TENANT NAME to support cli tools"21:40
JasonFPollyZ: that warning is fine to ignore21:40
JasonFPollyZ: at least for getting started :)21:40
PollyZbut when I run "./stack.sh", it told me "line 494: generate-subunit: command not found", and the rest source command gives me "command not found"21:43
PollyZJasonF: I should install QEMU?21:45
devanandaJasonF: familiar with our api stack? I'm stuck on debugging why I'm not getting the right header in the right place21:45
JasonFPollyZ: are you following the ironic devstack howto to the letter?21:46
JasonFPollyZ: I've never had trouble following that21:46
MadasiPollyZ: did you find https://bugs.launchpad.net/devstack/+bug/1547379 ?21:46
openstackLaunchpad bug 1547379 in devstack "./stack.sh: line 488: generate-subunit: command not found" [Undecided,Invalid]21:46
JasonFPollyZ: if yuo're having trouble, I'd blow it away and start over. Make sure to use http://docs.openstack.org/developer/ironic/dev/dev-quickstart.html#deploying-ironic-with-devstack that guide21:47
JasonFMadasi: nice21:47
Madasiit's got a couple suggestions, but no promises :)21:47
JasonFdevananda: I'm good at troubleshooting things, even if I don't know lots about it21:47
JasonFdevananda: so try me :)21:47
devanandaJasonF: I put a print just after this line https://github.com/openstack/ironic/blob/master/ironic/api/hooks.py#L71  so I can see what the value is for auth_token21:47
devanandaJasonF: in my env, it *does not* match what I see in the output of "openstack -v -v baremetal list"21:48
devanandaI believe this is why all my auth checks are failing -- the valid token I'm passing to Ironic is, somehow, not making it into pecan.request21:48
JasonFWhy not just dump all the headers there?21:49
JasonFAnd see if the other values are what you expect?21:49
JasonFThat might lend a clue to what is happening21:49
devanandaJasonF: tried that. having trouble dereferencing the webob magic21:50
JasonFdevananda: is this a devstack?21:50
devanandaI get a lot of this sort of thing21:50
devanandaHEADERS: <webob.headers.EnvironHeaders object at 0x7f6be2af7588>21:50
devanandaJasonF: no21:50
devanandaJasonF: my plan was: get it working in a python venv first, then get it working in devstack, then push it up21:51
JasonFI was asking more for my ability to locally reproduce21:51
JasonFthan anything else21:51
devanandaI have python venv for ironic and keystone, both using a local mysql & rabbit (in a VM, technically)21:52
JasonFhttps://github.com/Pylons/webob/blob/39ac465c84c4c33b1c3c7b9700d6da5dfbf84692/webob/headers.py#L12421:53
JasonFdoes .keys show anything interesting/21:53
devanandanope21:53
devanandaanother webob object reference21:53
JasonFthat seems ... wrongish?21:53
devanandaHEADERS: <webob.headers.EnvironHeaders object at 0x7f8eb2ae05f8>21:54
devanandaKEYS: <filter object at 0x7f8eb2ae04e0>21:54
devanandaAUTH TOKEN: 17e0a13056fb42c0aed39788aabaf6a921:54
devanandaI agree21:55
JasonFwrap that KEYS call in list()21:55
JasonFand I think it'll make that readable for you21:55
devanandahah! yes21:56
JasonFnow is that interesting?21:56
JasonFor is it just another wtf-rabbithole21:56
*** _vsaienko has joined #openstack-ironic21:57
*** _vs has joined #openstack-ironic21:57
*** yolanda has quit IRC21:57
PollyZJasonF: I used Debian, maybe that is why21:58
devanandaJasonF: confirms that that object is real, but the same question remains21:58
devanandahere is the content now:21:58
devanandaKEYS: ['Accept: application/json', 'X-Auth-Token: e6ce11ef9d214e5db0f35cbb734e2818', 'Connection: keep-alive', 'User-Agent: python-ironicclient', 'X-Openstack-Ironic-Api-Version: 1.6', 'Host: 127.0.0.1:6385', 'Content-Type: applica21:58
devanandation/json', 'Accept-Encoding: gzip, deflate']21:58
devanandahowever -- that's still not the same auth token that my client claims to be sending21:59
JasonFcan you gist the full client output ov -vv along with the HEADERS/KEYS/AUTH_TOKEN for that request?21:59
* JasonF has a small hunch bit it's a weak one22:00
devanandanotmorgan: does openstackclient represent auth tokens in a different way than they are stored in the keystone db ?22:02
devanandanotmorgan: like -- if I'm comparing the output of "openstack -v -v ..." when it prints the REQ curl command, it includes this: -H "X-Auth-Token: {SHA1}150b...22:03
devanandabut I do not see that token in the keystone DB22:03
devanandawhat am I missing?22:03
JasonF$ echo e6ce11ef9d214e5db0f35cbb734e2818 | sha1sum22:04
JasonF7b3d1bf62894f5cc773b45410dea14cab2dd0835  -a22:04
devanandagah. serioulsy22:04
JasonFI think it sha1's the actual token in the log22:04
JasonFis that it?22:04
devanandanope22:04
JasonFif you wanna gist that output from openstack client I'd be real interested though22:05
devanandai just trunkated the keystone 'token' table and reran the command ONCE22:05
devanandayea, gisting now22:05
JasonFat this point I understand more about our api stack than I ever have before22:05
JasonFwanna keep troubleshooting so I keep learning :)22:05
*** JasonF is now known as JayF22:05
*** fragatin_ has quit IRC22:09
devanandaJayF: https://gist.github.com/devananda/c83b23c5a666679997404204f8415ee522:10
*** fragatina has joined #openstack-ironic22:10
JayFthe tokens match in this example22:11
*** [1]cdearborn has quit IRC22:11
JayFthe token in the RESP BODY is db6[snip]446 and that's what was logged22:11
devanandaJayF: take a look at line 6322:16
devanandaJayF: you're right - it's the correct auth token id. the sha1sum thing was throwing me off earlier22:16
devanandaJayF: however, the local context is still missing all the information about that user22:16
notmorgandevananda: uhm.22:16
notmorgandevananda: if you're using fernet there are not toekns in the db22:17
notmorgandevananda: if tou use uuid, they will be indexed by the short token.22:17
notmorganid (32bytes hex)22:17
notmorgandevananda: and yes the {sha1} is different than what is in the db22:17
notmorganthat is a security thing22:18
devanandanotmorgan: got it22:18
JayFdevananda: you don't pass in any of that context, it appears22:18
devanandaJayF: I found the problem22:18
JayFdevananda: is Ironic supposed to fetch it from the auth token and apply it?22:18
devanandahttps://github.com/openstack/ironic/blob/master/ironic/api/hooks.py#L121 is simply non-functional22:18
notmorgandevananda: it's the sha of the id so the output is sane to log / paste / etc22:18
notmorgansince token ids are considered secure info (they are your AuthZ context)22:18
JayFdevananda: TrustedCallHook returns nothing when I search against the pecan codebase22:19
devanandaJayF: that's defined in Ironic22:19
devanandathe problem seems to be that we're not pulling the user, roles, etc, out of the auth token22:19
devanandabut rather, looking for them in the headers22:20
devanandahttps://github.com/openstack/ironic/blob/master/ironic/api/hooks.py#L7322:20
JayFyeah, traced it back now22:20
devanandathat "creds" dict gets stored into the pecan.request.context22:20
devanandawhich is then checked everywhere else22:20
JayFthat makes a lot of sense22:20
JayFIronic will have to add an api call to keystone to fetch info about the user with token22:20
devanandabut policy.enforce() doesn't do anything with the auth token22:20
devanandayes22:21
JayFI suspect other apps have to do the same thing?22:21
devanandaI dunno?22:21
devanandanotmorgan: thoughts ^ ?22:21
notmorgandevananda: uhm.. sec, catching up22:21
JayFI'll look at the implementation of it in another project22:21
notmorganmiddleware should provide all the info you need22:22
notmorgankeystonemiddleware for a token22:22
notmorganyou shouldn't need to ask keystone outside of that unless ytou're doing things other than consuming the token data22:22
notmorganJayF: don't look at keystone for an example, we're bad, look at nova for how they receive it22:22
notmorganJayF: or cinder22:23
JayFnova is what I have open22:23
* notmorgan nods.22:23
*** _vsaienko has quit IRC22:24
*** _vs has quit IRC22:24
*** daemontool has quit IRC22:26
devanandanotmorgan: something's not doing that, at least in my env22:26
notmorgandevananda: i'll need to circle back on that, time for me to head north22:27
devanandanotmorgan: ack. ciao!22:27
notmorgandevananda: and enjoy the weekend :)22:27
JayFdevananda: https://github.com/openstack/nova/blob/master/nova/api/auth.py#L74 I can't find in here either where nova is fetching that info22:27
JayFdevananda: it looks like it expects them in the headers22:27
notmorganJayF: that would be what i would expect22:27
devanandaJayF: expects them in the headers, when not in the token, i thought?22:27
devanandahttp://docs.openstack.org/developer/keystonemiddleware/api/keystonemiddleware.auth_token.html#what-auth-token-adds-to-the-request-for-use-by-the-openstack-service22:27
devanandahm, no, never mind22:28
devanandathis isn't about the "service user"22:28
*** mbound has joined #openstack-ironic22:30
JayFhttps://github.com/openstack/nova/blob/2a0fce7a44d4050e112a6b987f24236627632d2c/nova/tests/unit/api/test_auth.py#L3822:31
JayFeven in the tests, they always pass in tenantid, auth token, and a service catalog22:31
* JayF is missing something22:32
devanandahah!22:33
devanandafound my problem22:34
JayFhttps://github.com/openstack/nova/blob/ced89e7b26b3cff323852e1d8a9c6db80334f4dd/etc/nova/api-paste.ini#L77 hmm... looks like api-paste has them using keystonemiddleware.auth_token22:34
devananda    if pecan_config.app.enable_acl:22:34
devananda        app = acl.install(app, cfg.CONF, pecan_config.app.acl_public_routes)22:34
*** PollyZ has quit IRC22:34
devanandaI had removed those two lines because I'm implementing the ACL checks at a different layer22:34
devanandahowever22:34
JayFah I had read that code and assumed it was still being run22:34
devanandathat's actually where the keystonemiddleware is getting loaded22:35
JayFaha22:35
JayFyep, and I traced it all the way back through for Nova too22:36
JayFIDK if I've been helpful in tshooting this, but this is super helpful to me at least22:36
JayFyep, and the keystonemiddleware AuthProtocol classes handle populating all that data22:37
jrollthe middleware should return that stuff22:39
* jroll now sees deva found it22:39
*** Jabadia has quit IRC22:40
devanandaaaaaand its working22:44
devanandaalso, gerrit is down22:44
jrollhence my early friday (why am I here)22:44
JayFniiice22:44
devanandaJayF: https://github.com/devananda/ironic/commit/a0250681a233257f2ca4f89767b7f96a8d4bb16d22:46
JayFyep that's essentially identical to how nova is doing it22:47
JayFglorious22:47
JayFdevananda: am I going to block you on anything if I don't have that draft spec up until Monday morning/22:50
*** harlowja has joined #openstack-ironic22:51
*** lindycoder has joined #openstack-ironic22:52
*** sabeen has joined #openstack-ironic22:54
*** sabeen1 has quit IRC22:55
devanandaJayF: nope22:57
devanandaupdated my commit, because that one didn't quite work, and this one is much better: https://github.com/devananda/ironic/commit/86dd3c8e9b06b87972494a6a251e9a029cbae11322:57
JayFcool; thanks. got tied up in some unrelated things earlier and wanted to push that to the weekend22:57
devanandaI'll push the code to gerrit later today / tomorrow22:57
devanandanext steps for me: add policy checks to all the other places in the code, then start testing in devstack22:57
devanandaI expect there will be a few changes, eg. creating the 'baremetal' tenant in ironic/devstack/lib/ironic and such as well22:58
devanandabefore we can test and merge this code22:58
JayFabsolutely, but from my perspective, I thought I was going to be doing most of this work when I woke up this morning22:58
devanandabut that one ^ should be enough to get anyone else started22:58
devanandahehehe :)22:58
JayFand by this afternoon someone else has a proof of concept working22:58
JayFI won the open source community lottery \o/22:58
JayFlol22:58
devanandaJayF: I'd been meaning to hack on this for a few months, and notmorgan and I finally found the rihgt time to sit down together, for the last two days, and brainstorm22:59
devanandaanyway, time for me to go offline and enjoy the friday air22:59
*** praneshp has quit IRC22:59
JayFAbsolutely, I'm going to do the same and do that spec this weekend with fresher eyes22:59
devanandaJayF: thanks (in advance) for writing the spec  :)22:59
JayFno problem23:00
jrolldevananda: just a nit, json doesn't allow comments, does policy.json? :P23:00
JayFit certainly makes github angry, lol23:00
jrollheh yeah, that's what my thought was23:00
devanandayea, it works just fine ...23:00
jrollinteresting23:01
* jroll wonders what parser that uses23:01
devanandainorite?23:01
devanandamagic oslo parsers23:01
*** jrist has quit IRC23:01
jrolllovely23:01
devanandaFYI - how I'm bootstrapping my local keystone env to test this -- https://gist.github.com/devananda/c7f6fdf105ed9ce948a18223632682a223:01
*** lindycoder has quit IRC23:01
*** jrist has joined #openstack-ironic23:02
jrollTIL yaml.safe_load can load json O_o23:02
jroll>>> yaml.safe_load('{"foo": "bar"}')23:03
jroll{'foo': 'bar'}23:03
jrollhttps://github.com/openstack/oslo.policy/blob/master/oslo_policy/policy.py#L31123:03
*** lindycoder has joined #openstack-ironic23:03
JayFhttps://github.com/openstack/nova/blob/master/etc/nova/policy.json https://github.com/openstack/cinder/blob/master/etc/cinder/policy.json https://github.com/openstack/glance/blob/master/etc/policy.json23:04
*** r-daneel has quit IRC23:04
JayFnone of those have # comments in the example23:04
jrollnice patch though devananda, I like23:05
jrollJayF: they probably don't realize the parser can handle it, comments are invalid in json23:05
JayFSure; I'd say if the file ends in .json it should be json though23:05
jroll(one of the arguments for yaml)23:05
jrollalso, I'd love to go yaml here (it's supported), but idk if it's worth being different23:05
jroll++23:05
JayFI mean, if we do policy in code23:05
*** lindycoder has quit IRC23:05
JayFthat file is going to be a hell of a lot smaller23:06
jrollah true23:06
jrollanother ++ for you23:06
*** sabeen has quit IRC23:08
*** sabeen has joined #openstack-ironic23:08
*** harlowja has quit IRC23:10
*** harlowja has joined #openstack-ironic23:10
*** sabeen has quit IRC23:11
*** lindycoder has joined #openstack-ironic23:11
*** sabeen has joined #openstack-ironic23:11
*** adu has joined #openstack-ironic23:16
*** causten_ has joined #openstack-ironic23:17
*** ppiela has quit IRC23:17
*** lindycoder has quit IRC23:18
*** ChrisAusten has quit IRC23:19
*** adu has quit IRC23:32
*** mtanino has quit IRC23:37
*** praneshp has joined #openstack-ironic23:38
*** causten_ has quit IRC23:42
*** mbound has quit IRC23:46
*** johnthetubaguy has quit IRC23:53
*** johnthetubaguy has joined #openstack-ironic23:53
*** agordeev has quit IRC23:53
*** evgenyl has quit IRC23:53
*** agordeev has joined #openstack-ironic23:54
*** evgenyl has joined #openstack-ironic23:55
*** garthb_ has quit IRC23:58

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