horizon doesn't show keypairs

asked 2019-08-30 04:09:45 -0500

Johnny gravatar image

updated 2019-08-30 04:12:31 -0500

Hello!

My horizon doesn't show my keypairs. A can create, but it doesn't download the pem file, and it writes that create succesfull. I can't see the keypairs in dashboard (empty list). Only work with admin rights. (it can see only the admin's keypairs) I can create and manage keypairs with cli.

Openstack : Rocky

Please help me.

by,

Janos

# openstack keypair list
+--------------+-------------------------------------------------+
| Name         | Fingerprint                                     |
+--------------+-------------------------------------------------+
| test         | 2e:e6:d6:05:17:bd:57:88:6d:2f:21:b2:e1:1e:c6:34 |
| test1        | f1:5a:ac:11:d4:a1:8d:32:76:90:43:d4:3c:e9:9b:83 |
+--------------+-------------------------------------------------+
root@nebula/home/kocsisj # openstack keypair show kjkey
+-------------+-------------------------------------------------+
| Field       | Value                                           |
+-------------+-------------------------------------------------+
| created_at  | 2019-08-30T08:10:19.000000                      |
| deleted     | False                                           |
| deleted_at  | None                                            |
| fingerprint | 2e:e6:d6:05:17:bd:57:88:6d:2f:21:b2:e1:1e:c6:34 |
| id          | 39                                              |
| name        | test                                            |
| updated_at  | None                                            |
| user_id     | 4cee157cec98401eb086341f796994e8                |
+-------------+-------------------------------------------------+

root@nebula:/etc/openstack-dashboard # grep key nova_policy.json
        "os_compute_api:os-keypairs:index": "rule:admin_api or user_id:%(user_id)s",
        "os_compute_api:os-keypairs:create": "rule:admin_api or user_id:%(user_id)s",
        "os_compute_api:os-keypairs:delete": "rule:admin_api or user_id:%(user_id)s",
        "os_compute_api:os-keypairs:show": "rule:admin_api or user_id:%(user_id)s",
        "os_compute_api:os-keypairs": "rule:admin_or_owner",
edit retag flag offensive close merge delete