Fast forward upgrade from OSP 10 to OSP 13 shows `Can't create/write to file './keystone/db.opt' (Errcode: 13 \"Permission denied\")"`

Solution In Progress - Updated -

Issue

Fast forward upgrade from OSP 10 to OSP 13 shows Can't create/write to file './keystone/db.opt' (Errcode: 13 \"Permission denied\")"

                    "Error: /Stage[main]/Keystone::Db::Mysql/Openstacklib::Db::Mysql[keystone]/Mysql_database[keystone]/charset: change from latin1 to utf8 failed: Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf -NBe alte
r database `keystone` CHARACTER SET utf8' returned 1: ERROR 1 (HY000) at line 1: Can't create/write to file './keystone/db.opt' (Errcode: 13 \"Permission denied\")",
                    "Error: Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf -NBe alter database `keystone` COLLATE utf8_general_ci' returned 1: ERROR 1 (HY000) at line 1: Can't create/write to file './keystone/db.opt' (Er
rcode: 13 \"Permission denied\")",
                    "Error: /Stage[main]/Keystone::Db::Mysql/Openstacklib::Db::Mysql[keystone]/Mysql_database[keystone]/collate: change from latin1_swedish_ci to utf8_general_ci failed: Execution of '/usr/bin/mysql --defaults-extra-file=/
root/.my.cnf -NBe alter database `keystone` COLLATE utf8_general_ci' returned 1: ERROR 1 (HY000) at line 1: Can't create/write to file './keystone/db.opt' (Errcode: 13 \"Permission denied\")",
                    "Error: Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf -NBe alter database `ovs_neutron` CHARACTER SET utf8' returned 1: ERROR 1 (HY000) at line 1: Can't create/write to file './ovs_neutron/db.opt' (E
rrcode: 13 \"Permission denied\")",
                    "Error: /Stage[main]/Neutron::Db::Mysql/Openstacklib::Db::Mysql[neutron]/Mysql_database[ovs_neutron]/charset: change from latin1 to utf8 failed: Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf -NBe alt
er database `ovs_neutron` CHARACTER SET utf8' returned 1: ERROR 1 (HY000) at line 1: Can't create/write to file './ovs_neutron/db.opt' (Errcode: 13 \"Permission denied\")",
                    "Error: Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf -NBe alter database `ovs_neutron` COLLATE utf8_general_ci' returned 1: ERROR 1 (HY000) at line 1: Can't create/write to file './ovs_neutron/db.op
t' (Errcode: 13 \"Permission denied\")",
                    "Error: /Stage[main]/Neutron::Db::Mysql/Openstacklib::Db::Mysql[neutron]/Mysql_database[ovs_neutron]/collate: change from latin1_swedish_ci to utf8_general_ci failed: Execution of '/usr/bin/mysql --defaults-extra-file=
/root/.my.cnf -NBe alter database `ovs_neutron` COLLATE utf8_general_ci' returned 1: ERROR 1 (HY000) at line 1: Can't create/write to file './ovs_neutron/db.opt' (Errcode: 13 \"Permission denied\")",
                    "Error: Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf -NBe alter database `nova` CHARACTER SET utf8' returned 1: ERROR 1 (HY000) at line 1: Can't create/write to file './nova/db.opt' (Errcode: 13 \"P
ermission denied\")",
                    "Error: /Stage[main]/Nova::Db::Mysql/Openstacklib::Db::Mysql[nova]/Mysql_database[nova]/charset: change from latin1 to utf8 failed: Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf -NBe alter database `
nova` CHARACTER SET utf8' returned 1: ERROR 1 (HY000) at line 1: Can't create/write to file './nova/db.opt' (Errcode: 13 \"Permission denied\")",
                    "Error: Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf -NBe alter database `nova` COLLATE utf8_general_ci' returned 1: ERROR 1 (HY000) at line 1: Can't create/write to file './nova/db.opt' (Errcode: 1
3 \"Permission denied\")",
                    "Error: /Stage[main]/Nova::Db::Mysql/Openstacklib::Db::Mysql[nova]/Mysql_database[nova]/collate: change from latin1_swedish_ci to utf8_general_ci failed: Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf
 -NBe alter database `nova` COLLATE utf8_general_ci' returned 1: ERROR 1 (HY000) at line 1: Can't create/write to file './nova/db.opt' (Errcode: 13 \"Permission denied\")",
                    "Error: Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf -NBe create database if not exists `nova_cell0` character set `utf8` collate `utf8_general_ci`' returned 1: ERROR 1006 (HY000) at line 1: Can't c
reate database 'nova_cell0' (errno: 13 \"Permission denied\")",
                    "Error: /Stage[main]/Nova::Db::Mysql/Openstacklib::Db::Mysql[nova_cell0]/Mysql_database[nova_cell0]/ensure: change from absent to present failed: Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf -NBe cr
eate database if not exists `nova_cell0` character set `utf8` collate `utf8_general_ci`' returned 1: ERROR 1006 (HY000) at line 1: Can't create database 'nova_cell0' (errno: 13 \"Permission denied\")",
                    "Error: Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf -NBe alter database `nova_api` CHARACTER SET utf8' returned 1: ERROR 1 (HY000) at line 1: Can't create/write to file './nova_api/db.opt' (Errcode
: 13 \"Permission denied\")",
                    "Error: /Stage[main]/Nova::Db::Mysql_api/Openstacklib::Db::Mysql[nova_api]/Mysql_database[nova_api]/charset: change from latin1 to utf8 failed: Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf -NBe alte
r database `nova_api` CHARACTER SET utf8' returned 1: ERROR 1 (HY000) at line 1: Can't create/write to file './nova_api/db.opt' (Errcode: 13 \"Permission denied\")",
                    "Error: Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf -NBe alter database `nova_api` COLLATE utf8_general_ci' returned 1: ERROR 1 (HY000) at line 1: Can't create/write to file './nova_api/db.opt' (Er
rcode: 13 \"Permission denied\")",
                    "Error: /Stage[main]/Nova::Db::Mysql_api/Openstacklib::Db::Mysql[nova_api]/Mysql_database[nova_api]/collate: change from latin1_swedish_ci to utf8_general_ci failed: Execution of '/usr/bin/mysql --defaults-extra-file=/
root/.my.cnf -NBe alter database `nova_api` COLLATE utf8_general_ci' returned 1: ERROR 1 (HY000) at line 1: Can't create/write to file './nova_api/db.opt' (Errcode: 13 \"Permission denied\")",
                    "Error: Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf -NBe create database if not exists `nova_placement` character set `utf8` collate `utf8_general_ci`' returned 1: ERROR 1006 (HY000) at line 1: Can
't create database 'nova_placement' (errno: 13 \"Permission denied\")",
                    "Error: /Stage[main]/Nova::Db::Mysql_placement/Openstacklib::Db::Mysql[nova_placement]/Mysql_database[nova_placement]/ensure: change from absent to present failed: Execution of '/usr/bin/mysql --defaults-extra-file=/ro
ot/.my.cnf -NBe create database if not exists `nova_placement` character set `utf8` collate `utf8_general_ci`' returned 1: ERROR 1006 (HY000) at line 1: Can't create database 'nova_placement' (errno: 13 \"Permission denied\")",
                    "Error: Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf -NBe create database if not exists `panko` character set `utf8` collate `utf8_general_ci`' returned 1: ERROR 1006 (HY000) at line 1: Can't create
 database 'panko' (errno: 13 \"Permission denied\")",
                    "Error: /Stage[main]/Panko::Db::Mysql/Openstacklib::Db::Mysql[panko]/Mysql_database[panko]/ensure: change from absent to present failed: Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf -NBe create data
base if not exists `panko` character set `utf8` collate `utf8_general_ci`' returned 1: ERROR 1006 (HY000) at line 1: Can't create database 'panko' (errno: 13 \"Permission denied\")",

Environment

Red Hat OpenStack Platform 10
Red Hat OpenStack Platform 13
Fast forward upgrade

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content