473 Commits

Author SHA1 Message Date
Kevin Carter
969a30c6c7
Add grafana
This change introduces grafana into the stack which gives us a great
way to visualize the data. The grafana role from cloudalchemy is being
used for the bulk of the deployment.

Because the grafana deployment playbook is now standalone the mentions
of grafana in the other ops directories have been removed.

Change-Id: I23e1c96cd1fda7ece9b86a69f9f0326913de714d
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-04-13 10:31:34 -05:00
Kevin Carter
28f51ecae0 Update docs and add inventory example
Change-Id: I686644ad78f184f8ec6f101aeac6f0e6a41d8eae
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-04-13 10:24:15 -05:00
Zuul
fb9637f0d1 Merge "Do not log passwords" 2018-04-13 10:56:05 +00:00
Kevin Carter
dd00104cc1 Add filebeat support
This change adds all of the filebeat support we'd need to ingest data
throughout an environment.

Change-Id: I27a4ee678f020805bbc0adc72081685fbe9cecb4
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-04-12 10:41:18 -05:00
Kevin Carter
83a64509c5
Update README, beat deployment, and configs
Beat set is using a loop to ship both templates and dashboards using
different commands. This is being done to ensure no data is lost or
mis-setup during index creation.

Packetbeat only needs to be installed on hosts

All of the beats are now using standard field templates.

Change-Id: Ie6220eb94a12780ad122ba367bf7654d97c212e8
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-04-12 02:59:55 -05:00
Jean-Philippe Evrard
9d4cf24ca7 Do not log passwords
This prevents data to be leaked into the callback plugin.

Change-Id: I3c3b03c18c547824ae1f4ac3272f5b2f8142dec0
2018-04-11 13:37:59 +02:00
Kevin Carter
17fb37f075
Update elk 6.x playbooks
Most of the changes in this PR are for style and to adapt the playbooks
so that the system can operate on a multi-node cloud.

Functional change includes the removal of mainline Java 8 in favor of
OpenJDK 8.

A site playbook was add to allow an operator to just run everything.

Old tools that no longer function within the stack have been removed.

Packetbeat was added to the install list
Auditbeat was added to the install list

All of the config files have been updated for the recent ElasticStack
6.x changes.

Change-Id: I01200ad4772ff200b9c5c93f8f121145dfb88170
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-04-11 03:11:44 -05:00
Shannon Mitchell
d29019d448 Allow users to skip services to cut down on conflicts
We have received complaints that the openstack-service-setup.yml
playbooks will try to overwrite flavors and images of the same
name that may have different attributes.  This is due to them
requiring some unique configurations that just so happen to
have been using the same name in tests.  The tag additions
will allow them to work around this by skipping the ones
conflicting with existing entries.

