Hi Adam,<br>thanks for your answer.<br><br>First of all, the full log of my script is here<br><a href="http://www.forumaltavilla.it/joomla/Documenti/log_devstack.txt">www.forumaltavilla.it/joomla/Documenti/log_devstack.txt</a><br>
<br>It seems that there are some problems in managing user permissions. Even if I included the stack user in /etc/sudoers adding the following line <br><br>stack ALL=(ALL) NOPASSWD: ALL<br><br>Moreover, i can't execute the script as root because, by default, it switch to the "stack" user.<br>
<br>however, the output of the command<br>/opt/stack/keystone/bin/keystone-all --config-file
/etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf
-d --debug<br><div class="im"><br></div> is<br><br>stack@openstack-controller:~/keystone$ /opt/stack/keystone/bin/keystone-all --config-file /etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf -d --debug<br>
Traceback (most recent call last):<br> File "/opt/stack/keystone/bin/keystone-all", line 82, in <module><br> config.setup_logging(CONF)<br> File "/opt/stack/keystone/keystone/config.py", line 41, in setup_logging<br>
logging.config.fileConfig(conf.log_config)<br> File "/usr/lib/python2.7/logging/config.py", line 78, in fileConfig<br> handlers = _install_handlers(cp, formatters)<br> File "/usr/lib/python2.7/logging/config.py", line 156, in _install_handlers<br>
h = klass(*args)<br> File "/usr/lib/python2.7/logging/__init__.py", line 897, in __init__<br> StreamHandler.__init__(self, self._open())<br> File "/usr/lib/python2.7/logging/__init__.py", line 916, in _open<br>
stream = open(self.baseFilename, self.mode)<br>IOError: [Errno 13] Permission denied: '/opt/stack/keystone/keystone.log'<br><br>while if i launch that command with sudo, it seems that it runs.<br><br>Thank you,<br>
Antonio<br><br><div class="gmail_quote">On 5 February 2013 17:04, Adam Young <span dir="ltr"><<a href="mailto:ayoung@redhat.com" target="_blank">ayoung@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div><div class="h5">
<div>On 02/05/2013 08:00 AM, Antonio Tirri
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">Hi all,<br>
actually i'm trying to install OpenStack through DevStack script.
Unfortunately the installation is not successful because the
keystone service doesn't start. <br>
<br>
This is the log of the script:<br>
<br>
2013-02-05 13:19:05 + SCREEN_NAME=stack<br>
2013-02-05 13:19:05 + SCREENRC=/opt/stack/devstack/stack-screenrc<br>
2013-02-05 13:19:05 + [[ ! -e /opt/stack/devstack/stack-screenrc
]]<br>
2013-02-05 13:19:05 + grep key /opt/stack/devstack/stack-screenrc<br>
2013-02-05 13:19:05 ++ echo -ne '\015'<br>
2013-02-05 13:19:05 + NL=$'\r'<br>
2013-02-05 13:19:05 + echo 'screen -t key bash'<br>
2013-02-05 13:19:05 + echo 'stuff "cd /opt/stack/keystone
&& /opt/stack/keystone/bin/keystone-all --config-file
/etc/keystone/keystone.conf --log-config
/etc/keystone/logging.conf -d --debug<br>
"'<br>
2013-02-05 13:19:05 + screen -S stack -X screen -t key<br>
2013-02-05 13:19:05 + sleep 1.5<br>
2013-02-05 13:19:06 + [[ -n '' ]]<br>
2013-02-05 13:19:06 + screen -S stack -p key -X stuff 'cd
/opt/stack/keystone &&
/opt/stack/keystone/bin/keystone-all --config-file
/etc/keystone/keystone.conf --log-config
/etc/keystone/logging.conf -d --debug || touch
"/opt/stack/status/stack/key.failure"<br>
'<br>
2013-02-05 13:19:06 + echo 'Waiting for keystone to start...'<br>
2013-02-05 13:19:06 Waiting for keystone to start...<br>
2013-02-05 13:19:06 + timeout 60 sh -c 'while ! http_proxy= curl
-s <a href="http://163.162.24.167:5000/v2.0/" target="_blank">http://163.162.24.167:5000/v2.0/</a>
>/dev/null; do sleep 1; done'<br>
]0;stack@openstack-controller:
~/devstack stack@openstack-controller:~/devstack$ 2013-02-05
13:20:06 + echo 'keystone did not start'<br>
2013-02-05 13:20:06 keystone did not start<br>
2013-02-05 13:20:06 + exit 1<br>
2013-02-05 13:20:06 + clean<br>
2013-02-05 13:20:06 + local r=1<br>
2013-02-05 13:20:06 ++ jobs -p<br>
2013-02-05 13:20:06 + kill<br>
2013-02-05 13:20:06 + exit 1<br>
<br>
How this problem can be solved?<br>
<br>
Antonio<br>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a>
Post to : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a>
More help : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a>
</pre>
</blockquote><div class="im">
screen -S stack -p key -X stuff 'cd /opt/stack/keystone &&
/opt/stack/keystone/bin/keystone-all --config-file
/etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf
-d --debug || touch "/opt/stack/status/stack/key.failure"<br>
<br>
<br></div>
Is the command that starts keystone. From the above, it not clear
why it is failing. You should be able to run it interactively with:<br>
<br>
cd /opt/stack/keystone<div class="im"><br>
<br>
/opt/stack/keystone/bin/keystone-all --config-file
/etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf
-d --debug<br>
<br></div>
And get more output. If it swallows all the output, look in
/etc/keystone/logging.conf to see what it is set at. It might be
sending it to a log file, such as /var/log/keystone<br>
<br>
<br>
<br>
<br>
<br>
</div>
<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br>