Provision Provider disapear after I delete the last build and upload a new build

Hey all,

I’ve been struggling with this issue for days and I can’t figure out what I am doing wrong.

I used the code generator tool Morpheus Developer Zone to build the plugin template. I made a few changes for a cloud provider and uploaded my plugin to a community edition running in my lab. The plugin runs find, I can connect with a cloud, add instances, etc.

Now when I delete the plugin and then reinstall it, I can’t create an instance. My provision provider disappear from the list after delete/reinstall. In some instances it comes back if I change the provision provider CODE but it’s not consistent.

Please help.

Thanks
Farooq

Hi @fahmed welcome to the forum.

Understand if not possible, but can you share your plugin code or even a built JAR. Maybe forum users can replicate the issue and possiblly help diagnose the cause.

Hi @fahmed!

Discussing internally, it may be worth checking /var/opt/morpheus/morpheus-ui/plugins/ and seeing if any old plugin code persists. If so, remove, and then re-upload via the UI.

Additionally, you don’t necessarily have to delete a plugin to re-add. You can upload/install over the top. Even if the versions are not bumped.

Lastly, we have just released v7.0.4. There may be a potential fix to caching that could be the impacting factor here.

That’s awesome. I will look into this folder and report back.
Good to know that I don’t have to delete the plugin.

Unfortunately, none of these solutions worked. I upgraded to v7.0.4 as well.

I guess I’m gonna have to remember not to delete the plugin from now on.

Interestingly enough, I downloaded Digital Ocean’s plugin code, compiled it and uploaded it. It works just fine even if I delete the plugin.

There should be logs when uploading the plugin that point to an error.

Additionally you may want to look at using ProvisionTypeCode if the provider code matches the cloud provider: