Page MenuHomePhabricator

Need a redirect from ru_monuments.toolforge.org to ru-monuments.toolforge.org
Closed, ResolvedPublic

Description

'Ru_monuments' tool contains various utilities that support a database of cultural heritage monuments in Russia for Wikivoyage and sister projects.

Due to issues with Kubernets (T301015, T176027) we were advised to eliminate underscore in the name of the tool.
Now all the scripts from ru_monuments are cloned to ru-monuments. To provide compatibility to external resources we need a redirect from https://ru_monuments.toolforge.org to https://ru-monuments.toolforge.org

Event Timeline

@Avsolov you should be able to do this yourself using the recipe at https://wikitech.wikimedia.org/wiki/User:BryanDavis/Kubernetes#Make_a_tool_redirect_to_another_tool_WITHOUT_running_a_webservice, but I am glad to help if you end up getting stuck somewhere.

@Avsolov you should be able to do this yourself using the recipe at https://wikitech.wikimedia.org/wiki/User:BryanDavis/Kubernetes#Make_a_tool_redirect_to_another_tool_WITHOUT_running_a_webservice, but I am glad to help if you end up getting stuck somewhere.

This recipe is missing some ingredients.
I created /data/project/ru_monuments/ingress.yaml. But after "kubectl apply --validate=true -f ingress.yaml" I receive:

The connection to the server localhost:8080 was refused - did you specify the right host or port?

This recipe is missing some ingredients.
I created /data/project/ru_monuments/ingress.yaml. But after "kubectl apply --validate=true -f ingress.yaml" I receive:

The connection to the server localhost:8080 was refused - did you specify the right host or port?

I also completely ignored that the whole point of this migration is leaving a tool with a name that cannot have Kubernetes credentials 🤣. Sorry about that.

This redirect needs to be done in the Toolforge front proxy configuration. I will try to come up with a reasonable patch for that.

Change 762900 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):

[operations/puppet@production] toolforge: redirect legacy ru_monuments to ru-monuments

https://gerrit.wikimedia.org/r/762900

bd808 triaged this task as Medium priority.Feb 15 2022, 6:50 PM
bd808 moved this task from Inbox to Doing on the cloud-services-team (Kanban) board.
bd808 moved this task from Backlog to Waiting for code review on the Toolforge board.

Change 762900 merged by Arturo Borrero Gonzalez:

[operations/puppet@production] toolforge: redirect legacy ru_monuments to ru-monuments

https://gerrit.wikimedia.org/r/762900

$ curl -I https://ru_monuments.toolforge.org/
HTTP/2 301
server: nginx/1.14.2
date: Tue, 01 Mar 2022 16:27:03 GMT
content-type: text/html
content-length: 185
location: https://ru-monuments.toolforge.org/
strict-transport-security: max-age=31622400
x-clacks-overhead: GNU Terry Pratchett
permissions-policy: interest-cohort=()
content-security-policy-report-only: default-src 'self' 'unsafe-eval' 'unsafe-inline' blob: data: filesystem: mediastream: *.toolforge.org wikibooks.org *.wikibooks.org wikidata.org *.wikidata.org wikimedia.org *.wikimedia.org wikinews.org *.wikinews.org wikipedia.org *.wikipedia.org wikiquote.org *.wikiquote.org wikisource.org *.wikisource.org wikiversity.org *.wikiversity.org wikivoyage.org *.wikivoyage.org wiktionary.org *.wiktionary.org *.wmcloud.org *.wmflabs.org wikimediafoundation.org mediawiki.org *.mediawiki.org wss://ru_monuments.toolforge.org; report-uri https://csp-report.toolforge.org/collect;