Skip to content

rapid-cdn: stop calls from the CDN instance node to the master

Since !2195 (merged), the master partition deploys the slave list that the SlapOS Master sent. The result of the CDN instance node validation is a record in the local database only.

The CDN instance node is there to audit the slaves. It must not communicate with the master. The master partition is processed again when the SlapOS Master publishes new parameters, so the CDN instance node does not need to bang.

The recipe change is in !2276 (merged) (slapos.recipe.cdninstancenode): the recipe does not call bang(), error(), request() or setConnectionDict(), and does not read instance-publish-slave-information.cfg. Luke tested it on a real cluster and accepted it here (note 276605).

This MR makes rapid-cdn use that change:

  • stack/slapos.cfg pins slapos.cookbook 1.0.525, the release that contains !2276 (merged). With this pin, the CDN instance node of rapid-cdn does not call the master anymore.
  • TestSlaveManagement uses the test ports. Before, it used the default ports of the software release.

A later rapid-cdn MR will remove publish-slave-information-file and timestamp-path from the templates and update README.rst.

Edited by Cédric Le Ninivin

Merge request reports