Last modified: 2014-03-31 09:12:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T58395, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56395 - beta apache configs need a public remote repo
beta apache configs need a public remote repo
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
deployment-prep (beta) (Other open bugs)
unspecified
All All
: Normal enhancement
: ---
Assigned To: Antoine "hashar" Musso (WMF)
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-30 22:04 UTC by Sam Reed (reedy)
Modified: 2014-03-31 09:12 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sam Reed (reedy) 2013-10-30 22:04:54 UTC
It would seem that the apache configs on labs (seen at deployment-bastion:/etc/apache2/wmf) are a fork of operations/apache-config that is quite behind/diverged.

It also seems that this repo is an orphan on this cluster, not replicated to anywhere remote (ie gerrit)

This latter issue really needs addressing and the config going into a public repo
Comment 1 Antoine "hashar" Musso (WMF) 2013-11-04 16:56:20 UTC
I was wondering whether we could somehow reuse the configuration from production but use an environment variable to tweak the settings when in labs. Not sure how we can do it with Apache though.
Comment 2 Daniel Zahn 2013-11-04 17:00:27 UTC
Hmm, would that be something like cloning from operations/apache-config and then running some sed/awk on it to replace ServerNames with *.beta.* in them and that would be pretty much the difference or do all the redirect rules also have to be touched?
Comment 3 Antoine "hashar" Musso (WMF) 2013-11-04 17:11:18 UTC
I thought about passing to apache `-DREALM_LABS`  then tweak the configuration inline using <IfDefine> http://httpd.apache.org/docs/2.2/en/mod/core.html#ifdefine

But that might be too nasty.

We could have a per realm configuration that would define a bunch of well known constants such as the top level domain name (prod: '.org', labs: '.beta.wmflabs.org') and then expand them in the configuration.
Comment 4 Antoine "hashar" Musso (WMF) 2014-03-04 20:45:18 UTC
operations/apache-config.git now has a "betacluster" branch
Comment 5 Antoine "hashar" Musso (WMF) 2014-03-04 21:00:15 UTC
I have imported the files from /data/project/apache/conf to the betacluster branch

I have added the Gerrit URL as a git remote and checked it out as the local branch 'betacluster'.

http://git.wikimedia.org/log/operations%2Fapache-config.git/refs%2Fheads%2Fbetacluster
Comment 6 Gerrit Notification Bot 2014-03-04 21:11:16 UTC
Change 116858 had a related patch set uploaded by Hashar:
operations-apache-config-lint only on master branch

https://gerrit.wikimedia.org/r/116858
Comment 7 Gerrit Notification Bot 2014-03-04 21:12:33 UTC
Change 116858 merged by jenkins-bot:
operations-apache-config-lint only on master branch

https://gerrit.wikimedia.org/r/116858
Comment 8 Antoine "hashar" Musso (WMF) 2014-03-31 09:12:31 UTC
The confs are now in operations/apache-config.git in the 'betacluster' branch.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links