Comment 2 for bug 1724023

Revision history for this message
Matt Verran (mv-2112) wrote :

using this diff on https://git.openstack.org/cgit/openstack/faafo/plain/contrib/install.sh allows faafo list to work, faafo create etc.

*************** if [[ -e /etc/os-release ]]; then
*** 84,91 ****
      if [[ $INSTALL_DATABASE -eq 1 ]]; then
          if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then
              sudo DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server python-mysqldb
! sudo sed -i -e "/bind-address/d" /etc/mysql/my.cnf
! sudo service mysql restart
          elif [[ $ID = 'fedora' ]]; then
              sudo dnf install -y mariadb-server python-mysql
              printf "[mysqld]\nbind-address = 127.0.0.1\n" | sudo tee /etc/my.cnf.d/faafo.conf
--- 84,93 ----
      if [[ $INSTALL_DATABASE -eq 1 ]]; then
          if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then
              sudo DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server python-mysqldb
! #sudo sed -i -e "/bind-address/d" /etc/mysql/my.cnf
! #sudo service mysql restart
! sudo sed -i 's/^bind-address/#bind-address/g' /etc/mysql/mysql.conf.d/mysqld.cnf
! sudo systemctl restart mysql
          elif [[ $ID = 'fedora' ]]; then
              sudo dnf install -y mariadb-server python-mysql
              printf "[mysqld]\nbind-address = 127.0.0.1\n" | sudo tee /etc/my.cnf.d/faafo.conf

Unfortunately, something is still not quite right as the file sizes are all 0bytes.

ubuntu@app-api-1:~$ faafo list
2017-10-16 18:20:43.499 8667 INFO faafo.client [-] listing all fractals
+--------------------------------------+-------------------+----------+
| UUID | Dimensions | Filesize |
+--------------------------------------+-------------------+----------+
| 3773be9c-bd40-4b74-bfe2-79246597e9d6 | 540 x 718 pixels | 0 bytes |
| 5e79b660-441f-430a-a132-18fc0e3344de | 692 x 356 pixels | 0 bytes |
| 96b7aab4-8680-4ed1-8eed-6564bf26c6b0 | 740 x 397 pixels | 0 bytes |
| 96b8c1e7-73d2-4154-8b17-bdee51e56ace | 951 x 1006 pixels | 0 bytes |
| a975ff83-d2f8-4e95-a41b-ae48bfdfc28a | 713 x 618 pixels | 0 bytes |
| fae5cfb9-fed0-462f-bc6c-f6c37df20fdb | 632 x 300 pixels | 0 bytes |
+--------------------------------------+-------------------+----------+