Comment 2 for bug 1371750

Revision history for this message
Kevin Fox (kevpn) wrote :

Yeah, so I got trove + rhel7 guest working by updating the heat template to patch the guest agent thusly:
              "sed -i 's/\\(MYSQL_SERVICE_CANDIDATES = \\[\\)/\\1\"mariadb\",/' /usr/lib/python2.7/site-packages/trove/guestagent/datastore/mysql/service.py\n",
              "sed -i 's@etc/mysql/conf.d@etc/my.cnf.d@' /usr/lib/python2.7/site-packages/trove/guestagent/datastore/mysql/service.py\n",
              "sed -i 's@etc/mysql/my.cnf@etc/my.cnf@' /usr/lib/python2.7/site-packages/trove/guestagent/datastore/mysql/service.py\n",

The first one will always work. The latter two need to be fixed in the code to detect which distro its on, and conditionally set their values to that. But for now, this workaround works.

And on the server:
/usr/lib/python2.7/site-packages/trove/templates/mysql/config.template
changing:
pid_file = /var/run/mariadb/mysqld.pid

And setting includedir to:
!includedir /etc/my.cnf.d/

The first option may be able to be made to the datastore version? But I don't think the latter option can.