As I made for the previously release of DevStack, for install it I've always run the same steps:
1 - Create a Stack user:
$: sudo groupadd stack
$: sudo useradd -g stack -s /bin/bash -d /opt/stack -m stack
$: sudo passwd stack
$: sudo visudo
then add line
stack ALL=(ALL) NOPASSWD:ALL
save the file and exit, logout and login as that user.
2 - Download the pack:
$: git clone https://git.openstack.org/openstack-dev/devstack -b stable/mitaka
3 - Create a local.conf
using this guide, https://gist.github.com/amotoki/b5ca4affd768177ed911
$: nano local.conf
4 - Install Devstack
$: ./stack
but I get an error like this:
[ERROR] ./stack.sh:191 If you wish to run this script anyway run with FORCE=yes
/home/richardsith/devstack/functions-common: line 232: /opt/stack/logs/error.log: No such file or directory
the line 191 says:
# Warn users who aren't on an explicitly supported distro, but allow them to
# override check and attempt installation with ``FORCE=yes ./stack``
if [[ ! ${DISTRO} =~ (trusty|vivid|wily|7.0|wheezy|sid|testing|jessie|f22|f23|rhel7|kvmibm1) ]]; then
echo "WARNING: this script has not been tested on $DISTRO"
if [[ "$FORCE" != "yes" ]]; then
die $LINENO "If you wish to run this script anyway run with FORCE=yes"
fi
fi
this task was passed using the command:
$: FORCE=yes ./stack
but during the procedure I receive this error:
2016-06-07 13:47:08.494 | +lib/keystone:configure_keystone:194 cp -p /opt/stack/keystone/etc/policy.json /etc/keystone
2016-06-07 13:47:08.496 | cp: cannot create regular file '/etc/keystone/policy.json': Permission denied
2016-06-07 13:47:08.503 | +lib/keystone:configure_keystone:1 exit_trap
2016-06-07 13:47:08.509 | +./stack.sh:exit_trap:474 local r=1
2016-06-07 13:47:08.514 | ++./stack.sh:exit_trap:475 jobs -p
2016-06-07 13:47:08.520 | +./stack.sh:exit_trap:475 jobs=
2016-06-07 13:47:08.525 | +./stack.sh:exit_trap:478 [[ -n '' ]]
2016-06-07 13:47:08.530 | +./stack.sh:exit_trap:484 kill_spinner
2016-06-07 13:47:08.535 | +./stack.sh:kill_spinner:370 '[' '!' -z '' ']'
2016-06-07 13:47:08.541 | +./stack.sh:exit_trap:486 [[ 1 -ne 0 ]]
2016-06-07 13:47:08.547 | +./stack.sh:exit_trap:487 echo 'Error on exit'
2016-06-07 13:47:08.547 | Error on exit
2016-06-07 13:47:08.552 | +./stack.sh:exit_trap:488 generate-subunit 1465306861 367 fail
2016-06-07 13:47:08.965 | +./stack.sh:exit_trap:489 [[ -z /opt/stack/logs ]]
2016-06-07 13:47:08.970 | +./stack.sh:exit_trap:492 /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs
2016-06-07 13:47:09.480 | +./stack.sh:exit_trap:498 exit 1
also this step has been resolved run the command where the installer was stopped, in this case
$: sudo cp -p /opt/stack/keystone/etc/policy.json /etc/keystone
$: FORCE=yes ./stack
same step for all the error received during the installation.....
Why if I set the Stack user with sudo privileges receive the error of permission denied? thanks in advance
stack.sh
line 191? It looks like you don't have permissions to/opt/stack/logs
, does your user have sudo permissions? – Jun 06 '16 at 23:16FORCE=yes ./stack.sh
as root. – Bilal Jun 06 '16 at 23:59