Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Stack.sh fails with permission denied error

I am trying to set up OpenStack for the first time on Ubuntu 14.04 LTS Virtualbox VM.

1.) stack@jyothi-VirtualBox:/home/jyothi/OpenStack/git/devstack$ tools/create-stack-user.sh; su stack 2.) stack@jyothi-VirtualBox:/home/jyothi/OpenStack/git/devstack$ ./stack.sh

The setup failed with the following error

2016-09-09 18:31:44.260 | 2016-09-10 00:01:44.259 5457 INFO migrate.versioning.api [-] 104 -> 105... 2016-09-09 18:31:44.402 | 2016-09-10 00:01:44.402 5457 INFO migrate.versioning.api [-] done 2016-09-09 18:31:44.403 | 2016-09-10 00:01:44.403 5457 INFO migrate.versioning.api [-] 105 -> 106... 2016-09-09 18:31:44.495 | 2016-09-10 00:01:44.495 5457 INFO migrate.versioning.api [-] done 2016-09-09 18:31:44.496 | 2016-09-10 00:01:44.496 5457 INFO migrate.versioning.api [-] 106 -> 107... 2016-09-09 18:31:44.635 | 2016-09-10 00:01:44.634 5457 INFO migrate.versioning.api [-] done 2016-09-09 18:31:44.918 | +lib/keystone:init_keystone:507 [[ '' == \p\k\i ]] 2016-09-09 18:31:44.922 | +lib/keystone:init_keystone:507 [[ '' == \p\k\i\z ]] 2016-09-09 18:31:44.928 | +lib/keystone:init_keystone:512 [[ '' == \f\e\r\n\e\t ]] 2016-09-09 18:31:44.945 | +lib/keystone:init_keystone:516 rm -rf /etc/keystone/credential-keys/ 2016-09-09 18:31:44.973 | +lib/keystone:init_keystone:517 /usr/local/bin/keystone-manage --config-file /etc/keystone/keystone.conf credential_setup 2016-09-09 18:31:52.322 | usage: keystone-manage [bootstrap|db_sync|db_version|doctor|domain_config_upload|fernet_rotate|fernet_setup|mapping_purge|mapping_engine|pki_setup|saml_idp_metadata|token_flush] 2016-09-09 18:31:52.323 | keystone-manage: error: argument command: invalid choice: 'credential_setup' (choose from 'bootstrap', 'db_sync', 'db_version', 'doctor', 'domain_config_upload', 'fernet_rotate', 'fernet_setup', 'mapping_purge', 'mapping_engine', 'pki_setup', 'saml_idp_metadata', 'token_flush') 2016-09-09 18:31:52.420 | +lib/keystone:init_keystone:1 exit_trap 2016-09-09 18:31:52.425 | +./stack.sh:exit_trap:487 local r=2 2016-09-09 18:31:52.444 | ++./stack.sh:exit_trap:488 jobs -p 2016-09-09 18:31:52.471 | +./stack.sh:exit_trap:488 jobs= 2016-09-09 18:31:52.479 | +./stack.sh:exit_trap:491 [[ -n '' ]] 2016-09-09 18:31:52.485 | +./stack.sh:exit_trap:497 kill_spinner 2016-09-09 18:31:52.507 | +./stack.sh:kill_spinner:383 '[' '!' -z '' ']' 2016-09-09 18:31:52.519 | +./stack.sh:exit_trap:499 [[ 2 -ne 0 ]] 2016-09-09 18:31:52.545 | +./stack.sh:exit_trap:500 echo 'Error on exit' 2016-09-09 18:31:52.546 | Error on exit 2016-09-09 18:31:52.562 | +./stack.sh:exit_trap:501 generate-subunit 1473445275 637 fail 2016-09-09 18:31:53.633 | +./stack.sh:exit_trap:502 [[ -z /opt/stack/logs ]] 2016-09-09 18:31:53.638 | +./stack.sh:exit_trap:505 /home/jyothi/OpenStack/git/devstack/tools/worlddump.py -d /opt/stack/logs 2016-09-09 18:31:53.788 | df: '/run/user/1000/gvfs': Permission denied 2016-09-09 18:31:53.788 | df: '/media/jyothi/VBOXADDITIONS_5.0.20_106931': Permission denied 2016-09-09 18:31:53.789 | df: '/root/.gvfs': Permission denied 2016-09-09 18:32:05.742 | +./stack.sh:exit_trap:511 exit 2

I tried to solve it using ./clean.sh; ./stack.sh and ./unstack.sh; ./stack.sh.

But I am still facing the same issue. I am stuck with this issue. Any help is appreciated a lot.