marathon-example-plugins icon indicating copy to clipboard operation
marathon-example-plugins copied to clipboard

Marathon Vault Plugin not loading

Open clogiudice opened this issue 7 years ago • 7 comments

Hi, I built the Marathon Vault Plugin jar based on blackgolds src:

https://github.com/blackgold/marathon-vault-plugin

I have secrets enabled in Marathon, plugin_conf, plugin_dir set up and Marathon is trying to load the plugin and as far as I can tell everything should work but I get a WrongConfigurationError: Plugin not found.

Any advice on what could be wrong? I've been chasing this for a week now.

Log snippet below and plugin jar is attached 0 - thanks for any help :)

Chris


Aug 7 00:00:01 dmm-test marathon[31105]: [2017-08-07 00:00:01,326] INFO Loading plugins implementing 'mesosphere.marathon.plugin.task.RunSpecTaskProcessor' from these urls: [file:/etc/marathon/plugins/plugin-interface_2.11-0.13.0.jar, file:/etc/marathon/plugins/plugins-assembly-0.1-SNAPSHOT.jar] (mesosphere.marathon.core.plugin.impl.PluginManagerImpl:marathon-akka.actor.default-dispatcher-33862) Aug 7 00:00:01 dmm-test mesos-master[24784]: I0807 00:00:01.327442 24798 master.cpp:3300] Processing SUPPRESS call for framework f91bc544-34c0-4613-a002-b4e25a7ba847-0000 (marathon) at [email protected]:40228 Aug 7 00:00:01 dmm-test mesos-master[24784]: I0807 00:00:01.327517 24798 hierarchical.cpp:1215] Suppressed offers for roles { * } of framework f91bc544-34c0-4613-a002-b4e25a7ba847-0000 Aug 7 00:00:01 dmm-test marathon[31105]: [2017-08-07 00:00:01,328] ERROR Plugin not found: PluginDefinition(envVarExtender,mesosphere.marathon.plugin.task.RunSpecTaskProcessor,mesosphere.marathon.vault.plugin.env.EnvVaultPlugin,None,Some({"env":{"token":"someToken","address":"http://127.0.0.1:8200/"}}),None) (akka.actor.OneForOneStrategy:marathon-akka.actor.default-dispatcher-33834) Aug 7 00:00:01 dmm-test marathon[31105]: mesosphere.marathon.WrongConfigurationException: Plugin not found: PluginDefinition(envVarExtender,mesosphere.marathon.plugin.task.RunSpecTaskProcessor,mesosphere.marathon.vault.plugin.env.EnvVaultPlugin,None,Some({"env":{"token":"someToken","address":"http://127.0.0.1:8200/"}}),None)

plugins-assembly-0.1-SNAPSHOT.jar.zip

plugin-conf.json.txt

clogiudice avatar Aug 09 '17 20:08 clogiudice

I am also running into this.

kisom avatar Aug 28 '17 21:08 kisom

I see that https://github.com/blackgold/marathon-vault-plugin/blob/master/env/src/main/resources/META-INF/services/mesosphere.marathon.vault.plugin.task.RunSpecTaskProcessor is pointing to mesosphere.marathon.example.plugin.task.EnvVarExtendedPlugin while the fully qualified name is actually mesosphere.marathon.vault.plugin.env. EnvVaultPlugin. Shouldn't that match up?

oschrenk avatar Oct 23 '17 20:10 oschrenk

@oschrenk it should match up, in addition, the file name should not have vault in it, it's of the RunSpecTaskProcessor interface and should not be customized.

kohend avatar Nov 22 '17 16:11 kohend

@clogiudice @kohend did you managed to run marathon vault plugin? I'm having similar issues

ojle avatar Jun 18 '19 14:06 ojle

Sorry, I never did get it to work and we've moved on to Kubernetes now... good luck! On Tuesday, June 18, 2019, 10:07:53 AM EDT, ojle [email protected] wrote:

@clogiudice @kohend did you managed to run marathon vault plugin? I'm having similar issues

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

clogiudice avatar Jun 18 '19 14:06 clogiudice

@clogiudice @kohend did you managed to run marathon vault plugin? I'm having similar issues

I did, I explained it in my comment, the names should match and the filename should be like the original sample code.

kohend avatar Jun 19 '19 08:06 kohend

@clogiudice @kohend did you managed to run marathon vault plugin? I'm having similar issues

I did, I explained it in my comment, the names should match and the filename should be like the original sample code.

@kohend Which DC/OS and marathon version you used?

ojle avatar Jun 21 '19 19:06 ojle