Change-Id: I3eef87f522a219d094181fa64933f86142b060ef
Closes-Bug: 1760219
2018-04-03 16:08:20 +00:00
Shannon Mitchell
1021a5b945 Apt-cacher-ng's default ubuntu mirror list has faulty mirrors
The top mirror(http://mirror.veracruz.co/ubuntu/) is currently broken.
We can override the defaults by editing the override file
(/etc/apt-cacher-ng/backends_ubuntu) with valid mirrors.

Change-Id: I35f7efa665030282c9630d7423413e8bd3628ba5
Closes-Bug: 1759903
2018-03-29 12:31:27 -05:00
Jesse Pretorius
7ff76c41b4 Remove tests-repo-clone.sh
Now that run_tests.sh handles the tests repo clone, we can
remove the use of the older tests-repo-clone.sh script.

Change-Id: I7e3426e483e0a312ae838155788c1ec4b960559a
2018-03-28 10:28:54 +01:00
OpenStack Proposal Bot
c2ad1c8d08 Updated from OpenStack Ansible Tests
Change-Id: I492feadde213c017af10da9b46e67d857e2a20eb
2018-03-27 15:49:33 +00:00
Zuul
de0f12f04d Merge "Allow enabling of dhcp on provider network." 2018-03-25 06:30:29 +00:00
Zuul
71881065f1 Merge "Moving telegraf-plugins to drop them properly" 2018-03-25 06:29:36 +00:00
Zuul
9cc9a712f9 Merge "Using cluster_metrics host as default output" 2018-03-25 06:29:30 +00:00
Zuul
9f38f2b627 Merge "Updatev version of ELK stack for openstack ansible" 2018-03-25 06:29:00 +00:00
Bjoern Teipel
d625057b7a Adding mnaio qemu file backends
mnaio uses LVM as default VM disk backend but that
requires a lot of available disk space.
A alternative option, the qcow2 file based backend
is added to take benefit of thin provisioning.
This backend can be triggered by setting the override
`default_vm_disk_mode` to `file`

Change-Id: Iaf97fef601f656901b6913eaafb9a6c28d4b7ba6
2018-03-23 21:28:38 -05:00
Zuul
e55b331d2d Merge "Add ability to disable serial throttling for mnaio installs" 2018-03-17 03:58:15 +00:00
Zuul
3da8e79133 Merge "Add force: true to avoid dirty git repo" 2018-03-17 03:58:14 +00:00
Zuul
1ea8cc9130 Merge "Fixing typo" 2018-03-17 03:58:11 +00:00
Jesse Pretorius
ef4b673a84 tox.ini: Expose USER environment variable to execution environment
In order to allow the use of the environment variable which informs
Ansible which user executed the playbook, we pass the USER env var
into the environment that tox builds.

Change-Id: Id6d47779821d101bc504fd9e23e7a7ec29da3f7b
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-15 17:57:29 +00:00
OpenStack Proposal Bot
1147265a64 Updated from global requirements
Change-Id: I1c5a66204b6a8c1430cf6bf80d46ad5b0f69b737
2018-03-15 07:31:20 +00:00
Zuul
2cb67be496 Merge "Fix Ssh connection issues on openstack-ansible-ops mnaio builds" 2018-03-14 05:42:36 +00:00
OpenStack Proposal Bot
429b06f2fa Updated from global requirements
Change-Id: If78582cd1c296ab7bafd2f4447eea15f494ccc7a
2018-03-13 07:12:27 +00:00
Shannon Mitchell
882dcdfd4b Allow enabling of dhcp on provider network.
Dhcp is disabled by default for the provider network.  We are getting
complaints as teams using the mnaio env are expecting to be able to
attach devices to the provider network as well as the private network.
This change is to allow the setting of a 'enable_provider_net_dhcp' bool
variable to enable it during the service setup playbooks if needed.

Closes-Bug: 1755295

Change-Id: I46b22635fd8eece5528afecc76310f3c116b9e89
2018-03-12 17:09:48 -05:00
OpenStack Proposal Bot
372adb6bbc Updated from global requirements
Change-Id: I7a491ffca2c3f275436a0bd16651f75c71679985
2018-03-10 13:33:53 +00:00
ZhongShengping
5851ac317f Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html

For more detials information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: Id5641128e637c2767e1ab8758d31663eaa397c41
2018-03-09 12:01:26 +08:00
Ramon Orru
2113b36bf0 Moving telegraf-plugins to drop them properly
When playbook-influx-telegraf.yml runs, it uses roles from mgrzybek
openstack-ansible-telegraf repo. Playbooks from that repo loads
search scripts in different dirs and reading a source path.

Change-Id: Ib1ca9f60ad5e686790b56e1c66ab53ed9cc490b7
2018-03-08 14:20:02 +01:00
Ramon Orru
1b1e2853d1 Using cluster_metrics host as default output
InfluxDB is usually already installed at this point
(running playbook-influx-db.yml playbook), so in most cases using
such host as default output avoids to specify additional information.

Change-Id: Iac5e16c3d24a74119ea2179ecc3e5273de20676e
2018-03-08 14:05:41 +01:00
Ramon Orru
3dbc21a0c3 Fixing typo
Change-Id: If52051ed649b83b772d2747cd47f6d299a61f386
2018-03-08 14:00:36 +01:00
Shannon Mitchell
4336dd8fbe Fix broken linuxbridge-agent config for the flat network in osa-ops mnaio
It looks like the host_bind_override isn't being set for the flat network.
This results in the neutron linuxbridge agent to error out when trying to
attach to br-flat instead of eth2.  If attaching a device to the GATEWAY_NET
network, they will be unable to communicate.

Change-Id: Ia8de61011677ec1a7d9683fdff3c3d5848e85c2e
Closes-Bug: 1754097
2018-03-07 11:12:19 -06:00
Per Abildgaard Toft
48e2b8e998 Updatev version of ELK stack for openstack ansible
This addition is an updated of the curent elk_metrics which will install Elasticsearc, Logstash and Kibana 6.x.
It also include configuration guide for haproxy endpoints

Change-Id: Iac4dec6d17bc75433e5fe672f3b9781536b8e619
2018-03-06 14:21:23 +00:00
melissaml
3ef9e603e3 Update links in README
Change the outdated links to the latest links in README

Change-Id: I460049503fbeed8adc1ba138e9a0cae0580c0e4d
2018-03-03 12:40:14 +08:00
Shannon Mitchell
4cbb0d8b98 Fix Ssh connection issues on openstack-ansible-ops mnaio builds
We normally see ssh connection issues during the lxc container setup
  portion of OSA builds. Most people usually end up tweaking ansible ssh
  pipeline and retry settings or nerfing the build via ansible fork lowering
  to work around it. This is an old issue that we normally put a more
  permanent fix in our physical environments by setting the ssh maxsessions
  and maxstartups. On the mnaio builds I have been working around this by
  stopping the build before deployment and making the changes in a script.

Change-Id: I54c223e1fb9edf6947bc7f76ff689bad22456420
Closes-Bug: 1752914
2018-03-02 09:54:34 -06:00
Shannon Mitchell
0435d26b54 Add ability to disable serial throttling for mnaio installs
This allows the setting of an ansible osa_disable_serial variable
  that drops in a config to set all of the serial settings to 100%
  to disable throttling.  The exception being keystone as it has a
  race condition that prevents it.  The default is 'false' and can
  be set in the MNAIO_ANSIBLE_PARAMETERS var before running the
  build.sh script.

Change-Id: I5850d882d465b7ef10b317076bb135934f1ceba2
Closes-Bug: 1752475
2018-03-01 08:56:57 -06:00
Zuul
2ebd3d789f Merge "Fixing an empty var val for the mnaio build.sh" 2018-02-28 16:50:21 +00:00
Shannon Mitchell
31d771835f Fixing an empty var val for the mnaio build.sh
It looks like bash was throwing single qoutes around the variable
  default if the var was empty causing ansible to think it is the
  play.  Thanks to Matt Thompson's help, we pulled that out into
  a separate export to remove the single quotes.

Change-Id: Id04f840871f3371cf8258a8135536d37738e4e12
Closes-Bug: 1752357
2018-02-28 16:36:25 +00:00
Shannon Mitchell
bf71e5d1fc Update the debian image link to something more stable.
It looks like the debian image link is currently dead after
  the latest build.  A link under the current-9 dir seesm to
  link to the latest debian 9 build in the current dir.

  new loc: http://cdimage.debian.org/cdimage/openstack/current-9/debian-9-openstack-amd64.qcow2
  looks to be the same image as: http://cdimage.debian.org/cdimage/openstack/current/debian-9.3.6-20180225-openstack-amd64.qcow2

Change-Id: I06f299097c5186369557be21101071de56128eef
Closes-Bug: 1752180
2018-02-27 15:58:24 -06:00
Zuul
41ca003868 Merge "Adds ability to modify vcpu count and add custom ansible params." 2018-02-27 10:08:06 +00:00
Zuul
adce774a26 Merge "Remove empty file" 2018-02-23 13:59:42 +00:00
Nguyen Hung Phuong
65340472d2 Remove empty file
cluster_metrics/etc/user_metrics.yml
is empty file. We probably should delete it.

Change-Id: Id8b2905a2c94dc3953ca2fbd924ba68e6c5c1bf5
2018-02-23 16:29:22 +07:00
Weezer Su
8ae7d0fe34 Add force: true to avoid dirty git repo
add force: true to avoid dirty git repo, which will do a hard reset from
upstream, this is related to you ansible version, if it's not working,
please try this way -> https://goo.gl/2Sg2Eq

Change-Id: I7e21921d0812cb143a2e2c3f794667354791c8db
2018-02-20 17:18:15 +00:00
Weezer Su
c844c7296e Fix a typo in build.sh
change the default value assiagment for container_tech from - to :- in 
case the the parameter has been declared, but is null.

The extra : makes a difference only when parameter has been declared, 
but is null.


Change-Id: I9be9df155c1db5b390f6b664c0f3046efb4a4d1b
2018-02-19 21:12:58 +00:00
Shannon Mitchell
1ece2ac060 Adds ability to modify vcpu count and add custom ansible params.
This change allows someone to modify the vcpu count settings
  similar to how the ram is currently done.  It also allows for
  custom ansible parameters via an MNAIO_ANSIBLE_PARAMETERS var
  to add custom ansible parameters for the vpcu overrides as well
  as other settings.

Change-Id: I3c1fa7b55a87931eff586c0e983bb9b8c6f34fc3
Closes-Bug: 1750402
2018-02-19 10:20:44 -06:00
Zuul
d16deb8cb2 Merge "Update mnaio to allow deployers to use nspawn" 2018-02-15 12:24:46 +00:00
Kevin Carter
3f6ec2ffac
Update mnaio to allow deployers to use nspawn
This change updates the preseed files and the default
openstack-user-config file so that deployers can use and test nspawn
type containers using the in-built automation.

Change-Id: I2ec3bd284540fa9f79490a350f016ca594fb5f98
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-02-14 16:38:57 -06:00
OpenStack Proposal Bot
8627e17d28 Updated from OpenStack Ansible Tests
Change-Id: I9047fa6beb8913ccc54a6f5e8aa80c267d7bc792
2018-02-14 20:04:37 +00:00
Zuul
f1f9de8391 Merge "Use clouds.yaml" 2018-02-13 12:32:32 +00:00
Jean-Philippe Evrard
4df9332649 Use clouds.yaml
Instead of passing all things to the client, and forgetting some,
we should directly load the config, and use the cloud
configuration for creating connections.

Change-Id: I8e66ff033b6d49537b161710e983750f40d5e93d
2018-02-13 11:02:27 +00:00
Zuul
007371b35c Merge "Replace pxelinux with iPXE support in MNAIO" 2018-02-08 21:07:15 +00:00
Zuul
a0b30672ab Merge "Stop any running VMs when re-deploying" 2018-02-08 20:59:26 +00:00