20:00:16 #startmeeting horizondrivers 20:00:17 Meeting started Wed Apr 20 20:00:16 2016 UTC and is due to finish in 60 minutes. The chair is robcresswell. Information about MeetBot at http://wiki.debian.org/MeetBot. 20:00:18 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 20:00:21 The meeting name has been set to 'horizondrivers' 20:00:25 o/ 20:00:31 o/ 20:00:33 o/ 20:00:40 o/ 20:00:49 o/ 20:00:52 o/ 20:01:08 Hi all 20:01:20 [=_=]/ 20:01:38 Just one notice to start 20:01:38 Hi 20:01:51 #topic Summit schedule 20:01:58 #link https://www.openstack.org/summit/austin-2016/summit-schedule/global-search?t=Horizon%3A 20:02:13 This is the Horizon room topic if you need to refer back, but wanted to bring it up anyway 20:02:13 o/ 20:02:39 So make sure you attend the sessions :D 20:02:43 we're tagged in a talk titled "fail." so that's promising 20:02:52 Yeah I saw that 20:03:05 Very encouraging 20:03:11 I'm sure they mean it in the best possible way 20:03:42 Any other notices before I move on to blueprints? 20:04:32 o/ 20:04:35 #topic Blueprint Review 20:04:45 There's several bps on the agenda 20:04:50 #link https://wiki.openstack.org/wiki/Meetings/HorizonDrivers#Agenda_for_2016-04-20_2000_UTC 20:05:26 #link https://blueprints.launchpad.net/horizon/+spec/operation-history-log 20:05:55 kenji-i: If you want to add anything to the explanation, go ahead :) 20:06:24 ducttape_: This sounds similar to a feature you mentioned before? 20:06:38 robcresswell: okay, thanks :) 20:06:55 * ducttape_ reads up on that one 20:07:12 * tsufiev is curios how many operators assign different accounts to different people 20:07:22 Basically its about logging the actions that users take within Horizon 20:08:03 robcreddwell: yes, this fieature to log an operation on Horizon 20:08:32 this sounds similar to an audit logging request we've been looking at. Instead of adding to our logs, it inserts Keystone WSGI middleware to log any API requests to Horizon server 20:08:40 that would be somewhat helpful. I would expect larger deployments to also have something like splunk aggregating all the actions too 20:09:21 kenji-i: this seems like something that should be outside Horizon 20:09:26 some of the need for that, would be for having a view into api calls made by admins - cli or within horizon 20:09:36 I don't want to pass the buck, but it misses all API and CLI calls 20:09:49 doesnt ceilometer does this to some degree? 20:10:00 so you only get part of the story 20:10:16 nova has the events log which we show 20:10:17 see also: http://docs.openstack.org/developer/keystonemiddleware/audit.html 20:10:18 not sure to what degree ceilometer would help here tqtran, maybe a bit 20:11:11 I think in some cases, there are required to log an access log. 20:11:20 thats the logging part, yes tyr_, but then you need to aggregate all the logs everywhere, combine them, then have a powerful ui to query them 20:11:38 not api call but operation by user 20:11:38 smells like search ;) 20:11:57 it's splunk, in a nutshell 20:12:10 there's more standard auditing, use pycadf 20:12:20 we already have audit middleware for that 20:12:46 the audit can be pushed to a queue or something for recording purposes 20:12:49 but that requires operators to consolidate / aggregate logs etc , right lhcheng ? 20:13:22 yeah, up to the operator to determine what they want to do with the audit log 20:13:50 so, back to the bp at hand, I think it is somewhat useful, but it will be a partial solution 20:14:07 right ? 20:14:12 Depends if we want to carry a partial solution in Horizon (and even if we should carry that logic at all) ? 20:14:18 if you want to add a panel to support this view, thats entirely possible and welcomed. but consolidating/aggregating logs is beyond what horizon can do 20:14:35 I agree. Auditing Horizon is a good step...but only part of the problem. Often cloud actions occur outside of the UI. 20:14:36 right tqtran, this much is certain 20:15:21 I would see this more of a contrib panel, if operators use splunk (or other alternatives) 20:15:23 I think we should first focus on logging rest calls to the Horizon server in a way that is consistent with the REST calls to other services...before worrying too much about a UI to expose those logs. 20:16:11 so the other side should be logging it tyr_, not to say that horizon logging is great - there is room for improvement 20:16:39 but if I have to aggregate all of cinder/glance/neutron etc logs anyways, I'll just use that location 20:16:42 this is basically turning up the log level 20:16:47 we can already do that 20:17:37 not entirely sure where the userid fits in though, TBH 20:17:37 I think there is value in this type of feature, but you will need to assume a certain way to aggregate and gather all the logs 20:18:22 also, if horizon is setup behind a load balancer, you'd need to show all the actions from all the horizon servers etc 20:18:24 osprofiler library stores messages about API calls in mongodb (one of possible backends) 20:18:46 that would work tsufiev 20:18:50 tsufiev: you're not running osprofiler in production are you? 20:18:58 but it was designed with a slightly different goal in mind... 20:19:08 all the time 20:19:21 david-lyle, not yet, and I don't know if it could be switched on _permanently_ 20:19:38 that's a pretty faulty audit solution then :P 20:19:45 a great amount of data, it would be 20:20:14 Yeah we're getting off topic with osprofiler 20:20:14 but I'll ask rally folks if they though about that use-case 20:20:23 should we just say that this bp needs more info on how the data is stored / aggregated ? 20:20:39 Yeah I've just been scanning the patch itself 20:20:56 at a high-level, I'd like a Horizon logging solution to be consistent with other services. 20:21:07 my thought is if auditing isn't done outside of Horizon, it's too incomplete to be useful 20:21:41 +1 20:21:46 there's already auditing solution in place, why are we re-inventing the auditing solution? 20:22:14 that is a partial solution lhcheng, but its the best start we have 20:22:42 yeah, we could improve and contribute on that. but let's not start another project :) 20:23:01 big tent requires more projects, it's a pyramid scheme 20:23:04 ok, so lhcheng would like to start another project, I second this motion 20:23:14 Great 20:23:15 we don't make money without more new projects 20:23:19 lol 20:23:56 excuse me multi-level marketing 20:24:21 I quite liked the contrib idea. If there is some value in holding this, we could hold it in contrib and see if it can extended beyond that for a more complete solution. 20:24:21 ground floor level opportunities 20:24:46 yep robcresswell. I think that patch is going to have issues when you have multiple horizons too 20:24:47 * r1chardj0n3s is wondering what he's stumbled in on ;-) 20:25:14 ducttape_: Agreed, but I'm trying to keep the bp review seperate from implementation. 20:25:26 Otherwise we'll be here all day. 20:25:31 night 20:26:15 I'd say approve for now, and see where it goes. Anyone strongly against that idea? 20:26:22 wfm 20:27:23 #info https://blueprints.launchpad.net/horizon/+spec/operation-history-log Approved, Marked Low Priority. 20:27:36 #link https://blueprints.launchpad.net/horizon/+spec/django-debug-toolbar 20:28:23 Oh, this is mine. Its a pretty common django tool. Also adds a fairly detailed template profiler for load times. 20:28:31 could that thing just be turned on when debug is turned on ? 20:28:34 I think this piece should a documented add on 20:28:41 kinda like the css preview page ? 20:28:58 the show() method is called for every request 20:29:06 robcresswell, does django debug toolbar profile templates as well? 20:29:10 19 times when launch instance is invoked 20:29:12 ducttape_: Right now its disabled when DEBUG is False, but also has an explicit bool control too. Called ENABLE_DEBUG_TOOLBAR iirc. 20:29:27 it seems as there are 2 debugging/profiling features in this bp 20:29:34 thanks 20:29:49 tsufiev: Its an add on to the debug toolbar. So, they are interlinked. 20:30:15 okay, so the the toolbar is a prerequisite for template profiler 20:30:48 like the idea 20:31:19 I guess the most difficult part is to push 2 new dependencies to global requirements ;)? 20:31:28 The question is, as David mentioned, whether we just mention it and leave it all commented out, or provide the code and toggle it on a boolean 20:31:51 I'm obviously biased :) 20:31:57 it's pretty easy to just pip install over a venv, right? 20:32:06 you have three-four logical checks each time show is called 20:32:19 robcresswell, what if made a switch at Developer dashboard? 20:32:27 *we made 20:33:02 tsufiev: cookie driven rather than settings 20:33:27 well that still doesn't eliminate the overhead of checking on every request 20:33:44 david-lyle, ack 20:33:50 I like that it would be easy to enable...but I wouldn't want it on by default in debug mode. Also not certain about asking deployers to include this developer only dependency. 20:34:06 Its disabled by default, even in debug mode. 20:34:12 ah good point tyr_, that extra prereq is bad 20:34:15 you could even script enabling it 20:34:17 in tools 20:34:56 pip install 2-packages, append onto the local settings 20:34:57 the problem is that people trying to run horizon in prod are going to have some python dependancy on a library they have no interest in running with 20:35:19 ducttape_: I'm for not including it and just having a scripted solution to enable it 20:35:32 Sure 20:35:35 that's where I was headed, if unclear 20:35:47 that would be ideal, or even to have some developer requirements.txt thing 20:35:57 but how you inject the show method I don't know yet 20:36:17 what if we placed it into contrib/ and changed contrib/ dependencies regulations? 20:36:29 oh, nevermind 20:36:35 it's adding an app, forgot 20:36:46 so yeah, a contrib panel would be fine 20:37:03 err, not panel, but script 20:37:10 I mean, for example, contrib/ apps don't have to work with global requirements out of the box and may require additional deps to be installed 20:37:16 bring it in as a FEATURE plugin? 20:37:20 So as long as its conditional, the idea is fine, is the general consensus? 20:37:49 I think so robcresswell, make it pluggable and avoid the global requirements change 20:37:52 Reluctant to presume with my own bp, but we should move on to the next item. 20:37:52 flip Disabled=False in its enabled file and away you go. 20:37:53 +1 20:37:57 tyr_: something like that 20:38:22 Great. So will approve and leave a comment about ensuring its optional, as are its dependencies 20:38:26 Sound good? 20:38:29 +1 20:38:32 +1 20:38:44 +1 20:38:48 ack 20:39:02 perfect 20:39:10 +1 20:39:28 #https://blueprints.launchpad.net/horizon/+spec/django-debug-toolbar Approved, marked Low 20:39:31 ugh 20:39:40 #info https://blueprints.launchpad.net/horizon/+spec/django-debug-toolbar Approved, marked Low 20:39:55 #link https://blueprints.launchpad.net/horizon/+spec/horizon-use-quotas-api 20:40:01 ducttape_: You're up 20:40:04 ok, so some background 20:40:30 horizon uses the 'limits" api for lots of stuff, mainly around the pie charts on overview pages and checking quotas 20:40:46 the limits api is old, but reliable 20:41:10 cinder has now introduced this ability to have multiple storage types 20:41:22 it's also incredibly slow :/ 20:41:26 so deployment might have SSD / HDD etc 20:41:38 it gets worse r1chardj0n3s ;) 20:42:14 ducttape_, is the 'usage' feature a part of limits API or quotas API? 20:42:15 if I want to show users how much cinder quota they have, I need to no longer call limits api, instead I need the quotas call 20:42:36 the actual "you used this much" is returned in limits - but NOT in quotas call 20:42:37 I saw some horrendous workarounds for usage in horizon code 20:42:59 I think it was exactly cinder 20:42:59 this all is a giant mess, indeed 20:43:04 Quota management in general is something that gets mentioned a lot too 20:43:04 usage is fairly inaccurate too 20:43:21 So it seems like it could use an improvement in many regards 20:43:24 or at least was 20:43:35 we have the need to show users "you have this much available in ssd" and "this much in hdd" etc space 20:43:47 I applaud ducttape_ for volunteering 20:43:49 but to do this, it means making quotas calls 20:43:58 that is code no one ever wants to touch 20:44:27 and when I switch to quotas, then I need to make subsequent calls to summarize "oh - you used 500GB of SSD" etc 20:44:32 david-lyle, I made one attempt some time ago and still regret that :) 20:44:44 and that slowness r1chardj0n3s mentioned becomes more worser 20:44:51 perhaps even worserest 20:45:04 (just try limits with 10s of thousands of servers :/) 20:45:38 yikes 20:45:44 ducttape_, the proper solution to that problem is a cross-project initiative, isn't it? 20:45:47 so I'm stuck in my current position, I need to start making quota calls, and the work I need to do should probably be pushed back upstream 20:46:01 tsufiev: funny you should mention that 20:46:13 I mean, quotas have to be fixed in every affected service 20:46:15 there happens to be a quotas working group 20:46:22 but I loathe trying to make everything quotas, because that seems pretty horrid too 20:46:31 The blueprint itself seems too small given the scope then; aren't we talking about an effort per-project, rather than a general "migrate API" bp? 20:47:05 it could be. right now I am also asking which other projects have this aspect - to be able to have random new quotas show up 20:47:22 well, we migrated to limits from quotas (ducttape_ drove that), migrating back via ducttape_ seems like proper punishment 20:47:23 like I think glance and nova / neutron might be fixed 20:47:41 the irony is not lost on me 20:47:57 evidently I was a very bad person in my former life 20:48:09 I just want to highlight for the new comers :) 20:48:11 * ducttape_ is not sure about this life, either 20:48:31 lol 20:48:37 :D 20:49:01 what is the permission model on the quota APIs ? 20:49:02 I'm still missing the point why come back to quotas from limits if quotas were so bad :) 20:49:13 so the bp is there / filed.... and I'll push what I can under review in there for more feedback, but this quotas stuff and having a quotas working group sounds like waiting on the government to fix my problems 20:49:23 would we have to do something like limits for non-admins and quotas for admins? 20:49:55 * david-lyle hasn't checked 20:49:57 ducttape_: Yeah I'm just wondering whether we can build this up to a better scope for people to contribute. The bp in its current state isnt ideal 20:50:00 quotas provides a richer set of features tsufiev 20:50:27 ah, okay 20:50:46 as an example, we have users that log into horizon, and say "I failed to create a volume, but it says I have 100GB left" 20:51:09 and we say "you only have 100GB of HDD storage, you are out of SSD storage" 20:51:28 and the customer says "why is the chart telling me this / confusing me? " 20:51:36 I think: expand the bp to detail what needs to be done, and we can use the summit to talk about the work further, since it sounds like you're not available to implement the entire thing yourself ;) 20:52:09 I'm excellent at creating bps that I can't complete. challenge accepted 20:52:13 \o/ 20:52:26 looks like quota show calls are open 20:52:51 I would gladly implement the bp (if that's possible) 20:53:05 The trap worked! 20:53:07 well, I meant that pkarikh would gladly implement it :) 20:53:11 I mean, well volunteered tsufiev 20:53:12 I'll take all the help I can get :D 20:53:12 SCATTER 20:53:21 since he's interested in quotas fixing 20:53:40 my next bp on the list today is not as bad, I promise 20:53:49 ducttape_: I'm gonna mark the bp as Drafting until it can be expanded further 20:53:59 sounds good, thanks robcresswell 20:54:12 #info https://blueprints.launchpad.net/horizon/+spec/horizon-use-quotas-api Needs more work, but the idea is generally approved of. 20:54:15 :D 20:54:28 #link https://blueprints.launchpad.net/horizon/+spec/admin-neutron-l3-agent 20:54:30 so neutron agent lists - good times. 20:54:54 we have a hypervisor page, which is a good analogy of what I am after for this 20:55:13 this lists all the places where nova is running / available to host vms 20:55:47 well, neutron has a similar list of agents it has. like "these are places that host dhcp servers" "these are places that host routers" 20:56:09 as admins, we have to use the cli to navigate that right now 20:56:26 but it would be very helpful to show some of that info in the UI 20:56:27 would this be added to the table in system information? 20:56:53 I would see this as a new neutron panel in the admin area, if it really got flushed out 20:57:21 right now I have a small patch up, that just shows the location(s) where the neutron router resides 20:57:45 but really, this is a pretty rich environment for a lot of interesting stuff 20:58:04 if I was in tsufiev's shoes - this is where to volunteer 20:58:23 the api is pretty well know, there is a need from admins for a view into this stuff, etc 20:58:23 this time I abstain :) 20:58:24 it's not linked to the bp 20:58:35 Looks like a good idea, but needs filling out more so people can pick up on it ducttape_ 20:58:38 https://review.openstack.org/#/c/306619/ 20:58:48 #link https://review.openstack.org/#/c/306619/ 20:59:04 ok, yep agree robcresswell 20:59:23 ducttape_: http://pasteboard.co/kSwaEFE.png 20:59:35 I could see hosts listed in that table 20:59:40 just a thought 20:59:50 thanks ducttape_ 20:59:54 or is there a lot more information you're going to add? 20:59:57 yep, makes sense david-lyle 21:00:11 #info https://blueprints.launchpad.net/horizon/+spec/admin-neutron-l3-agent needs to be expanded 21:00:12 I could see the ability to drill down on those items too david-lyle 21:00:22 We're at time; will add final item to next meeting 21:00:32 Remember, no meetings next week because of summit 21:00:35 like you know the l3 agent is running on daves machine - what other routers are living there??? 21:00:49 thanks all 21:00:53 Lets continue in Horizon chat. Thanks all 21:00:56 #endmeeting