<div dir="ltr"><div>You are great :) i commented the "<span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"># Use syslog for logging.</span>" which was uncommented by default ! and now the keystone.log is working.<br>
<br></div>Tha<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/26 Miller, Mark M (EB SW Cloud - R&D - Corvallis) <span dir="ltr"><<a href="mailto:mark.m.miller@hp.com" target="_blank">mark.m.miller@hp.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Here are some logging options we use in keystone.conf:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># === Logging Options ===<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># Print debugging output<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># (includes plaintext request logging, potentially including passwords)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">debug = True<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># Print more verbose output<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">verbose = True<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># Name of log file to output to. If not set, logging will go to stdout.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">log_file = keystone.log<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># The directory to keep log files in (will be prepended to --logfile)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">log_dir = /var/log/keystone<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># Use syslog for logging.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># use_syslog = False<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># syslog facility to receive log lines<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># syslog_log_facility = LOG_USER<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># If this option is specified, the logging configuration file specified is<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># used and overrides any other logging options specified. Please see the<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># Python logging module documentation for details on logging configuration<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># files.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># log_config = /etc/keystone/logging.conf<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># A logging.Formatter log message format string which may use any of the<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># available logging.LogRecord attributes.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># log_format = %(asctime)s %(levelname)8s [%(name)s] %(message)s<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># Format string for %(asctime)s in log records.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">log_date_format = %Y-%m-%d %H:%M:%S<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># onready allows you to send a notification when the process is ready to serve<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># For example, to have it notify using systemd, one could set shell command:<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># onready = systemd-notify --ready<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># or a module with notify() method:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"># onready = keystone.common.systemd<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> CHABANI Mohamed El Hadi [mailto:<a href="mailto:chabani.mohamed.hadi@gmail.com" target="_blank">chabani.mohamed.hadi@gmail.com</a>]
<br>
<b>Sent:</b> Wednesday, June 26, 2013 6:25 AM<br>
<b>To:</b> Jamie Lennox<br>
<b>Cc:</b> Miller, Mark M (EB SW Cloud - R&D - Corvallis); <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>; <a href="mailto:tudor@tudorholton.com" target="_blank">tudor@tudorholton.com</a></span></p>
<div><div class="h5"><br>
<b>Subject:</b> Re: [Openstack] Swift / Keystone authentication<u></u><u></u></div></div><p></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><b>Mark Miller : </b>Until yesterday the container.recon didn't exist at all, this morning when rectifying a mistake in the keystone.conf, the keystone service started and these files (account.recon, container
 and object.recon) were created and the problem is solved.<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Now the problem is that there is no logs in Keystone.log, only in syslog (i set the permissions as mentioned )<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><b>Tudor : </b>Thank you for the advice :)  i will keep it in mind.<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><b>Jamie Lennox :</b> - How can i put Swift into debug mode ? i've changed the "debug" and "verbose" variables in Keystone.conf to"<b>True</b>" but nothing happened !<u></u><u></u></p>

