Commit Graph

16 Commits

Author SHA1 Message Date
Charles Short 73138475dc Add molecule infrastructure
- Add molecule support to test ansible roles.
- Also fix flake8 failures.
- Also drop python36 from the templates

Change-Id: Ib647d93144a02a6be7340991c31f65842fdf3f29
Signed-off-by: Charles Short <chucks@redhat.com>
2019-12-16 08:11:35 -05:00
Charles Short 2ba39b30ab Refresh collectd for "train"
This commit does several things at once:

- Use ansible_distribution_major_version to detect which version of the
  EPEL repository. So we dont have to hard code the URL for either epel7
  or epel 8.
- Remove "stein" workaround for colelctd-openstack role. The "stein"
  workaround has been removed in favor of running the collectd daemon
  in a podman container.
- Drop opendaylight support for collectd since it is no longer
  suupported.
- Add the collectd playbook so we can run collectd in a centos 7
  container going forward for "train". This commit still needs
  to be tested on "stein" but it will probably work anyways.
- Add browbeat-containers to tox.ini for flake8
- Simplify detection of docker or podman for older versions of OSP.
(sai)
- Fixed typo from compute_compute to collectd_compute that caused failures on computes
- clear graphite_host in install/group_vars/all.yml
- Move container DockerFiles into brwobeat tree
- Conditionally copy required Dockerfiles to node instead of git clone
- Fix up some log file paths
- Use Docker/Podman depending on release
- Provide single interface(collectd.yml) which has container and baremetal playbooks
- Introduce variable collectd_container in install/group_vars/all
- remove unneeded selinux rebaelling (already running as priveleged) when running container
- remove unneed hostfs mount
- collectd container logs to file instead of STDOUT for easier debug
- add collectd-ping package to collectd-openstack Dockerfile
- Improve docs to reflect changes
- dynamically set rabbitmq and swift paths as well for tail plugin

Co-Authored-By: Sai Sindhur Malleni <smalleni@redhat.com>

Change-Id: I627a696f6f1240d96a0e1d85c26d59bbbfae2b1b
Signed-off-by: Charles Short <chucks@redhat.com>
Signed-off-by: Sai Sindhur Malleni <smalleni@redhat.com>
2019-11-05 08:08:37 -05:00
Sorin Sbarnea 7bc805ef08 Fix package building failure due to empty description
Adds descriptions and avoid twine check failure when the sdist package
was build via python3. It seems that sdist command produce different
packages in this unique case where Description field becomes False
instead of UNKNOWN.

This also adds new dist tox targets that tests that packaging works
well. On CI we have diffent job that does almost the same thing.

Change-Id: I93300e49b80fc170c1b73ffb5540cd42754e6a21
2018-11-08 18:42:17 +00:00
Chuck Short 142e8f538a Update .gitignore
Ignore browbeat.egg-info as well.

Change-Id: Ibeebd446f50baa5e4d751e6d823daac8a5209948
Signed-off-by: Chuck Short <chucks@redhat.com>
2018-10-11 19:21:04 +00:00
akrzos 1c3b60a8c8 Mix and Match Workloads
* Mix and Match Workloads
* rerun_type - ['iteration', 'complete'] - allows you to rerun complete
  browbeat workload or iteratively
* browbeat/config.py for loading and validating config schema
* tests/test_config.py to test config.py

Change-Id: I99ea87c01c17d5d06cf7f8d1eec3299aa8d483a5
2017-12-12 11:08:50 -05:00
akrzos aa1b7651d3 Auto venv via path module
* Add path module to handle paths
  * Finds the venv
  * Finds the overcloudrc
* Clean-up/refactor imports

Change-Id: I24c269f2073a28ae0bee230cb9911dc89249f79f
2017-10-06 11:29:11 -04:00
akrzos 4be3defea0 How to use Quickstart with Browbeat
Also cleanup/fix other docs.

Change-Id: Icb20e2526ea8e86cf882d38a384f6714e9c9398d
2017-09-27 14:37:29 -04:00
akrzos b95cbeda49 Make Browbeat multi-cloud friendly.
This commit "localizes" ssh-config and heat-admin-id_rsa to your local
Browbeat directory.

This allows one to simply cd into the directory of the cloud they are
working with Browbeat against and ensure they do not incorrectly run
playbooks against the wrong hosts.

Example:

