Skip to content

Multiple failures in test_vsock  #1934

Closed
@asomers

Description

@asomers

When we first added the vsock code in #1091 the test contained an assertion that connecting to the socket would fail, because "The current implementation does not support loopback devices". But it did not check the particular failure mode. A recent change (#1915) has caused connect to start succeeding, in at least some cases. It seems that at least some of the original failures were due to a race condition in the test: it closed a socket too early. Now that that is fixed, we see three behaviors:

  • Fails with EINVAL on Linux x86_64, presumably due to the "does not support loopback devices" part.
  • Passes on most qemu platforms. Perhaps it's connecting to the qemu host?
  • Fails with ENODEV on mips and mips64

See #1917 to view the behavior on each platform.

@stefano-garzarella could you please clarify what we should expect from connect, and fix the test? For now I'm going to disable it so it doesn't hold up other PRs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions