Commit 7919c834 authored by Nicolas Wavrant's avatar Nicolas Wavrant

slaprunner: keep old recipe eggs otherwise instance can't be upgraded

As we have runners with a section deployed using
collective.recipe.shelloutput, if collective.recipe.shelloutput isn't in
the SR folder anymore thisi section can't be uninstalled (as the
uninstall method is defined in the egg).

The output of buildout for this error was :

While:
  Installing.
  Uninstalling runner-sshkeys-publickey-fingerprint-shelloutput.
  Installing recipe collective.recipe.shelloutput.
  Getting distribution for 'collective.recipe.shelloutput'.
Error: We don't have a distribution for collective.recipe.shelloutput
and can't install one in offline (no-install) mode.
While:
  Installing switch_softwaretype.

The cause was f936ea2c
parent a016a9ab
Pipeline #8827 passed with stage
in 0 seconds
......@@ -151,6 +151,9 @@ eggs +=
# for gunicorn[gthread]
futures
supervisor
# BBB: eggs used as recipe should be kept otherwise sections depending
# on it can't be uninstalled
collective.recipe.shelloutput
[versions]
Flask-Auth = 0.85
......
  • Since collective.recipe.shelloutput does not have a zc.buildout.uninstall entry point, that's stupid. We should fix buildout to remember which egg needs to be there for uninstall.

    Another thing is that we want to remove all usage of collective.recipe.shelloutput. Now that it's available again, people of less discouraged from using it. That's not the first time I want to prevent usage of broken recipes or even full eggs. Another buildout feature we should implement.

    /cc @jerome @kazuhiko

  • Since collective.recipe.shelloutput does not have a zc.buildout.uninstall entry point, that's stupid. We should fix buildout to remember which egg needs to be there for uninstall.

    Ah that's nice idea.

Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment