Last modified: 2014-02-13 21:53:40 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 T50575, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48575 - Cannot run foreachwiki (and others?) on terbium
Cannot run foreachwiki (and others?) on terbium
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Deployment systems (Other open bugs)
wmf-deployment
All All
: High normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-17 12:47 UTC by Sam Reed (reedy)
Modified: 2014-02-13 21:53 UTC (History)
5 users (show)

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


Attachments

Description Sam Reed (reedy) 2013-05-17 12:47:49 UTC
Scripts are trying to use files from /a/common which doesn't exist on terbium

reedy@terbium:~$ foreachwiki
/usr/local/bin/foreachwikiindblist: line 4: /a/common/all.dblist: No such file or directory

reedy@terbium:~$ cat /usr/local/lib/mw-deployment-vars.sh
MW_COMMON=/usr/local/apache/common-local
MW_COMMON_SOURCE=/a/common
MW_DBLISTS=/usr/local/apache/common-local
MW_DBLISTS_SOURCE=/a/common
MW_CRON_LOGS=/home/wikipedia/logs/norotate
MW_RSYNC_HOST=tin.eqiad.wmnet


mwscript takes care of this for itself:

# Use the source version of the script if the source directory is present.
# This only matters if the source dir is shared or when run on the deployment server.
if [ -d "$MW_COMMON_SOURCE" ]; then
	MW_COMMON_DIR_USE=$MW_COMMON_SOURCE
else
	MW_COMMON_DIR_USE=$MW_COMMON
fi



Current code:

	} elsif $system == "scap" {
		$mw_common = "/usr/local/apache/common-local"
		if $::realm == 'production' {
			$mw_common_source = "/a/common"
		} else {
			# For the beta cluster
			$mw_common_source = "/data/project/apache/common-local"
		}
		$dblist_common = $mw_common
		$dblist_common_source = $mw_common_source
	}

I guess we need an exception in deployment.pp for terbium, for both of the $*_source variables
Comment 1 Bryan Davis 2014-02-13 21:53:40 UTC
Terbium now has a symlink chain that seems to resolve this issue: /a -> /apache -> /usr/local/apache

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


Navigation
Links