Commit Graph

31 Commits

Author SHA1 Message Date
Ian Wienand 7de885b5ee Cleanup ask.openstack.org
This was retired with I8a31f8fcf9b3064c0ae58e463a6014dc14b518a7

Change-Id: Ieafac856b0feb91f41f05084aa669e2ccb92569d
2021-06-08 14:35:28 +10:00
Ian Wienand f9184ce323 ask: stream db backup
Despite be deprecated, the ask server is our 3rd biggest backup.  Even
though the site is R/O we're still backing up the fresh rotations of
the gzipped backups every day.

To reduce the incremental space requirements, move to our plain-text
streaming for the db backup.  This just needs a file dropped in /etc;
see the backup-borg role README documentation.  We do this in puppet
to avoid complexity adding this deprecated service to ansible.  This
then excludes the on-disk db backup dir.

Drop the bup backups while we are here.

Change-Id: Icfd81aca58b9a0dc3a3b74de04c1b00f03160327
2021-02-05 13:24:57 +11:00
Jens Harbott 1dcba08f5b Restart apache2 on logrotate on ask.o.o
When apache2 gets reloaded multiple times in quick succession, it may
crash and fail completely. Lately this has been seen very often on our
ask.openstack.org instance, so let us use the more intrusive, but also
hopefully more stable in the end result method of restarting instead.

Change-Id: I44e4561f8696415471f65b75d683c48636fb413f
2019-11-13 15:54:50 +00:00
Clark Boylan 2eefb60457 Add more /s to puppet:/// url for jetty shim deb
We only had two and need three.

Change-Id: If1d952867b7a662278e8a4c900322b9266f4e1c6
2019-05-21 15:03:06 -07:00
Ian Wienand dabe6e2768 ask.o.o : fix jetty package install
I'm certain I copied this from somewhere out of date; it should be
"ensure" not "state" for puppet4

Change-Id: I18272db219a7d047bc58728b1d09355fd0100881
2019-05-22 06:45:37 +10:00
Zuul e740439103 Merge "ask.o.o : workaround old puppet-solr package" 2019-05-21 08:39:30 +00:00
Ian Wienand 3fa721e541 ask.openstack.org: switch backup user to ask01-bup
The new server has new backups

Change-Id: I59ac068e8d049c1293de47979cdbe6f202fad3c6
2019-05-21 17:33:17 +10:00
Ian Wienand af553c45d7 ask.o.o : workaround old puppet-solr package
puppet-solr is dead upstream.  Even the un-merged pull request for
Xenial support isn't sufficient [1].

We can either get into the business of owning puppet-solr, or hack
around it.  It seems the major difference is that jetty package split
into separate jetty[8|9] packages, and puppet-solr just uses "jetty"
everywhere.

This deb, created by equivs does the following

 * pre-depends on jetty8
 * installs a symlink /etc/init.d/jetty -> jetty8
 * symlinks in the webserver directory to /usr/share/jetty

This appears to be enough to get things going.  By pre-installing it,
puppet-solr is happy enough to go on...

[1] https://github.com/vamsee/puppet-solr/pull/33

Change-Id: Ie86303caeb26634434dc4b2d0d3f1195749a277e
2019-05-20 17:25:20 +10:00
Monty Taylor fcab9a407a Update opendev git references in puppet modules
Not updating the gerrit git links thing, because that needs to
be a wider patch that updates the link syntax too.

Change-Id: I98013ba79e707540879e0cf2849a35c52f3371e8
2019-04-20 18:26:07 +00:00
Monty Taylor bab6fcad3c
Remove base.yaml things from openstack_project::server
Now that we've got base server stuff rewritten in ansible, remove the
old puppet versions.

Depends-On: https://review.openstack.org/588326
Change-Id: I5c82fe6fd25b9ddaa77747db377ffa7e8bf23c7b
2018-08-16 17:25:10 -05:00
Ian Wienand 60b89d662e Remove ci-backup-rs-ord.openstack.org
Migrate backups to new backup01.ord.rax.ci.openstack.org

