Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows]Connect to ovsdb-server using named pipe #389

Merged
merged 1 commit into from
Feb 24, 2020

Conversation

ruicao93
Copy link
Contributor

On windows platform, ovsdb-server listens on a named pipe by default.
This patch change the connection to ovsdb-server from UDS to named
pipe on windows.

Signed-off-by: Rui Cao rcao@vmware.com

@antrea-bot
Copy link
Collaborator

Thanks for your PR.
Unit tests and code linters are run automatically every time the PR is updated.
E2e, conformance and network policy tests can only be triggered by a member of the vmware-tanzu organization. Regular contributors to the project should join the org.

The following commands are available:

  • /test-e2e: to trigger e2e tests.
  • /skip-e2e: to skip e2e tests.
  • /test-conformance: to trigger conformance tests.
  • /skip-conformance: to skip conformance tests.
  • /test-networkpolicy: to trigger networkpolicy tests.
  • /skip-networkpolicy: to skip networkpolicy tests.
  • /test-all: to trigger all tests.
  • /skip-all: to skip all tests.

These commands can only be run by members of the vmware-tanzu organization.

defaultConnNetwork = "unix"
defaultConnAddress = "/run/openvswitch/db.sock"
// Wait up to 1 second when get port
defaultGetPortTimeout = 1000
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: use time.Second.

Copy link
Contributor

Choose a reason for hiding this comment

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

+1

Copy link
Contributor Author

@ruicao93 ruicao93 Feb 17, 2020

Choose a reason for hiding this comment

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

nit: use time.Second.

Thanks Weiqiang and Jianjun. Done

defaultConnAddress = `\\.\pipe\C:openvswitchvarrunopenvswitchdb.sock`
// Wait up to 2 seconds when get port, the operation of port creation
// cost more time on Windows platform than on Linux
defaultGetPortTimeout = 2000
Copy link
Contributor

Choose a reason for hiding this comment

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

2 * time.Second

Copy link
Contributor Author

Choose a reason for hiding this comment

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

2 * time.Second

Done

defaultConnNetwork = "winpipe"
defaultConnAddress = `\\.\pipe\C:openvswitchvarrunopenvswitchdb.sock`
// Wait up to 2 seconds when get port, the operation of port creation
// cost more time on Windows platform than on Linux
Copy link
Contributor

Choose a reason for hiding this comment

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

cost more time -> takes longer
Add '.' after Linux.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cost more time -> takes longer
Add '.' after Linux.

Thanks Jianjun. Done.

defaultConnNetwork = "unix"
defaultConnAddress = "/run/openvswitch/db.sock"
// Wait up to 1 second when get port
defaultGetPortTimeout = 1000
Copy link
Contributor

Choose a reason for hiding this comment

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

+1

@ruicao93
Copy link
Contributor Author

/test-all

@ruicao93 ruicao93 force-pushed the windows branch 2 times, most recently from 88dd5d3 to 4c4fcec Compare February 17, 2020 06:02
@ruicao93
Copy link
Contributor Author

/test-all

2 similar comments
@ruicao93
Copy link
Contributor Author

/test-all

@weiqiangt
Copy link
Contributor

/test-all

@ruicao93 ruicao93 closed this Feb 17, 2020
@ruicao93 ruicao93 reopened this Feb 17, 2020
@lzhecheng
Copy link
Contributor

/test-all

@ruicao93
Copy link
Contributor Author

/test-all

@lzhecheng
Copy link
Contributor

/test-e2e

@lzhecheng
Copy link
Contributor

/test-all

2 similar comments
@lzhecheng
Copy link
Contributor

/test-all

@ruicao93
Copy link
Contributor Author

/test-all

@ruicao93
Copy link
Contributor Author

/test-networkpolicy

On windows platform, ovsdb-server listens on a named pipe by default.
This patch change the connection to ovsdb-server from UDS to named
pipe on windows.

Signed-off-by: Rui Cao <rcao@vmware.com>
@wenyingd wenyingd mentioned this pull request Feb 18, 2020
21 tasks
@lzhecheng
Copy link
Contributor

/test-e2e

1 similar comment
@ruicao93
Copy link
Contributor Author

/test-e2e

@ruicao93 ruicao93 merged commit 59a048f into antrea-io:windows Feb 24, 2020
ruicao93 added a commit to ruicao93/antrea that referenced this pull request May 27, 2020
On windows platform, ovsdb-server listens on a named pipe by default.
This patch change the connection to ovsdb-server from UDS to named
pipe on windows.

Signed-off-by: Rui Cao <rcao@vmware.com>
ruicao93 added a commit that referenced this pull request May 27, 2020
On windows platform, ovsdb-server listens on a named pipe by default.
This patch change the connection to ovsdb-server from UDS to named
pipe on windows.

Signed-off-by: Rui Cao <rcao@vmware.com>
McCodeman pushed a commit to McCodeman/antrea that referenced this pull request Jun 2, 2020
On windows platform, ovsdb-server listens on a named pipe by default.
This patch change the connection to ovsdb-server from UDS to named
pipe on windows.

Signed-off-by: Rui Cao <rcao@vmware.com>
McCodeman pushed a commit that referenced this pull request Jun 2, 2020
On windows platform, ovsdb-server listens on a named pipe by default.
This patch change the connection to ovsdb-server from UDS to named
pipe on windows.

Signed-off-by: Rui Cao <rcao@vmware.com>
GraysonWu pushed a commit to GraysonWu/antrea that referenced this pull request Sep 22, 2020
On windows platform, ovsdb-server listens on a named pipe by default.
This patch change the connection to ovsdb-server from UDS to named
pipe on windows.

Signed-off-by: Rui Cao <rcao@vmware.com>
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.

6 participants