Step 5: Create a project but can't get the documented message

Asked by cjy7891

when I created a new project and than I run the command
"nova-manage project zipfile NOVA anne"
I got part of the documented message:

[root@localhost nova-2011.1]# nova-manage project zipfile NOVA anne
Generating RSA private key, 1024 bit long modulus
...............++++++
..........++++++
e is 65537 (0x10001)
Traceback (most recent call last):
  File "/usr/local/bin/nova-manage", line 5, in <module>
    pkg_resources.run_script('nova==2011.1', 'nova-manage')
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 489, in run_script
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 1207, in run_script
  File "/usr/local/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/EGG-INFO/scripts/nova-manage", line 508, in <module>
    main()
  File "/usr/local/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/EGG-INFO/scripts/nova-manage", line 500, in main
    fn(*argv)
  File "/usr/local/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/EGG-INFO/scripts/nova-manage", line 362, in zipfile
    zip_file = self.manager.get_credentials(user_id, project_id)
  File "/usr/local/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/auth/manager.py", line 635, in get_credentials
    private_key, signed_cert = self._generate_x509_cert(user.id, pid)
  File "/usr/local/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/auth/manager.py", line 697, in _generate_x509_cert
    signed_cert = crypto.sign_csr(csr, pid)
  File "/usr/local/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/crypto.py", line 129, in sign_csr
    return _sign_csr(csr_text, FLAGS.ca_path)
  File "/usr/local/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/crypto.py", line 148, in _sign_csr
    os.chdir(ca_folder)
OSError: [Errno 2] No such file or directory: '/usr/local/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/..//CA'

Regards

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Josh Kearney
Solved:
Last query:
Last reply:
Revision history for this message
Josh Kearney (jk0) said :
#1

I've seen similar occurrences before when there were no networks available -- try adding a network and then generating the zip again:

nova-manage network create 10.0.0.0/8 3 16

Revision history for this message
cjy7891 (tangjiaping2009) said :
#2

HI Josh
 the network must be 10.0.0.0/8 3 16?
I try it but the error was same

Revision history for this message
Best Josh Kearney (jk0) said :
#3

The network should match whatever you'd like to use in your environment (the above was just an example).

The next thing I would try is generating the root certificate:

cd /usr/local/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/CA && ./genrootca.sh

Once this is done, give the zip another go.

Revision history for this message
cjy7891 (tangjiaping2009) said :
#4

Thanks Josh Kearney, that solved my question.