Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道存储模板选项“deleteOnExit”如何在 Cloudify 2.7.1 Stable 中工作。我正在开发 OpenStack 云,就我而言,“SMALL_BLOCK”存储模板中的“deleteOnExit”选项设置为 true。使用动态存储分配方式创建(使用 SMALL_BLOCK 模板),通过上下文存储 API 附加、挂载和格式化存储。当我取消部署应用程序时,存储不会被破坏。这是正常行为吗?
谢谢。
是的,这是正常行为,使用动态存储,您还负责在取消部署时删除卷。
这是执行“关闭”生命周期事件时删除卷的示例:
shutdown { context.storage.unmount(device) context.storage.detachVolume(volumeId) context.storage.deleteVolume(volumeId); }