Debian Mariadb image could not start on AArch64 by Kolla-kubernetes

Bug #1733262 reported by Kevin Zhao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Undecided
Kevin Zhao

Bug Description

helm install --debug kolla-kubernetes/helm/service/mariadb --namespace kolla --name mariadb --values /tmp/cloud.yaml

Check the image hearwu/debian-source-mariadb:5.0.1, got the log error as below:
Could not mkdir "mysqld" on /var/run/

linux@kolla-kubernetes-arm64:~/kolla-bringup/k8s$ docker logs 19c4a7ae41ec
INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json
INFO:__main__:Validating config file
INFO:__main__:Kolla config strategy set to: COPY_ONCE
INFO:__main__:Copying service configuration files
INFO:__main__:Deleting /etc/mysql/my.cnf
INFO:__main__:Copying /var/lib/kolla/config_files/galera.cnf to /etc/mysql/my.cnf
INFO:__main__:Setting permission for /etc/mysql/my.cnf
INFO:__main__:Writing out command to execute
INFO:__main__:Setting permission for /var/lib/mysql
Installing MariaDB/MySQL system tables in '/var/lib/mysql/' ...
2017-11-16 12:53:51 281472802426880 [Note] /usr/sbin/mysqld (mysqld 10.1.26-MariaDB-0+deb9u1) starting as process 26 ...
OK
Filling help tables...
2017-11-16 12:54:13 281473285955584 [Note] /usr/sbin/mysqld (mysqld 10.1.26-MariaDB-0+deb9u1) starting as process 56 ...
OK
Creating OpenGIS required SP-s...
2017-11-16 12:54:18 281473708519424 [Note] /usr/sbin/mysqld (mysqld 10.1.26-MariaDB-0+deb9u1) starting as process 86 ...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:

'/usr/bin/mysqladmin' -u root password 'new-password'
'/usr/bin/mysqladmin' -u root -h mariadb-init-element-48w5p password 'new-password'

Alternatively you can run:
'/usr/bin/mysql_secure_installation'

which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.

See the MariaDB Knowledgebase at http://mariadb.com/kb or the
MySQL manual for more instructions.

You can start the MariaDB daemon with:
cd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql/'

You can test the MariaDB daemon with mysql-test-run.pl
cd '/usr/mysql-test' ; perl mysql-test-run.pl

Please report any problems at http://mariadb.org/jira

The latest information about MariaDB is available at http://mariadb.org/.
You can find additional information about the MySQL part at:
http://dev.mysql.com
Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/

171116 12:54:23 mysqld_safe Logging to '/var/log/kolla/mariadb/mariadb.log'.
mkdir: cannot create directory '/var/run/mysqld': Permission denied
171116 12:54:23 mysqld_safe Fatal error Can't create database directory ''

Kevin Zhao (kevin-zhao)
Changed in kolla:
assignee: nobody → Kevin Zhao (kevin-zhao)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.openstack.org/521479

Changed in kolla:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.openstack.org/521479
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=7192508e3652e98f25fa9ccfe098935b52a4e57d
Submitter: Zuul
Branch: master

commit 7192508e3652e98f25fa9ccfe098935b52a4e57d
Author: Kevin Zhao <email address hidden>
Date: Mon Nov 20 11:27:29 2017 +0800

    Creates directory /var/run/mysqld on aarch64 when building MariaDB docker image

    Closes-bug: #1733262

    Change-Id: I2d0a3422ba6a077a309c1fe967a2a62ef5ce6a36
    Signed-off-by: Kevin Zhao <email address hidden>

Changed in kolla:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/525663

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 6.0.0.0b2

This issue was fixed in the openstack/kolla 6.0.0.0b2 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/pike)

Reviewed: https://review.openstack.org/525663
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=229dccd17ee17ca13b42b48296a6fb76663a0bf1
Submitter: Zuul
Branch: stable/pike

commit 229dccd17ee17ca13b42b48296a6fb76663a0bf1
Author: Kevin Zhao <email address hidden>
Date: Mon Nov 20 11:27:29 2017 +0800

    Creates directory /var/run/mysqld on aarch64 when building MariaDB docker image

    Closes-bug: #1733262

    Change-Id: I2d0a3422ba6a077a309c1fe967a2a62ef5ce6a36
    Signed-off-by: Kevin Zhao <email address hidden>

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 5.0.1

This issue was fixed in the openstack/kolla 5.0.1 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.