</div>
<div>
<p class="MsoNormal">                          - For the bug, i don't think that is my case, i don't have the same exceptions, this one is much more complicated than mine :)<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">Thanks to all of you !<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal">2013/6/26 Jamie Lennox <<a href="mailto:jlennox@redhat.com" target="_blank">jlennox@redhat.com</a>><u></u><u></u></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">On Tue, 2013-06-25 at 18:05 +0200, CHABANI Mohamed El Hadi wrote:<br>
> my logs looks like that : <a href="http://pastebin.ubuntu.com/5798930/....i" target="_blank">
http://pastebin.ubuntu.com/5798930/....i</a><br>
> didn't really understand a lot of things ! any suggestions please ?<u></u><u></u></p>
</div>
<p class="MsoNormal">So the logs are not really informative, they just show that swift is<br>
crashing. Generally you should put swift into debug mode via the config<br>
files so there is some information there.<br>
<br>
However given that this has happened today i would suggest that this is<br>
being caused by the same bug that is being discussed in<br>
<a href="http://lists.openstack.org/pipermail/openstack-dev/2013-June/010861.html" target="_blank">http://lists.openstack.org/pipermail/openstack-dev/2013-June/010861.html</a><br>
which is this bug: <a href="https://bugs.launchpad.net/keystone/+bug/1193112" target="_blank">
https://bugs.launchpad.net/keystone/+bug/1193112</a><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
<br>
> 2013/6/25 Miller, Mark M (EB SW Cloud - R&D - Corvallis)<br>
> <<a href="mailto:mark.m.miller@hp.com" target="_blank">mark.m.miller@hp.com</a>><br>
>         Bottom line the keystone service attempting to start but is<br>
>         running into a problem and cannot start. Check<br>
>         the /var/log/syslog file.<br>
><br>
><br>
><br>
>         From: CHABANI Mohamed El Hadi<br>
>         [mailto:<a href="mailto:chabani.mohamed.hadi@gmail.com" target="_blank">chabani.mohamed.hadi@gmail.com</a>]<br>
>         Sent: Tuesday, June 25, 2013 8:46 AM<br>
>         To: Miller, Mark M (EB SW Cloud - R&D - Corvallis)<br>
>         Cc: Виль Суркин; <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
><br>
><br>
>         Subject: Re: [Openstack] Swift / Keystone authentication<br>
><br>
><br>
>         Yes you are right :) !<br>
><br>
>          When trying 'service keystone status' i get : keystone<br>
>         stop/waiting......however when i do service keystone start, it<br>
>         shows 'keystone start/running, process 32462' i'm missing<br>
>         something here ? because i've installed keystone without<br>
>         changing his database (no need).<br>
><br>
><br>
><br>
><br>
>         2013/6/25 Miller, Mark M (EB SW Cloud - R&D - Corvallis)<br>
>         <<a href="mailto:mark.m.miller@hp.com" target="_blank">mark.m.miller@hp.com</a>><br>
><br>
>         The keystone service will open these 2 ports. They are defined<br>
>         in file /etc/keystone/keystone.conf<br>
><br>
><br>
><br>
>         From: Openstack [mailto:<a href="mailto:openstack-bounces" target="_blank">openstack-bounces</a><br>
>         +mark.m.miller=<a href="mailto:hp.com@lists.launchpad.net" target="_blank">hp.com@lists.launchpad.net</a>] On Behalf Of<br>
>         CHABANI Mohamed El Hadi<br>
>         Sent: Tuesday, June 25, 2013 7:48 AM<br>
>         To: Виль Суркин<br>
><br>
><br>
>         Cc: <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
>         Subject: Re: [Openstack] Swift / Keystone authentication<br>
><br>
><br>
><br>
><br>
>         When i tried with port : 5000 and even 35357 i got :<br>
>         Authorization Failed: [Errno 111] Connection refused<br>
><br>
><br>
>         These 2 ports are not open i guess, should i open them<br>
>         manually ? (the keystone service is start/running)<br>
><br>
><br>
><br>
><br>
><br>
><br>
>         2013/6/25 Виль Суркин <<a href="mailto:vill.srk@gmail.com" target="_blank">vill.srk@gmail.com</a>><br>
><br>
>         You should authenticate in keystone service, not in<br>
>         swift-proxy.<br>
><br>
><br>
>         Keystone's Public API usually binds to TCP port 5000.<br>
><br>
><br>
><br>
><br>
><br>
>         --<br>
><br>
><br>
>         Виль Суркин<br>
><br>
><br>
><br>
><br>
><br>
>         вторник, 25 июня 2013 г. в 18:38, CHABANI Mohamed El Hadi<br>
>         написал:<br>
><br>
>                 Hi,<br>
><br>
><br>
>                 I'm trying to install Swift from this Guide, and for<br>
>                 the authentication service (Keystone) i'm a bit lost,<br>
>                 should i install Keystone as a full-fledged service<br>
>                 with the MySql database ? i want just to use Swift for<br>
>                 test purpose (but not SAIO version), so idon't need a<br>
>                 lot of bandwidth or storage space, i finished the<br>
>                 nodes configuration and when verifying the<br>
>                 installation with : swift -V 2.0 -A<br>
>                 <a href="http://127.0.0.1:8888/v2.0" target="_blank">http://127.0.0.1:8888/v2.0</a> -U swift:swift -K swift<br>
>                 stat<br>
>                 i get : Unauthorised. Check username, password and<br>
>                 tenant name/id<br>
><br>
><br>
>                 Or with : keystone --os-username=swift<br>
>                 --os-password=swift<br>
>                 --os-auth-url=<a href="http://127.0.0.1:8888/v2.0" target="_blank">http://127.0.0.1:8888/v2.0</a> token-get<br>
>                 i get :<br>
><br>
>                 This server could not verify that you are authorized<br>
>                 to access the document you requested. Either you<br>
>                 supplied the wrong credentials (e.g., bad password),<br>
>                 or your browser does not understand how to supply the<br>
>                 credentials required.<br>
><br>
>                 Any sugestions ? here my proxy-server.conf.<br>
><br>
><br>
><br>
>                 Thank you<br>
><br>
><br>
><br>
><br>
><br>
><br>
>                 _______________________________________________<br>
><br>
><br>
>                 Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">
https://launchpad.net/~openstack</a><br>
><br>
><br>
>                 Post to : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
><br>
><br>
>                 Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">
https://launchpad.net/~openstack</a><br>
><br>
><br>
>                 More help : <a href="https://help.launchpad.net/ListHelp" target="_blank">
https://help.launchpad.net/ListHelp</a><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><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" target="_blank">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>
<br>
<u></u><u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>

</blockquote></div><br></div>