Skip to content
Snippets Groups Projects
Commit 90fd7aa0 authored by Kien Nguyen's avatar Kien Nguyen
Browse files

Fix Vitrage wrong configuration

* In service_credentials section, project_name should be
admin and auth_url should use keystone public port (5000)
according [1].
* User vitrage should have role admin in project admin [2].

[1] https://github.com/openstack/vitrage/blob/master/devstack/plugin.sh#L164
[2] https://docs.openstack.org/vitrage/latest/install/install-rdo.html#initialize-vitrage

Change-Id: I8bf028c702df5659e4c58df0e17600ab5be14eea
parent 17f9ff5a
No related branches found
No related tags found
No related merge requests found
...@@ -30,3 +30,14 @@ ...@@ -30,3 +30,14 @@
auth: "{{ openstack_vitrage_auth }}" auth: "{{ openstack_vitrage_auth }}"
endpoint_type: "{{ openstack_interface }}" endpoint_type: "{{ openstack_interface }}"
run_once: True run_once: True
- name: Adding vitrage user into admin project
kolla_toolbox:
module_name: "os_user_role"
module_args:
user: "{{ vitrage_keystone_user }}"
role: "admin"
project: "admin"
auth: "{{ openstack_vitrage_auth }}"
endpoint_type: "{{ openstack_interface }}"
run_once: True
...@@ -45,12 +45,12 @@ memcache_secret_key = {{ memcache_secret_key }} ...@@ -45,12 +45,12 @@ memcache_secret_key = {{ memcache_secret_key }}
memcached_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %} memcached_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %}
[service_credentials] [service_credentials]
auth_url = {{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_admin_port }} auth_url = {{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_public_port }}/v3
region_name = {{ openstack_region_name }} region_name = {{ openstack_region_name }}
auth_type = password auth_type = password
project_domain_id = default project_domain_id = default
user_domain_id = default user_domain_id = default
project_name = service project_name = admin
password = {{ vitrage_keystone_password }} password = {{ vitrage_keystone_password }}
username = {{ vitrage_keystone_user }} username = {{ vitrage_keystone_user }}
interface = internal interface = internal
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment