Wednesday, 2018-08-22

*** rcernin_ has joined #openstack-sahara01:23
*** rcernin has quit IRC01:25
openstackgerritAndriy Shevchenko proposed openstack/openstack-ansible-os_sahara master: import zuul job settings from project-config  https://review.openstack.org/59469001:55
openstackgerritAndriy Shevchenko proposed openstack/openstack-ansible-os_sahara master: switch documentation job to new PTI  https://review.openstack.org/59469101:55
*** rcernin has joined #openstack-sahara02:00
openstackgerritAndriy Shevchenko proposed openstack/openstack-ansible-os_sahara stable/ocata: import zuul job settings from project-config  https://review.openstack.org/59475902:01
*** rcernin_ has quit IRC02:03
*** Bhujay has joined #openstack-sahara04:16
*** cmart has quit IRC04:31
*** galaxyblr has joined #openstack-sahara04:32
*** galaxyblr has quit IRC04:38
*** galaxyblr has joined #openstack-sahara04:39
Bhujayranger installation error http://paste.openstack.org/show/728566/04:56
Bhujaymariadb was installed in the image, the VM shows it -  http://paste.openstack.org/show/728567/05:07
*** pcaruana has joined #openstack-sahara06:41
*** ivoline has joined #openstack-sahara06:42
*** ivoline has quit IRC06:48
*** rcernin has quit IRC07:07
*** tosky has joined #openstack-sahara07:13
Bhujaytosky , the error i hv pasted looks like missing mysql.service alias in mariadb.service07:19
Bhujayso i  have disabled the mysql install and  changed mysql  start to maridb start here  https://github.com/openstack/sahara/blob/f8566f6daf18b29be8bc44ec1ce5e9dd16c87ef3/sahara/plugins/ambari/deploy.py#L200b start here ..07:22
toskyno, no, that should not be needed07:22
toskyI deployed ambari on CentOS and RHEL which use mariadb07:22
Bhujayon the vm i  wanted to start with mysqld and didnt find the service but mariadb started07:24
toskythe code should be changed to use systemctl start mysqld07:24
Bhujayok let me check on the vm if systemctl recognize that service07:24
Bhujayno , it doesn't07:27
Bhujayhttps://bugzilla.redhat.com/show_bug.cgi?id=152057707:27
openstackbugzilla.redhat.com bug 1520577 in mariadb "systemd unit file for mariadb server should include alias for mysqld.service" [Unspecified,Closed: cantfix] - Assigned to mschorm07:27
toskyok, ok, change it to mariadb07:28
toskybut still systemctl07:28
Bhujayok , so  this error stage was gone . prepare ranger was ok but it failed when ambari tried to install ranger .07:30
toskyalso the line before should bechanged probably to use the r.install_package method07:30
toskyand specify mariadb-server also there07:30
toskyso that it could work also with ubuntu07:30
Bhujaysure , noted that07:31
Bhujaynow we need to debug why ambari fails with DatabaseException:no database selected07:33
Bhujayhttp://paste.openstack.org/show/728571/  - please see the bottom part which is log from ambari07:33
Bhujayyou would notice that the db connection check is passed , but the select query actually don't mention any db name07:34
*** tosky has quit IRC07:43
*** tosky has joined #openstack-sahara07:43
toskyI never used directly the mysql connector for java, so maybe something else is missing07:46
toskymaybe it just tries to use the default db07:48
toskyis it possible to print the content of /tmp/init.sql before it's removed?07:48
Bhujaysure , I will do07:48
toskyalso, more important question: are there updated instruction for installing ranger inside ambari?07:49
toskyI have the feeling that the code there was written some time ago07:49
Bhujayfrom the init_db_template  we see init.sql is nothing but the root user nae and passwrd ? are you looking for the db pwd ?07:50
toskyI was looking for the creation of a database07:50
toskyas described here: https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.2/bk_security/content/configuring_mysql_for_ranger.html07:51
Bhujaywill init.sql have it ? is it not just for user and pwd creation  https://github.com/openstack/sahara/blob/f8566f6daf18b29be8bc44ec1ce5e9dd16c87ef3/sahara/plugins/ambari/deploy.py#L18807:52
Bhujayi can still get the output if you want , let me know07:52
openstackgerritOpenStack Proposal Bot proposed openstack/sahara-dashboard stable/rocky: Imported Translations from Zanata  https://review.openstack.org/59405307:53
toskyI don't know if init.sql would have it :)07:54
toskyso I wonder what happened back then when the code was added07:54
Bhujayshd i insert the code in init.sql as per hortonworks doc link u shared  ?07:56
toskywell, the question is: does ambari assume to find a user with that username and password, and a database with that name as written in that page?07:58
toskyor are those parameters?07:58
* tosky bbl07:59
Bhujaythinking08:00
Bhujayfrom the ambari log we can see db connection with user name and pwd is ok. so the question can be narrowed down to if the db exists or not08:01
Bhujayand when the db is created , is it during ambari server set up or during ranger installation08:01
Bhujayif during ambari server set up , do we need to change the default ambari db from the ambari setting , iirc i saw somewhere a ambari default db realated setting in the ui , is it creating problem ?08:02
*** pcaruana has quit IRC08:28
*** pcaruana has joined #openstack-sahara08:30
*** tosky has quit IRC08:59
*** tosky has joined #openstack-sahara09:00
toskyis this ambari default db the default db used by ambari on the ambari node, or is it an additional db installed on another node so that it can be used by services?09:36
Bhujaytosky , ambari default db is postgres . I am trying on a single node . Ranger is using mysql on the same node . I logged into the db with root ( pwd retrived from openstack db ) and found during ranger installation randeradmin user and db schema git cerated ok09:41
Bhujaygot*09:41
toskyBhujay: I found https://issues.apache.org/jira/browse/RANGER-651 with a quick search09:49
toskymaybe related?09:49
Bhujaylet bme see09:49
toskyuh uh09:50
toskythis is an old bug09:50
toskyhttps://storyboard.openstack.org/#!/story/149652709:50
Bhujayok , i  chekced that xml file , the connection string to db looks ok09:51
toskywhich version of HDP are you trying to deploy?09:51
Bhujay2.409:51
toskywith ambari 2.4?09:51
Bhujayyes09:51
toskydoes the error match the one in the story?09:51
Bhujaychecking09:51
Bhujayyes the error is the same for dbexception but there is also a permission error http://paste.openstack.org/show/728580/  .  Also what is the change to be made in ranger-admin-site.xml?10:09
toskyall I know is in that page :)10:24
Bhujaythanks tosky , i will gothrough this in more details to see if something can be done10:45
toskythanks10:46
Bhujayi got into ranger due to phoenix installation issue which is reqd by my organization. if you can hint something10:46
*** dave-mccowan has joined #openstack-sahara10:47
Bhujaythe error is http://paste.openstack.org/show/728584/10:48
Bhujaytosky. do u think that was something to do with ranger ?10:49
toskyI really don't know10:50
toskyI never tried to deploy it10:50
Bhujaytosky , all the effort i have given so far is based on Ambari 2.4 and HDP 2.4. How about ambari 2.5 image , is it ok to invest effort on ?10:53
toskyHDP or ambari 2.5?10:55
BhujayAmbari 2.410:55
Bhujaysorry10:55
BhujayAmbari 2.510:55
toskyI think we jumped from Ambari 2.4 to Ambari 2.610:55
toskythe summary is:10:55
tosky- with sahara-image-pack on queens you can generate an Ambari 2.4 image that can spawn HDP 2.5, 2.4, 2.310:56
tosky- with sahara-image-pack on rocky you can generate an Ambari 2.6 image that can spawn HDP 2.6, 2.5 and 2.4, or an Ambari 2.4 image for HDP 2.310:56
Bhujaywhat is the dependency on rocky , can i try  the  sahara/rock/stable on queen ?10:57
Bhujayi mean sahara latest  stable tag on openstack queen ?10:58
toskythat would have Ambari 2.611:00
toskywhich may require some changes in queens11:00
Bhujayhumm11:02
Bhujaybut ambari 2.4 with hdp2.5 image  tested ok ?11:02
toskyI did test it at least once :)11:03
Bhujaythat sounds good11:04
openstackgerritMerged openstack/sahara-dashboard stable/rocky: Imported Translations from Zanata  https://review.openstack.org/59405311:33
tellesnobregaBhujay, I'm a little late to the party, but looks like you got some help already, let me know if I can be of any assistance11:42
openstackgerritMerged openstack/puppet-sahara stable/rocky: Update UPPER_CONSTRAINTS_FILE for stable/rocky  https://review.openstack.org/59383612:52
*** Bhujay has quit IRC13:21
*** galaxyblr has quit IRC13:28
openstackgerritMerged openstack/puppet-sahara stable/rocky: Update .gitreview for stable/rocky  https://review.openstack.org/59383513:43
*** cmart has joined #openstack-sahara13:51
openstackgerritAndriy Shevchenko proposed openstack/openstack-ansible-os_sahara stable/pike: import zuul job settings from project-config  https://review.openstack.org/59506614:47
openstackgerritAndriy Shevchenko proposed openstack/openstack-ansible-os_sahara stable/queens: import zuul job settings from project-config  https://review.openstack.org/59511914:54
*** cmart has quit IRC14:56
openstackgerritAndriy Shevchenko proposed openstack/openstack-ansible-os_sahara stable/rocky: import zuul job settings from project-config  https://review.openstack.org/59518115:02
*** cmart has joined #openstack-sahara15:08
*** pcaruana has quit IRC15:10
*** openstackgerrit has quit IRC15:31
*** pcaruana has joined #openstack-sahara15:49
*** cmart has quit IRC16:39
*** cmart has joined #openstack-sahara17:04
*** afazekas_ has quit IRC17:25
*** rodrigods has joined #openstack-sahara17:44
*** cmart has quit IRC18:08
*** tosky has quit IRC18:47
*** pcaruana has quit IRC19:47
*** cmart has joined #openstack-sahara20:48
*** cmart has quit IRC22:18
*** rcernin has joined #openstack-sahara22:34

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