Last modified: 2013-03-07 23:44:29 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 T47814, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45814 - setup OAI repository on beta
setup OAI repository on beta
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: 34250
  Show dependency treegraph
 
Reported: 2013-03-06 23:42 UTC by Antoine "hashar" Musso (WMF)
Modified: 2013-03-07 23:44 UTC (History)
7 users (show)

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


Attachments

Description Antoine "hashar" Musso (WMF) 2013-03-06 23:42:45 UTC
The OAIRepository need to be setup on beta so lucene can request it updates.

We need an OAI mysql database and create a OAI user there. The wiki documentation should have everything covered : http://www.mediawiki.org/wiki/Extension:OAIRepository#Install_on_Wiki

The OAI password is in a puppet variable: $passwords::lucene::oai_pass which has already been populated.
Comment 1 Antoine "hashar" Musso (WMF) 2013-03-07 22:41:22 UTC
I have created the 'oai' database on deployment-sql.
A lsearch2 user is setup in the oaiuser table and uses the password from puppet $passwords::lucene::oai_pass.

I cant login with those credentials though but most of the installation is done for now.
Comment 2 Antoine "hashar" Musso (WMF) 2013-03-07 23:34:13 UTC
Testing on a local apache, the setup seems to be properly working but squid eat the user authentication credentials :/

Test on apache:

curl -x localhost:80 -v -u USERNAME:PASSWORD \
 'http://en.wikipedia.beta.wmflabs.org/w/index.php?title=Special:OAIRepository&verb=ListRecords&metadataPrefix=mediawiki&from=2001-01-01'

Give me a nice output.

So I need to find out how to have squid pass the user credentials to the backend apaches.
Comment 3 Antoine "hashar" Musso (WMF) 2013-03-07 23:44:29 UTC
Add to reconfigure squid to pass the WWW-Authentication header to the Apaches server.  This is done by adding 'login=PASS' to each cache_peer directive.

Did the test, that works now !

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


Navigation
Links