mesosphere / marathon-example-plugins

Example Plugins for Marathon Plugin Interface
Apache License 2.0
22 stars 29 forks source link

Marathon Vault Plugin not loading #21

Open clogiudice opened 7 years ago

clogiudice commented 7 years ago

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 scheduler-80acff01-342e-4819-ad38-37e6765a8bc1@10.114.222.14: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

kisom commented 7 years ago

I am also running into this.

oschrenk commented 6 years ago

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?

kohend commented 6 years ago

@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.

ojle commented 5 years ago

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

clogiudice commented 5 years ago

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 notifications@github.com 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.

kohend commented 5 years ago

@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.

ojle commented 5 years ago

@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?