Please create a database by running a nova-api server on this host.
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/
Exit code: 1
Stdout: ''
Stderr: "Using configuration from ./openssl.
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 ???
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- janson
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
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/
maybe you have no /var/lib/nova/CA and you can find the files directly in /usr/lib64/
Revision history for this message
|
#2 |
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 ???
Revision history for this message
|
#3 |
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:/
>
> 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).
Revision history for this message
|
#4 |
to Vish,
yes , perhaps I should create a database by running a nova-api server on this host.
but Could you tell me how ???
Revision history for this message
|
#5 |
./bin/nova-api
On Feb 24, 2011, at 10:45 PM, janson wrote:
> Question #146517 on OpenStack Compute (nova) changed:
> https:/
>
> 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).
Revision history for this message
|
#6 |
following https:/
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 ???
Revision history for this message
|
#7 |
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-
2011-02-25 17:00:55,366 DEBUG nova.api [-] Using paste.deploy config at: /dowmload/
2011-02-25 17:00:55,373 DEBUG nova.api [-] App Config: ec2
{'/2007-08-29': 'ec2metadata', 'verbose': '1', '__file__': '/dowmload/
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/
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 ???
Revision history for this message
|
#8 |
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:/
>
> 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-
> 2011-02-25 17:00:55,366 DEBUG nova.api [-] Using paste.deploy config at: /dowmload/
> 2011-02-25 17:00:55,373 DEBUG nova.api [-] App Config: ec2
> {'/2007-08-29': 'ec2metadata', 'verbose': '1', '__file__': '/dowmload/
> 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/
> 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).
Revision history for this message
|
#9 |
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 ?
Revision history for this message
|
#10 |
by default it is nova.zip in the dir you executed from. If you want a different location you can specify it
nova-manage --flagfile /etc/nova/nova.conf project zipfile PRO1 janson /path/to/
On Feb 27, 2011, at 5:40 PM, janson wrote:
> Question #146517 on OpenStack Compute (nova) changed:
> https:/
>
> janson posted a new comment:
> 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 ?
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).
Revision history for this message
|
#11 |
to Vish:
I am very sorry I can't find nova.zip, perhaps it isn't created gernerally.
Revision history for this message
|
#12 |
to Vish and all :
thank you very much, now I can find nova.zip .
all I must say: thanks for all your help!
Revision history for this message
|
#13 |
I am running into the same error, but I can't seem to be able to fix it after trying all the solutions available. Here is the error I am getting:
root@cloud:
2011-08-16 11:30:19,036 DEBUG nova.utils [-] backend <module 'nova.db.
2011-08-16 11:30:19,084 DEBUG nova.utils [-] Running cmd (subprocess): openssl genrsa -out /tmp/tmpZCJWTh/
2011-08-16 11:30:19,106 DEBUG nova.utils [-] Running cmd (subprocess): openssl req -new -key /tmp/tmpZCJWTh/
2011-08-16 11:30:19,118 DEBUG nova.crypto [-] Flags path: /usr/lib/
2011-08-16 11:30:19,118 DEBUG nova.utils [-] Running cmd (subprocess): openssl ca -batch -out /tmp/tmpzcrfCV/
2011-08-16 11:30:19,127 DEBUG nova.utils [-] Result was 1 from (pid=6779) execute /usr/lib/
Unexpected error while running command.
Command: openssl ca -batch -out /tmp/tmpzcrfCV/
Exit code: 1
Stdout: ''
Stderr: "Using configuration from ./openssl.
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.
Revision history for this message
|
#14 |
How did you install nova? It is trying to use a CA directory from python modules and it probably doesn't have write access. If you are running from source, just run nova from the source checkout. It looks like perhaps you did setup.py install? If you are running from packages it should have set the path to something like /var/lib/nova and the CA directory should be copied in there. If the CA directory is somewhere specific, you can use somethng like the flag --state_
Revision history for this message
|
#15 |
I am using the install script from:
https:/
Specifying the flag '--state_path' resolved the issue. Thanks.
Revision history for this message
|
#16 |
facing the same problem however i couldnot find openssl.cnf.tmp ... Could any one help
Revision history for this message
|
#17 |
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-
2012-12-17 18:18:00 DEBUG nova.utils [-] Running cmd (subprocess): openssl genrsa -out /tmp/tmpuXkwyO/
2012-12-17 18:18:00 DEBUG nova.utils [-] Running cmd (subprocess): openssl req -new -key /tmp/tmpuXkwyO/
2012-12-17 18:18:00 DEBUG nova.crypto [-] Flags path: /var/lib/nova/CA from (pid=17401) _sign_csr /usr/lib/
2012-12-17 18:18:00 DEBUG nova.utils [-] Running cmd (subprocess): openssl ca -batch -out /tmp/tmp0XIsyT/
2012-12-17 18:18:00 DEBUG nova.utils [-] Result was 1 from (pid=17401) execute /usr/lib/
Unexpected error while running command.
Command: openssl ca -batch -out /tmp/tmp0XIsyT/
Exit code: 1
Stdout: ''
Stderr: "Using configuration from ./openssl.
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.