Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

tests: ensure / is mounted shared on semaphore; fix kvm failure #3941

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

euank
Copy link
Member

@euank euank commented Jun 18, 2018

This fixes the coreos flavor failure semaphore is having. I haven't investigated the kvm failure, so I have no clue if this might fix it too.

See #3940 for the more general issue, this is just to get master back to passing without truly addressing the root issue.

I also included some minor changes which I made while investigating this since they're quite trivial.

Before, the contents of the error were lost in that path.
See rkt#3940 for why / needs to be shared. Specifically, the test
TestAppSandboxAddStartRemove failed on sempahore without this change.

The test did work in the past, but that's because sempahore used to run
an old version of docker which remounted / as shared for us.
Comparing the network namespace observed inside a VM with one observed
outside of it makes little sense; in fact, it's perfectly reasonable for
those values to be the same even if in reality they're distinct network
namespaces (due to being different kernels).

In practice, the id '4026531957' for pid 1 on both the host and in the
kernel appears fairly consistently.
This resulted in `TestNetDefaultNetNS` failing on semaphore.

I have not dug into this deeply enough to know why this issue didn't
crop up before. Presumably some kernel change on the semaphore host
resulted in it generated netns ids in a more similar way to the
coreos kernel included in stage1-kvm.
Regardless, disabling the test seems to be the correct solution to this
issue.
@euank euank changed the title tests: ensure / is mounted shared on semaphore tests: ensure / is mounted shared on semaphore; fix kvm failure Jun 19, 2018
@euank
Copy link
Member Author

euank commented Jun 19, 2018

I added a new commit which fixes the kvm failure as well. The commit's message includes the details as to why it was failing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant