stack.sh fails to bring openstack up exits stating /home/administrator/.my.cnf: Permission denied

Bug #1678579 reported by Sriram Kannan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Invalid
Undecided
Unassigned

Bug Description

I am trying to bring devstack OCATA up using ./stack after a reboot of the machine. The script fails with the below error

2017-04-02 08:11:12.237 | +functions-common:is_ubuntu:466 [[ -z deb ]]
2017-04-02 08:11:12.242 | +functions-common:is_ubuntu:469 '[' deb = deb ']'
2017-04-02 08:11:12.248 | +lib/databases/mysql:install_database_mysql:130 sudo debconf-set-selections
2017-04-02 08:11:12.523 | +lib/databases/mysql:install_database_mysql:140 [[ ! -e /home/administrator/.my.cnf ]]
2017-04-02 08:11:12.529 | +lib/databases/mysql:install_database_mysql:141 cat
2017-04-02 08:11:12.529 | /home/administrator/devstack/lib/databases/mysql: line 141: /home/administrator/.my.cnf: Permission denied
2017-04-02 08:11:12.537 | +lib/databases/mysql:install_database_mysql:1 exit_trap

Please suggest on how to resolve or overcome from this problem

Thanks

Revision history for this message
Ian Wienand (iwienand) wrote :

 /home/administrator/.my.cnf: Permission denied

is the root cause. it seems like you can't write .my.cnf to your home directory. i suspect you might have switched users or something

Revision history for this message
Sriram Kannan (shri-ramk) wrote :

Hi Ian,

You are correct, in-fact this file was not present in the directory (/home/administrator/). When i searched the file, i found the file to be in /opt/stack/.

I was in stack user ( sudo -su stack) when executing the ./stack.sh, At the 1st time i executed from the same location with the same user(stack) and the devstack came up well. This issue is observed after the reboot.

Now I copied the .my.cnf file from /opt/stack to /home/administrator and executed the script. The script works fine and i can get the devstack up

Thanks for the pointer

Regards
Sriram

Revision history for this message
Sean Dague (sdague) wrote :

Automatically discovered version ocata in description. If this is incorrect, please update the description to include 'https://api.launchpad.net/1.0/devstack version: ...'

Revision history for this message
Sean Dague (sdague) wrote :

Automatically discovered version ocata in description. If this is incorrect, please update the description to include 'devstack version: ...'

Sean Dague (sdague)
tags: added: mysql
tags: added: database
tags: added: openstack-version.ocata
Changed in devstack:
status: New → Invalid
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.