[akrzos@bithead ansible]$ ./generate_tripleo_hostfile.sh x.x.x.x
...
[akrzos@bithead ansible]$ ls -la
...
-rwxrwxr-x.  1 akrzos akrzos 9461 Aug 25 16:18 generate_tripleo_hostfile.sh
-rw-------.  1 akrzos akrzos 1675 Aug 27 14:16 heat-admin-id_rsa
-rw-rw-r--.  1 akrzos akrzos  338 Aug 27 14:16 hosts
-rw-------.  1 akrzos akrzos 2013 Aug 27 14:16 ssh-config
...
[akrzos@bithead ansible]$ ssh -F ssh-config  root@undercloud
[root@gprfc007 ~]# exit
logout
[akrzos@bithead ansible]$ ssh -F ssh-config  undercloud-stack
[stack@gprfc007 ~]$ exit
logout
[akrzos@bithead ansible]$ ssh -F ssh-config  undercloud-root
[root@gprfc007 ~]# exit
logout
[akrzos@bithead ansible]$ ssh -F ssh-config  overcloud-controller-0
Warning: Permanently added '10.16.154.18' (ECDSA) to the list of known hosts.
Warning: Permanently added 'overcloud-controller-0' (ECDSA) to the list of known hosts.
[heat-admin@overcloud-controller-0 ~]$ exit
logout
[akrzos@bithead ansible]$ ssh -F ssh-config  overcloud-controller-1
[heat-admin@overcloud-controller-1 ~]$ exit
logout
[akrzos@bithead ansible]$ ssh -F ssh-config  overcloud-controller-2
[heat-admin@overcloud-controller-2 ~]$ exit
logout
[akrzos@bithead ansible]$ ssh -F ssh-config  overcloud-novacompute-0
[heat-admin@overcloud-novacompute-0 ~]$ exit
logout
[akrzos@bithead ansible]$ ansible-playbook -i hosts install/collectd-openstack.yml
...

Tested against the collectd-openstack and grafana-dashboards playbooks

Potential issues:

CI? (Does CI execute any playbooks from the ansible directory?  If so
we shouldn't have an issue here.)

lib/{ansible/adjustments} - Can we make sure to pass the either the
correct ssh-config or use the ansible.cfg inside ansible/?

Change-Id: I4764490e5164f7d4d896cbe5bd26e6a59d770df4
2016-08-30 21:09:47 -04:00
akrzos 5432c20b65 Improvements to Checks focused around Keystone Process count
+ Check for Keystone Process count on Controllers
+ Removed thread count check as it would inadvertently prevent correct
  checking of Keystone Process count
+ .gitignore files that should not be introduced into repo
+ Add .yml extension to checks group_vars

Change-Id: Iad7475a3d0839edf800d1ce4fdbd17a9b7b9a5f4
2016-08-27 17:39:51 -04:00
Alex Krzos 494685033e Fix issues with Keystone token adjustment playbook
+ Ignore fernet keys in .gitignore
+ Ansible throws up now on an integer
+ Fernet keys belong in the fernet-keys directory (I think this
  was a copy and paste error that was never patched.)

Change-Id: Ie6805a8852d638f4a2597d976815d749c41cfc06
2016-06-23 08:51:28 -04:00
Alex Krzos 921ba0500b Updates to metadata
+ Move metadata to its own .gitignore-d directory
+ Add elasticsearch configuration to other browbeat config files in conf/
+ Adjustments to base .gitignore to ignore ansible retry files and removing legacy pbench-hosts-file

Change-Id: I7e3205f070e5f66e508cb486ae2306d28d4982bd
2016-06-16 15:53:11 -04:00
Alex Krzos c47f0ad59b Install updates.
Change-Id: I73d3afad0879e6ef2b37248e326404adedc3d698
2016-02-15 16:25:10 +01:00
Sindhur 6e114b93b0 Ignore swap files created by vim
Change-Id: I592c5b6594d780645f3c64661127da7666c60a27
Signed-off-by: Sindhur <smalleni@redhat.com>
2016-02-12 20:08:37 +01:00
Joe Talerico 73957eadc4 Add log files
Store a debug log in ./log/ to help the user determine any possible
issues that might popup. The stdout (info) might not provide enough
information

+Added Logic for Rally

Change-Id: I9ca1f42c061ae912fde9af414ada0d328615f458
2016-02-08 20:01:25 -05:00
Alex Krzos bac7066df6 Ignore pyc pyo pyd files.
Change-Id: Ife31c2f78d68337b905e2d46276d92813c711535
2016-01-30 12:28:01 -05:00
Alex Krzos 2476b31fc1 Force ansible to be 1.9.4 for now for install. Also add a .gitignore
Change-Id: I83df79798d6554d44dfa9afdf0556f1092a81f19
2016-01-28 09:27:31 -05:00