[Openstack] Swift / Keystone authentication

tudor tudor at tudorholton.com
Wed Jun 26 00:03:32 UTC 2013


 

Hi Mohamed, 

Just an aside, please don't pastebin in a mailing
list. pastebins are used in IRC channels to avoid interrupting the
conversation. But they are just temporary links that can (and will) be
removed later. 

Adding it as an attachment or copying it into the email
is better since it directly links your logs to your problem and
(hopefully) it's eventual solution. 

Good intention, but not necessary
and actively discouraged. 

I have included a copy of your pastebin
below. 

Have a great day! :-D 

Cheers,
Tudor. 

==================


Jun 25 18:00:15 localhost object-replicator Exception dumping recon
cache: #012Traceback (most recent call last):#012 File
"/usr/lib/python2.7/dist-packages/swift/common/utils.py", line 1492, in
dump_recon_cache#012 with lock_file(cache_file, lock_timeout,
unlink=False) as cf:#012 File "/usr/lib/python2.7/contextlib.py", line
17, in __enter__#012 return self.gen.next()#012 File
"/usr/lib/python2.7/dist-packages/swift/common/utils.py", line 1058, in
lock_file#012 fd = os.open(filename, flags)#012OSError: [Errno 13]
Permission denied: '/var/cache/swift/object.recon'
Jun 25 18:00:15
localhost kernel: [2041303.382693] init: keystone main process (32616)
terminated with status 1
Jun 25 18:00:15 localhost kernel:
[2041303.382739] init: keystone main process ended, respawning
Jun 25
18:00:15 localhost kernel: [2041303.588803] init: keystone main process
(32617) terminated with status 1
Jun 25 18:00:15 localhost kernel:
[2041303.588832] init: keystone main process ended, respawning
Jun 25
18:00:16 localhost kernel: [2041303.792938] init: keystone main process
(32618) terminated with status 1
Jun 25 18:00:16 localhost kernel:
[2041303.792966] init: keystone main process ended, respawning
Jun 25
18:00:16 localhost kernel: [2041303.996831] init: keystone main process
(32619) terminated with status 1
Jun 25 18:00:16 localhost kernel:
[2041303.996858] init: keystone main process ended, respawning
Jun 25
18:00:16 localhost kernel: [2041304.206837] init: keystone main process
(32620) terminated with status 1
Jun 25 18:00:16 localhost kernel:
[2041304.206865] init: keystone main process ended, respawning
Jun 25
18:00:16 localhost kernel: [2041304.414195] init: keystone main process
(32621) terminated with status 1
Jun 25 18:00:16 localhost kernel:
[2041304.414222] init: keystone main process ended, respawning
Jun 25
18:00:16 localhost kernel: [2041304.629486] init: keystone main process
(32622) terminated with status 1
Jun 25 18:00:16 localhost kernel:
[2041304.629526] init: keystone main process ended, respawning
Jun 25
18:00:17 localhost kernel: [2041304.841024] init: keystone main process
(32623) terminated with status 1
Jun 25 18:00:17 localhost kernel:
[2041304.841052] init: keystone main process ended, respawning
Jun 25
18:00:17 localhost kernel: [2041305.046560] init: keystone main process
(32624) terminated with status 1
Jun 25 18:00:17 localhost kernel:
[2041305.046589] init: keystone main process ended, respawning
Jun 25
18:00:17 localhost kernel: [2041305.249331] init: keystone main process
(32625) terminated with status 1
Jun 25 18:00:17 localhost kernel:
[2041305.249359] init: keystone main process ended, respawning
Jun 25
18:00:17 localhost kernel: [2041305.451613] init: keystone main process
(32626) terminated with status 1
Jun 25 18:00:17 localhost kernel:
[2041305.451641] init: keystone respawning too fast, stopped
Jun 25
18:00:37 localhost container-replicator Beginning replication run
Jun 25
18:00:37 localhost container-replicator Replication run OVER
Jun 25
18:00:37 localhost container-replicator Attempted to replicate 0 dbs in
0.00068 seconds (0.00000/s)
Jun 25 18:00:37 localhost
container-replicator Removed 0 dbs
Jun 25 18:00:37 localhost
container-replicator 0 successes, 0 failures
Jun 25 18:00:37 localhost
container-replicator Exception dumping recon cache: #012Traceback (most
recent call last):#012 File
"/usr/lib/python2.7/dist-packages/swift/common/utils.py", line 1492, in
dump_recon_cache#012 with lock_file(cache_file, lock_timeout,
unlink=False) as cf:#012 File "/usr/lib/python2.7/contextlib.py", line
17, in __enter__#012 return self.gen.next()#012 File
"/usr/lib/python2.7/dist-packages/swift/common/utils.py", line 1058, in
lock_file#012 fd = os.open(filename, flags)#012OSError: [Errno 13]
Permission denied: '/var/cache/swift/container.recon'
Jun 25 18:00:37
localhost container-replicator no_change:0 ts_repl:0 diff:0 rsync:0
diff_capped:0 hashmatch:0 empty:0

=================== 

On 2013-06-26
02:05, CHABANI Mohamed El Hadi wrote: 

