已关闭
unpack 对共享快照的回写和回滚策略不安全 #4
zhaoyifan28创建于  4月23日关闭于  7月6日
zhaoyifan28成员
4月23日 创建

问题:

  • UnpackAllSubImages 使用 chain-id 作为快照标识,但失败回滚时会直接删除这些快照。
  • 如果这些快照原本就已存在,或者多个镜像共享同一个 rootfs chain-id,这个回滚会误删已有状态。
  • 同时,rootfs 快照上的 mem/vm 标签会被当前 unpack 直接覆盖,导致共享 rootfs 的标签 authority 不稳定。

关键证据:

建议修复方向:

  • 区分“本次创建的快照”和“已存在快照”,回滚时只能删除本次真正创建的对象。
  • 不要把共享 rootfs snapshot 直接当成当前 boot image 的可变 authority。
  • 需要重新设计 rootfs 与 mem/vm 关联信息的所有权和写回位置。
likedislike
openeuler-ci-botopeneuler-ci-bot成员
4月23日 添加了label:sig/sig-CloudNative
openeuler-ci-bot
openeuler-ci-bot成员
4月23日 评论:

Welcome To openEuler Community

Hey @zhaoyifan28 , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.

Contact Guide

If you have any questions, please contact the SIG: sig-CloudNative ,
and any of the maintainers: @duguhaotian, @jimmieme, @lu-wei-army, @taotao-sauce, @weibaohui, @wonleing, @yangzhao_kl, @zmr_2020 ,
and any of the committers: @liuxu180400617 .

likedislike
xianxian-saucexianxian-sauce
4月25日 关联了pull request:fix(unpack): avoid deleting pre-existing snapshots on rollback
zhaoyifan28成员
7月6日 评论:

/close

likedislike
openeuler-ci-botopeneuler-ci-bot成员
7月6日 issue状态由 待办的 改变为 已完成
openeuler-ci-botopeneuler-ci-bot成员
7月6日 关闭了 issue