Monday, 2018-06-18

*** rcernin_ has joined #openstack-sahara00:34
*** rcernin has quit IRC00:37
*** rcernin_ has quit IRC02:09
*** Bhujay has joined #openstack-sahara04:08
*** links has joined #openstack-sahara04:37
*** pgadiya has joined #openstack-sahara05:18
*** pgadiya has quit IRC05:18
*** rcernin has joined #openstack-sahara05:20
*** Bhujay has quit IRC06:18
*** Bhujay has joined #openstack-sahara06:23
*** pcaruana has joined #openstack-sahara06:35
*** rcernin has quit IRC07:01
*** tesseract has joined #openstack-sahara07:22
*** tosky has joined #openstack-sahara07:36
*** links has quit IRC07:38
*** links has joined #openstack-sahara07:55
*** links has quit IRC08:04
openstackgerritchen jiao proposed openstack/sahara master: Amend the spelling error of a word  https://review.openstack.org/57605008:04
*** Bhujay has quit IRC08:09
*** links has joined #openstack-sahara08:18
*** Bhujay has joined #openstack-sahara08:31
openstackgerritchen jiao proposed openstack/sahara master: Amend the spelling error of a word  https://review.openstack.org/57605008:53
toskyapparently https://review.openstack.org/#/c/572243/ (the only thing that merged in keystone between the working and the non-working jobs) is the reason for the breakage09:07
toskyinvestigation ongoing on #openstack-keystone09:07
openstackgerritLuigi Toscano proposed openstack/sahara master: DNM Dummy change to trigger jobs  https://review.openstack.org/30401909:12
openstackgerritchen jiao proposed openstack/sahara master: Amend the spelling error of a word  https://review.openstack.org/57607810:03
openstackgerritLuigi Toscano proposed openstack/sahara master: DNM Adapt to keystone change: use member instead of Member  https://review.openstack.org/57608110:15
Bhujaytosky: in last 48 hours i cloud build mapr and ambari images using sahara-image-pack , but when laucning the cluster it is trying to download more pkgs from internet and fails since from my sahara cluster vm i dont have internet access proxy access10:32
Bhujayduring the image build shd it not install all necessary pkgs ?10:33
toskyBhujay: sahara-image-pack should load all the required packages, as far as I know10:40
toskyoh, well10:40
toskyat least for mapr10:40
toskyfor mapr on centos10:40
toskyfor ambari, no, because the image only contains ambari and the HDP bits are downloaded dynamically10:41
Bhujaytosy: i see for map r the engine is trying to install scala but in the resources/images.py scala is there10:43
Bhujaytosy:  i tried creating the images with proxy information in /etc/environment and then engine can download but at  a later stage sahara fails   since proxy prevents intercommunication between cluster , may be it is my knowledge issue with proxy , any suggestion10:46
Bhujaytosky ^10:46
toskyBhujay: scala should be already installed; can you check if scala is already there?10:47
toskyI fixed recently the code which download scale, which broke10:47
Bhujaytosky: ok let me check10:47
toskywhich version of Sahara do you use? Maybe you don't have the fix10:47
Bhujaytosky: i am using openstack 17.0.410:48
Bhujayqueens10:48
toskyBhujay: there is no such version of openstack :)10:48
toskywhich version of sahara?10:48
toskythis is the fix: http://git.openstack.org/cgit/openstack/sahara/commit/?h=stable/queens&id=a97ea07071ceb8e377001096e90504f9379e532a10:48
Bhujaytrying to figureout the version10:49
Bhujaytosky: noted the fix10:49
toskysorry, you already mentioned it but I forgot: how did you install it? If it's about packages, you can simply check the version of the sahara packages10:50
Bhujayi installed it using openstack-ansible10:50
toskyoh, right10:50
toskyuhm, I would expect that they take the tip of the relevant branch10:51
toskybut yeah, please check if the fix is there10:51
Bhujaychecking10:52
toskyopenstack-ansible-os_sahara installs the pip packages, so a pip list should show the version of sahara10:54
Bhujaytosky : pbr -v sahara  = 3.1.1   and scala.noarch 2.12.6-1 is installed on the cluster . Now checking if the fix is there ...10:57
toskyuhm, 3.1.1 is the version of the pbr, not sahara10:59
toskybut the fix should be there10:59
toskythat said, there is a codepath which tries to install scala anyway during run time11:00
toskyI opened a story to track the issue some time ago11:00
toskyfor now, just comment out that code11:00
toskythis one: https://storyboard.openstack.org/#!/story/200196511:00
toskysadly we didn't properly test properly the "no network" case for a while11:00
Bhujaytosky: sorry about the version information... i open the code install_scala and the test if [ $test_only -eq 0 ]; thenis not there , so let me follow your storyboard link11:05
toskyBhujay: sorry, which code did you follow?11:06
toskythere are two different code paths11:06
toskythe fix that I linked above applies to11:07
toskysahara/plugins/mapr/resources/images/centos/install_scala and sahara/plugins/mapr/resources/images/ubuntu/install_scala11:07
Bhujaytosky: I was looking at the sahara/plugins/mapr/resources/images/centos/install_scala   file11:07
toskyoki11:07
toskycan you paste its content?11:07
Bhujaysure11:08
Bhujayhttp://paste.openstack.org/show/72370311:09
toskyBhujay: ok, yeah, that's the code without the fix11:11
Bhujaytosky:  i got the version  8.0.1.dev13   and for now i commented out the rpm installation and re launching another cluster11:28
*** dave-mccowan has joined #openstack-sahara11:30
*** dave-mcc_ has joined #openstack-sahara11:33
*** dave-mccowan has quit IRC11:35
Bhujaytosky: is there anyway we can prevent hdp pkg download by cluster vm in ambari plugin , like preinstalling them in image ?11:43
Bhujaytosky: nope , now it tries to search https://package.mapr.com  , http://paste.openstack.org/show/723705.  can we somehow prevent reinstallation if the pkgs are already there ?11:52
openstackgerritMerged openstack/sahara-dashboard master: Fix _cls_registry type  https://review.openstack.org/57543711:59
toskyBhujay: for HDP: no, because it's Ambari doing the downloading12:03
toskythere was a proposed patch to configure a mirror though12:03
Bhujaytosky : i see ,12:03
toskybut it did not move forward12:03
toskyhttps://review.openstack.org/#/c/498087/12:04
Bhujaytosky: no , not with mapr either .. it is now trying to install mapr core pkgs12:04
toskythat should not happen12:04
toskyor at least, it should not fail if the packages are already installed12:04
Bhujayi disabled the pkgs from image.yml in sahara engine let me see12:04
toskycan you please paste a longer snippet from the log? I can't get which is the exact place where it's failing12:05
toskyone possible solution for HDP is to create a mirror of HDP packages on a local instance, and add that repository to the sahara images12:05
Bhujaytosky: yeah , that sound ok,12:06
Bhujaytosky12:06
Bhujayin my env i can give internet connection to cluster vms through proxy the only problem is ...12:08
Bhujaywhile the proxy info in vm can be predefined in the image , the no_proxy  also should include the cluster public ips , and i dont know how to do that12:09
toskyehm, I'm not sure I understand the problem for no_proxy12:13
Bhujayone sec it agin failed ....12:13
Bhujayhttp://paste.openstack.org/show/723707  is a longer log showing the failure12:15
toskythis is from sahara/plugins/mapr/base/base_cluster_configurer.py, it seems12:22
toskythat code may not have been written with the use case of no-connection12:22
openstackgerritTelles Mota Vidal Nóbrega proposed openstack/python-saharaclient master: Adding boot from volume  https://review.openstack.org/57253612:24
toskyI would try to see if at least it works with a proxy, but I'm not sure I get the problem with it12:26
toskyalso tellesnobrega is around12:26
tellesnobregahi12:26
Bhujaytosky ,  the download works with proxy that i have checked . The proxy information that i have given in the image was included in the /etc/environment..12:30
Bhujayhowever due to this , ambari agent cant connect to ambari server since it tries to connect to proxy for any http connection , thats where no_proxy env var comes in which should list the http server for which the seesion should ignore proxy server . hope i am able to explain ...12:33
Bhujayhowever , i just figured out that the proxy info can be given in yum.com instead of /etc/environment , that shoudl solve the problem , let me try this ...12:33
toskyoh, ok, I didn't know that variable (no_proxy)12:33
toskyand yes, you should be able to configure the proxy just for yum, not for all services12:34
Bhujaynevertheless , in a corporate environment  it is not  desirable to allow the vms to access internet , then any software can be downloaded by the user from the vm vilolating the security plocies etc12:35
Bhujayso , if  we can change the code  such that during image creation all the reqd pkgs and need for internet connection is over and during deployment sahara only  verifies will help enterprises adopt it more easily .12:37
tellesnobregaBhujay, that is a good point, we need to see how we can do that, because iirc both ambari and cdh download stuff during cluster creation12:38
toskytellesnobrega: there is a lot of mapr code which does the installation and configuration of packages, coming from MapR, that maybe could be removed if we always run the verification/libguestfs code12:40
toskywhich is doing basically the same12:40
toskysee for example sahara/plugins/mapr/base/base_cluster_configurer.py12:41
Bhujaytellesnobrega, i understood ambari problem since ambari need the download , but for mapr  we  can do it first12:41
toskybut I'm not sure if what I wrote above is true12:41
toskyBhujay: it's probably easier for ambari12:41
toskybecause you just need to create a mirror12:41
Bhujaytosky , i see12:41
toskyambari has a lot of code which downloads and configure12:41
Bhujaytrue that will be easier12:41
toskyright now we have more pressing issue (a change in keystone broke sahara), so let's see12:42
Bhujaylocal repo sounds a good solution12:42
tellesnobregatosky, the Member x member patch?12:48
toskytellesnobrega: you may want to read the logs of #openstack-keystone starting from earlier today12:49
toskyso far I'm sure that I don't understand what's going on12:49
tellesnobregatosky, will do12:49
*** jeremyfreudberg has joined #openstack-sahara13:01
*** jeremyfreudberg_ has joined #openstack-sahara13:15
*** jeremyfreudberg has quit IRC13:18
*** jeremyfreudberg_ is now known as jeremyfreudberg13:23
tellesnobregatosky, this error is very weird, the patch to revert that one needs to merge for us to test ?13:32
openstackgerritTelles Mota Vidal Nóbrega proposed openstack/python-saharaclient master: Adding boot from volume  https://review.openstack.org/57253613:35
toskytellesnobrega: in my testing, reverting https://review.openstack.org/#/c/572243/ restored the previous behavior13:35
toskysee the revert https://review.openstack.org/#/c/576056/ and the dummy patch for sahara on top of it: https://review.openstack.org/#/c/304019/13:35
tellesnobregaok13:35
tellesnobregajeremyfreudberg, can you take a look at the patch on saharaclient on boot from volume13:41
jeremyfreudbergtellesnobrega: yes, i'll take a look13:41
tellesnobregaI added the v2 part for node group templates, I would like for you to take a look on it so I can continue working on preparing the client for v213:42
jeremyfreudbergtosky, something weird in the keystone logs is that first it says "Conflict occurred attempting to store role - Duplicate entry found with name Member".... but then... "Could not find role: Member.: RoleNotFound: Could not find role: Member."13:42
tellesnobregaso we are on the same page on how that should be done13:42
jeremyfreudbergseems to be contradictory13:42
jeremyfreudbergtellesnobrega: yep13:42
tellesnobregaabout the error, can this be related to how it is stored on db?13:43
tellesnobregameaning it has member there, so it fails to add the new one13:43
tellesnobregaand when restored it is checked for Member (case sensitive) and it says it is not there13:43
toskythe "Conflict occurred..." is what appears as fatal exception in heat logs13:44
toskyif you want to move this discussion to #openstack-keystone, it may help the people trying to reproduce the issue13:44
Bhujaytosky , putting the porxy in yum.conf seems to be working, i have reached 34%  wait_ambari_request ...13:48
Bhujaytosky,  got the web page for ambari , what is the user name and password ?13:48
tellesnobregait should show at the cluster info on horizon13:49
tellesnobregaiirc the password is generated13:49
Bhujayok13:50
*** links has quit IRC14:09
jeremyfreudbergso, keystone seems to store role names withOUT case sensitivity, so it makes sense that tosky's attempt failed14:09
jeremyfreudbergi'm not sure,  what is trying to create the role, though14:09
toskyplease comment there :)14:11
jeremyfreudbergwhere is "there"? whose review?14:11
jeremyfreudbergor which review14:11
toskyon the review, or on #openstack-keystone14:11
jeremyfreudbergi'll throw it on -keystone14:12
toskythanks14:12
tellesnobregajeremyfreudberg, not sure I follow your comment on the client path14:22
tellesnobregapatch14:22
jeremyfreudbergdepending on the nature of the v1->v2 change, it may be simpler to have just one class14:23
jeremyfreudbergand do if-else for the difference14:23
jeremyfreudbergthere seems to be a lot of copy-paste now, for the sake of a tiny change14:23
tellesnobregahum, ok14:25
*** elmiko has joined #openstack-sahara14:38
tellesnobregajeremyfreudberg, I'm heading out for lunch, but when I'm back (if you are still here) I have some follow up questions on the v2 implementation15:08
*** Bhujay has quit IRC15:36
*** jeremyfreudberg has quit IRC16:11
*** tesseract has quit IRC16:19
*** pcaruana has quit IRC16:20
*** dave-mcc_ has quit IRC16:30
*** jeremyfreudberg has joined #openstack-sahara16:59
tellesnobregajeremyfreudberg, about v217:32
tellesnobregado you really prefer ifs instead of a new class? under a v2 folder?17:32
tellesnobregaI understand that we can use the ifs, and I can make get_version under utils.py to get the selected version17:33
tellesnobregabut, Inheritance looks so much better than a bunch of ifs in the code17:33
tellesnobregaI don't know17:33
tellesnobregatosky, do have an opinion on this?17:34
jeremyfreudbergi'm looking through again now17:34
tellesnobregathanks17:34
jeremyfreudbergfor example, inheritance looks really nice on get_parser stuff17:34
tellesnobregayes17:34
tellesnobregaI understand that the take_action is too much copy and paste17:35
toskyit depends on how much code is duplicated, but technically even with inheritance there should not be much duplicated code17:38
toskyI mean, one of the thing about inheritance is to group the common code too17:38
jeremyfreudbergtosky, in the case of node group template commands, the problem is that the function bodies are almost identical, but not quite17:38
jeremyfreudberghadoop_version->plugin_version17:38
toskydefine a common _<almost_same_name> function and pass the different string as parameter?17:39
jeremyfreudbergthere is probably a hacky way with constants and getattr that would achieve maximum inheritance and minimum copypaste, but it would be awkward to read17:39
tellesnobregaexactly, small changes, but they need to be there17:39
tellesnobregaI like a common _<almost_same_name> function idea17:40
tellesnobregawe can do that17:40
jeremyfreudbergwe can try it like that, although i'm having trouble imagining the specifics in this case17:42
tellesnobregaI will have to take a look17:54
tellesnobregabut even with this case of the node group templates, where we copy and paste the take actions, I'm inclined to choose it instead of if...else17:55
jeremyfreudbergtosky: which user does sahara-tests use in the gate? admin? sahara?18:10
jeremyfreudbergtosky: found it, it's admin18:13
toskyyes, even if I'd like to switch to demo (a non-admin) at some point18:14
*** dave-mccowan has joined #openstack-sahara18:17
jeremyfreudbergtosky: how do i change this user easily to something else? http://logs.openstack.org/81/576081/1/check/sahara-tests-scenario/20379dc/job-output.txt.gz#_2018-06-18_10_50_16_22435518:20
jeremyfreudbergi'd like to try it as someone without the admin role18:20
*** pcaruana has joined #openstack-sahara18:25
toskyjeremyfreudberg: uhm, we should be using demo already: http://git.openstack.org/cgit/openstack/sahara-tests/tree/roles/run-sahara-scenario/tasks/main.yaml18:30
jeremyfreudbergtosky: the job that i linked had --os-cloud devstack-admin18:30
toskyjeremyfreudberg: no, sorry: http://git.openstack.org/cgit/openstack/sahara-tests/tree/roles/run-sahara-scenario/defaults/main.yaml18:30
toskyjust change the default18:30
toskybut it may not work, I don't remember why I switched back; probably to have the same behavior of the zuul v2 jobs18:31
toskyand also here http://git.openstack.org/cgit/openstack/sahara-tests/tree/roles/setup-sahara-scenario-env/defaults/main.yaml18:33
jeremyfreudbergtosky: where are those clouds defined?18:33
toskyjeremyfreudberg: devstack creates them18:35
toskyyou can find in the logs, <blabla>/etc/openstack/clouds.yaml18:35
*** pcaruana has quit IRC18:39
openstackgerritJeremy Freudberg proposed openstack/sahara-tests master: DNM admin->demo  https://review.openstack.org/57623118:42
tellesnobregajeremyfreudberg, do you know where the FakeApp for the openstackclient is defined?18:53
tellesnobregafound it18:54
jeremyfreudbergcool18:54
tellesnobregawhen you said that self.app.api_version has the selected version from the user18:55
tellesnobregaare you sure about that?18:55
jeremyfreudberg90%18:55
tellesnobregahmm, because the FakeApp doesn't have api_version defined18:56
tellesnobregaI'm seeing it under clientmanager18:56
tellesnobregahttps://github.com/openstack/python-openstackclient/blob/06263bd5852aad9cd03a76f50140fbbb2d0751ba/openstackclient/common/clientmanager.py#L5018:56
tellesnobregaso, it could be self.app.client_manager.api_version['data_processing']18:57
tellesnobregaor even, self.app.client_manager.data_processing.api_version18:57
jeremyfreudberg(Pdb) self.app.client_manager.api_version18:58
jeremyfreudberg*** AttributeError: 'ClientManager' object has no attribute 'api_version'18:58
jeremyfreudbergit has _api_version, though18:58
tellesnobregadoes self.app.api_version exist?18:58
jeremyfreudberg(Pdb) self.app.api_version['data_processing']18:59
jeremyfreudberg'1.1'18:59
jeremyfreudbergworks great18:59
tellesnobregacan you try self.app.client_manage.data_processing.api_version18:59
tellesnobrega?18:59
tellesnobregacool, I guess I will need to update the FakeApp for tests to work18:59
jeremyfreudbergyou mean self.app.client_manager.data_processing._api_version ... because this comes from https://github.com/openstack/python-saharaclient/blob/master/saharaclient/api/client.py#L5219:00
jeremyfreudbergself.app.api_version seems like the best choice, i guess19:00
tellesnobregaok19:00
tellesnobregamakes sense19:00
openstackgerritTelles Mota Vidal Nóbrega proposed openstack/python-saharaclient master: Adding boot from volume  https://review.openstack.org/57253619:26
tellesnobregajeremyfreudberg, tosky take a look at  ^ and see if it makes sense (ps.: tests will fail because FakeApp doesn't have the api_version) but focus on the refactoring for inheritance19:26
toskytellesnobrega: that, or inherit from a common ancestor where the common function should live19:30
tosky(less refactoring when the support for v1 will be dropped)19:30
tellesnobregacan do that too19:31
*** dave-mccowan has quit IRC20:12
*** dave-mccowan has joined #openstack-sahara20:13
*** jeremyfreudberg has quit IRC20:42
*** dave-mcc_ has joined #openstack-sahara20:52
*** dave-mccowan has quit IRC20:54
*** rcernin has joined #openstack-sahara22:36
*** dave-mcc_ has quit IRC23:16
*** tosky has quit IRC23:20

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