We decided to start fresh backups on the new server, so this is ready
to go.  I have performed an initial backup on each server so it has
accepted the host key of the new server and been tested (I also fixed
up review-dev.o.o, which was rebuilt but keys not updated ... todo:
add this to puppet, but since it changes so infrequently not high
priority).

Change-Id: I0872f9fcf4a334d32f632b3cb04801deefab4fd1
2017-11-15 09:28:55 +11:00
Jenkins 725ae9eaa2 Merge "Update ask.o.o to latest 0.7.x branch r2" 2017-01-04 14:14:09 +00:00
Marton Kiss 1af69e161b Adding user 'mkiss' to ask.o.o
I would like to help with the askbot 0.7.x upgrade and
maintenance.

Change-Id: I02ac03f9f6d9da17a3bfa35e170f5c5beb9cbb39
2017-01-02 17:01:45 +01:00
Marton Kiss a3ee1a726d Update ask.o.o to latest 0.7.x branch r2
Include the following fixes:
- openstackid.o.o openid provider and related bug fixes
- new multilanguage model

As the upstream askbot introduced a new branching model,
it also includes changes that brake the configuration. So
the addition of new settings.py backed by two reasons:
- keep the commit ref and settings change atomic (originally
the settings.py come from puppet-askbot module for production)
- provide a separate, and visible settings.py for ask.o.o,
as ask-staging.o.o already using settings.py-staging.erb to
handle system breaking changes.

The original and later reverted change id:
I79155c611386724b510a4cd5f2f544f98c74f3b9

Change-Id: I5b64f9183cc11fa0efed4e581b4b7002f0191764
2016-12-08 15:55:14 +01:00
Paul Belanger ff0a8a38b2 Rotate apache logs every 7 days
Today, we have 4.7GB of log files on ask.o.o. Lets reduce that by
keeping them around for 1 week.

Change-Id: I2af10ccef757b889995c75c25a79914e6816429f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-11-26 12:38:04 -05:00
Jenkins 63500b906d Merge "Revert "Update ask.o.o to latest 0.7.x branch"" 2016-11-09 21:29:53 +00:00
Jeremy Stanley f69a708c4e Revert "Update ask.o.o to latest 0.7.x branch"
This reverts commit a4115be981.

The upgrade seems to have only partly completed, so reverting this
in an attempt to roll it back for now while we investigate.

Change-Id: I3aa077dd5040d75287f75c7da04aec9d52a68473
2016-11-09 21:16:19 +00:00
Jenkins 19db12454e Merge "Update ask.o.o to latest 0.7.x branch" 2016-11-09 18:30:04 +00:00
Marton Kiss 659d46cdd7 Update solr package repository url
Solr version 4.10.4 is not available on official mirrors. The
repository url was changed to https://archive.apache.org/dist/lucene/solr
where the 4.x branch still exist.

The upgrade to 5.x require major changes in solr deployment model, so
this patch is just a short term workaround.

Change-Id: I0fab4fa6b49b766b0b62a978f62150bbceeb4b08
2016-08-08 10:09:08 +02:00
Marton Kiss a4115be981 Update ask.o.o to latest 0.7.x branch
Include the following fixes:
- openstackid.o.o openid provider and related bug fixes
- new multilanguage model

As the upstream askbot introduced a new branching model,
it also includes changes that brake the configuration. So
the addition of new settings.py backed by two reasons:
- keep the commit ref and settings change atomic (originally
the settings.py come from puppet-askbot module for production)
- provide a separate, and visible settings.py for ask.o.o,
as ask-staging.o.o already using settings.py-staging.erb to
handle system breaking changes.

Change-Id: I79155c611386724b510a4cd5f2f544f98c74f3b9
2016-01-31 08:48:07 +01:00
Joshua Hesketh be7a22c11c Reduce the number of backups for ask.o.o
The disk is currently filling up, so reduce the number of backups
in the rotation.

