Jump to content

Nova Resource:Redirects

From Wikitech
Project Name redirects

Redirects is intended to provide HTTP redirects for well known URLs that used to be hosted on Cloud VPS projects but are now running on Toolforge or other Wikimedia servers.

Redirects should not be made to servers that are not under Wikimedia control. Automatically redirecting to external servers without an interstitial warning to the end user is a potential privacy violation.

This service is not needed to handle redirecting something.wmflabs.org to something.wmcloud.org. That same name on new domain redirect process is handled automatically by the proxy service when a *.wmcloud.org proxy exists and a matching *.wmflabs.org does not exist.

Requesting a new redirect

File a bug report in Phabricator

Creating a new redirect as a Redirects project admin

  1. Use Horizon's Project Puppet tab to edit the Hiera configuration and add the proxied host and new destination to the role::labs::redirector::redirects hash.
    • e.g. hatjitsu.wmcloud.org: https://hatjitsu.toolforge.org/
  2. Force a puppet run on redirects-nginx03.redirects.eqiad1.wikimedia.cloud to create the new vhost.
  3. Use Horizon to delete the proxy from the Cloud VPS project that is giving it up.
  4. Use Horizon to add the proxy to the redirects project with http://redirects-nginx03.redirects.eqiad1.wikimedia.cloud:80 as the backend.
  5. Test the redirected URL to ensure that it all works.
  6. Profit!

Server admin log


  • 23:48 bd808: Deleted instance redirects-nginx02 (T367550)
  • 23:43 bd808: Shutdown redirects-nginx02 (T367550)
  • 23:17 bd808: Switched all proxies to point at redirects-nginx03 (T367550)
  • 23:08 bd808: Added redirects-nginx03 to "web" security group (T367550)
  • 01:02 wmbot~dcaro@urcuchillay: END (ERROR) - Cookbook wmcs.openstack.cloudvirt.vm_console (exit_code=255)


  • 17:20 wmbot~dcaro@urcuchillay: START - Cookbook wmcs.openstack.cloudvirt.vm_console
  • 17:19 dcaro: rebooted redirects-ngin... (more)