Last modified: 2014-07-10 16:38:19 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 T59542, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57542 - Apache is sometimes not restarted by puppet after changes
Apache is sometimes not restarted by puppet after changes
Status: RESOLVED FIXED
Product: MediaWiki-Vagrant
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized minor
: ---
Assigned To: Ori Livneh
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-25 16:15 UTC by Tisza Gergő
Modified: 2014-07-10 16:38 UTC (History)
3 users (show)

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


Attachments

Description Tisza Gergő 2013-11-25 16:15:51 UTC
Super-minor, but can cause some grief while debugging.

Steps to reproduce:
1. enable multimedia role (adds a redirect rule to apache)
2. run vagrant provision
3. disable multimedia role
4. run vagrant provision

Apache is restarted at step 2, but not at step 4.

Output:

gtisza@GergoTisza:~/Wikimedia/vagrant/MediaViewer$ vagrant enable-role multimedia
Ok. Run 'vagrant provision' to commit your changes.

gtisza@GergoTisza:~/Wikimedia/vagrant/MediaViewer$ vagrant provision[default] Running provisioner: puppet...
Running Puppet with site.pp...
warning: Could not retrieve fact fqdn
warning: Host is missing hostname and/or domain: mediawiki-vagrant
info: Applying configuration version '1385395790.e650445'
info: mount[files]: allowing mediawiki-vagrant access
notice: /Stage[main]/Mediawiki/File[/vagrant/settings.d]/mode: mode changed '0775' to '0755'
notice: /Stage[main]/Role::Multimedia/Apache::Conf[thumb.php on 404]/File[/etc/apache2/site.d/devwiki/thumb-php-on-404]/ensure: created
info: /Stage[main]/Role::Multimedia/Apache::Conf[thumb.php on 404]/File[/etc/apache2/site.d/devwiki/thumb-php-on-404]: Scheduling refresh of Service[apache2]
notice: /Stage[main]/Apache/Service[apache2]: Triggered 'refresh' from 1 events
notice: /Stage[main]/Role::Multimedia/Mediawiki::Settings[thumb.php on 404]/File[/vagrant/settings.d/puppet-managed/10-thumb-php-on-404.php]/ensure: created
notice: Finished catalog run in 3.80 seconds

gtisza@GergoTisza:~/Wikimedia/vagrant/MediaViewer$ vagrant disable-role multimedia
Ok. Run 'vagrant provision' to commit your changes.

gtisza@GergoTisza:~/Wikimedia/vagrant/MediaViewer$ vagrant provision[default] Running provisioner: puppet...
Running Puppet with site.pp...
warning: Could not retrieve fact fqdn
warning: Host is missing hostname and/or domain: mediawiki-vagrant
info: Applying configuration version '1385395818.e650445'
info: mount[files]: allowing mediawiki-vagrant access
notice: /Stage[main]/Mediawiki/File[/vagrant/settings.d]/mode: mode changed '0775' to '0755'
notice: /File[/vagrant/settings.d/puppet-managed/10-thumb-php-on-404.php]/ensure: removed
notice: /File[/etc/apache2/site.d/devwiki/thumb-php-on-404]/ensure: removed
notice: Finished catalog run in 2.46 seconds
Comment 1 Bryan Davis 2014-07-10 16:38:19 UTC
This should be fixed by Misc::Evergreen['apache2'] which is defined in the apache module now. Please reopen if you can still recreate.

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


Navigation
Links