Change-Id: Ief9fd7e3e37b0b901271743f64ac8013dd87c838
2015-11-26 10:30:07 +11:00
Marton Kiss ca8bf103c4 Fix git repository refresh trigger issue of askbot
ask.o.o suffers from a refresh trigger issue due to a vcsrepo bug.
This patchset is replacing the git resource management by
puppet community's puppet-git_resource that supports proper commit
ref handling after approval of the following pull requests on
upstream:
https://github.com/puppet-community/puppet-git_resource/pull/18
https://github.com/puppet-community/puppet-git_resource/pull/17

Depends-On: I36a2664707f900fe7807d5f05f69423682c3a51a
Change-Id: I2ef2e7644ec7191393559a655a4c61112e6f1566
2015-10-09 20:12:49 +02:00
Marton Kiss 7c45ab32f0 Revert the ask.o.o resources disabled by trusty upgrade
This reverts commit 1cfb0442ff.

This new patch contains all the resource definitions required to
deploy and configure a trusty based ask.o.o based on the askbot github
repository.

Change-Id: Ia7dc3944666df1bb81d314fd6c3eb08b4c1e2cbd
2015-08-04 22:49:08 +00:00
Jenkins fb3fcd21dd Merge "Move the server class settings out of the ask class" 2015-07-08 22:27:42 +00:00
George Peristerakis 252c41d511 Move the server class settings out of the ask class
Story: 2000172
Spec:
http://specs.openstack.org/openstack-infra/infra-specs/specs/server_base_template_refactor.html

Change-Id: I5e3c076c98cee4605f90f8dab473039221cc1c50
2015-05-15 16:58:20 -04:00
Marton Kiss 1cfb0442ff Disable puppet-askbot resources temporarily
Disable new puppet-askbot module related resources. This change allows
us to bring-in the refactored puppet-askbot module, consume askbot
from git repository directly and switch to Trusty.

Needed-By: I560c24c3b09e4a8d09b23afa619a4cf361601cbe
Change-Id: Iaa8488a3d7ab8b121404ac1ac39bd1620a868727
2015-05-13 15:04:15 +00:00
Marton Kiss d53f181dc0 Add backup scripts to ask.o.o site
Backup resources for bup and pgsql database backup. Need to add
keys and setup user manually at bup server side, as described
in CI doc: http://ci.openstack.org/sysadmin.html#backups

Change-Id: I55cca70f891eb18775b0585532b8c34a0dd40787
Depends-On: I13d542ef5a2a74f14ab42d3421938532edf75f93
2015-04-13 14:55:53 +02:00
Jeremy Stanley 072bd69e94 Increase redis maxmemory to 512m on ask.o.o
Since redis-server is trying to use more than its alloted memory,
double it.

Change-Id: I959878274631677d03466267d76eceffb6d034de
2015-04-09 14:57:21 +00:00
Marton Kiss 71da74ece2 Initial commit of Ask website
Add ask.openstack.org to openstack-infra. Setup an all-in-one
askbot site based on existing deployment, including apache,
redis,apache solr,postgresql. See askbot.rst for further
details. Refactored to depend on vamsee's puppet solr module.

Depends-On: Iffe07d3a34087cb15151787bc683208425a27594
Change-Id: I36504eac7b953c3cce3e21a3559ac95b1bc12da7
2015-03-09 23:58:30 +00:00
James E. Blair 888dc47579 Revert "Add ask server."
This reverts commit 484a034118

Management is outsourced to the askbot folks.

Change-Id: I36c67211c078ac0cda4f8e4eca7f49c17cea40b2
Reviewed-on: https://review.openstack.org/22338
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2013-02-20 17:44:33 +00:00
James E. Blair 484a034118 Add ask server.
Later we'll add the public keys for the askbot folks.

This will be mostly managed outside of puppet for now.

Change-Id: I5de4a164932ce87c1d4c329c8e839e979c271fa1
Reviewed-on: https://review.openstack.org/22047
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
2013-02-15 18:28:13 +00:00