Commit Graph

24 Commits

Author SHA1 Message Date
Andreas Jaeger fd10957ead Retire pupet-stackalytics
The repo is not used anymore, retire it.

Depends-On: https://review.openstack.org/631817
Change-Id: I1ec09c1605ff531b0d8f21b2fd489d1380d019c7
2019-01-18 17:20:46 +01:00
Colleen Murphy 52364b883a Update Gemfile for Zuulv3
The logic in the Gemfile was relying on Zuulv2 variables to find out
whether the spec helper gem was already available on disk, and since
Zuulv3 has changed things it was failing to find it and downloading the
master version instead. This patch ensures the Gemfile looks for the gem
in the right place when running in CI.

Change-Id: Ic5d9caf9bf7ecca5e2864a669338bb38369ce31e
2018-07-12 09:57:45 +02:00
Colleen Murphy faf6b23bb1 Depend on helper gem for spec_helper_acceptance
Instead of keeping a local copy of spec_helper_acceptance.rb and
requiring updates to all modules for any change, we can move it into the
common helper gem and require it from there. This will make it easier to
create and review changes that affect all puppet modules. Also change
the Gemfile to look for the gem in the local workspace if running in a
zuul environment.

Change-Id: I733802740bed8b074e2adc6523e6284a7bd1d5d4
2017-08-18 10:41:44 +02:00
Colleen Murphy f180ab4d2c Update beaker setup for xenial
Add a xenial nodeset and update the spec helper to install puppet 3 from
the Ubuntu repos instead of from puppetlabs.

Change-Id: I9198bbdec0d5474d174aa20fe87907995858f221
2017-06-11 20:33:09 +02:00
Jeremy Stanley 956a25cf27 Add new system deps for libffi-dev and libssl-dev
The update to newer paramiko dragged in pyca/cryptography which
needs libffi and libssl headers to build successfully. Declare them
as system package dependencies in the manifest.

Change-Id: I8e54f76e715f765a820b578b1cbd445ab7a721a4
2017-05-24 15:52:58 +00:00
Spencer Krum 7d1ca74fc7 Use new infra_spec_helper for gem dependencies
Change-Id: I6b01a00b730516f5c4e82035b0339dddf903c5d8
2016-06-21 18:40:17 -07:00
Spencer Krum 75a5135a17 Pin google-api-client; sanitize Gemfile
Change-Id: I2e8d77d17135b9fcc5b7615715fa5ed8cb46219a
2016-04-14 15:24:12 -07:00
Colleen Murphy 9a46d06e34 Add foundation for functional tests
Add beaker-rspec to the gemfile and add spec_helper_acceptance.rb and
nodesets to initialize beaker-rspec testing. This will get the
beaker-rspec jobs to pass but does not actually add any tests.

Story: 2000250

Change-Id: Ic65a5b2fd1e33273118ca180ad8f0f7f92c19d68
2016-04-13 09:16:11 -07:00
Andrey Nikitin 3ed5a7ae00 Order of the class parameters is refactored
Order and intendation of those parameters are changed
to follow Puppet Style Guide recommendation [0].
Moreover, it will allow to an user to find much faster
a variable in a list of variables.

[0]. https://docs.puppetlabs.com/guides/style_guide.html

Change-Id: Ib80146d49607479a4bb2bd47c33e1a26cfb261f4
2016-03-21 18:40:33 +03:00
Paul Belanger b5216be3de Setup logging for stackalytics-processor
It is helpful to see what the processor is doing, so we can debug
failure.

Change-Id: Ifcd0af68e1a14a1b29fc0487f449cf2cf6276013
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-02-10 23:01:49 +00:00
Jenkins f21fb6a288 Merge "Share crontab lock with both processor and dump" 2016-01-07 21:51:53 +00:00
Jenkins bccff24cc7 Merge "Run crontab for processor every hour" 2015-11-16 13:08:12 +00:00
Paul Belanger af74630ec0 Compress dump.log after rotating
Currently it is 2GB, compressing will help save drive space.

Change-Id: Icbaa45709497399ebf31de3404cbb7b0f2de3c50
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-12 13:12:04 -05:00
Paul Belanger 686bbe5980 Share crontab lock with both processor and dump
Right now, it take about 15mins to load a dump file on boot.  So, we
want to make sure we don't also run the processor during that
time. This will help aviod duplicating data that is being loaded.

Change-Id: I5c775b4ae9dcb63e61a82f98476eb007e69ad93e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-11 13:51:45 -05:00
Paul Belanger acf4555250 Run crontab for processor every hour
Now that we are locking stackalytics-processor we can increase the
interval to re-run it.

Change-Id: I27229d30d17f0df1870f354b16c935fdb4902654
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-08 20:12:38 -05:00
Paul Belanger 0bd425ffad Use /opt for git repos
Currently in -infra we map /opt to a 128GB virtual disk. Our root
drive is only 30GB. We do this not to fill up the root drive.

Change-Id: Ic9947fceb2473ea9e5e79169a8f0de2fb9ebcbf5
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-08 20:07:08 -05:00
Paul Belanger 3d4878dc1e Logrotate even if file is empty
Our first dump.log file will always be empty, since puppet creates it.

Change-Id: I28611d57b2fa615c2896fa75c5f5ce675dc3f212
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-08 19:55:22 -05:00
Paul Belanger a8d6a95297 Drop uwsgi process to 2
We are still working on tuning the system. Currently 4 processes
causes us to use swap on 15GB of RAM, dropping it to 2 should help.

Change-Id: I0638a6709f6454f6336d70112f02fd7504a376c5
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-08 10:15:06 -05:00
Paul Belanger a39dba47b1 Create flock for crontab to avoid mulitple runs
Add a flock so we don't run stackalytics-processor again while it is
still running.

Change-Id: I14c3f401365aeb3f32087706f692eedcf8a2a614
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-08 10:14:59 -05:00
Paul Belanger dbefa1558e Fix crontab bug
We need to add minutes, cron doesn't spam the processor every minute.

Change-Id: I330a25f41ddbe761905d1dc6e2611025dfa77178
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-06 19:15:08 -05:00
Paul Belanger 2bdf4a1d57 Initial commit for puppet-stackalytics
Change-Id: If62b3f633000cc6380d892cad0a2160136ce8ca4
Co-Authored-By: Monty Taylor <mordred@inaugust.com>
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-01 11:09:46 -05:00
Colleen Murphy 28a786843c Add Gemfile and puppet 4 checks
In anticipation of puppet 4, start trying to deal with puppet 4 things
that can be helpfully predicted by puppet lint plugins.

Change-Id: I63b711f03e58d81110e5fe5d77125861d7c66fe5
2015-08-13 18:23:23 -07:00
Paul Belanger 2394b14290 Add .gitreview
Change-Id: I5a2cbb50d1c9d7e88c2d980752541464785f78d9
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-06-11 12:11:45 -04:00
Paul Belanger 9305f4c489 Initial commit
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-06-01 14:08:03 -04:00