Issue
How I can force to make a snapshot.
Environment
- CloudBees Jenkins Enterprise (CJE)
- Amazon Web Services (AWS)
Resolution
You have to enter into the TENANT_ID and call a REST service, TENANT_ID is either ‘cjoc’ or the ‘domain’ of the controller (the url part that makes it unique, either the subdomain, or the context path if the cluster uses path_mode=yes)
cje run ssh-into-tenant TENANT_ID
curl -fsSL -ivN -H "Content-type: application/json" \
-X POST \
--data \
"{\
\"containerId\" : \"${MESOS_CONTAINER_NAME}\", \
\"account\" : \"${TENANT}\", \
\"signature\" : \"${SIGNATURE}\", \
\"disk\" : ${DISK:-2} \
}" \
$VOLUME_SERVICE/backup
Then you have to wait for the EC2 snapshot to finish.
0 Comments