Tuesday, 2017-02-28

*** ctracey has quit IRC00:00
*** tmatsu has joined #openstack-trove00:01
*** amit213 has quit IRC00:01
*** zacksh has quit IRC00:02
*** ctracey has joined #openstack-trove00:05
*** amit213 has joined #openstack-trove00:06
*** zacksh has joined #openstack-trove00:09
*** tnowak has quit IRC00:12
*** rajinir_ has quit IRC00:21
*** zhugaoxiao has quit IRC01:06
*** Administrator_ has quit IRC01:06
*** tmatsu_ has joined #openstack-trove01:16
*** tmatsu_ has quit IRC01:16
*** tmatsu_ has joined #openstack-trove01:17
*** tmatsu has quit IRC01:19
*** gcb has joined #openstack-trove02:06
*** tqtran has quit IRC03:19
*** gouthamr has quit IRC03:54
*** Jack_Iv has joined #openstack-trove03:59
*** Jack_Iv has quit IRC04:04
*** gcb has quit IRC04:22
*** gcb has joined #openstack-trove04:34
*** chhavi has joined #openstack-trove05:18
*** Jack_Iv has joined #openstack-trove05:58
*** chhavi has quit IRC06:27
*** chhavi has joined #openstack-trove06:29
*** tqtran has joined #openstack-trove07:03
*** tqtran has quit IRC07:07
*** rcernin has joined #openstack-trove07:11
*** Kevin_Zheng_ has joined #openstack-trove07:14
*** Kevin_Zheng_ is now known as Kevin_Zheng07:17
*** dalees has quit IRC07:32
*** tesseract has joined #openstack-trove07:34
*** ctracey has quit IRC07:35
*** gmann has quit IRC07:35
*** ctracey has joined #openstack-trove07:36
*** gmann has joined #openstack-trove07:37
*** dalees has joined #openstack-trove07:43
*** Jack_Iv has quit IRC08:05
*** pcaruana has joined #openstack-trove08:17
rpittaufishbone: trove supports mysql 5.6; how did you create the ubuntu image ?08:18
*** Jack_Iv has joined #openstack-trove08:18
Jack_IvFolka, how can I add my ssh key while creating an database instance?08:31
*** tosky has joined #openstack-trove08:53
*** tnowak has joined #openstack-trove08:56
*** chhavi has quit IRC09:19
*** Jack_Iv has quit IRC09:37
*** Jack_Iv has joined #openstack-trove09:38
Jack_IvHey09:38
Jack_IvWhere can I find the list of supported systems?09:38
Jack_IvCan I deploy mysql on a trove-guesagent ubuntu 16.04 ?09:39
*** Jack_Iv has quit IRC09:51
*** Jack_Iv has joined #openstack-trove09:52
*** gcb has quit IRC10:00
tnowakJack_Iv: to add ssh keys you can probably use cloudconfig file on the controller in /etc/trove/cloudinit/mysql.cloudinit10:00
Jack_Ivit's a hell10:01
Jack_Ivwhy trove can not do it via nova ?10:01
Jack_IvI found trove SO unusable and undocumented10:01
tnowakyep10:02
openstackgerritTomasz Nowak proposed openstack/trove master: Use CNF_INCLUDE_DIR to create mysql-flavor directory  https://review.openstack.org/43736910:05
*** tosky has quit IRC10:21
*** tosky has joined #openstack-trove10:22
*** Jack_Iv has quit IRC10:23
*** Jack_Iv has joined #openstack-trove10:23
*** Jack_Iv has quit IRC10:26
*** Jack_Iv has joined #openstack-trove10:26
*** Jack_Iv has quit IRC10:47
*** Jack_Iv has joined #openstack-trove10:48
*** Jack_Iv has quit IRC10:52
*** chhavi has joined #openstack-trove11:03
*** chhavi has quit IRC11:10
*** chhavi has joined #openstack-trove11:10
azlevtnowak: Hi. Is it necessary to know the mysql config structure before we bootstrap? Trove can just override all files and doesnt bother how it was before11:16
azlevI mean, the only really important file is the first one, that include other files11:17
tnowakazlev: I think you are right that the first file is the critical one. and there are commands that try to purge the default configuration. what about selinux policies? the paths would need to be listed for hardening.11:27
azlevgood point11:37
azlevtnowak: another qestion, isnt red hat using mariadb? Should this code be in some mariadb specifics place? (honest question)11:43
*** tmatsu_ has quit IRC11:43
azlevAfter deploy a trove at work in next month, I want to contribute with code, so I need to understand it11:44
tnowakazlev: that's right. I just managed to run instances with mariadb 10.1 on RHEL 7.2 (without guest images, just with cloud_config), but I changed all paths with sed.11:50
tnowakmariadb code goes to trove/guestagent/datastore/experimental/mariadb11:52
*** chhavi has quit IRC11:53
*** chhavi has joined #openstack-trove11:54
*** tosky_ has joined #openstack-trove11:57
*** tosky has quit IRC11:59
*** ildikov has quit IRC12:01
*** ildikov has joined #openstack-trove12:03
*** tosky_ is now known as tosky12:06
*** chhavi has quit IRC12:07
*** chhavi has joined #openstack-trove12:07
chhavihello, I built the trove image for the mariadb, the trove-guestagent service is running, but the trove deploy is failing with the "GuestError: An error occurred communicating with the guest: Service is not discovered."13:02
chhavifrom the guestagent logs it shows the guestagent module drivers are not initialized.13:03
chhavido we need any additional configs to load the same13:03
amrithnot that I know of chhavi13:03
amrithbut I don't know how the "trove-guestagent service" could be running if the guestagent logs show that the "guestagent module drivers are not initialized"13:04
chhaviok,13:04
amrithwhat that likely means is that your datastore specification in the config file isn't making its way across.13:04
amrithor there's a datastore configuration file but it isn't able to resolve that to the drivers for that datastore.13:05
chhaviWhat it looks that by default there is ping driver which should be loaded when we first start the guestagent13:05
amrithA large amount of the code in the guestagent is datastore agnostic and it looks to load a guestagent model13:05
amriths/model$/module/13:05
chhavibut in my case  Initializing module driver manager.13:06
chhavi2017-02-28 09:08:08.566 2036 INFO trove.guestagent.module.driver_manager [-] No module drivers loaded13:06
chhavi2"13:06
chhaviso the service is running but its of no use13:06
amrithyup13:06
chhaviguest_info config file has the proper datastore_manager initialization13:07
chhavii am trying for mariadb13:07
amriththe driver_manager is pretty straightforward; it looks to resolve that datatore and load a module13:07
amrithsomething is messed up; maybe in the way python is looking for the modules, or where your guestagent code is ending up13:08
amrithdid you figure out where to put the guestagent code (i.e. not use the rsync/scp)13:08
-openstackstatus- NOTICE: restarting gerrit to address performance problems13:09
*** ChanServ changes topic to "restarting gerrit to address performance problems"13:09
amrithin any event, you have a guest instance coming up; if you configured it for ssh (you must have; you appear to have shell access) just ssh into it and try and start the trove-guest service manually13:09
amrithand you'll be able to debug it live13:09
amrithonce you figure out what's wrong, you can rebuild your guest image.13:09
amrithand I suspect that given where you are getting a failure, the prepare message is still in the queue so when you get to load the right module, your instance may even just go ACTIVE13:09
chhaviyes i fixed those issues for not using the rsync, and cloning the code for the correct branch13:09
amrithanyway, I have to run now to a 9am meeting. I'll be back online later13:10
chhavisure,13:10
chhavii am able to login and trying to debug the instance13:10
*** kylek3h has joined #openstack-trove13:12
-openstackstatus- NOTICE: ok gerrit is back to normal13:38
*** ChanServ changes topic to "ok gerrit is back to normal"13:38
*** spilla has joined #openstack-trove13:42
*** ChanServ changes topic to "Trove Openstack Database as a Service | Docs https://github.com/openstack/trove | Channel Logs http://eavesdrop.openstack.org/irclogs/ | IRC must read http://sackheads.org/~bnaylor/spew/away_msgs.html"13:44
-openstackstatus- NOTICE: gerrit is back to normal and I don't know how to use the openstackstaus bot13:44
*** gouthamr has joined #openstack-trove13:50
*** openstackgerrit has quit IRC14:03
*** openstackgerrit has joined #openstack-trove14:14
openstackgerritMerged openstack/trove stable/newton: Prepare for using standard python tests  https://review.openstack.org/42789714:14
*** Jack_Iv has joined #openstack-trove14:17
openstackgerritGábor Antal proposed openstack/trove master: Handle log message interpolation by the logger in common/strategies/  https://review.openstack.org/43378214:26
*** chlong has joined #openstack-trove14:30
tnowakchhavi: I had it today i mitaka, fixed with https://review.openstack.org/#/c/437341/14:38
tnowakbut who knows, it may be something different14:39
*** tmatsu has joined #openstack-trove14:44
*** tmatsu has quit IRC14:48
fishbonerpittau: I built the image inside openstack actually; are you saying trove does not support mysql-5.6?14:58
openstackgerritGábor Antal proposed openstack/trove master: Handle log message interpolation by the logger in common/  https://review.openstack.org/43381915:00
fishbonerpittau: my mistake, I meant to write mysql-5.715:00
*** Jack_Iv has quit IRC15:01
openstackgerritGábor Antal proposed openstack/trove master: Handle log message interpolation by the logger in common/  https://review.openstack.org/43381915:01
*** Jack_Iv has joined #openstack-trove15:01
openstackgerritGábor Antal proposed openstack/trove master: Handle log message interpolation by the logger part 5  https://review.openstack.org/43383315:08
*** chlong has quit IRC15:11
*** johnma has quit IRC15:12
openstackgerritGábor Antal proposed openstack/trove master: Handle log message interpolation by the logger part 6  https://review.openstack.org/43384615:13
openstackgerritGábor Antal proposed openstack/trove master: Handle log message interpolation by the logger part 7  https://review.openstack.org/43385815:21
rpittaufishbone: trove supports all features only on mysql 5.6; on mysql 5.7 is limited (e.g. no replication)15:22
fishbonerpittau: I see, I will try with mysql-5.615:23
rpittaufishbone: you should look at the integration part in the trove github repo if you want to build images15:24
fishbonerpittau: do you have a link for that? I have installed directly from the cloud repositories I have not been using the git repositories.15:25
fishbonerpittau: this references issues such as the /var/lib/mysql/data folder creation right?15:26
rpittaufishbone: https://github.com/openstack/trove15:26
rpittaufishbone: by default the expected base dir for mysql is /var/lib/mysql, that means that the data dir should be /var/lib/mysql/data; you can modify that behavior in different ways, but for my experience, a default installation is better15:32
fishbonerpittau: I was running into issues when starting the mysql service in the trove image as it said the system database was not installed, I noticed that the mysql database folder on instantiation was moved from /var/lib/mysql to /var/lib/mysql/data, is this normal behavior or do I have to change a setting in mysql to recognize the new location?15:35
fishbonerpittau: perhaps it was also due to the mysql version I was using?15:35
*** chlong has joined #openstack-trove15:43
tnowaktrove moves stuff to .../data, because /var/lib/mysql is mounted from an external volume, and "lost+found" directory blocks mariadb from creating its files (complains about some files there)15:53
tnowakI just run "sed -i 's:datadir=/var/lib/mysql$:#datadir=/var/lib/mysql:' /etc/my.cnf /etc/my.cnf.d/*"15:55
tnowakBTW, (in mitaka at least) it leaves incorrect SELinux context on the remounted /var/lib/mysql, so mariadb can't start ("Bind on unix socket: Permission denied")15:56
*** rajinir_ has joined #openstack-trove15:56
openstackgerritGábor Antal proposed openstack/trove master: Handle log message interpolation by the logger part 8  https://review.openstack.org/43419516:00
*** rcernin has quit IRC16:08
fishbonetnowak: at what point do you run the sed command?16:08
*** mugsie__ is now known as mugsie16:09
tnowakfishbone: before starting the guestagent, to comment out the default datadir16:09
fishbonetnowak: ah, so as user data?16:10
tnowakyes, cloud_config file...16:11
fishbonetnowak: Just so I understand, the purpose here is to comment out the default data directory of mysql as it will be recreated on instantiation?16:12
openstackgerritPeter Stachowski proposed openstack/trove master: Stabilize gate: Fix CONTROLLER_IP is .1 issue  https://review.openstack.org/43903816:12
tnowakfishbone: yes, with new datadir set in files in e.g. /etc/mysql.conf.d/* from guestagent templates16:15
fishbonetnowak: thanks, I will experiment with this16:17
tnowakgood luck16:17
*** Jack_Iv has quit IRC16:20
*** Jack_Iv has joined #openstack-trove16:20
*** pcaruana has quit IRC16:34
*** Jack_Iv_ has joined #openstack-trove16:44
*** Jack_Iv has quit IRC16:48
*** tqtran has joined #openstack-trove16:59
*** tqtran has quit IRC16:59
fishbonetnowak: now I am getting a mysqld sock error17:00
fishbonethe mysql service runs fine on the image prior to instantiation17:00
fishbonetnowak: based on logs it seems like mysql starts up fine, until the trove guestagent stops it, then it cannot be start again17:01
tnowakfishbone: yeah, guestagent does a lot of file manipulation. did you enable debugging?17:05
tnowakfishbone: I use   sed -i 's/# debug = True/debug = True/' /etc/trove/trove-guestagent.conf17:06
*** gcb has joined #openstack-trove17:06
tnowakfishbone: you will every "sudo mv/cp ..." g.a. runs17:07
*** tesseract has quit IRC17:09
fishbonetnowak: yes debug mode is on, I see that it copies over the my.cnf and does a find for all cnf files in conf.d17:12
tnowakanything in /var/log/mariadb/?17:13
fishbonetnowak: then it proceeds to start mysql and updaterc, then it stops it but cant start it back up17:13
fishbonetnowak: I am actually using mysql as opposed to mariadb, but no there are no logs in /var/log/mysql17:14
tnowaktry trunning mysqld_safe manually17:16
*** gcb has quit IRC17:30
azlevfishbone: check wich user is running the backup. I coudn't backup in my tests because backup runs with root, but only user trove has the .my.cnf17:30
*** tosky has quit IRC17:31
*** chhavi has quit IRC17:44
*** chlong has quit IRC18:06
*** AJaeger has left #openstack-trove18:28
fishbonetnowak: All is well now, thank you very much for your help. It turns out all I needed to do was add a header to the main my.cnf file18:37
tnowakfishbone: header?18:38
fishbonetnowak: yes the original my.cnf file only has the uncommented line to include the other folders but it does not have the leading [mysql] directive, when I added that it seems to work18:40
tnowakinteresting, thanks for that18:41
openstackgerritTomasz Nowak proposed openstack/trove master: Use existing CNF_INCLUDE_DIR to create mysql-flavor directory  https://review.openstack.org/43736918:42
*** chlong has joined #openstack-trove19:25
*** johnma has joined #openstack-trove19:34
*** Jack_Iv_ has quit IRC19:47
*** Jack_Iv has joined #openstack-trove19:48
*** Jack_Iv has quit IRC19:52
*** Jack_Iv has joined #openstack-trove20:05
*** harlowja has quit IRC20:15
*** harlowja has joined #openstack-trove20:16
openstackgerritMerged openstack/trove master: Install Redis 3.2.6 by compilation  https://review.openstack.org/41636120:36
openstackgerritamrith proposed openstack/trove master: DNM: testing gate  https://review.openstack.org/43866420:37
openstackgerritamrith proposed openstack/trove master: handle impending oslo.messaging deprecation  https://review.openstack.org/40762620:42
openstackgerritamrith proposed openstack/trove master: Remove Trove's support for Heat  https://review.openstack.org/38551320:43
*** mpotdar_ has joined #openstack-trove20:54
*** mpotdar_ has quit IRC20:55
*** johnma has quit IRC21:09
*** chlong has quit IRC21:27
*** mpotdar has joined #openstack-trove21:38
*** chlong has joined #openstack-trove21:39
*** gouthamr has quit IRC21:44
*** mpotdar has quit IRC21:47
*** mpotdar has joined #openstack-trove21:48
*** mpotdar has quit IRC21:53
*** Jack_Iv has quit IRC21:56
*** Jack_Iv has joined #openstack-trove21:56
*** chlong has quit IRC21:58
*** Jack_Iv has quit IRC22:01
*** spilla has quit IRC22:07
openstackgerritMerged openstack/trove master: Fix module-instances command  https://review.openstack.org/40328722:28
*** gouthamr has joined #openstack-trove22:28
trevormcglad to see things merging :)22:33
*** fishbone has quit IRC23:18

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