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

Fix 'ovsdb-client needs-conversion' to access remote server #347

Closed
wants to merge 1 commit into from

Conversation

roytman
Copy link
Contributor

@roytman roytman commented Feb 17, 2021

When you try to specify SERVER it interprets the parameter as the path to the schema.

`ovsdb-client needs-conversion unix:/var/run/openvswitch/db.sock ./_server.ovsschema

ovsdb-client: failed to read schema: "unix:/var/run/openvswitch/db.sock" could not be read as JSON (error opening "unix:/var/run/openvswitch/db.sock": No such file or directory)`

This PR fixes it.

Signed-off-by: Alexey Roytman roytman@il.ibm.com

@igsilya
Copy link
Member

igsilya commented Feb 17, 2021

Thanks! The change looks fine.
Could you, please, add a test to tests/ovsdb-client.at for this functionality? There are similar tests in tests/ovsdb-tool.at that could be used as a reference.

Also, please, add the problem description to the commit message itself.
And the following tag:
Fixes: 1b1d2e6daa56 ("ovsdb: Introduce experimental support for clustered databases.")

@roytman roytman force-pushed the needs-conversion branch 2 times, most recently from caee2af to ea96d8a Compare February 17, 2021 14:02
@roytman
Copy link
Contributor Author

roytman commented Feb 17, 2021

Hi Ilya, thanks for the review.
I added the tests and the comments.

When you try to specify `SERVER` to the 'ovsdb-client needs-conversion'
command, it interprets the `SERVER` parameter as the path to the schema
and returns an error.
This PR fixes it.

Signed-off-by: Alexey Roytman <roytman@il.ibm.com>
@roytman
Copy link
Contributor Author

roytman commented Feb 18, 2021

hi @igsilya, should I do something else here?

@igsilya
Copy link
Member

igsilya commented Feb 19, 2021

@roytman, the change looks good to me, I'll apply it later today.

igsilya pushed a commit to igsilya/ovs that referenced this pull request Feb 19, 2021
When you try to specify `SERVER` to the 'ovsdb-client needs-conversion'
command, it interprets the `SERVER` parameter as the path to the schema
and returns an error.
This PR fixes it.

Fixes: 1b1d2e6 ("ovsdb: Introduce experimental support for clustered databases.")
Submitted-at: openvswitch#347
Signed-off-by: Alexey Roytman <roytman@il.ibm.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
igsilya pushed a commit to igsilya/ovs that referenced this pull request Feb 19, 2021
When you try to specify `SERVER` to the 'ovsdb-client needs-conversion'
command, it interprets the `SERVER` parameter as the path to the schema
and returns an error.
This PR fixes it.

Fixes: 1b1d2e6 ("ovsdb: Introduce experimental support for clustered databases.")
Submitted-at: openvswitch#347
Signed-off-by: Alexey Roytman <roytman@il.ibm.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
igsilya pushed a commit to igsilya/ovs that referenced this pull request Feb 19, 2021
When you try to specify `SERVER` to the 'ovsdb-client needs-conversion'
command, it interprets the `SERVER` parameter as the path to the schema
and returns an error.
This PR fixes it.

Fixes: 1b1d2e6 ("ovsdb: Introduce experimental support for clustered databases.")
Submitted-at: openvswitch#347
Signed-off-by: Alexey Roytman <roytman@il.ibm.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
igsilya pushed a commit to igsilya/ovs that referenced this pull request Feb 19, 2021
When you try to specify `SERVER` to the 'ovsdb-client needs-conversion'
command, it interprets the `SERVER` parameter as the path to the schema
and returns an error.
This PR fixes it.

Fixes: 1b1d2e6 ("ovsdb: Introduce experimental support for clustered databases.")
Submitted-at: openvswitch#347
Signed-off-by: Alexey Roytman <roytman@il.ibm.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
igsilya pushed a commit to igsilya/ovs that referenced this pull request Feb 19, 2021
When you try to specify `SERVER` to the 'ovsdb-client needs-conversion'
command, it interprets the `SERVER` parameter as the path to the schema
and returns an error.
This PR fixes it.

Fixes: 1b1d2e6 ("ovsdb: Introduce experimental support for clustered databases.")
Submitted-at: openvswitch#347
Signed-off-by: Alexey Roytman <roytman@il.ibm.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
igsilya pushed a commit to igsilya/ovs that referenced this pull request Feb 19, 2021
When you try to specify `SERVER` to the 'ovsdb-client needs-conversion'
command, it interprets the `SERVER` parameter as the path to the schema
and returns an error.
This PR fixes it.

Fixes: 1b1d2e6 ("ovsdb: Introduce experimental support for clustered databases.")
Submitted-at: openvswitch#347
Signed-off-by: Alexey Roytman <roytman@il.ibm.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
igsilya pushed a commit to igsilya/ovs that referenced this pull request Feb 19, 2021
When you try to specify `SERVER` to the 'ovsdb-client needs-conversion'
command, it interprets the `SERVER` parameter as the path to the schema
and returns an error.
This PR fixes it.

Fixes: 1b1d2e6 ("ovsdb: Introduce experimental support for clustered databases.")
Submitted-at: openvswitch#347
Signed-off-by: Alexey Roytman <roytman@il.ibm.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
igsilya pushed a commit to igsilya/ovs that referenced this pull request Feb 19, 2021
When you try to specify `SERVER` to the 'ovsdb-client needs-conversion'
command, it interprets the `SERVER` parameter as the path to the schema
and returns an error.
This PR fixes it.

Fixes: 1b1d2e6 ("ovsdb: Introduce experimental support for clustered databases.")
Submitted-at: openvswitch#347
Signed-off-by: Alexey Roytman <roytman@il.ibm.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
@igsilya
Copy link
Member

igsilya commented Feb 19, 2021

Thanks!
Applied to master as commit e775bf3 and backported to all appropriate branches.

@igsilya igsilya closed this Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants