-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into alexy_logging
- Loading branch information
Showing
13 changed files
with
220 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ RHELOSP-042=passed | |
RHELOSP-043=passed | ||
RHELOSP-054=passed | ||
RHOSO-078=failed | ||
RHOSO-1234=passed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
- hosts: localhost | ||
tasks: | ||
- ansible.builtin.debug: | ||
msg: "Do nothing" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
# Verify Orchestration (heat) and telemetry services resources are ready for autoscaling | ||
|
||
- name: Verify that custom resource HEAT is ready | ||
ansible.builtin.command: | ||
cmd: | | ||
oc get heat heat -o jsonpath='{.status.conditions[?(@.type=="Ready")].status}{"\n"}' | ||
register: result | ||
failed_when: | ||
- result.stdout != "True" | ||
|
||
- name: Verify that custom resource CEILOMETER is ready | ||
ansible.builtin.command: | ||
cmd: | | ||
oc get ceilometer ceilometer -o jsonpath='{.status.conditions[?(@.type=="Ready")].status}{"\n"}' | ||
register: result | ||
failed_when: | ||
- result.stdout != "True" | ||
|
||
# - name: Verify that custom resource AUTOSCALING is ready | ||
# It is returning an unexpected response and needs further debugging. will raise another PR to inspect this | ||
# ansible.builtin.command: | ||
# cmd: | | ||
# oc get autoscaling autoscaling -o jsonpath='{.status.conditions[?(@.type=="Ready")].status}{"\n"}' | ||
# register: result | ||
# failed_when: | ||
# - result.stdout != "True" | ||
|
||
- name: Verify that custom resource METRICSTORAGE is ready | ||
ansible.builtin.command: | ||
cmd: | | ||
oc get metricstorage metric-storage -o jsonpath='{.status.conditions[?(@.type=="Ready")].status}{"\n"}' | ||
register: result | ||
failed_when: | ||
- result.stdout != "True" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
telemetry_logging | ||
========= | ||
|
||
Test logging in Openstack | ||
|
||
Requirements | ||
------------ | ||
|
||
Role Variables | ||
-------------- | ||
|
||
For journal_tests.yml | ||
|
||
identifiers_test_id | ||
- polarion id for test | ||
identifiers_list | ||
- Lists identifier strings to look for in the journalctl of the compute nodes | ||
|
||
|
||
Dependencies | ||
------------ | ||
|
||
Openstack on Openshift deployed and logging enabled for Openstack | ||
|
||
Example Playbook | ||
---------------- | ||
|
||
Each tasks/playbook.yml should be called independently via "ansible.builtin.import_role" with appropriate vars passed: | ||
|
||
- name: "Verify logging journalctl identifiers" | ||
hosts: computes | ||
gather_facts: no | ||
vars: | ||
identifiers_test_id: "RHOSO-12681" | ||
identifiers_list: | ||
- ceilometer_agent_compute | ||
- nova_compute | ||
|
||
tasks: | ||
- name: "Verify journalctl logging identifiers" | ||
ansible.builtin.import_role: | ||
name: telemetry_logging | ||
|
||
|
||
License | ||
------- | ||
|
||
Apache 2 | ||
|
||
Author Information | ||
------------------ | ||
|
||
An optional section for the role authors to include contact information, or a website (HTML is not allowed). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
galaxy_info: | ||
author: Alex Yefimov | ||
description: Tests that logging is set up as expected in OpenSTack running on OpenShift | ||
company: Red Hat | ||
|
||
# If the issue tracker for your role is not on github, uncomment the | ||
# next line and provide a value | ||
# issue_tracker_url: http://example.com/issue/tracker | ||
|
||
# Choose a valid license ID from https://spdx.org - some suggested licenses: | ||
# - BSD-3-Clause (default) | ||
# - MIT | ||
# - GPL-2.0-or-later | ||
# - GPL-3.0-only | ||
# - Apache-2.0 | ||
# - CC-BY-4.0 | ||
license: Apache-2.0 | ||
|
||
min_ansible_version: "2.1" | ||
|
||
# If this a Container Enabled role, provide the minimum Ansible Container version. | ||
# min_ansible_container_version: | ||
|
||
# | ||
# Provide a list of supported platforms, and for each platform a list of versions. | ||
# If you don't wish to enumerate all versions for a particular platform, use 'all'. | ||
# To view available platforms and versions (or releases), visit: | ||
# https://galaxy.ansible.com/api/v1/platforms/ | ||
# | ||
# platforms: | ||
# - name: Fedora | ||
# versions: | ||
# - all | ||
# - 25 | ||
# - name: SomePlatform | ||
# versions: | ||
# - all | ||
# - 1.0 | ||
# - 7 | ||
# - 99.99 | ||
|
||
galaxy_tags: [] | ||
# List tags for your role here, one per line. A tag is a keyword that describes | ||
# and categorizes the role. Users find roles by searching for tags. Be sure to | ||
# remove the '[]' above, if you add tags to this list. | ||
# | ||
# NOTE: A tag is limited to a single word comprised of alphanumeric characters. | ||
# Maximum 20 tags per role. | ||
|
||
dependencies: [] | ||
# List your role dependencies here, one per line. Be sure to remove the '[]' above, | ||
# if you add dependencies to this list. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
- name: Get journals | ||
ansible.builtin.shell: | ||
cmd: | ||
tstamp=$(date -d '30 minute ago' "+%Y-%m-%d %H:%M:%S") | ||
journalctl -t "{{ item }}" --no-pager -S "${tstamp}" | wc -l | ||
register: journal_wc | ||
changed_when: false | ||
failed_when: | ||
- journal_wc.stdout | int <= 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
- name: "Verify journal entries - {{ journal_test_id }}" | ||
when: journal_list is defined | ||
ansible.builtin.include_tasks: "journal_tests.yml" | ||
loop: "{{ identifiers_list }}" |