> my logs looks like that :
http://pastebin.ubuntu.com/5798930/ [14]....i didn't really understand a
lot of things ! any suggestions please ? 
> 
> 2013/6/25 Miller, Mark M
(EB SW Cloud - R&D - Corvallis) <mark.m.miller at hp.com [15]>
> 
>> Bottom
line the keystone service attempting to start but is running into a
problem and cannot start. Check the /var/log/syslog file. 
>> 
>> FROM:
CHABANI Mohamed El Hadi [mailto:chabani.mohamed.hadi at gmail.com [7]] 
>>
SENT: Tuesday, June 25, 2013 8:46 AM
>> TO: Miller, Mark M (EB SW Cloud
- R&D - Corvallis)
>> CC: Виль Суркин; openstack at lists.launchpad.net [8]

>> 
>> SUBJECT: Re: [Openstack] Swift / Keystone authentication 
>> 
>>
Yes you are right :) !
>> 
>> When trying 'SERVICE KEYSTONE STATUS' i
get : KEYSTONE STOP/WAITING......however when i do SERVICE KEYSTONE
START, it shows 'KEYSTONE START/RUNNING, PROCESS 32462' i'm missing
something here ? because i've installed keystone without changing his
database (no need). 
>> 
>> 2013/6/25 Miller, Mark M (EB SW Cloud - R&D
- Corvallis) <mark.m.miller at hp.com [9]> 
>> 
>> The keystone service
will open these 2 ports. They are defined in file
/etc/keystone/keystone.conf 
>> 
>> FROM: Openstack
[mailto:openstack-bounces+mark.m.miller [10]=hp.com at lists.launchpad.net
[11]] ON BEHALF OF CHABANI Mohamed El Hadi
>> SENT: Tuesday, June 25,
2013 7:48 AM
>> TO: Виль Суркин 
>> 
>> CC:
openstack at lists.launchpad.net [12]
>> SUBJECT: Re: [Openstack] Swift /
Keystone authentication 
>> 
>> When i tried with port : 5000 and even
35357 i got : AUTHORIZATION FAILED: [ERRNO 111] CONNECTION REFUSED 
>>

>> These 2 ports are not open i guess, should i open them manually ?
(the keystone service is start/running) 
>> 
>> 2013/6/25 Виль Суркин
<vill.srk at gmail.com [13]> 
>> 
>> You should authenticate in keystone
service, not in swift-proxy. 
>> 
>> Keystone's Public API usually binds
to TCP port 5000. 
>> 
>> -- 
>> 
>> Виль Суркин 
>> 
>> вторник, 25
июня 2013 г. в 18:38, CHABANI Mohamed El Hadi написал: 
>> 
>>> Hi, 
>>>

>>> I'm trying to install Swift from this Guide [1], and for the
authentication service (Keystone) i'm a bit lost, should i install
Keystone as a full-fledged service with the MySql database ? i want just
to use Swift for test purpose (but not SAIO version), so idon't need a
lot of bandwidth or storage space, i finished the nodes configuration
and when verifying the installation with : SWIFT -V 2.0 -A -U
SWIFT:SWIFT -K SWIFT STAT 
>>> i get : UNAUTHORISED. CHECK USERNAME,
PASSWORD AND TENANT NAME/ID 
>>> 
>>> Or with : KEYSTONE
--OS-USERNAME=SWIFT --OS-PASSWORD=SWIFT --OS-AUTH-URL= TOKEN-GET i get :

>>> 
>>> THIS SERVER COULD NOT VERIFY THAT YOU ARE AUTHORIZED TO ACCESS
THE DOCUMENT YOU REQUESTED. EITHER YOU SUPPLIED THE WRONG CREDENTIALS
(E.G., BAD PASSWORD), OR YOUR BROWSER DOES NOT UNDERSTAND HOW TO SUPPLY
THE CREDENTIALS REQUIRED. 
>>> 
>>> Any sugestions ? here my
proxy-server.conf [2]. 
>>> 
>>> Thank you 
>>> 
>>>
_______________________________________________ 
>>> 
>>> Mailing list:
https://launchpad.net/~openstack [3] 
>>> 
>>> Post to :
openstack at lists.launchpad.net [4] 
>>> 
>>> Unsubscribe :
https://launchpad.net/~openstack [5] 
>>> 
>>> More help :
https://help.launchpad.net/ListHelp [6]

 

Links:
------
[1]
http://docs.openstack.org/trunk/openstack-object-storage/admin/content/ch_installing-openstack-object-storage.html
[2]
http://pastebin.ubuntu.com/5797979/
[3]
https://launchpad.net/~openstack
[4]
mailto:openstack at lists.launchpad.net
[5]
https://launchpad.net/~openstack
[6]
https://help.launchpad.net/ListHelp
[7]
mailto:chabani.mohamed.hadi at gmail.com
[8]
mailto:openstack at lists.launchpad.net
[9]
mailto:mark.m.miller at hp.com
[10]
mailto:openstack-bounces%2Bmark.m.miller
[11]
mailto:hp.com at lists.launchpad.net
[12]
mailto:openstack at lists.launchpad.net
[13] mailto:vill.srk at gmail.com
[14]
http://pastebin.ubuntu.com/5798930/
[15] mailto:mark.m.miller at hp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130626/e2d0306f/attachment.html>


More information about the Openstack mailing list