Ask Your Question
0

Please create a database by running a nova-api server on this host.

asked 2011-02-23 05:38:30 -0500

janson071 gravatar image

I am trying to install nova (bexar) on centos5.5, when I use this command: nova-manage --flagfile /etc/nova/nova.conf project zipfile PRO1 janson to create nova.zip file.

but an error occurs as follows:

[root@localhost nova]# nova-manage --flagfile /etc/nova/nova.conf project zipfile PRO1 janson Unexpected error while running command. Command: openssl ca -batch -out /tmp/tmptqlfLM/outbound.csr -config ./openssl.cnf -infiles /tmp/tmptqlfLM/inbound.csr Exit code: 1 Stdout: '' Stderr: "Using configuration from ./openssl.cnf\nerror loading the config file './openssl.cnf'\n16786:error:02001002:system library:fopen:No such file or directory:bss_file.c:122:fopen('./openssl.cnf','rb')\n16786:error:2006D080:BIO routines:BIO_new_file:no such file:bss_file.c:125:\n16786:error:0E078072:configuration file routines:DEF_LOAD:no such file:conf_def.c:197:\n" The above error may show that the certificate db has not been created. Please create a database by running a nova-api server on this host.

any ideas ???

edit retag flag offensive close merge delete

17 answers

Sort by » oldest newest most voted
0

answered 2011-02-28 01:40:13 -0500

janson071 gravatar image

to Vish:

but

2011-02-25 17:00:55,667 AUDIT nova.root [-] Starting ./bin/nova-api on 0.0.0.0:8773 2011-02-25 17:00:55,671 AUDIT nova.root [-] Starting ./bin/nova-api on 0.0.0.0:8774

it stoped here for a long time.

then execute "nova-manage --flagfile /etc/nova/nova.conf project zipfile PRO1 janson"

it's the same question.

if certificate db now exist and can use project zipfile, where can I find it ?

edit flag offensive delete link more
0

answered 2011-02-25 09:56:51 -0500

vishvananda gravatar image

it looks like it is working fine (your certificate db will now exist and you can use project zipfile)

On Feb 25, 2011, at 1:02 AM, janson wrote:

Question #146517 on OpenStack Compute (nova) changed: https://answers.launchpad.net/nova/+q...

janson posted a new comment: to Vish Ishaya:

execute ./bin/nova-api

[root@localhost nova-2011.1]# ./bin/nova-api 2011-02-25 17:00:55,366 AUDIT nova.api [-] Starting nova-api node (version 2011.1-workspace:tarmac-20110202111800-10sib5zxlu8xluca) 2011-02-25 17:00:55,366 DEBUG nova.api [-] Using paste.deploy config at: /dowmload/nova-2011.1/nova/../etc/nova-api.conf from MainProcess (pid=5770) run_app ./bin/nova-api:52 2011-02-25 17:00:55,373 DEBUG nova.api [-] App Config: ec2 {'/2007-08-29': 'ec2metadata', 'verbose': '1', '__file__': '/dowmload/nova-2011.1/etc/nova-api.conf', '/latest': 'ec2metadata', 'here': '/dowmload/nova-2011.1/etc', '/services/Cloud': 'ec2cloud', '/': 'ec2versions', '/services/Admin': 'ec2admin', '/2007-10-10': 'ec2metadata', '/2008-09-01': 'ec2metadata', '/2007-03-01': 'ec2metadata', '/2007-01-19': 'ec2metadata', '/2008-02-01': 'ec2metadata', '/1.0': 'ec2metadata', '/2009-04-04': 'ec2metadata', '/2007-12-15': 'ec2metadata'} from MainProcess (pid=5770) run_app ./bin/nova-api:59 2011-02-25 17:00:55,373 INFO nova.api [-] Running ec2 API 2011-02-25 17:00:55,624 DEBUG nova.api [-] App Config: osapi {'__file__': '/dowmload/nova-2011.1/etc/nova-api.conf', '/v1.0': 'openstackapi', 'verbose': '1', 'here': '/dowmload/nova-2011.1/etc', '/': 'osversions'} from MainProcess (pid=5770) run_app ./bin/nova-api:59 2011-02-25 17:00:55,624 INFO nova.api [-] Running osapi API 2011-02-25 17:00:55,667 AUDIT nova.root [-] Starting ./bin/nova-api on 0.0.0.0:8773 2011-02-25 17:00:55,671 AUDIT nova.root [-] Starting ./bin/nova-api on 0.0.0.0:8774

