Jump to content
Wikitech

Maps/Maps experiments

From Wikitech
< Maps
This documentation is outdated, please check Maps/v2.

Because maps-experiments is not configured in deployment-prep (they are different projects in Cloud VPS) a hack is needed to deploy kartotherian code to maps-master01. The problem is that the deploy instance in deployment-prep doesn't recognize connections to maps-experiments project, but we can fetch the needed code the other way around.

First, proceed with deployment as normal. This is important to create the deployment rev that we will fetch from maps-master01:

sshdeployment-deploy03.deployment-prep.eqiad1.wikimedia.cloud
cd/srv/deployment/kartotherian/deploy
# make sure you are in the imposm branch
gitcheckoutimposm
gitpull&&gitsubmoduleupdate
gitlog-n1
# Create the deployment at deployment-prep
scapdeploy--environmentbeta"Deploy kartotherian imposm at maps-master01.maps-experiments"
# It will fail 
# Don't execute rollback. Press "n"

Then log into maps-master01.maps-experiments and execute the following commands manually as root:

sshmaps-master01.maps-experiments.eqiad1.wikimedia.cloud
sudo-udeploy-service/usr/bin/scapdeploy-local-v--environmentbeta--repokartotherian/deploy-gdefaultfetch--refresh-config
sudo-udeploy-service/usr/bin/scapdeploy-local-v--environmentbeta--repokartotherian/deploy-gdefaultconfig_deploy--refresh-config
sudo-udeploy-service/usr/bin/scapdeploy-local-v--environmentbeta--repokartotherian/deploy-gdefaultpromote--refresh-config

This should replicate the same process as deploying code to instances inside the deployment-prep project.

AltStyle によって変換されたページ (->オリジナル) /