Last modified: 2013-11-25 17:34:59 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 T59475, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57475 - puppet failure Duplicate definition: File[/srv/mediawiki]
puppet failure Duplicate definition: File[/srv/mediawiki]
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
Infrastructure (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Andrew Bogott
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-23 07:28 UTC by spage
Modified: 2013-11-25 17:34 UTC (History)
2 users (show)

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


Attachments

Description spage 2013-11-23 07:28:52 UTC
I followed https://wikitech.wikimedia.org/wiki/Help:InstanceConfigMediawiki to set up new instance i-0000099e (ee-flow-big)

https://wikitech.wikimedia.org/w/index.php?title=Special:NovaInstance&action=configure&instanceid=045327fb-a24f-4942-905d-d54293c47e87&project=editor-engagement&region=pmtpa

I simply added role::mediawiki-install::labs and memcached, and gave it labs_mediawiki_hostname	= ee-flow-big.pmtpa.wmflabs

It seems stuck. No Apache running, no memcached, nothing in /srv.
There have been several puppet runs, they all fail with:

spage@ee-flow-big:~$ cat /var/log/puppet.log
...
err: Failed to apply catalog: Cannot alias File[git_clone_mediawiki_directory] to ["/srv/mediawiki"] at /etc/puppet/modules/git/manifests/clone.pp:98; resource ["File", "/srv/mediawiki"] already defined at /etc/puppet/modules/apache/manifests/vhost.pp:93
info: Sleeping for 0 seconds (splay is enabled)
info: Retrieving plugin
info: Loading facts in /var/lib/puppet/lib/facter/puppet_config_dir.rb
info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
info: Loading facts in /var/lib/puppet/lib/facter/projectgid.rb
info: Loading facts in /var/lib/puppet/lib/facter/apt.rb
info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
info: Loading facts in /var/lib/puppet/lib/facter/default_gateway.rb
info: Caching catalog for i-0000099e.pmtpa.wmflabs
err: Failed to apply catalog: Duplicate definition: File[/srv/mediawiki] is already defined in file /etc/puppet/modules/git/manifests/clone.pp at line 98; cannot redefine

All the failures are one or the other of those "err:" lines.
Comment 1 Andrew Bogott 2013-11-23 14:24:47 UTC
This is fixed by

https://gerrit.wikimedia.org/r/#/c/96802/

I haven't merged that patch because I'm hoping to run it by Andrew Otto first, but maybe I'll get a chance to do more testing over the weekend and merge it myself.
Comment 2 Andrew Bogott 2013-11-25 17:34:59 UTC
Should be fixed now, please let me know if it still happens.

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


Navigation
Links