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
This commit is contained in:
Kien Nguyen 2018-12-13 15:59:30 +07:00
parent 17f9ff5a10
commit 90fd7aa03d
2 changed files with 13 additions and 2 deletions
ansible/roles/vitrage

@ -30,3 +30,14 @@
auth: "{{ openstack_vitrage_auth }}"
endpoint_type: "{{ openstack_interface }}"
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 }}
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]
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 }}
auth_type = password
project_domain_id = default
user_domain_id = default
project_name = service
project_name = admin
password = {{ vitrage_keystone_password }}
username = {{ vitrage_keystone_user }}
interface = internal