Thursday, 2014-12-18

*** packet has quit IRC00:00
*** bradjones has quit IRC00:01
*** bradjones has joined #openstack-horizon00:03
*** sbfox has joined #openstack-horizon00:03
*** jgravel has joined #openstack-horizon00:13
*** DaveJ__ has quit IRC00:28
*** yingjun has joined #openstack-horizon00:32
*** nikunj2512_ has quit IRC00:32
*** nikunj2512_ has joined #openstack-horizon00:34
openstackgerritMerged openstack/horizon: Integration tests - 3 new form fields  https://review.openstack.org/13309500:51
*** ongk has quit IRC00:52
*** ongk has joined #openstack-horizon00:52
*** ongk has quit IRC00:52
*** radez is now known as radez_g0n300:54
*** hinnant has quit IRC00:55
*** hurgleburgler has quit IRC00:55
*** sbfox has quit IRC00:57
*** lhcheng_ has joined #openstack-horizon00:59
*** lhcheng has quit IRC01:02
*** ZZelle_ has quit IRC01:08
*** Sukhdev has quit IRC01:14
*** rm_work is now known as rm_work|away01:17
*** liuyulong has joined #openstack-horizon01:19
*** jgravel_ has joined #openstack-horizon01:20
*** jgravel has quit IRC01:23
*** aliceR has quit IRC01:30
*** bradjones has quit IRC01:32
*** kumartin has quit IRC01:32
*** gyee has quit IRC01:37
*** dboik has joined #openstack-horizon01:37
*** zhenguo has joined #openstack-horizon01:39
*** wuhg has joined #openstack-horizon01:47
*** dboik_ has joined #openstack-horizon01:53
*** mitz has joined #openstack-horizon01:54
*** liuyulong has quit IRC01:56
*** dboik has quit IRC01:56
*** sbfox has joined #openstack-horizon01:59
*** lhcheng_ has quit IRC02:00
openstackgerritThai Tran proposed openstack/horizon: WIP Consolidating conf and scripts  https://review.openstack.org/14145702:02
openstackgerritThai Tran proposed openstack/horizon: WIP Consolidating conf and scripts  https://review.openstack.org/14145702:03
*** mitz_ has joined #openstack-horizon02:04
*** nlahouti has joined #openstack-horizon02:09
*** david-lyle is now known as david-lyle_afk02:10
*** jasondotstar has joined #openstack-horizon02:11
*** Longgeek has quit IRC02:11
*** sbfox has quit IRC02:12
*** nlahouti has quit IRC02:13
*** nlahouti has joined #openstack-horizon02:13
*** hurgleburgler has joined #openstack-horizon02:14
*** jgravel_ has quit IRC02:18
*** jgravel has joined #openstack-horizon02:19
*** amotoki has joined #openstack-horizon02:38
*** yingjun has quit IRC02:45
*** nikunj2512_ has quit IRC02:49
*** liuyulong has joined #openstack-horizon02:59
*** lblanchard has joined #openstack-horizon03:01
*** Poornima has joined #openstack-horizon03:01
*** lhcheng has joined #openstack-horizon03:01
*** lblanchard has quit IRC03:03
*** nlahouti has quit IRC03:03
*** liuyulong has quit IRC03:04
*** lhcheng has quit IRC03:06
*** lblanchard has joined #openstack-horizon03:06
*** lblanchard has quit IRC03:10
*** dboik_ has quit IRC03:13
*** lblanchard has joined #openstack-horizon03:13
*** dboik has joined #openstack-horizon03:16
*** cptsalty has quit IRC03:27
*** julim has joined #openstack-horizon03:29
*** nlahouti has joined #openstack-horizon03:41
*** masco has joined #openstack-horizon03:45
*** teju has joined #openstack-horizon03:46
*** dboik has quit IRC03:56
*** sbfox has joined #openstack-horizon03:59
*** hurgleburgler has quit IRC04:03
*** sbfox has quit IRC04:12
openstackgerritKanchan Gupta proposed openstack/horizon: Proper error message is shown.  https://review.openstack.org/14061404:14
*** echevemaster has quit IRC04:16
*** echevemaster has joined #openstack-horizon04:18
*** harlowja is now known as harlowja_away04:19
openstackgerritThai Tran proposed openstack/horizon: WIP Consolidating conf and scripts  https://review.openstack.org/14145704:19
*** lblanchard has quit IRC04:19
openstackgerritMerged openstack/horizon: Test's random name gen now uses uuid4  https://review.openstack.org/14190604:20
*** sayan has joined #openstack-horizon04:21
openstackgerritThai Tran proposed openstack/horizon: WIP Consolidating conf and scripts  https://review.openstack.org/14145704:23
*** lblanchard has joined #openstack-horizon04:31
*** jgravel_ has joined #openstack-horizon04:36
*** hurgleburgler has joined #openstack-horizon04:36
*** jgravel has quit IRC04:40
*** yingjun has joined #openstack-horizon04:40
*** lblanchard has quit IRC04:45
*** lhcheng has joined #openstack-horizon04:50
*** hurgleburgler has quit IRC04:51
*** esp has left #openstack-horizon04:52
*** lhcheng has quit IRC04:55
*** jgravel__ has joined #openstack-horizon04:58
*** jgravel_ has quit IRC05:01
*** Poornima has quit IRC05:01
*** ongk has joined #openstack-horizon05:01
*** nikunj2512 has joined #openstack-horizon05:09
*** flwang has quit IRC05:11
*** tzumainn has quit IRC05:14
*** jgravel_ has joined #openstack-horizon05:14
*** lhcheng has joined #openstack-horizon05:16
openstackgerritNikunj Aggarwal proposed openstack/horizon: Fixes resource name problem in "Resources Usage" tab  https://review.openstack.org/12530705:17
*** jgravel__ has quit IRC05:18
openstackgerritNikunj Aggarwal proposed openstack/horizon: Adds the security group id besides the name in Manage Rules  https://review.openstack.org/13095605:19
*** jgravel__ has joined #openstack-horizon05:21
*** nlahouti has quit IRC05:24
*** jgravel_ has quit IRC05:25
*** Veera_ has joined #openstack-horizon05:26
*** Poornima has joined #openstack-horizon05:26
*** nlahouti has joined #openstack-horizon05:26
*** rushiagr_away is now known as rushiagr05:39
openstackgerritNikunj Aggarwal proposed openstack/horizon: Adds support to accept IPv6 in VIP Address for LB Pool  https://review.openstack.org/14267005:48
*** jasondotstar has quit IRC05:48
*** jasondotstar has joined #openstack-horizon05:49
openstackgerritArvinder Singh proposed openstack/horizon: Expose Image owner info in the image table  https://review.openstack.org/14267105:54
openstackgerritArvinder Singh proposed openstack/horizon: Expose Image owner info in the image table  https://review.openstack.org/14267205:54
*** ongk has quit IRC05:58
openstackgerritSwati Shukla proposed openstack/horizon: Download Reports of Horizon Detailed Views, in dfferent formats  https://review.openstack.org/14267606:01
openstackgerritOpenStack Proposal Bot proposed openstack/horizon: Imported Translations from Transifex  https://review.openstack.org/14267706:04
*** k4n0 has joined #openstack-horizon06:10
*** echevemaster has quit IRC06:13
*** yingjun has quit IRC06:19
openstackgerritLin Hua Cheng proposed openstack/horizon: Fix Firewalls panel to override the right method  https://review.openstack.org/14268706:33
*** cody-somerville has quit IRC06:34
*** jgravel has joined #openstack-horizon06:37
*** jgravel__ has quit IRC06:37
*** jtomasek has joined #openstack-horizon06:38
*** jgravel_ has joined #openstack-horizon06:50
*** jgravel has quit IRC06:52
*** mrunge has joined #openstack-horizon06:58
*** rushiagr is now known as rushiagr_away07:02
openstackgerritArvinder Singh proposed openstack/horizon: Use bdmv2 format when instance is boot from volume  https://review.openstack.org/13525307:05
*** sayan has quit IRC07:07
*** yingjun has joined #openstack-horizon07:15
*** rdopiera has joined #openstack-horizon07:15
*** rdopiera has quit IRC07:16
*** rdopiera has joined #openstack-horizon07:16
*** jcoufal has joined #openstack-horizon07:18
*** jgravel has joined #openstack-horizon07:18
*** jgravel_ has quit IRC07:21
openstackgerritArvinder Singh proposed openstack/horizon: Expose Image owner info in the image table  https://review.openstack.org/14267107:23
openstackgerritNikunj Aggarwal proposed openstack/horizon: Allows to specify ip during port create  https://review.openstack.org/14269507:26
rdopierahello everyone!07:29
nikunj2512hello07:30
*** jgravel_ has joined #openstack-horizon07:32
*** my_openstack_use has joined #openstack-horizon07:32
my_openstack_usehello07:32
openstackgerritVincent Untz proposed openstack/horizon: Fix display of ports when associating floating IP  https://review.openstack.org/14260507:32
mrungeradomir, good morning!07:33
rdopieramrunge: sorry, I wasn't clear about my pto, I'm back already, until Christmas07:34
*** jgravel has quit IRC07:34
mrungerdopiera, no worries! I hope you could enjoy your time07:34
my_openstack_useHorizon documentation states here that you can add new panels using pluggable setting files and if panel group is specified as 'default', the panel will show up on its own: http://docs.openstack.org/developer/horizon/topics/settings.html#pluggable-settings-for-panels07:35
*** alexpilotti has joined #openstack-horizon07:35
my_openstack_useWe used to have Icehouse and used this feature07:35
mrungerdopiera, sad, you weren't available for a good wrestle match with r1chardj0n3s_afk yesterday at the meeting07:35
rdopieramrunge: yeah, I just read the logs07:36
my_openstack_usenow we have upgraded to juno (version 2014.2)  and this geature doesn't seem to work anymore07:36
my_openstack_useall panels added through pluggable settings now show up in 'Others', even if the panel group specified already exists07:38
my_openstack_useis this a bug or has this feature been removed on purpose?07:39
rdopieramy_openstack_use: sounds like a bug07:39
mrungemy_openstack_use, if I remember correctly, this is currently a known issue and a fix is under way07:39
mrungethat should be this one here: https://review.openstack.org/#/c/128133/07:40
my_openstack_usemrunge: Ok, thanks for quick notice,  I'll be looking forward to the fix07:41
*** lhcheng has quit IRC07:41
*** nlahouti has quit IRC07:42
*** my_openstack_use has left #openstack-horizon07:43
*** nlahouti has joined #openstack-horizon07:43
*** jgravel has joined #openstack-horizon07:45
*** jgravel_ has quit IRC07:47
*** jgravel_ has joined #openstack-horizon07:49
*** jgravel has quit IRC07:52
*** e0ne has joined #openstack-horizon07:53
*** e0ne has quit IRC07:54
*** pcaruana has joined #openstack-horizon07:56
*** jtomasek has quit IRC07:57
*** jgravel__ has joined #openstack-horizon07:58
*** nlahouti has quit IRC08:00
*** jgravel_ has quit IRC08:01
openstackgerritVincent Untz proposed openstack/horizon: Fix display of ports when associating floating IP  https://review.openstack.org/14260508:01
*** sayan has joined #openstack-horizon08:10
*** Shohei has joined #openstack-horizon08:13
*** amotoki has quit IRC08:15
*** jgravel_ has joined #openstack-horizon08:15
*** jgravel__ has quit IRC08:17
*** jgravel__ has joined #openstack-horizon08:18
*** jgravel_ has quit IRC08:21
*** zz_ttrifonov is now known as ttrifonov08:28
*** romainh has joined #openstack-horizon08:33
nikunj2512mrunge: Hi, need your help with the testcase for this patch - https://review.openstack.org/#/c/142695/108:35
nikunj2512mrunge: I am not able to figure out what is the issue08:35
*** JeanBriceCombebi has joined #openstack-horizon08:40
*** exploreshaifali has joined #openstack-horizon08:44
*** jgravel__ has quit IRC08:44
*** JeanBriceCombebi has quit IRC08:44
*** jgravel has joined #openstack-horizon08:45
*** Ala has joined #openstack-horizon08:46
*** sayan_ has joined #openstack-horizon08:47
*** jgravel_ has joined #openstack-horizon08:53
*** sayan_ has quit IRC08:54
*** alexpilotti has quit IRC08:56
*** jgravel has quit IRC08:57
*** akrivoka has joined #openstack-horizon08:57
*** JeanBriceCombebi has joined #openstack-horizon08:58
*** jgravel__ has joined #openstack-horizon09:02
*** jgravel_ has quit IRC09:05
*** jpich has joined #openstack-horizon09:07
*** jgravel_ has joined #openstack-horizon09:08
*** athomas has joined #openstack-horizon09:10
*** jgravel__ has quit IRC09:11
*** MaxV has joined #openstack-horizon09:17
*** ygbo has joined #openstack-horizon09:17
*** jgravel__ has joined #openstack-horizon09:17
mrungenikunj2512, please add a test to verify, the form accepts ipv6 addresses09:19
openstackgerritNikita Konovalov proposed openstack/horizon: [Data_processing] fix job_executions table  https://review.openstack.org/12592709:20
*** jgravel has joined #openstack-horizon09:20
*** jgravel_ has quit IRC09:21
*** gerchardon has quit IRC09:22
nikunj2512mrunge: i am not taking about the patch which you reviewed. please open the URI in browser. It is a different review09:22
*** jgravel__ has quit IRC09:22
mrungenikunj2512, ok, I see 4 unaddressed comments09:23
mrungenikunj2512, that is failing, because of a test failed. did you try to run ./run_tests.sh at all?09:24
nikunj2512mrunge: that i can fix.. please see the zuul log... http://logs.openstack.org/95/142695/1/check/gate-horizon-python27/5d953b7/09:24
nikunj2512mrunge: it gave -1 because test failed.. and from last night i am trying to fix them and still not able to :-(09:25
nikunj2512mrunge: Yes.. it is failing in my dev system.. i uploaded the patch because i thought i will ask for help once patch was up because zuul will tell what is failed09:26
mrungenikunj2512, you mean something like this: UnexpectedMethodCallError: Unexpected method call network_get.__call__(<class 'django.http.HttpRequest'>, '82288d84-e0a5-42ac-95be-e6af08727e42') -> None09:26
mrungeI see09:26
nikunj2512mrunge: Yes.. it is failing in my dev system.. i uploaded the patch because i thought i will ask for help once patch was up because zuul will tell what is failed09:26
nikunj2512mrunge: Yes..09:26
nikunj2512mrunge:  i am not figureout why09:26
mrungenikunj2512, I'm in the middle of something else. maybe I'll have time to come back to that later; sorry09:28
nikunj2512mrunge:  ok.. can you ping me when you have time09:28
nikunj2512?09:28
*** yingjun has quit IRC09:29
mrungenikunj2512, I can try that. but this shouldn't stop you from trying to solve this yourself09:29
openstackgerritSwati Shukla proposed openstack/horizon: LoadBalancers' Add Member form has missing asterisk for 'Members' list  https://review.openstack.org/13954609:29
nikunj2512mrunge:  ok... i am still trying to solve it09:30
*** zhenguo has quit IRC09:30
*** jgravel_ has joined #openstack-horizon09:31
*** Poornima has quit IRC09:32
*** jamielennox is now known as jamielennox|away09:32
*** JeanBriceCombebi has quit IRC09:33
*** jgravel has quit IRC09:34
*** JeanBriceCombebi has joined #openstack-horizon09:36
*** Poornima has joined #openstack-horizon09:36
*** e0ne has joined #openstack-horizon09:39
openstackgerritSwati Shukla proposed openstack/horizon: Add Member form's "Member Address" field - Required asterisk missing  https://review.openstack.org/13733109:39
openstackgerritMerged openstack/horizon: Check input for Log length  https://review.openstack.org/10271209:52
*** sayan has quit IRC10:03
*** e0ne is now known as e0ne_10:05
*** rushiagr_away is now known as rushiagr10:06
*** jgravel__ has joined #openstack-horizon10:08
*** e0ne_ is now known as e0ne10:09
*** jgravel_ has quit IRC10:12
*** ZZelle has quit IRC10:14
openstackgerritOpenStack Proposal Bot proposed openstack/horizon: Updated from global requirements  https://review.openstack.org/14271310:14
*** romainh1 has joined #openstack-horizon10:19
*** romainh has quit IRC10:19
*** cedrics has joined #openstack-horizon10:20
*** jgravel_ has joined #openstack-horizon10:20
openstackgerritOpenStack Proposal Bot proposed openstack/tuskar-ui: Updated from global requirements  https://review.openstack.org/14271610:21
*** jtomasek has joined #openstack-horizon10:24
*** jgravel__ has quit IRC10:24
*** jgravel has joined #openstack-horizon10:24
*** jgravel_ has quit IRC10:26
*** alexpilotti has joined #openstack-horizon10:35
*** athomas has quit IRC10:43
openstackgerritMerged openstack/horizon: Base Glance Metadata Definitions Admin UI  https://review.openstack.org/10406310:48
openstackgerritNikunj Aggarwal proposed openstack/horizon: Allows to specify ip during port create  https://review.openstack.org/14269510:49
*** athomas has joined #openstack-horizon10:51
*** JeanBriceCombebi has quit IRC10:51
openstackgerritMerged openstack/tuskar-ui: Updated from global requirements  https://review.openstack.org/14271610:56
*** jgravel has quit IRC11:09
*** nikunj2512 has quit IRC11:10
*** jgravel has joined #openstack-horizon11:15
*** cedrics has quit IRC11:19
*** aix has quit IRC11:23
*** masco has quit IRC11:30
*** Poornima has quit IRC11:37
*** sayan has joined #openstack-horizon11:39
*** exploreshaifali has quit IRC11:47
*** jgravel_ has joined #openstack-horizon11:48
*** jgravel has quit IRC11:48
*** Poornima has joined #openstack-horizon11:51
*** athomas has quit IRC11:53
*** nikunj2512_ has joined #openstack-horizon11:54
openstackgerritMatthias Runge proposed openstack/django_openstack_auth: add last_activity to session  https://review.openstack.org/14273711:56
*** dsneddon has quit IRC11:59
*** athomas has joined #openstack-horizon11:59
*** Poornima has quit IRC11:59
*** dsneddon has joined #openstack-horizon12:00
*** Longgeek has joined #openstack-horizon12:06
*** cedrics has joined #openstack-horizon12:09
*** jgravel__ has joined #openstack-horizon12:11
*** e0ne is now known as e0ne_12:13
*** jgravel_ has quit IRC12:15
*** ZZelle has joined #openstack-horizon12:15
*** vkmc has joined #openstack-horizon12:22
*** e0ne_ is now known as e0ne12:22
*** masco has joined #openstack-horizon12:25
*** alexpilotti has quit IRC12:26
openstackgerritMerged openstack/horizon: Imported Translations from Transifex  https://review.openstack.org/14267712:28
*** aix has joined #openstack-horizon12:32
*** Longgeek has quit IRC12:33
*** Longgeek has joined #openstack-horizon12:33
*** teju has quit IRC12:36
*** JeanBriceCombebi has joined #openstack-horizon12:37
*** JeanBriceCombebi has quit IRC12:42
openstackgerritVincent Untz proposed openstack/horizon: Fix display of ports when associating floating IP  https://review.openstack.org/14260512:43
zigor1chardj0n3s_afk: FYI, now I know bower, and I even less want to see any occurrence of it on my system.12:43
zigoAnd I think it's a *very* bad idea to use such a thing.12:43
zigoSure, the XStatic stuff is more work, but at least we have a little bit control of things that we use.12:43
zigoWhat I'm very nervous is also to pull from any random git repo, this seems really not appropriate at all, and prone to all sorts of issues (security or otherwise).12:44
zigoLast, bower creates a directory structure which will be really annoying to deal with.12:45
zigoI know about bower since I had to work with it for Fuel (and its web interface).12:45
zigoI don't like at all the forest of symlinks I had to create.12:45
rdopierazigo: for Horizon you won't need symlinks12:47
zigordopiera: How come? Horizon wont use the directory structure of bower then?12:47
rdopierazigo: we can use the STATICFILES_DIRS setting12:47
rdopierazigo: we would have that setting different for when using bower, and different when packaged12:48
rdopierazigo: it's used to "mount" the static directories to urls12:49
rdopierazigo: right now it takes the paths from xstatic12:49
rdopierazigo: but it can instead have them hardcoded12:49
rdopierazigo: then you have all paths in one place12:49
zigordopiera: This doesn't always work.12:50
rdopierazigo: how come?12:50
rdopierazigo: see https://github.com/openstack/horizon/blob/master/openstack_dashboard/settings.py#L153-L18812:50
zigoBecause what bower will download may have a different directory structure than the JS lib has.12:50
zigoI already pointed this out...12:50
zigoSo pointing to a directory may just not be enough.12:51
rdopierazigo: how would that happen?12:51
zigoFor a single file, it does, for multiple, sometimes it doesn't.12:51
rdopierazigo: bower downloads and builds the library the same way you would for the package12:51
rdopierazigo: so how would it come up with different paths?12:52
zigordopiera: Very simple. Upstream releases a version of the lib. Then decides for whatever reason that the directory structure should change. Then in Debian, in order to not break 239489234 packages, we just keep the old directory structure...12:52
rdopierazigo: aah, but that's specifically a Debian problem, and I suppose you have a solution for it already, otherwise you wouldn't do it12:52
zigoSure, we *COULD* fix the 239489234 packages of the Debian archive instead ...12:52
zigordopiera: The solution is a symlink forest ...12:53
rdopierazigo: sure, but xstatic doesn't help there12:53
zigoHaving a symlink for each js file.12:53
zigordopiera: It does, because that's where I do the symlinks.12:53
rdopierazigo: if you effectively fork a library, you have to maintain that fork, that's normal12:53
openstackgerritMerged openstack/horizon: Updated description of update user form  https://review.openstack.org/14234912:53
zigordopiera: That's not up to me to decide for all of the Debian archive.12:53
rdopierazigo: so the number of symlinks is the same, it's just the fact that they are all in one place instead of multiple places?12:53
openstackgerritMerged openstack/horizon: Updated from global requirements  https://review.openstack.org/14271312:53
zigoI only maintain a subset...12:54
rdopierazigo: also, you can use that STATICFILES_DIRS even for individual files, if you need to have that fine-grained control12:54
zigordopiera: Also, are we going to ensure versions that we use with bower? I'm scared it becomes hell with versions.12:54
zigoLike, it's going to get the very latest, always ...12:55
zigoWhich would become not practical for me.12:55
rdopierazigo: from what I was told, bower lets you pin versions just like pip does12:55
rdopierazigo: how is a 100 symlinks practical, but a piece of settings file with 100 paths not?12:55
*** zeus has joined #openstack-horizon12:58
*** zeus has quit IRC12:58
*** zeus has joined #openstack-horizon12:58
zigordopiera: Constantly re-writing a patch for settings.py on each beta release of Horizon (or even: on each modification of settings.py if we consider that I would like to get in the gate to do package validation on each commits) isn't an idea I'm vouching for.12:59
zigordopiera: IMO, at least, the static file config should go in a specific file.12:59
rdopierazigo: sure, we can have it in a separate file, and included13:00
zigoPlease ! :)13:00
rdopieraI was thinking to do it that way from the beginning, even13:00
rdopierabut wanted to simplify my explanations13:00
*** sayan has quit IRC13:01
*** tzumainn has joined #openstack-horizon13:01
rdopierazigo: so, basically you would have one such file for bower, pointing to wherever bower puts stuff13:01
rdopierazigo: and each distro would have its own13:01
rdopierazigo: pointing to wherever they install that stuff13:02
rdopierazigo: if Debian has some kind of a python api for finding stuff, you could even have that in there, instead of a static list!13:03
rdopierajust like we use xstatic right now13:03
zigoWe don't.13:03
mrungerdopiera, zigo something like python-bindings to the packaging system?13:04
zigoThough I could write something which would somehow make things automated.13:04
zigoLike reading /var/lib/dpkg/info/libjs<something>.list, and compare what bower downloaded...13:04
rdopieramrunge: something like 'dpkg -L lib-js-jquery | grep jquery.js' ;)13:05
mrungeyeah, or python-bindings to rpm?13:06
mrungewe have them ;-)13:06
*** lblanchard has joined #openstack-horizon13:06
mrungebut I'd somehow expect some resistance against using that13:07
rdopieramrunge: it would slow down the startup,13:07
rdopieramrunge: so in the end you probably want static paths generated, even if automatically13:07
mrungerdopiera, but you could even cache static paths generated at startup13:08
rdopierawhat I'm trying to explain is that STATICFILES_DIRS gives you the ability to map any directory, subdirectory or individual file to any url unser /static, which gives you all the power of symlinks and more13:08
*** athomas has quit IRC13:08
mrungenot saying, this is a really good idea, as e.g zigo might disagree in using RPM as package manager13:08
*** tmazur_ has joined #openstack-horizon13:09
rdopieramrunge: somehow I believe in debuggability of settings, and nothing is easier to inspect and debug than a statically generated file :)13:09
zigoOh, I'm not planning on doing this at run time! :)13:09
rdopieracaches are magical13:09
zigoThis would be just a packaging trick ...13:10
mrunge:D13:10
rdopierazigo: and if you do it, it will work with any Django app13:10
mrungethose mappings would most probably solve our biggest headaches13:10
mrungeand it's a different story, how they're getting generated13:10
rdopieramrunge: we had them in there since the very beginning13:11
rdopieramrunge: we just have to start using them13:11
mrungeyes!13:12
rdopieraso then we would have different ways of getting the files onto the computer (packages/bower) and different ways of generating the paths file (static/from bower log/from package metadata)13:12
*** JeanBriceCombebi has joined #openstack-horizon13:13
rdopierar1chardj0n3s_afk: does that sound doable?13:13
* rdopiera has no idea if what bower generates is somehow repeatable and if not, if it's possible to inspect it to get the right paths13:14
openstackgerritAna Krivokapic proposed openstack/tuskar-ui: Don't show spinner when deployment failed  https://review.openstack.org/14277113:14
*** athomas has joined #openstack-horizon13:15
mrungerdopiera, what I got from bower is: it just downloads required files to your directory13:15
mrungeso paths are somehow known and relative to your actual path13:16
rdopieraawesome13:16
rdopieraso my proposition is this: 1. bower configuration file, listing all the libraries and their versions (instead of using automatic dependency resolution of Bower), 2. a static_settings.py file with the STATICFILES_DIRS setting it in, that gets included in the settings.py file and replaced by packagers for particular distributions13:19
rdopierawhat do you think?13:19
rdopieras/included/imported13:20
mrungedoes 1. really work?13:22
mrungeif you have a dep of a dep...?13:22
rdopierawell, I assume bower has an equivalent of the 'pip freeze' command13:23
rdopierathat you would use to generate that file13:23
mrungeI remember trying to build up a dependency tree by hand13:23
mrungejust to know, which packages I need to build13:23
rdopierait doesn't have to be a tree, just a flat list13:24
mrungeanything13:24
rdopierait has to have it, and if not, we will write a tool that does it13:24
rdopieraand a check on the gate that makes sure no extra packages are pulled in13:24
mrungebut I thought a package a just requires package b. and package b come with it's own dependency file13:25
mrungethat would make a tree13:25
rdopieramrunge: yes, so what you do is you run bower on just the packages you need, and then list all packages installed13:25
mrungerdopiera, yes, I got that. but: your package can not know deps of depending packages13:26
rdopieramrunge: yours doesn't, bower does13:26
mrungeand we all know packages are changing fast in js world13:26
rdopierahopefully not witchout bumping the version numbers13:26
rdopierawithout13:26
mrungeso, the question is: how does bower know this?13:26
mrungehow to flatten the dep tree13:27
rdopieramrunge: it downloads the package and looks into its metadata13:27
rdopieramrunge: I'm not sure how it resolves version conflicts, though, but that's not important for us -- we will have the versions pinned13:27
mrunge... installs packages, reads deps and keeps on downloading, until deps are satisfied13:28
rdopieramrunge: yup, but that's not a problem13:28
mrungeok, fine then13:28
rdopieraI will write an e-mail to the dev list then13:29
*** raildo has joined #openstack-horizon13:30
openstackgerritMerged openstack/tuskar-ui: Don't show spinner when deployment failed  https://review.openstack.org/14277113:30
rdopieraI have one more concern13:30
*** JeanBriceCombebi has quit IRC13:30
rdopierawhat about static file libraries that are not JavaScript?13:31
rdopierasuch as font-awesome or bootstrap?13:31
rdopierawe will still need to package them for Bower13:31
*** ZZelle has quit IRC13:31
mrungeisn't xstatic an answer?13:32
*** JeanBriceCombebi has joined #openstack-horizon13:32
mrungejavascript world lives from copying stuff around13:33
*** Ala has quit IRC13:34
mrungerdopiera, fontawesome is available via bower13:34
mrungethe same is true for bootstrap13:35
rdopierahmm, ok13:35
rdopieraand I suppose if we find something that isn't, we can make a bower package for it13:35
*** Ala has joined #openstack-horizon13:38
*** jcoufal_ has joined #openstack-horizon13:40
*** JeanBriceCombebi has quit IRC13:41
*** jcoufal has quit IRC13:43
*** JeanBriceCombebi has joined #openstack-horizon13:43
*** _crobertsrh is now known as crobertsrh13:44
*** Longgeek has quit IRC13:44
*** Longgeek has joined #openstack-horizon13:45
*** krykowski has joined #openstack-horizon14:01
*** e0ne_ has joined #openstack-horizon14:07
*** e0ne has quit IRC14:08
*** tosky has joined #openstack-horizon14:14
*** radez_g0n3 is now known as radez14:18
*** peristeri has joined #openstack-horizon14:27
*** k4n0 has quit IRC14:29
*** dboik has joined #openstack-horizon14:31
*** ZZelle has joined #openstack-horizon14:33
openstackgerritRadomir Dopieralski proposed openstack/tuskar-ui: Fix TemplateSyntaxError in the server-side filetring of node list views  https://review.openstack.org/14280014:37
*** ZZelle has quit IRC14:38
openstackgerritSam Betts proposed openstack/horizon: Reduced code duplication in creating page headers  https://review.openstack.org/14280214:42
*** packet has joined #openstack-horizon14:43
*** neelashah has joined #openstack-horizon14:51
openstackgerritMatt Borland proposed openstack/horizon: Add collectstatic commands to install doc  https://review.openstack.org/14188514:52
*** hurgleburgler has joined #openstack-horizon14:54
*** raildo has quit IRC14:54
*** wuhg has quit IRC15:03
*** krykowski has quit IRC15:04
*** Ala has quit IRC15:05
*** krykowski_ has joined #openstack-horizon15:05
*** Ala has joined #openstack-horizon15:05
*** david-lyle_afk has quit IRC15:07
*** Ala has quit IRC15:08
*** esp has joined #openstack-horizon15:09
*** vijendar has quit IRC15:10
*** mrunge has quit IRC15:12
*** JeanBriceCombebi has quit IRC15:13
*** bradjones has joined #openstack-horizon15:16
*** woodm1979 has joined #openstack-horizon15:17
*** Ala has joined #openstack-horizon15:19
*** JeanBriceCombebi has joined #openstack-horizon15:20
*** Ala has quit IRC15:21
*** Ala has joined #openstack-horizon15:24
*** EmilyW has joined #openstack-horizon15:28
*** mattfarina has joined #openstack-horizon15:28
*** tmazur_ has quit IRC15:29
*** rdopiera has quit IRC15:33
*** vijendar has joined #openstack-horizon15:42
*** absubram has joined #openstack-horizon15:45
*** woodm19791 has joined #openstack-horizon15:50
*** woodm1979 has quit IRC15:50
*** rushiagr is now known as rushiagr_away15:50
*** krykowski_ has quit IRC15:52
*** ttrifonov is now known as zz_ttrifonov16:00
*** krykowski has joined #openstack-horizon16:02
*** david-lyle has joined #openstack-horizon16:02
*** EmilyW has quit IRC16:04
*** nlahouti has joined #openstack-horizon16:05
*** ongk has joined #openstack-horizon16:09
*** nlahouti has quit IRC16:09
*** rushiagr_away is now known as rushiagr16:14
*** krykowski has quit IRC16:15
*** nlahouti has joined #openstack-horizon16:16
*** raildo has joined #openstack-horizon16:17
*** hurgleburgler has quit IRC16:18
*** ongk has quit IRC16:19
*** hurgleburgler has joined #openstack-horizon16:19
*** ongk has joined #openstack-horizon16:20
*** hurgleburgler has quit IRC16:21
openstackgerritAbishek Subramanian proposed openstack/horizon: Fix multi-nic issue with nexus plugin  https://review.openstack.org/6579316:23
*** nlahouti has quit IRC16:24
*** nlahouti has joined #openstack-horizon16:25
*** MaxV has quit IRC16:28
*** ygbo has quit IRC16:28
*** bradjones has quit IRC16:28
*** kumartin has joined #openstack-horizon16:31
*** bradjones has joined #openstack-horizon16:32
*** romainh1 has left #openstack-horizon16:32
*** pcaruana has quit IRC16:33
*** Ala has quit IRC16:37
*** Ala has joined #openstack-horizon16:37
*** pawels has joined #openstack-horizon16:44
*** neelashah has quit IRC16:44
*** exploreshaifali has joined #openstack-horizon16:45
*** exploreshaifali has quit IRC16:45
openstackgerritAbishek Subramanian proposed openstack/horizon: Refactor project instance test  https://review.openstack.org/14283916:46
*** exploreshaifali has joined #openstack-horizon16:46
*** exploreshaifali has quit IRC16:46
*** exploreshaifali has joined #openstack-horizon16:46
openstackgerritPaul Karikh proposed openstack/horizon: Disable password autocomplete in the login form  https://review.openstack.org/14284416:56
*** masco has quit IRC16:59
*** sayan has joined #openstack-horizon17:03
*** gyee has joined #openstack-horizon17:05
*** tqtran has joined #openstack-horizon17:06
*** EmilienM has quit IRC17:08
*** EmilienM has joined #openstack-horizon17:09
*** rm_work|away is now known as rm_work17:09
*** bpokorny has joined #openstack-horizon17:15
*** jpich has quit IRC17:15
*** pawels1 has joined #openstack-horizon17:15
*** EmilyW has joined #openstack-horizon17:16
*** ayoung is now known as ayoung-afk17:16
*** pawels has quit IRC17:17
*** bpokorny has quit IRC17:19
*** kumartin has quit IRC17:20
*** regebro has quit IRC17:21
thiagopdavid-lyle: ping17:23
david-lylethiagop: pong17:23
thiagophey, I was trying to understand why you suggested the use of can_access on that patch to remove the hard-coded admin17:23
david-lylethiagop: the check is incomplete and much more complicated17:24
david-lylenot a simple role check17:24
david-lyleI posted comments before I simply -2'd it17:25
thiagopwe were working on a patch that takes care of correcting the RBAC check on the panels, but using the "policy_rules" property17:25
david-lyleit's missing a lot of the nuance of policy17:25
david-lylethiagop: IMO the right solution is not RBAC the panel itself in almost all cases, but simply merge the admin and project panels and use RBAC to expose actions17:26
*** dboik has quit IRC17:27
david-lylethings like host-aggregates and hypervisors are simple enough to policy checks to block with a role check, but keystone's version of admin is not enough17:27
thiagophttps://review.openstack.org/#/c/126988/17:28
thiagopI was seeing pkarikh's patch as a first move towards that, not a definitive solution17:29
david-lylethiagop: that's closer. Ideally, we just need to check the read action policy17:29
thiagopbut I understand your concerns17:29
thiagopif I can't read, I can't modify either, right?!17:30
david-lylenot necessarily17:30
david-lylethat's policy driven17:30
thiagopbut on Horizon's context (web context), I need to show something before editing it.17:31
david-lyleIn fact the separation is very desirable17:31
david-lyleI may want read only access to say hypervisors17:31
david-lylejust not edit17:31
david-lyleso read is enough to get into the panel17:32
david-lyleedit is filtered on the panel17:32
david-lylesee the identity/projects panel17:32
david-lylethat's the pattern17:32
david-lylethe policy checks https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/identity/projects/panel.py#L29 are for read only17:33
thiagopright17:33
david-lylebut munging admin of identity and nova or cinder is in no way accurate17:33
david-lylethey all can specify that in their policy implementation17:33
openstackgerritMatt Borland proposed openstack/horizon: Tests pass run in languages other than English  https://review.openstack.org/14285117:34
david-lyleso panels that pull in the kitchen sink, like instances become very complicated17:34
openstackgerritMatt Borland proposed openstack/horizon: Tests pass in languages other than English  https://review.openstack.org/14285117:35
thiagopright, right. :)17:35
thiagopI'll take a look on our patch to consider only the listing rules17:36
*** dboik has joined #openstack-horizon17:37
david-lyleok, ping me if you have questions17:37
thiagopty!17:38
*** lhcheng has joined #openstack-horizon17:39
*** sambetts has quit IRC17:40
openstackgerritMatt Borland proposed openstack/horizon: Tests pass in languages other than English  https://review.openstack.org/14285117:41
*** lhcheng has quit IRC17:42
openstackgerritMatt Borland proposed openstack/horizon: Tests pass in languages other than English  https://review.openstack.org/14285117:42
*** nikunj2512_ has quit IRC17:43
*** cody-somerville has joined #openstack-horizon17:44
mattfarinadavid-lyle ping17:45
mattfarinadavid-lyle i was hoping to get a few minutes of your time to talk about https://blueprints.launchpad.net/horizon/+spec/domain-based-rbac17:45
david-lylemattfarina: sure17:46
*** gyee has quit IRC17:48
mattfarinadavid-lyle so, I'm really interesting in helping this happen.17:48
*** sbfox has joined #openstack-horizon17:48
mattfarinadavid-lyle did you have a few minutes to get on hangouts to chat about it?17:48
david-lylesure17:49
*** lhcheng has joined #openstack-horizon17:49
*** woodm1979 has joined #openstack-horizon18:00
*** woodm19791 has quit IRC18:00
*** sbfox has quit IRC18:06
*** cedrics has quit IRC18:08
*** e0ne_ has quit IRC18:09
*** sbfox has joined #openstack-horizon18:17
*** jtomasek has quit IRC18:21
*** pawels1 has quit IRC18:22
*** robcresswell has joined #openstack-horizon18:22
robcresswellEvening, does anybody know how to parse ':' in the Django templating language?18:23
robcresswellMy Google-fu is failing me18:23
*** harlowja_away is now known as harlowja18:23
*** lhcheng_ has joined #openstack-horizon18:28
*** lhcheng has quit IRC18:31
*** aix has quit IRC18:33
*** aliceR has joined #openstack-horizon18:37
*** rushiagr is now known as rushiagr_away18:37
*** ericpeterson has joined #openstack-horizon18:37
*** Nate has joined #openstack-horizon18:39
openstackgerritMatt Borland proposed openstack/horizon: Add collectstatic commands to install doc  https://review.openstack.org/14188518:40
*** jcoufal_ has quit IRC18:41
*** e0ne has joined #openstack-horizon18:46
*** neelashah has joined #openstack-horizon18:46
*** e0ne is now known as e0ne_18:48
*** athomas has quit IRC18:49
*** bradjones has quit IRC18:49
*** robcresswell has quit IRC18:50
*** bradjones has joined #openstack-horizon18:51
openstackgerritMatt Borland proposed openstack/horizon: Tests pass in languages other than English  https://review.openstack.org/14285118:51
*** EmilyW has quit IRC18:52
*** Nate has quit IRC18:56
openstackgerritAbishek Subramanian proposed openstack/horizon: Fix multi-nic issue with nexus plugin  https://review.openstack.org/6579318:58
*** e0ne_ has quit IRC19:00
*** lhcheng_ is now known as lhcheng19:01
*** colinmcnamara has joined #openstack-horizon19:02
*** nlahouti has quit IRC19:02
*** nlahouti has joined #openstack-horizon19:03
*** e0ne has joined #openstack-horizon19:07
*** rushiagr_away is now known as rushiagr19:14
openstackgerritAbishek Subramanian proposed openstack/horizon: Display profile information in network details  https://review.openstack.org/7678719:15
openstackgerritSzymon Wróblewski proposed openstack/horizon: Create a reusable angular based wizard  https://review.openstack.org/14288019:15
*** EmilyW has joined #openstack-horizon19:20
*** ayoung-afk is now known as ayoung19:21
*** colinmcnamara has quit IRC19:21
openstackgerritThai Tran proposed openstack/horizon: WIP Consolidating conf and scripts  https://review.openstack.org/14145719:23
*** rushiagr is now known as rushiagr_away19:26
*** aliceR has quit IRC19:26
openstackgerritKelly Domico proposed openstack/horizon: Fix popover positions in network topology  https://review.openstack.org/14288619:28
*** sayan has quit IRC19:28
tsufievdavid-lyle, hello! Speaking of RBAC policies and different dashboard parts...19:32
*** colinmcnamara has joined #openstack-horizon19:33
*** hurgleburgler has joined #openstack-horizon19:34
*** salty has joined #openstack-horizon19:34
tsufievdavid-lyle, what do you think of giving each dashboard element (Dashboard/Panel/Table/Tab/Form/Workflow step) a natural address based on its place in the UI elements hierarchy? Then the RBAC policy could be attached directly to each element without actually adding some specific policy checks into the dashboard code19:34
openstackgerritThai Tran proposed openstack/horizon: Consolidating conf and scripts  https://review.openstack.org/14145719:35
*** salty is now known as Guest1354219:35
openstackgerritThai Tran proposed openstack/horizon: Consolidating conf and scripts  https://review.openstack.org/14145719:35
*** Guest13542 is now known as MrSalty19:35
tsufievthe whole point here is freeing operators/deployers of editing python code, they could just add another rule into policy.json file, tied to some UI address on the left side, and a combination of existing rules on the right side19:36
*** bradjones has quit IRC19:36
*** bradjones has joined #openstack-horizon19:40
*** EmilyW has quit IRC19:41
david-lyletsufiev: adding the policy checks are attempting to make the policy.json files the only place that need editing19:42
david-lylehorizon could really care less about what the user can or can't do :) it's just proxying that for the services so users aren't encountered by endless errors19:44
tsufievdavid-lyle, agree. But isn't it tedious to specify some policy rule for every UI element possible :)?19:44
*** woodm1979 has quit IRC19:44
david-lyleit's not for the UI element, it's for specific actions in the end services19:44
david-lylecan I add a volume19:44
david-lylecan I edit a network19:44
david-lylecan I list all networks19:45
david-lylehiding a panel is done as a convenience based on the actions of that panel19:45
david-lyleif I can't do anything but encounter a blank page and an error on a panel, why are you letting me see it?19:46
david-lyleand that's it really19:46
tsufievdavid-lyle, e.g. tabs that are lazy-loaded - I cannot know whether they do have some data until I send ajax request19:46
tqtrantsufiev: i dont envision the policy on an element basis, that would be insane. I'm thinking more on a page basis.19:47
david-lyletsufiev: not that they don't have data, that you don't even have the possibility of seeing data because the service doesn't feel like you have sufficient authority19:47
david-lyletqtran: policy is tied to API calls19:48
david-lyleactions19:48
tqtrandavid-lyle, tsufiev: and since all actions trigger a page, you can say that its bound to action. its almost synonymous19:48
david-lylelist, get, update, delete19:48
tsufievtqtran, what's about hiding separate steps of a workflow? they are less than page19:48
david-lylebut if you can list the data, the page should be available19:48
tsufievwe had at least one customer who wanted this feature19:48
david-lyletsufiev: if that step is necessary to complete the workflow, you shouldn't see the workflow at all19:49
david-lyleif it's an optional step, that's not really policy as implemented today, unless you say users with role X can't complete task Y19:49
*** Nate has joined #openstack-horizon19:50
tsufievdavid-lyle, okay, I get your point19:50
tsufievtqtran, but why the element-wise policy is insane? well, I suppose it may have some perfomance issues, but just wanted to hear your reasoning :)19:51
*** nlahouti has quit IRC19:51
*** ZZelle has joined #openstack-horizon19:51
david-lyletsufiev: I agree the policy checks are tedious19:52
tqtrantsufiev: i think is insane the way we have it now. there will be checks all over the place. but using angular, that might be feasible19:52
*** colinmcnamara has quit IRC19:52
*** ericpeterson has quit IRC19:53
david-lyletqtran: the only way this improves is when something like https://review.openstack.org/#/c/136980/ gets merged all over19:53
david-lylethen the policy checks change direction19:54
david-lyleyou could get the list of approved actions and filter out the non-allowed from the page19:54
david-lylebut policy is still at the per CRUD operation level19:54
david-lylethat is RBAC19:55
*** ericpeterson has joined #openstack-horizon19:55
david-lyleit was indeed simpler in a two role world19:55
david-lylebut it's not very useful outside of token installations19:55
tqtrandavid-lyle: what if angular have access to the policy file client-side?19:56
tqtrandavid-lyle: only downside is that we'll have to manually update the policy file, which is a pain19:57
david-lylethat's fine, but it's still the same logic moved to the client19:57
tsufievdavid-lyle, well, this still makes us to decide whether to show or not some page based on a set of approved actions this page contains - if someone wants to restrict this page explicitly and unconditionally for some user roles in his cloud setup, most probably he will have to edit the dashboard code19:57
david-lyleI think ideally, you would make a call back to the horizon server to get the list of approved actions19:57
david-lylerather than sending down all the policy files19:57
david-lyletsufiev: overrides.py and add override of panel method, def can_access(): return False19:58
david-lylethat is code though19:59
tqtrandavid-lyle: so you would make this call for approved actions once? or for each action you want to take?19:59
david-lyletqtran: to prematurely optimize, I would batch that call19:59
david-lyleyou know the list at load time19:59
tqtrandavid-lyle: ok, lets say you batch that call when you login19:59
david-lylenot then, per view at this point20:00
tqtrandavid-lyle: =/ why not for all panels?20:00
david-lylethat's not right for a single page model20:00
david-lyleI suppose you could, but that's a big list20:00
tqtrandavid-lyle: i would rather see the policy file fetched once, then angular will handle showing/hiding of elements20:00
david-lylebut then you get the can access list and cache it20:01
tqtrandavid-lyle: which brings me to my next point, why not make the policy file static?20:01
david-lyleby policy file, you mean policy file for each service20:01
tqtrandavid-lyle: yes20:01
david-lyleand reimplement the policy engine on the client side20:02
david-lyle?20:02
david-lylenot excited about that20:02
tsufievdavid-lyle, yep, still has to edit some code. But perhaps time has not yet come to move every user setting into .json file :). I don't want to solve the problem that nobody considers as a problem (yet)20:02
openstackgerritayoung proposed openstack/django_openstack_auth: Use keystone auth plugins  https://review.openstack.org/14030820:02
tqtrandavid-lyle: well, we're not reimplementing the policy engine, we are merely letting angular show/hide base on what it reads in the json20:03
tsufievtqtran, you're reading my thoughts, I also wanted to ask you today how are you going to deal with policies in angular ))20:03
david-lyletqtran: which is evaluating policy20:03
david-lylehence the policy engine20:03
david-lyleread a policy.json20:03
david-lylethey are nested rules20:03
david-lylethat ultimately check role20:04
david-lyleit's not a simple as it seems20:04
tqtrandavid-lyle: i'll have to take a closer look at policy files, you might be right20:04
tqtrantsufiev: fast answer: i dont know yet lol20:04
tsufievlol ))20:05
tqtrantsufiev: as of now, we are not handling showing/hiding of stuff. we let user take action and API throw error if action is not permitted20:05
tqtrantsufiev: but the focus is on identity users, so its not that complicated20:06
tqtrantsufiev: taking it step by step, im sure we will get to that discussion at some point20:06
tsufievtqtran, yeah. I guess ng-show/ng-hide could do this work, but how are they going to get info for deciding that - that's the question...20:07
*** Nate has quit IRC20:07
tsufievsending one request for each element seems quite inefficient20:07
tqtrantsufiev: ok, this is what i imagine. you have a policy service. and in your controller, you require this policy service20:07
tqtrantsufiev: and you use directive ng-show="function" where function will do the policy check for you.20:08
tqtrantsufiev: and policy file would exist client-side, so no calls is required. its all done client-side20:09
*** JeanBriceCombebi has quit IRC20:09
tqtrantsufiev: but im treating it like a blackbox, obviously, it more complicated im sure20:09
tsufievtqtran, I guess this is 'next' phase of angular migration?20:09
tsufiev(sending policies to client-side)20:09
david-lyletqtran: indeed20:09
tqtrantsufiev: yeah probably, when we get to it20:09
*** Longgeek has quit IRC20:10
david-lylewhipper snappers, back in my day20:10
tqtranlol whipper snappers?20:10
david-lylehttps://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=whippersnapper20:10
tqtranwhippersnapper - A term generally used by old persons, to insult the younger generation20:10
tqtranlol20:10
david-lylecheers20:11
tqtranhahaha, blame it on tsufiev20:12
david-lyleget off my lawn20:12
david-lyletqtran, tsufiev, we'll figure it out20:12
* tsufiev adds a new word to his vocabulary20:12
tsufievthough I'm not old enough to use it ))20:13
tsufievdavid-lyle, sure!20:14
david-lyleI think you'll want to leave the policy engine on the server (remain in sync with the rest of openstack) but batch call to get an access list20:14
david-lylethe subsequent checks on the angular side check that secondary construct20:14
tqtrandavid-lyle: are we manually updating the policy files today?20:15
david-lyleunfortunately20:15
*** raildo is now known as raildo_away20:15
tsufievbtw, we may want to use something like olso.lib updater - but for policies20:15
david-lylethats a different issue20:15
david-lyleinflight20:16
tsufievI suspect that they're currently a bit outdated in horizon20:16
tsufiev(for neutron at least)20:16
*** Nate has joined #openstack-horizon20:16
*** Nate has quit IRC20:17
*** NateTheGreat has joined #openstack-horizon20:18
tsufievdavid-lyle, do you think that pkarikh's patch for un-hardcoding admin role could be changed to fit in overall policy architecture?20:18
*** bradjones has quit IRC20:18
NateTheGreatAnybody know what might through a PV_MISSING_DRIVER error only on automatic disk paritioning?20:19
tsufievNateTheGreat, is it really happening in horizon? sounds like cinder issue20:20
*** vijendar has quit IRC20:20
NateTheGreatWe dont' have cinder installed, just glance20:21
NateTheGreatwe get a different error for not having cinder ;P20:21
david-lyletsufiev: It could, needs a lot of rework. the -2 was because it's mis-interpreting admin and that _has_ to be fixed20:21
NateTheGreatIt seems to work fine when doing manual partitioning of the disk, or through the CLI20:22
david-lyleNateTheGreat: do you have access to the stack trace?20:31
*** jgravel_ has joined #openstack-horizon20:31
*** NateTheGreat_ has joined #openstack-horizon20:32
NateTheGreat_david-lyle: if you can point me to it, I can get it.20:32
NateTheGreat_david-lyle: this may also be of some help https://ask.openstack.org/en/question/56596/horizion-automatic-disk-partitioning-fails-but-manual-works-fine/20:34
david-lylelook at /var/log/apache2/horizon_error.log20:34
*** NateTheGreat has quit IRC20:34
david-lyleand it worked from the CLI?20:35
*** jgravel__ has quit IRC20:35
NateTheGreat_Yes, it has to do with the automatic paritioning, cause both the CLI and horizon manual partition works20:35
NateTheGreat_I guess that specific error doesn't appear in the error.log under /apache20:39
david-lyleNateTheGreat_: if you pass --disk-config=AUTO to the nova boot command line, does it fail as well?20:40
*** sbfox has quit IRC20:40
NateTheGreat_it gives me unrecognized arguments: --disk-config=AUTO20:41
NateTheGreat_that may present a problem...20:41
david-lyleauto-partitioning is an extension20:41
david-lyleyou may not have it enabled20:41
NateTheGreat_that would be my guess. I didn't actually configure most of it.20:41
NateTheGreat_Where is it in the docs?20:41
*** flwang has joined #openstack-horizon20:43
david-lylehttp://developer.openstack.org/api-ref-compute-v2-ext.html#ext-os-disk-config-servers is the API20:43
david-lylenot well versed in enabling extension20:44
david-lyles20:44
david-lylebut I assume in the config file20:44
*** harlowja has quit IRC20:45
*** harlowja_ has joined #openstack-horizon20:45
NateTheGreat_alright, I'll go see if I can find it. Could this possibly be pushed into a dependency for horizon? as its the default method20:45
david-lyleextensions really shouldn't be the default, that's a problem in Horizon20:46
*** jtomasek has joined #openstack-horizon20:46
NateTheGreat_Right, I think that is our problem. or at least put it as part of the docs in the horizon part as maybe a warning? or a how to on installing it?20:46
david-lyleNateTheGreat_: this might be helpful https://github.com/rackerlabs/os_diskconfig_python_novaclient_ext20:47
*** NateTheGreat has joined #openstack-horizon20:47
NateTheGreatSorry my work connection keeps dumping me.20:48
david-lylethis might be helpful https://github.com/rackerlabs/os_diskconfig_python_novaclient_ext20:48
david-lylebut that seems odd20:49
david-lyleI think that may be out of date20:49
david-lylemight be better to ask in nova or dev20:49
NateTheGreatokay, I'll give it a shot over there. Thanks for the help :)20:50
david-lyleI'm not sure how it's installed20:50
*** NateTheGreat_ has quit IRC20:50
david-lylelet me know if you find out we're doing something really dumb in Horizon20:51
david-lyleand we'll patch it up20:51
NateTheGreatOkay. I'd say having automatic be the default if its not part of the base might need a flip. Or throw teh dependency in. I'll get back to you on the fix I have20:52
*** vijendar has joined #openstack-horizon20:52
david-lyleI agree, just not sure what happens when not auto20:52
NateTheGreatIt doesn't resize the disk to the flavor for you. if you are in manual you have to do it yourself20:53
david-lyleright, but not from horizon20:54
NateTheGreatCorrect, that is at the OS level20:55
david-lyleWe have an extension check around that option I believe, rechecking code20:56
*** romainh has joined #openstack-horizon20:56
tsufievdavid-lyle, ok, I'll tell pkarikh not to lose heart and keep going )20:57
david-lyleNateTheGreat: we do have an extension check for DiskConfig, so the nova server is reporting that extension is enabled20:57
david-lyletsufiev: good, just couldn't go in as is, and someone else +2'd it20:58
david-lylethe goal is good20:58
NateTheGreatHmmm.. thats quite odd..wondering what happened then.20:59
*** kumartin has joined #openstack-horizon21:03
*** NateTheGreat has quit IRC21:06
*** akrivoka has quit IRC21:07
*** jasondotstar has quit IRC21:10
*** jasondotstar has joined #openstack-horizon21:12
*** neelashah has quit IRC21:14
*** exploreshaifali has quit IRC21:17
*** zeus has quit IRC21:20
*** dboik has quit IRC21:20
*** sbfox has joined #openstack-horizon21:20
*** romainh has left #openstack-horizon21:29
*** ayoung has quit IRC21:29
*** woodm1979 has joined #openstack-horizon21:32
*** jtomasek has quit IRC21:35
*** ayoung has joined #openstack-horizon21:37
*** flwang has quit IRC21:41
*** flwang has joined #openstack-horizon21:41
ericpetersonI have an easy bug that needs some fixin', if anyone wants low hanging fruit.  filing it now21:46
*** julim has quit IRC21:48
*** dboik_ has joined #openstack-horizon21:52
*** jgravel__ has joined #openstack-horizon21:55
*** jgravel_ has quit IRC21:58
ericpetersonhttps://bugs.launchpad.net/horizon/+bug/140403221:58
woodm1979ericpeterson: is it happening on the non-admin version of the page?22:01
woodm1979I should slightly rephrase:  Is it ALSO happening on the non-admin version of the page?22:02
ericpetersonprolly, but I have not accessed that tenant's stuff yet22:03
woodm1979ok22:03
ericpetersonseems like the error handling has been "improved" somehow22:03
ericpetersonit eventually gets to this line:  https://github.com/openstack/horizon/blob/master/horizon/exceptions.py#L35922:05
woodm1979That just means that there's 2 level's of try -> except: exceptions.handle()22:06
ericpetersonI'm not sure that re-raise is a good idea, especially when escalate defaults to False22:06
woodm1979The re-raise is just there to preserve the original.  (because we're handling it twice.)22:07
*** lblanchard has quit IRC22:07
woodm1979I'll see of someone here wants to tackle this.22:07
ericpetersonthe outside block https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/volumes/volumes/tables.py#L26322:07
ericpetersonthat outside block.... it sees the exception re-raised and it exits out of there.... never going any farther22:08
ericpetersonwhich is weird.   if escalate is true and I am telling a method to handle the exception for me, why can't it just you know.... handle it ?22:09
woodm1979heh.22:09
ericpetersonI mispoke.  escalate is False.  which still begs my question22:10
woodm1979Well, that last line (the re-raise) shoudl only be called on the 2nd run through the code.  But a nova NotFound exception should be handled prior to this.22:11
woodm1979wait, exceptions.handle has changed quite a bit.  There used to be 3 different buckets that exceptions coudl be in.22:12
woodm1979No it looks different.22:13
*** tosky has quit IRC22:13
woodm1979a lot different.22:13
ericpetersonyeah, it has been "improved"22:13
ericpetersonI think part of it is that the Nova NotFound exception is not considered recoverable.   that might be true in most situations, but not for this one22:15
woodm1979Well, I'm not sure how the code is getting past:  https://github.com/openstack/horizon/blob/master/horizon/exceptions.py#L35222:15
ericpetersonAll I can say is the last line gets called or catches my breakpoint22:16
ericpetersonand then poo hits the fan22:16
ericpetersonits fairly easy to recreate in your env, just re-raise that exception in there and enjoy the carnage22:17
woodm1979Interesting.  I'm not sure I like the "improvements" to the exception handler code.22:18
*** ongk has quit IRC22:19
*** kdomico has joined #openstack-horizon22:19
*** cbader has quit IRC22:21
ericpetersonI think I have it22:21
* ericpeterson continues to bird dog22:22
ericpetersongot it.  that exception handler is jacked up22:22
*** peristeri has quit IRC22:23
ericpetersonhttps://github.com/openstack/horizon/blob/master/horizon/exceptions.py#L345   thats the bug22:23
ericpetersonexc_handler['exc']  is of type tuple22:23
woodm1979lol, is that backwards?22:23
ericpetersonits a tuple of various exception types22:23
ericpetersonso it's close.... just not quite22:24
woodm1979nah, that can be a tuple.22:24
openstackgerritThai Tran proposed openstack/horizon: Single page navigation  https://review.openstack.org/11439222:24
woodm1979Return whether class C is a subclass (i.e., a derived class) of class B.22:24
woodm1979    When using a tuple as the second argument issubclass(X, (A, B, ...)),22:24
*** neelashah has joined #openstack-horizon22:25
woodm1979damn it, now I have to actually try to fix it too.  :-)22:25
ericpetersonyeah, see?22:25
ericpetersonI take it back, I might have found something on my side22:28
woodm1979LOL22:29
ericpetersonI see stuff that points to monasca issues22:30
ericpetersonwhich comes from https://github.com/stackforge/monasca-ui/blob/ab0cd448f272dda4ac4f6bb3361254dc44b721f8/monitoring/enabled/_50_admin_add_monitoring_panel.py22:30
ericpetersoncould be the plugin thing is also contributing to this?22:30
woodm1979Eh?  Just to handle that exception?22:30
woodm1979that's … rough.22:30
*** neelashah has quit IRC22:30
ericpetersonthe tuple of not found exceptions is (<class 'monascaclient.exc.HTTPNotFound'>,)22:30
ericpetersonso that is a bit incomplete I would say22:31
*** tqtran has quit IRC22:31
woodm1979Yeah, I think that's a few short.22:33
woodm1979:-)22:33
*** mattfarina has quit IRC22:37
*** Amogh has joined #openstack-horizon22:39
ericpetersonwoodm1979: still around?  I think I got it, if you are interested22:48
woodm1979Yeah, what was the deal?22:48
ericpetersonlhcheng might care too22:48
ericpetersonhttps://github.com/openstack/horizon/blob/master/openstack_dashboard/utils/settings.py#L11322:48
ericpetersonthat line.... it replaces the exceptions like NotFound with whatever the plugin wanted to add22:49
woodm1979Aaaah.22:49
woodm1979Yup.22:49
ericpetersonso like https://github.com/stackforge/monasca-ui/blob/master/monitoring/enabled/_50_admin_add_monitoring_panel.py  will be the new value for NotFound22:49
woodm1979The update is a good idea, except that A) they're tuples, and B) we're updating the larger dict.22:50
ericpetersonit is acting more like REPLACE_EXCEPTIONS instead of ADD_EXCEPTIONS22:50
woodm1979yup.22:50
lhchengericpeterson, good catch.22:51
ericpetersonping lhcheng22:51
ericpetersongood, your online ;)22:51
lhchengericpeterson: tuskar-ui had a workaround on that issue: https://github.com/openstack/tuskar-ui/blob/master/tuskar_ui/exceptions.py22:51
woodm1979That's aweful.22:52
lhchengBut probably better to just fix it, then tuskar doesn't won't need the hack.22:52
lhchengwoodm1979: yeah, I am surprised that they didn't file a bug to just fix it in horizon.22:52
woodm1979Not THAT difficult of a fix.22:53
ericpetersonhttps://bugs.launchpad.net/horizon/+bug/1404032  updated defect22:53
ericpetersonyeah.  it's ugly but whatever.  I will ping monasca to update too22:54
lhchengyeah, the workaround will cause problems if there are more than one plug-in adding exception.22:54
ericpetersonbut ideally, horizon needs to fix this22:54
ericpetersonyep.  horizon can support all the plugins you want, so long as there is one, and it is tuskar ;)22:54
lhchengericpeterson: ++ horizon must fix the issue.22:55
ericpetersonI thought this was going to be an easy issue.  kinda tricky22:58
*** david-ly_ has joined #openstack-horizon22:58
*** packet has quit IRC22:58
woodm1979ericpeterson: I don't have either tuskar nor monasca enabled.  Does this two-line-fix solve your issue:23:01
woodm1979        for category, exc_list in config.get('ADD_EXCEPTIONS', {}):23:01
woodm1979            exceptions[category] += exc_list23:01
woodm1979I'm a little concerned that we may get duplicates, but I'm not sure if that's a big deal, nor if it'll happen.23:01
ericpetersondups are not a big deal imo23:02
*** david-lyle has quit IRC23:03
*** mitz has quit IRC23:03
*** flwang has quit IRC23:03
*** dsneddon has quit IRC23:03
lhchengif the exception got re-categorize to another, it would result to inconsistent error handling. not sure what is the correct approach though.23:03
woodm1979We could validate the list once everything is done.23:03
ericpetersonwell, if there was code telling it to do that, then that would be the problem also23:03
ericpetersonwoodm1979 - your stuff is not quite right23:04
ericpetersonfine tuning23:04
ericpetersonclose tho23:04
*** jamielennox|away is now known as jamielennox23:05
woodm1979derp:  forgot .items()23:05
woodm1979feeling a bit stupid.23:05
*** mitz has joined #openstack-horizon23:06
woodm1979        for category, exc_list in config.get('ADD_EXCEPTIONS', {}).items():23:06
woodm1979            exceptions[category] += exc_list23:06
ericpetersoncloser, still not it ;)23:06
ericpetersonyour += needs to work differently23:06
*** dsneddon has joined #openstack-horizon23:06
ericpetersonneed to consider when the value is not there yet23:06
*** e0ne has quit IRC23:07
ericpeterson        for category, exc_list in config.get('ADD_EXCEPTIONS', {}).iteritems():23:07
ericpeterson            exceptions[category] = exceptions.get(category, ()) +  exc_list23:07
ericpetersonsomething like that23:07
ericpetersonbut ultimately, that doesn't work either.... I have it23:08
ericpetersonthe problem is exceptions is an empty dict at the top.  it should read the default horizon value already there23:09
*** colinmcnamara has joined #openstack-horizon23:09
*** flwang has joined #openstack-horizon23:10
woodm1979oh yeah, should have used dict.setdefault.23:11
woodm1979that's what I get for coding things that I'm not actually using.23:11
ericpetersonI give up. not sure what it is, but we don't have the fix yet...  still no worky worky23:11
*** kumartin has quit IRC23:11
woodm1979Is there a reasonable way to enable tuskar or monasca in dev-stack?23:12
ericpetersonI think monasca is not too bad.  its an egg, you might even be able to add it via a git requirements line23:12
*** e0ne has joined #openstack-horizon23:13
woodm1979OK:  here's what should happen:  exceptions should be a defaultdict23:13
woodm1979then the defaults get set normally.23:13
woodm1979>>> from collections import defaultdict23:14
woodm1979>>> a = defaultdict(tuple)23:14
woodm1979>>> a['yo'] += ('yo', 'mamma')23:14
woodm1979>>> a23:14
woodm1979defaultdict(<type 'tuple'>, {'yo': ('yo', 'mamma')})23:14
woodm1979easy peasy23:14
* ericpeterson wonders whose momma woodm1979 is talking about23:15
woodm1979Clearly the key is "yo" so ...23:16
ericpetersonso is that spanish?  would it be your mother?23:16
woodm1979lol23:16
*** e0ne has quit IRC23:17
*** EmilienM is now known as EmilienM|pto23:21
ericpetersonhttp://paste.openstack.org/show/152913/  woodm1979   I take it back, I think your fix does work23:25
ericpetersonfree bug with solution attached.... https://bugs.launchpad.net/horizon/+bug/140403223:26
*** lblanchard has joined #openstack-horizon23:30
*** peristeri has joined #openstack-horizon23:31
openstackgerritLin Hua Cheng proposed openstack/django_openstack_auth: Add call to KS V3 revoke_token on logout  https://review.openstack.org/14293423:31
*** jgravel_ has joined #openstack-horizon23:35
*** jgravel__ has quit IRC23:37
*** jgravel has joined #openstack-horizon23:37
*** ericpeterson has quit IRC23:38
*** jgravel_ has quit IRC23:39
*** absubram has quit IRC23:44
openstackgerritJamie Lennox proposed openstack/django_openstack_auth: Use keystone auth plugins  https://review.openstack.org/12128123:50
*** gyee has joined #openstack-horizon23:51
*** lblanchard has quit IRC23:53
*** tosky has joined #openstack-horizon23:56

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