Tuesday, 2017-08-29

*** shuyingya has joined #openstack-sahara00:40
*** shuyingya has quit IRC00:43
*** shuyingya has joined #openstack-sahara00:43
*** zemuvier_ has joined #openstack-sahara00:47
*** zemuvier_ has quit IRC00:49
*** shuyingya has quit IRC00:49
*** zemuvier1 has joined #openstack-sahara00:49
*** zemuvier has quit IRC00:50
*** masber has quit IRC01:01
*** masber has joined #openstack-sahara01:02
*** shuyingya has joined #openstack-sahara01:14
openstackgerritIwona Kotlarska proposed openstack/python-saharaclient master: Add import of Cluster Templates  https://review.openstack.org/49857401:25
*** caowei has joined #openstack-sahara01:34
shuyingyatellesnobrega, around?02:05
*** zemuvier1 has quit IRC02:15
*** zemuvier1 has joined #openstack-sahara02:15
*** dave-mccowan has quit IRC02:32
*** zemuvier has joined #openstack-sahara02:51
*** zemuvier1 has quit IRC02:51
*** masber has quit IRC02:53
*** esikachev has joined #openstack-sahara03:43
*** esikachev has quit IRC03:48
*** links has joined #openstack-sahara04:03
*** masber has joined #openstack-sahara04:08
*** hoonetorg has quit IRC04:11
*** hoonetorg has joined #openstack-sahara04:23
*** caowei has quit IRC05:23
*** pgadiya has joined #openstack-sahara05:36
*** caowei has joined #openstack-sahara05:57
*** pgadiya has quit IRC06:18
*** pgadiya has joined #openstack-sahara06:34
*** pcaruana has joined #openstack-sahara06:39
*** raissa has quit IRC06:46
*** pgadiya has quit IRC06:54
*** pgadiya has joined #openstack-sahara07:06
*** rcernin has joined #openstack-sahara07:10
*** tesseract has joined #openstack-sahara07:25
*** anshul has joined #openstack-sahara07:29
*** esikachev has joined #openstack-sahara08:01
*** esikachev has quit IRC08:12
*** esikachev has joined #openstack-sahara08:16
*** raissa has joined #openstack-sahara08:20
*** tosky has joined #openstack-sahara08:55
*** esikachev has quit IRC09:20
*** esikachev has joined #openstack-sahara09:22
openstackgerritLuigi Toscano proposed openstack/sahara stable/pike: Replace http with https for doc links in sahara  https://review.openstack.org/49873209:42
*** esikachev has quit IRC10:52
*** esikachev has joined #openstack-sahara11:12
*** esikachev has quit IRC11:16
*** caowei has quit IRC11:27
*** esikachev has joined #openstack-sahara11:30
*** pgadiya has quit IRC11:39
*** tellesnobrega has quit IRC11:46
*** esikachev has quit IRC12:03
*** dave-mccowan has joined #openstack-sahara12:06
*** esikachev has joined #openstack-sahara12:14
*** shuyingya has quit IRC12:15
*** shuyingya has joined #openstack-sahara12:15
*** esikachev has quit IRC12:18
*** iwonka has quit IRC12:20
*** iwonka has joined #openstack-sahara12:21
*** shuyingya has quit IRC12:25
*** shuyingya has joined #openstack-sahara12:26
*** esikachev has joined #openstack-sahara12:30
*** shuyingya has quit IRC12:30
*** shuyingya has joined #openstack-sahara12:31
*** shuyingya has quit IRC12:33
*** shuyingya has joined #openstack-sahara12:33
*** esikachev has quit IRC12:34
*** shuyingya has quit IRC12:38
*** lucasxu has joined #openstack-sahara12:42
mnaseris anyone here familiar with the sahara db structure12:44
mnaserand is there a reason why the cluster_verifications in a separate table?12:44
toskyuhm, I think that the original architects are not around12:48
toskyeven if verifications may have been added later12:48
mnaserbecause literally12:51
mnaserall it holds is12:51
mnaserid/cluster_id/status12:51
mnaserand its just the status of the cluster12:51
mnaserso we're really adding 4 more fields for no reason12:51
toskyuh12:55
*** shuyingya has joined #openstack-sahara12:55
mnaserand the cluster_health_check_add function in the db api is a lie12:56
mnaser:p12:56
mnaserok ill see if we can get the cluster verification part of the table in a migration12:57
mnasersigh but if we do that then we cant backport it12:57
*** shuyingya has quit IRC13:00
*** shuyingya has joined #openstack-sahara13:00
*** tellesnobrega has joined #openstack-sahara13:01
toskyright, better focus on changes that can be backported without destroying too much13:02
toskyor the stable policy will beat us13:02
mnaseryeah i dont want that to happen cause i need this to be backportable.  anyways, just a small arch. question if anyone knows13:03
mnaserif i make changes in the db layer but the conductor still delivers the same object structure13:03
mnaserwill that keep everything ok? does all db interaction go through the conductor layer?13:03
mnaser(please let the answer be yes, hah)13:03
*** esikachev has joined #openstack-sahara13:05
toskybut we need to plan a migration13:07
toskynot sure that we can do this in a minor version13:07
toskymaybe yes, but not sure13:07
*** esikachev has quit IRC13:07
*** esikache1 has joined #openstack-sahara13:08
*** hoonetorg has quit IRC13:08
*** hoonetorg has joined #openstack-sahara13:09
*** esikache1 has quit IRC13:12
openstackgerritMerged openstack/sahara master: Replace http with https for doc links in sahara  https://review.openstack.org/49832913:13
*** zemuvier has quit IRC13:15
*** links has quit IRC13:18
*** dave-mccowan has quit IRC13:19
mnaserok so13:24
mnaserinstead of us having the session stored per session for example13:24
mnaseras nova does it (context.session)13:25
mnaserwe're instead generating a session per each DB call with get_session()13:25
mnaserim pretty sure that's the reason i cant drop the joins and make them lazy loading13:25
tellesnobregamnaser, hmm that makes sense13:31
mnaserim gonna try switching to this13:31
mnaserhttps://review.openstack.org/#/c/221310/13:32
mnaserhow nova switched to it fyi13:32
mnaserhttps://review.openstack.org/#/c/225065/23/nova/db/sqlalchemy/api.py13:33
mnaserlooks straight forward13:33
*** shuyingya has quit IRC13:34
*** shuyingya has joined #openstack-sahara13:34
toskythe commit message in the nova change is really... helpful13:35
*** shuyingya has quit IRC13:38
openstackgerritMerged openstack/puppet-sahara stable/pike: Update UPPER_CONSTRAINTS_FILE for stable/pike  https://review.openstack.org/49737213:40
*** dave-mccowan has joined #openstack-sahara13:41
*** shuyingya has joined #openstack-sahara13:43
*** anshulbehl has joined #openstack-sahara13:45
*** anshul has quit IRC13:46
*** shuyingy_ has joined #openstack-sahara13:47
*** shuyingya has quit IRC13:47
*** esikache1 has joined #openstack-sahara13:49
*** jeremyfreudberg has joined #openstack-sahara13:51
mnaseryay.. # of failing tests slowly decreasing with this change14:22
mnaserwe're going to be using a singular session per request14:22
mnaserrather than many sessions all over the place14:22
mnaserso many session flush's which shouldn't be there14:24
iwonkaping tellesnobrega14:25
*** tellesnobrega has quit IRC14:26
*** anshulbehl has quit IRC14:26
*** tellesnobrega has joined #openstack-sahara14:27
jeremyfreudberg(tellesnobrega, i think iwonka pinged you when your internet didn't work)14:30
tellesnobregajeremyfreudberg, thanks14:31
tellesnobregahi iwonka14:31
iwonkayes14:33
iwonkai pinged you because14:34
iwonkai'm tring to add the thing to gui14:34
iwonkaand it needs default_image_id14:34
iwonkaand in code for create there is14:34
iwonka            # TODO(nkonovalov): Fix client to support default_image_id14:34
iwonkaso apparently it's not supported14:34
iwonkacan i do the same thing? just skip it in gui and set to None?14:35
iwonkatellesnobrega ^14:35
tellesnobregaiwonka, I have to check before giving a definitive answer and I can't right (on a meeting)14:36
tellesnobregabut seems like you could do it for now and we can fix it later14:36
iwonkasure, please let me know once you check it14:36
*** chlong has joined #openstack-sahara14:41
tellesnobregawill do14:55
*** shuyingy_ has quit IRC15:01
*** iwonka has quit IRC15:25
*** iwonka has joined #openstack-sahara15:25
*** shuyingya has joined #openstack-sahara15:27
*** shuyingy_ has joined #openstack-sahara15:28
*** tellesnobrega has quit IRC15:28
*** shuyingya has quit IRC15:31
*** shuyingy_ has quit IRC15:46
*** esikache1 has quit IRC15:47
*** jeremyfreudberg has quit IRC15:49
*** ssmith has joined #openstack-sahara16:03
*** tesseract has quit IRC16:15
*** esikache1 has joined #openstack-sahara16:22
*** jeremyfreudberg has joined #openstack-sahara16:22
*** esikache1 has quit IRC16:26
*** rcernin has quit IRC16:46
*** pcaruana has quit IRC16:48
*** dave-mccowan has quit IRC16:50
*** links has joined #openstack-sahara16:55
*** abalutoiu has joined #openstack-sahara16:56
*** jeremyfreudberg has quit IRC17:01
*** esikache1 has joined #openstack-sahara17:05
*** raissa has quit IRC17:10
*** jeremyfreudberg has joined #openstack-sahara17:12
*** links has quit IRC17:34
openstackgerritIwona Kotlarska proposed openstack/sahara-dashboard master: Add export of cluster templates to UI  https://review.openstack.org/49861218:01
*** lucasxu has quit IRC18:01
*** tellesnobrega has joined #openstack-sahara18:07
*** esikache1 has quit IRC18:34
*** cpusmith has joined #openstack-sahara19:01
openstackgerritMerged openstack/sahara stable/pike: Replace http with https for doc links in sahara  https://review.openstack.org/49873219:04
*** ssmith has quit IRC19:04
*** cpusmith_ has joined #openstack-sahara19:04
*** cpusmith has quit IRC19:08
*** abalutoiu_ has joined #openstack-sahara19:30
*** abalutoiu has quit IRC19:34
*** abalutoiu_ has quit IRC19:34
*** dave-mccowan has joined #openstack-sahara19:35
*** abalutoiu has joined #openstack-sahara19:35
*** abalutoiu_ has joined #openstack-sahara19:41
tellesnobregaiwonka, about the default_image_id19:44
tellesnobregayou can just set to None19:44
tellesnobregaafter we can fix saharaclient and update that19:45
*** abalutoiu has quit IRC19:46
tellesnobregajeremyfreudberg, do you agree with that?19:47
tellesnobregatosky, as well19:47
toskytellesnobrega: out of context, which review?19:48
jeremyfreudbergtellesnobrega, i do agree with it, mostly because to me it's not even clear what that parameter does -- the docs and git-blame  are very vague. and because it's not present in CLI or UI i've never used it either19:48
jeremyfreudbergtosky, default_image_id on cluster template19:49
tellesnobregatosky, sorry19:50
tellesnobregaiwonka, found that default_image_id is not set on the client, she asked if she could set it to none while importing cluster-templates due to this issue19:51
toskyoh, right19:52
toskywell, yes, if it's needed and it's not there, it needs a value19:52
jeremyfreudbergtosky/ tellesnobrega do either of you actually know what it does19:52
jeremyfreudberg?19:52
tellesnobreganot really19:52
jeremyfreudbergconfusingly we actually reuse the name for default template generation, but i think the use case here (manual cluster template creation) is different19:53
tellesnobregaother option would be find out why this is needed and maybe fix it or completely remove it if we don't need it anymore19:53
*** abalutoiu__ has joined #openstack-sahara19:53
jeremyfreudbergexactly, i would like to find out if we still need it before patching dashboard to support it19:54
toskyif it's a parameter passed in public API, remove only in v219:54
tosky:D19:54
tellesnobregatrue19:54
tellesnobregav1.1 is "untouchable"19:54
jeremyfreudbergi'd be willing to bet based on the lack of doc about it, there is no users using it. of course tosky is right, we have to "play safe" and remove only for v219:54
tellesnobregamakes total sense19:55
iwonkasooooo19:55
iwonkaI can just leave it be?19:55
iwonkaand set to None?19:56
*** abalutoiu_ has quit IRC19:57
jeremyfreudbergiwonka, i would say just when you call this function https://github.com/openstack/sahara-dashboard/blob/b05932f4fbb15a4be0569c4cd741111b18986a10/sahara_dashboard/api/sahara.py#L260 just do not pass in the kwarg for default_image_id20:01
iwonkajeremyfreudberg: that is the function i'm caling now :)20:02
jeremyfreudbergiwonka, great, so if i can get confirmation from tellesnobrega do as i suggested20:02
tellesnobregaiwonka, go ahead as jeremyfreudberg suggested20:03
iwonkaok, thanks20:03
mnaserwell20:13
mnaseri was able to play round with a few things20:13
mnaserand20:13
* mnaser 167105 function calls (162509 primitive calls) in 0.381 seconds20:13
toskywow20:15
jeremyfreudbergmnaser, nice, this is cut down from the several seconds on cluster get, right?20:15
mnaseryeah20:15
mnaserand it was like20:15
mnaserlet me show20:15
openstackgerritMohammed Naser proposed openstack/sahara master: Optimize model relationships (avoid joins, prefer subquery)  https://review.openstack.org/49861120:17
mnaserjeremyfreudberg tosky ^20:17
mnaserthis will simply do subqueries instead of large joins20:18
mnaserwhich are obviously far more efficent20:18
mnaserby subquery it means that it will issue 2 queries rather than 120:18
mnaserwhich in our case, the deduplication of data is much more efficent than the latency of an extra query imho20:19
mnaser2017-08-29 20:21:48.640 24480 INFO eventlet.wsgi.server [-] 192.168.0.252,192.168.0.251 "GET /v1.1/8ffa97d00b9a4f55a5f4f40a5a05b600/clusters/4961ff69-a2f9-40a3-b44c-ff208ce5ca51?show_progress=False HTTP/1.1" status: 200  len: 13814 time: 7.781235920:24
mnaser2017-08-29 20:23:49.159 24558 INFO eventlet.wsgi.server [-] 192.168.0.253,192.168.0.251 "GET /v1.1/8ffa97d00b9a4f55a5f4f40a5a05b600/clusters/4961ff69-a2f9-40a3-b44c-ff208ce5ca51?show_progress=False HTTP/1.1" status: 200  len: 13814 time: 0.151095920:24
mnaserguess which one is before and which one is after20:24
jeremyfreudbergwow20:24
toskyI wonder if the some of the relationship could be still joined, but inner joins, not the default left outer joins20:31
toskybut I can't investigate it, so I guess that the speedup is good enough :)20:31
*** cpusmith_ has quit IRC20:43
*** jeremyfreudberg has quit IRC20:52
*** abalutoiu__ has quit IRC20:54
openstackgerritMohammed Naser proposed openstack/sahara-image-elements master: Enable the ability to cache packages  https://review.openstack.org/49808721:03
openstackgerritMohammed Naser proposed openstack/sahara master: Optimize model relationships (avoid joins, prefer subquery)  https://review.openstack.org/49861121:08
*** esikache1 has joined #openstack-sahara21:31
*** esikache1 has quit IRC21:35
iwonkaping tellesnobrega21:38
tellesnobregaiwonka, pong21:50
iwonkaam i supposed to write some documentation?21:50
iwonkaand if yes, where?21:50
tellesnobregait would be great21:51
tellesnobregasahara docs21:51
tellesnobregathey live now on the sahara project21:51
tellesnobregasahara/doc/source/21:51
*** jeremyfreudberg has joined #openstack-sahara21:52
tellesnobregaI believe the best place would be sahara/doc/source/user/overview21:52
iwonkaok21:52
tellesnobregalet me check if there is a better place21:52
*** tellesnobrega has left #openstack-sahara21:52
*** tellesnobrega has joined #openstack-sahara21:52
tellesnobregaI think this place should21:53
tellesnobregaunder templates21:53
tellesnobregayou could add a subtopic importing and exporting templates21:53
tellesnobregaand you explain how you do it21:53
iwonkaokay21:54
iwonkathanks21:54
iwonkai'll do it before import of ct in gui21:54
toskyand final touch, tempest tests :P21:54
iwonka?21:54
*** jeremyfreudberg has quit IRC21:57
toskyhttps://docs.openstack.org/tempest/latest/overview.html - our tests are here: https://docs.openstack.org/sahara-tests/latest/tempest-plugin.html22:09
tellesnobregatosky, that would be perfect22:13
tellesnobregaiwonka, https://docs.openstack.org/tempest/latest/22:13
iwonkaseems like a longer work22:14
iwonkalet me deal with import of ct in gui first please :(22:14
toskyoh, a simple test for one of the new API is not complex22:14
tellesnobregait shouldn't be too complicated22:14
toskythe horizon part is definitely more complex22:15
tosky(for me at least :)22:15
tellesnobregabut finish your patches first22:15
tellesnobregawe can deal with that later22:15
*** iwonka_ has joined #openstack-sahara22:21
*** iwonka has quit IRC22:25
*** iwonka_ is now known as iwonka22:34
mnaserwell23:11
mnasermy fixes work for python323:11
mnaserbut not python223:11
mnaserwhaah23:11
*** tosky has quit IRC23:15
openstackgerritMohammed Naser proposed openstack/sahara master: Optimize model relationships (avoid joins, prefer subquery)  https://review.openstack.org/49861123:25

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