unable to create OpenStack credentials

Asked by Shiny Sebastian

Hi,

I tried creating the nova credential zip file and it failed because the /usr/lib/pymodules/python2.6/nova/..//CA directory did not exist. And threw the below error. However, when I copied files from CA from source code directory (present case /home/shinys/openstack1/nova-2011.1/CA) to /usr/lib/pymodules/python2.6/nova/..//CA, it worked fine for me. Shouldn't this be an automated procedure? Well I tried the solution at https://answers.launchpad.net/nova/+question/134376, it didnt help.

# nova-manage project zipfile shinysp shinys
 pid shinysp user id/ project shinys
Generating RSA private key, 1024 bit long modulus
........................................................................++++++
..........++++++
e is 65537 (0x10001)
Traceback (most recent call last):
  File "/usr/bin/nova-manage", line 513, in <module>
    main()
  File "/usr/bin/nova-manage", line 505, in main
    fn(*argv)
  File "/usr/bin/nova-manage", line 363, in zipfile
    zip_file = self.manager.get_credentials(user_id, project_id)
  File "/usr/lib/pymodules/python2.6/nova/auth/manager.py", line 641, in get_credentials
    private_key, signed_cert = self._generate_x509_cert(user.id, pid)
  File "/usr/lib/pymodules/python2.6/nova/auth/manager.py", line 703, in _generate_x509_cert
    signed_cert = crypto.sign_csr(csr, pid)
  File "/usr/lib/pymodules/python2.6/nova/crypto.py", line 129, in sign_csr
    return _sign_csr(csr_text, FLAGS.ca_path)
  File "/usr/lib/pymodules/python2.6/nova/crypto.py", line 148, in _sign_csr
    os.chdir(ca_folder)
OSError: [Errno 2] No such file or directory: '/usr/lib/pymodules/python2.6/nova/..//CA'

Thanks
Shiny

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
dirakx (dirakx) said :
#1

I've solved it copyng the /var/lib/nova/CA/ files to the directory where nova-managed is launched.

hope this helps

Can you help with this problem?

Provide an answer of your own, or ask Shiny Sebastian for more information if necessary.

To post a message you must log in.