Skip to content

Conversation

keyingliu
Copy link
Contributor

@keyingliu keyingliu commented Jan 7, 2019

Found during node restart, all VM data are deleted during GC. From my point of view, VM is different from Pod, the data should be kept, and virtlet keeps VM data during virtlet pod restart, kubelet restart, but always deleting VM data after node reboot. The virtlet GC is too aggressive, as during node reboot the IsPathAnNs always returns false, all sandboxes and containers are deleted from db. This pr only updated sandbox status, and make the /etc/libvirt/qemu be a host mount which makes sure libvirt can find the domain after node reboot.


This change is Reviewable

@jellonek
Copy link
Contributor

jellonek commented Jan 7, 2019

Please use ./build/cmd.sh update-bindata to include your changes in DS definition into sources.

@keyingliu
Copy link
Contributor Author

@jellonek how can I rerun the test jobs?

@keyingliu
Copy link
Contributor Author

keyingliu commented Jan 8, 2019

@jellonek all e2e reported error:

    Expected success, but got an error:
        <*errors.errorString | 0xc4211015f0>: {
            s: "pod rootfs-cm is not Running phase: Pending",
        }
        pod rootfs-cm is not Running phase: Pending

could you please take a look why?

@jellonek
Copy link
Contributor

jellonek commented Jan 8, 2019

Looks like there is an issue in master after merging #837 so it's disconnected with your changes.

Copy link
Contributor

@jellonek jellonek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm: but let's wait for another review from Ivan.

Reviewed 9 of 9 files at r1.
Reviewable status: 0 of 1 approvals obtained

@ivan4th ivan4th merged commit 07b5608 into Mirantis:master Jan 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants