)]}'
{"tools/env_builder.sh":[{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"a1c9dad533145bf6dc37d7ecbfe702387c87a50c","unresolved":false,"context_lines":[{"line_number":51,"context_line":"FLUSH PRIVILEGES;"},{"line_number":52,"context_line":"EOF"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"/usr/bin/mysql --user\u003d\"root\" \u003c /tmp/mysql.sql"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"# Taken from cloudera, thanks cloudera!"},{"line_number":57,"context_line":"Box \"Installing zookeeper...\""}],"source_content_type":"text/x-sh","patch_set":1,"id":"baada198_d716fd57","line":54,"updated":"2014-07-16 21:46:37.000000000","message":"I guess it would be good to have a similar builder for Ubuntu. For posterity, on Ubuntu 14.04 mysql-server is installed by default, and the follow-up steps I needed were:\n\n  $ sudo apt-get install libmysqlclient-dev\n  $ sudo pip install MySQL-python\n  $ mysql -u root\n  mysql\u003e create database openstack_citest;\n  mysql\u003e create user openstack_citest identified by \u0027openstack_citest\u0027;\n  mysql\u003e grant all on *.* to openstack_citest;\n  mysql\u003e \\q\n  $ mysqladmin flush-privileges","commit_id":"477da8581ffade0b34d102de5a194e97a5bd49d8"},{"author":{"_account_id":1297,"name":"Joshua Harlow","email":"jxharlow@godaddy.com","username":"harlowja"},"change_message_id":"942ecc6a5885c81420338dd187fb89bb75b09e51","unresolved":false,"context_lines":[{"line_number":51,"context_line":"FLUSH PRIVILEGES;"},{"line_number":52,"context_line":"EOF"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"/usr/bin/mysql --user\u003d\"root\" \u003c /tmp/mysql.sql"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"# Taken from cloudera, thanks cloudera!"},{"line_number":57,"context_line":"Box \"Installing zookeeper...\""}],"source_content_type":"text/x-sh","patch_set":1,"id":"baada198_cb651cb0","line":54,"in_reply_to":"baada198_d716fd57","updated":"2014-07-18 21:59:38.000000000","message":"Thanks!\n\nWill add/merge that in.","commit_id":"477da8581ffade0b34d102de5a194e97a5bd49d8"},{"author":{"_account_id":11024,"name":"Dan Krause","email":"dan@dankrause.net","username":"dankrause"},"change_message_id":"900dd337a0425dd5310f2b03f41840c0baf94753","unresolved":false,"context_lines":[{"line_number":51,"context_line":"FLUSH PRIVILEGES;"},{"line_number":52,"context_line":"EOF"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"/usr/bin/mysql --user\u003d\"root\" \u003c /tmp/mysql.sql"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"# Taken from cloudera, thanks cloudera!"},{"line_number":57,"context_line":"Box \"Installing zookeeper...\""}],"source_content_type":"text/x-sh","patch_set":1,"id":"baada198_e87f1115","line":54,"in_reply_to":"baada198_d716fd57","updated":"2014-07-21 17:15:30.000000000","message":"The mysql-server package is only installed by default on ubuntu server installs. Running these tests from a desktop, or minimal install will still require mysql-server. Running `apt-get install -y some-package-name` is idempotent, so it might as well be there.\n\nI suggest replacing all hard-coded paths to binaries with something like this:\n\n    MYSQL\u003d$(which mysql)\n\nThen using those variables to call the binaries when needed.\n\n\nI suggest replacing calls to scripts in /etc/init with invocations of the service command, so:\n\n    /etc/init.d/mysqld restart\n    /etc/init.d/zookeeper-server restart\n\nchanges to\n\n    service mysqld restart\n    service zookeeper-server restart\n\n\nI think the only distro-specific code left after that will be in the use of a package manager.","commit_id":"477da8581ffade0b34d102de5a194e97a5bd49d8"},{"author":{"_account_id":1297,"name":"Joshua Harlow","email":"jxharlow@godaddy.com","username":"harlowja"},"change_message_id":"b37b309f4384748a35453c1e3c04f16d87c17deb","unresolved":false,"context_lines":[{"line_number":51,"context_line":"FLUSH PRIVILEGES;"},{"line_number":52,"context_line":"EOF"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"/usr/bin/mysql --user\u003d\"root\" \u003c /tmp/mysql.sql"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"# Taken from cloudera, thanks cloudera!"},{"line_number":57,"context_line":"Box \"Installing zookeeper...\""}],"source_content_type":"text/x-sh","patch_set":1,"id":"baada198_1642a23d","line":54,"in_reply_to":"baada198_e87f1115","updated":"2014-07-21 17:20:49.000000000","message":"Agreed, I was going to clean this up, let me add this in.","commit_id":"477da8581ffade0b34d102de5a194e97a5bd49d8"}]}
