Address review comments
This commit is contained in:
parent
0cd6d17d0c
commit
3a757b597d
1
.gitignore
vendored
1
.gitignore
vendored
@ -57,6 +57,7 @@ ansible/roles/mrlesmithjr.manage-lvm/
|
|||||||
ansible/roles/MichaelRigart.interfaces/
|
ansible/roles/MichaelRigart.interfaces/
|
||||||
ansible/roles/stackhpc.drac/
|
ansible/roles/stackhpc.drac/
|
||||||
ansible/roles/stackhpc.drac-facts/
|
ansible/roles/stackhpc.drac-facts/
|
||||||
|
ansible/roles/stackhpc.grafana-conf/
|
||||||
ansible/roles/stackhpc.libvirt-host/
|
ansible/roles/stackhpc.libvirt-host/
|
||||||
ansible/roles/stackhpc.libvirt-vm/
|
ansible/roles/stackhpc.libvirt-vm/
|
||||||
ansible/roles/stackhpc.os-flavors/
|
ansible/roles/stackhpc.os-flavors/
|
||||||
|
@ -4,22 +4,18 @@
|
|||||||
|
|
||||||
# Grafana local admin user name. If you are deploying Monasca Grafana this
|
# Grafana local admin user name. If you are deploying Monasca Grafana this
|
||||||
# should not conflict with an OpenStack user name.
|
# should not conflict with an OpenStack user name.
|
||||||
#grafana_local_admin_user_name:
|
|
||||||
grafana_local_admin_user_name: "grafana_admin"
|
grafana_local_admin_user_name: "grafana_admin"
|
||||||
|
|
||||||
# Path to git repo containing Grafana dashboards. Eg.
|
# Path to git repo containing Grafana dashboards. Eg.
|
||||||
# https://github.com/stackhpc/grafana-reference-dashboards.git
|
# https://github.com/stackhpc/grafana-reference-dashboards.git
|
||||||
#grafana_monitoring_node_dashboard_repo:
|
|
||||||
grafana_monitoring_node_dashboard_repo:
|
grafana_monitoring_node_dashboard_repo:
|
||||||
|
|
||||||
# Path to which Grafana dashboards will be cloned to a monitoring node
|
# Path to which Grafana dashboards will be cloned to a monitoring node
|
||||||
#grafana_monitoring_node_dashboard_repo_path:
|
grafana_monitoring_node_dashboard_repo_path: "{{ source_checkout_path ~ '/grafana' }}"
|
||||||
grafana_monitoring_node_dashboard_repo_path: "/var/opt/grafana/"
|
|
||||||
|
|
||||||
# The Grafana organisation for the control plane. Note that for Monasca
|
# The Grafana organisation for the control plane. Note that for Monasca
|
||||||
# Grafana with domain support the format is:
|
# Grafana with domain support the format is:
|
||||||
# organisation_name@openstack_domain
|
# organisation_name@openstack_domain
|
||||||
#grafana_control_plane_organisation:
|
|
||||||
grafana_control_plane_organisation: "control_plane"
|
grafana_control_plane_organisation: "control_plane"
|
||||||
|
|
||||||
# A list of datasources to configure. See the stackhpc.grafana-conf role
|
# A list of datasources to configure. See the stackhpc.grafana-conf role
|
||||||
@ -37,14 +33,10 @@ grafana_control_plane_organisation: "control_plane"
|
|||||||
# host: monasca-elasticsearch
|
# host: monasca-elasticsearch
|
||||||
# project_id: "some_id"
|
# project_id: "some_id"
|
||||||
#
|
#
|
||||||
#grafana_datasources:
|
grafana_datasources: {}
|
||||||
grafana_datasources:
|
|
||||||
|
|
||||||
# The path, relative to the grafana_monitoring_node_dashboard_repo_path
|
# The path, relative to the grafana_monitoring_node_dashboard_repo_path
|
||||||
# containing the dashboards. Eg. /prometheus/control_plane
|
# containing the dashboards. Eg. /prometheus/control_plane
|
||||||
#grafana_monitoring_node_dashboard_path:
|
|
||||||
grafana_monitoring_node_dashboard_path:
|
grafana_monitoring_node_dashboard_path:
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Dummy variable to allow Ansible to accept this file.
|
|
||||||
workaround_ansible_issue_8743: yes
|
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
# {{ ansible_managed }}
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
|
[security]
|
||||||
|
; If an OpenStack user with the same name as the admin user logs into
|
||||||
|
; Grafana it overwrites user data in the Grafana database, breaking
|
||||||
|
; the local admin account, and preventing admin API calls to Grafana. To
|
||||||
|
; reduce the chance of this happening we rename the local admin user here.
|
||||||
|
; Note that this only affects the Monasca fork of Grafana.
|
||||||
|
;admin_user = admin
|
||||||
|
admin_user = {{ grafana_local_admin_user_name }}
|
||||||
|
|
||||||
{% if kolla_extra_grafana %}
|
{% if kolla_extra_grafana %}
|
||||||
#######################
|
#######################
|
||||||
# Extra configuration
|
# Extra configuration
|
||||||
|
@ -672,6 +672,30 @@ class TestCase(unittest.TestCase):
|
|||||||
]
|
]
|
||||||
self.assertEqual(expected_calls, mock_run.call_args_list)
|
self.assertEqual(expected_calls, mock_run.call_args_list)
|
||||||
|
|
||||||
|
@mock.patch.object(commands.KayobeAnsibleMixin,
|
||||||
|
"run_kayobe_playbooks")
|
||||||
|
def test_overcloud_post_configure(self, mock_run):
|
||||||
|
command = commands.OvercloudPostConfigure(TestApp(), [])
|
||||||
|
parser = command.get_parser("test")
|
||||||
|
parsed_args = parser.parse_args([])
|
||||||
|
|
||||||
|
result = command.run(parsed_args)
|
||||||
|
self.assertEqual(0, result)
|
||||||
|
|
||||||
|
expected_calls = [
|
||||||
|
mock.call(
|
||||||
|
mock.ANY,
|
||||||
|
[
|
||||||
|
'ansible/overcloud-ipa-images.yml',
|
||||||
|
'ansible/overcloud-introspection-rules.yml',
|
||||||
|
'ansible/overcloud-introspection-rules-dell-lldp-workaround.yml',
|
||||||
|
'ansible/provision-net.yml',
|
||||||
|
'ansible/overcloud-grafana-configure.yml'
|
||||||
|
],
|
||||||
|
),
|
||||||
|
]
|
||||||
|
self.assertEqual(expected_calls, mock_run.call_args_list)
|
||||||
|
|
||||||
@mock.patch.object(commands.KayobeAnsibleMixin,
|
@mock.patch.object(commands.KayobeAnsibleMixin,
|
||||||
"run_kayobe_playbooks")
|
"run_kayobe_playbooks")
|
||||||
def test_baremetal_compute_inspect(self, mock_run):
|
def test_baremetal_compute_inspect(self, mock_run):
|
||||||
|
Loading…
Reference in New Issue
Block a user