mesg-foundation / engine

Build apps or autonomous workflows with reusable, shareable integrations connecting any service, app, blockchain or decentralized network.
https://mesg.com/
Apache License 2.0
130 stars 13 forks source link

can't find volume after redeployed services #931

Closed krhubert closed 5 years ago

krhubert commented 5 years ago

Steps to reproduce

mesg-core service deploy ./some-service-with-volume
mesg-core service delete  ./some-service-with-volume
mesg-core service deploy ./some-service-with-volume
mesg-core service delete  ./some-service-with-volume

rpc error: code = Unknown desc = Error: No such volume: 82cbdec06e95d7a028361c4acc1ab876f8f6a4a5
antho1404 commented 5 years ago

can reproduce directly with

mesg-core service deploy ./some-service-with-volume
mesg-core service delete sid-of-the-service
Error: No such volume: 881f0620633ccc2e576810a91e8e13263ccf1f4a

if I run the service before then I can delete without issue. I guess the volume is "defined" but not created until we start the service so if we delete the service directly then we delete a volume that has not been created yet.

Workaround: Start the service, stop it and then delete it