it just stoped here. any ideas ???


You received this question notification because you are a member of Nova Core, which is an answer contact for OpenStack Compute (nova).

edit flag offensive delete link more
0

answered 2011-02-25 09:02:15 -0500

janson071 gravatar image

to Vish Ishaya:

execute ./bin/nova-api

[root@localhost nova-2011.1]# ./bin/nova-api 2011-02-25 17:00:55,366 AUDIT nova.api [-] Starting nova-api node (version 2011.1-workspace:tarmac-20110202111800-10sib5zxlu8xluca) 2011-02-25 17:00:55,366 DEBUG nova.api [-] Using paste.deploy config at: /dowmload/nova-2011.1/nova/../etc/nova-api.conf from MainProcess (pid=5770) run_app ./bin/nova-api:52 2011-02-25 17:00:55,373 DEBUG nova.api [-] App Config: ec2 {'/2007-08-29': 'ec2metadata', 'verbose': '1', '__file__': '/dowmload/nova-2011.1/etc/nova-api.conf', '/latest': 'ec2metadata', 'here': '/dowmload/nova-2011.1/etc', '/services/Cloud': 'ec2cloud', '/': 'ec2versions', '/services/Admin': 'ec2admin', '/2007-10-10': 'ec2metadata', '/2008-09-01': 'ec2metadata', '/2007-03-01': 'ec2metadata', '/2007-01-19': 'ec2metadata', '/2008-02-01': 'ec2metadata', '/1.0': 'ec2metadata', '/2009-04-04': 'ec2metadata', '/2007-12-15': 'ec2metadata'} from MainProcess (pid=5770) run_app ./bin/nova-api:59 2011-02-25 17:00:55,373 INFO nova.api [-] Running ec2 API 2011-02-25 17:00:55,624 DEBUG nova.api [-] App Config: osapi {'__file__': '/dowmload/nova-2011.1/etc/nova-api.conf', '/v1.0': 'openstackapi', 'verbose': '1', 'here': '/dowmload/nova-2011.1/etc', '/': 'osversions'} from MainProcess (pid=5770) run_app ./bin/nova-api:59 2011-02-25 17:00:55,624 INFO nova.api [-] Running osapi API 2011-02-25 17:00:55,667 AUDIT nova.root [-] Starting ./bin/nova-api on 0.0.0.0:8773 2011-02-25 17:00:55,671 AUDIT nova.root [-] Starting ./bin/nova-api on 0.0.0.0:8774

it just stoped here. any ideas ???

edit flag offensive delete link more
0

answered 2011-02-25 08:53:19 -0500

janson071 gravatar image

following https://bugs.launchpad.net/nova/+bug/724317 (https://bugs.launchpad.net/nova/+bug/...)

it said this is a bug.

and I modify the openssl.cnf file following that page.

In the end, it doesn't work. so I don't know what to do next ???

edit flag offensive delete link more
0

answered 2011-02-25 07:36:57 -0500

vishvananda gravatar image

./bin/nova-api On Feb 24, 2011, at 10:45 PM, janson wrote:

Question #146517 on OpenStack Compute (nova) changed: https://answers.launchpad.net/nova/+q...

janson posted a new comment: to Vish,

yes , perhaps I should create a database by running a nova-api server on this host.

but Could you tell me how ???


You received this question notification because you are a member of Nova Core, which is an answer contact for OpenStack Compute (nova).

edit flag offensive delete link more
0

answered 2011-02-24 06:03:57 -0500

vishvananda gravatar image

did you try the suggestion in the error? As in running nova-api before exporting the zipfile?

Vish

On Feb 23, 2011, at 10:01 PM, janson wrote:

Question #146517 on OpenStack Compute (nova) changed: https://answers.launchpad.net/nova/+q...

janson posted a new comment: yes, in /var/lib/nova/CA there is not a file openssl.cnf. but I don't know how to modify it. Is it just to copy from openssl.cnf.tmpl ???


You received this question notification because you are a member of Nova Core, which is an answer contact for OpenStack Compute (nova).

edit flag offensive delete link more
0

answered 2011-02-24 06:01:49 -0500

janson071 gravatar image

yes, in /var/lib/nova/CA there is not a file openssl.cnf. but I don't know how to modify it. Is it just to copy from openssl.cnf.tmpl ???

edit flag offensive delete link more
0

answered 2011-02-25 06:45:35 -0500

janson071 gravatar image

to Vish,

yes , perhaps I should create a database by running a nova-api server on this host.

but Could you tell me how ???

edit flag offensive delete link more
0

answered 2011-02-23 09:16:49 -0500

berendt gravatar image

got to /var/lib/nova/CA and check if there is a file openssl.cnf. If not, copy and modify it from openssl.cnf.tmpl. I'm not sure, but I think you have to call the script genrootca.sh, too.

also we created a symlink /usr/lib64/python/site-packages/CA pointing to /var/lib/nova/CA. I'm not sure if this is necessary or it's only something special about our packaging.

maybe you have no /var/lib/nova/CA and you can find the files directly in /usr/lib64/python/site-packages/CA.

edit flag offensive delete link more
0

answered 2012-12-18 11:34:30 -0500

santoshsas02 gravatar image

Error! .. In CA FOLDER there is no openssl.conf is created and where to search for the template file of openstack

2012-12-17 18:17:59 DEBUG nova.utils [req-ba1b0117-64f8-44b2-b812-70eef5795284 None None] backend <module 'nova.db.sqlalchemy.api'="" from="" '="" usr="" lib="" python2.7="" dist-packages="" nova="" db="" sqlalchemy="" api.pyc'=""> from (pid=17401) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658 2012-12-17 18:18:00 DEBUG nova.utils [-] Running cmd (subprocess): openssl genrsa -out /tmp/tmpuXkwyO/temp.key 1024 from (pid=17401) execute /usr/lib/python2.7/dist-packages/nova/utils.py:219 2012-12-17 18:18:00 DEBUG nova.utils [-] Running cmd (subprocess): openssl req -new -key /tmp/tmpuXkwyO/temp.key -out /tmp/tmpuXkwyO/temp.csr -batch -subj /C=US/ST=California/O=OpenStack/OU=NovaDev/CN=cookbook-openstack-2012-12-17T12:48:00Z from (pid=17401) execute /usr/lib/python2.7/dist-packages/nova/utils.py:219 2012-12-17 18:18:00 DEBUG nova.crypto [-] Flags path: /var/lib/nova/CA from (pid=17401) _sign_csr /usr/lib/python2.7/dist-packages/nova/crypto.py:290 2012-12-17 18:18:00 DEBUG nova.utils [-] Running cmd (subprocess): openssl ca -batch -out /tmp/tmp0XIsyT/outbound.csr -config ./openssl.cnf -infiles /tmp/tmp0XIsyT/inbound.csr from (pid=17401) execute /usr/lib/python2.7/dist-packages/nova/utils.py:219 2012-12-17 18:18:00 DEBUG nova.utils [-] Result was 1 from (pid=17401) execute /usr/lib/python2.7/dist-packages/nova/utils.py:235 Unexpected error while running command. Command: openssl ca -batch -out /tmp/tmp0XIsyT/outbound.csr -config ./openssl.cnf -infiles /tmp/tmp0XIsyT/inbound.csr Exit code: 1 Stdout: '' Stderr: "Using configuration from ./openssl.cnf\nerror loading the config file './openssl.cnf'\n139769128498848:error:02001002:system library:fopen:No such file or directory:bss_file.c:169:fopen('./openssl.cnf','rb')\n139769128498848:error:2006D080:BIO routines:BIO_new_file:no such file:bss_file.c:172:\n139769128498848:error:0E078072:configuration file routines:DEF_LOAD:no such file:conf_def.c:197:\n" The above error may show that the certificate db has not been created. Please create a database by running a nova-cert server on this host.

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-02-23 05:38:30 -0500

Seen: 142 times

Last updated: Dec 18 '12