API returns UnknownError when executing euca-add-keypair in RHEL6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Ilya Alekseyev |
Bug Description
When I tried to add key with euca-add-keypair in redhat6, I got UnknownError. I paste the error log and related info below.
nova-api.log:
2011-03-18 14:26:07,874 nova.api: ERROR [991LMA1G2AVU9R
Command: ssh-keygen -q -b 1024 -N "" -f /tmp/tmpv74M0I/temp
Exit code: 1
Stdout: 'Saving the key failed: /tmp/tmpv74M0I/
Stderr: 'open /tmp/tmpv74M0I/temp failed: Permission denied.\r\n'
(nova.api): TRACE: Traceback (most recent call last):
(nova.api): TRACE: File "/usr/lib/
(nova.api): TRACE: result = api_request.
(nova.api): TRACE: File "/usr/lib/
(nova.api): TRACE: result = method(context, **args)
(nova.api): TRACE: File "/usr/lib/
(nova.api): TRACE: data = _gen_key(context, context.user.id, key_name)
(nova.api): TRACE: File "/usr/lib/
(nova.api): TRACE: private_key, public_key, fingerprint = crypto.
(nova.api): TRACE: File "/usr/lib/
(nova.api): TRACE: utils.execute(
(nova.api): TRACE: File "/usr/lib/
(nova.api): TRACE: cmd=cmd)
(nova.api): TRACE: ProcessExecutio
(nova.api): TRACE: Command: ssh-keygen -q -b 1024 -N "" -f /tmp/tmpv74M0I/temp
(nova.api): TRACE: Exit code: 1
(nova.api): TRACE: Stdout: 'Saving the key failed: /tmp/tmpv74M0I/
(nova.api): TRACE: Stderr: 'open /tmp/tmpv74M0I/temp failed: Permission denied.\r\n'
(nova.api): TRACE:
The version of nova-api is 2011.1.1.
BTW I installed nova according to the instructions from below.
http://
summary: |
- API returns UnknownError when executing euca-add-keypair in redhat6 + API returns UnknownError when executing euca-add-keypair in RHEL6 |
Changed in nova: | |
status: | Incomplete → Invalid |
Guan, thank you much for your report. selinux and reboot your system.
There was incompletness on wiki instructions. Andrey Brindeyev just corrected it. You should disable SELinux in /etc/sysconfig/
Please let us know if it solve your problem.