Ask Your Question
0

Installed keystone from ppa:keystone-core-trunk on natty and no /etc/keystone/keystone.conf file was created

asked 2011-10-10 19:27:30 -0500

p-spencer-davis gravatar image

I used $> sudo apt-add-repository ppa:keystone-core/trunk

to install keystone on a natty server to evaluate nova dashboard, but no configuration files for keystone where created. Starting keystone as a service returns the following in the logs:

/var/log/syslog:Oct 10 15:08:25 csvirt-1 init: keystone main process (2364) terminated with status 1 /var/log/syslog:Oct 10 15:08:25 csvirt-1 init: keystone main process ended, respawning

and attempting to run keystone as root returns:

ERROR: Error loading config /etc/init/keystone.conf: File contains no section headers. file: /etc/init/keystone.conf, line: 1 'description "Keystone API server"\n'

I noticed that /etc/keystone was missing, so I created the directory and touched /etc/keystone/keystone.conf, on the off chance that an empty file was better than no file and got the following error:

ERROR: Error loading config /etc/keystone/keystone.conf: No section 'keystone-legacy-auth' (prefixed by 'app' or 'application' or 'composite' or 'composit' or 'pipeline' or 'filter-app') found in config /etc/keystone/keystone.conf

Where can I find an example keystone.conf for nova integration?

edit retag flag offensive close merge delete

20 answers

Sort by ยป oldest newest most voted
0

answered 2011-10-27 00:39:40 -0500

p-spencer-davis gravatar image

Do not overwrite the /etc/init/keystone.conf. Use the above file to create a file in /etc/keystone/ called keystone.conf. On Oct 26, 2011 8:22 PM, "Neil Andrews" < question173861@answers.launchpad.net > wrote:

Your question #173861 on Keystone changed: https://answers.launchpad.net/keystone/+question/173861 (https://answers.launchpad.net/keyston...)

Neil Andrews posted a new comment: I'm really confused with the solution that has been provided above, to begin with after following the steps before the comments the error I get afterwards is. To clarify I'm running on Ubuntu 11.04.

ERROR: Error loading config /etc/keystone/keystone.conf: File contains no section headers. file: /etc/keystone/keystone.conf, line: 1 'how more verbose log output (sets INFO log level output)\n'

As for the following comment guide, it is mentioned that /etc/init/keystone.conf is appended to or overwritten by that given in the github. I have tried both and still receive the above error. Upon deleting /etc/keystone/keystone.conf I get the following error. (the text is different depending on the append or overwrite, but I don't think that matters)

ERROR: Error loading config /etc/init/keystone.conf: File contains no section headers. file: /etc/init/keystone.conf, line: 1 'how more verbose log output (sets INFO log level output)\n'

Can someone clarify or give me some insight on something I'm missing? Thanks


You received this question notification because you asked the question.

edit flag offensive delete link more
0

answered 2011-10-15 17:42:23 -0500

yes

edit flag offensive delete link more
0

answered 2011-10-27 01:01:45 -0500

If you can make sense of my above statement, that is the first thing I did, and this is the resultant error.

ERROR: Error loading config /etc/keystone/keystone.conf: File contains no section headers. file: /etc/keystone/keystone.conf, line: 1 'how more verbose log output (sets INFO log level output)\n'

I apologize on my lack of clarity, I was never great at writing.

edit flag offensive delete link more
0

answered 2011-10-16 06:00:26 -0500

Thanks, Now Keystone service is starting without any error

But what configuration needed for LDAP and if i do not want to use LDAP how to set it up. i am still getting LDAP error while generating token

edit flag offensive delete link more
0

answered 2011-10-10 23:35:04 -0500

p-spencer-davis gravatar image

I had to alter the /etc/init/keystone file from

su -c"...

to

su - -c"...

so that keystone knew that keystone.db was in /var/lib/keystone. (Yes, I'm going to convert to mysql tomorrow,but...)

edit flag offensive delete link more
0

answered 2011-10-14 17:41:47 -0500

Can you please post the right config file as i am still getting the same error

edit flag offensive delete link more
0

answered 2011-10-10 21:11:24 -0500

I was just in the same situation that you. I copied/pasted the following file in /etc/keystone/keystone.conf and it worked:

https://github.com/openstack/keystone/blob/master/etc/keystone.conf (https://github.com/openstack/keystone...)

edit flag offensive delete link more
0

answered 2011-10-10 23:24:40 -0500

p-spencer-davis gravatar image

That mostly worked. I can start keystone manually, but it will not run as a service.

edit flag offensive delete link more
0

answered 2011-10-15 08:59:28 -0500

sorry for the previos post that is other error which i am getting for euca2ools by mistake i posted that alos ... for Keystone i am getting the below error when i an trying to start the service

root@cc:/etc/init# service keystone restart restart: Unknown job: keystone

edit flag offensive delete link more
0

answered 2011-10-14 09:14:09 -0500

After copying the keystone.conf file from https://github.com/openstack/keystone/blob/master/etc/keystone.conf (https://github.com/openstack/keystone...) to /etc/init/keystone file i am getting the below error

RuntimeError: Error loading config /etc/init/keystone.conf: File contains parsing errors: /etc/init/keystone.conf [line 65]: 'urlrewritefilter\n' [line 66]: 'admin_api\n' [line 70]: 'urlrewritefilter\n'

Any other change need to be done

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-10-10 19:27:30 -0500

Seen: 354 times

Last updated: Nov 08 '11