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
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
Add a xenial nodeset and update the spec helper to install puppet 3 from
the Ubuntu repos instead of from puppetlabs.
Change-Id: I9198bbdec0d5474d174aa20fe87907995858f221
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
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
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
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>
Currently it is 2GB, compressing will help save drive space.
Change-Id: Icbaa45709497399ebf31de3404cbb7b0f2de3c50
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
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>
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>
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>
Our first dump.log file will always be empty, since puppet creates it.
Change-Id: I28611d57b2fa615c2896fa75c5f5ce675dc3f212
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
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>
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>
We need to add minutes, cron doesn't spam the processor every minute.
Change-Id: I330a25f41ddbe761905d1dc6e2611025dfa77178
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Change-Id: If62b3f633000cc6380d892cad0a2160136ce8ca4
Co-Authored-By: Monty Taylor <mordred@inaugust.com>
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
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