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

Do not assume pod is always in cache on delete #20

Merged
merged 1 commit into from
Sep 14, 2016

Conversation

salv-orlando
Copy link
Contributor

Replace del statement with pop method, in order to avoid watcher
failures due to KeyError when deleting a pod.
There is at least one corner case where a pod is never processed
and therefore never stored in cache, and that would be when the
kube scheduler is down and does not come up before the pod is deleted.

It is worth noting however that the observed failure is not
critical as the watcher is restarted.

Signed-off-by: Salvatore Orlando salv.orlando@gmail.com

@shettyg
Copy link
Collaborator

shettyg commented Sep 14, 2016

Do we need similar changes for _update_service_cache in ovn_k8s/watcher/service_watcher.py and ovn_k8s/modes/overlay.py

@salv-orlando
Copy link
Contributor Author

I did not do the change there because I did not find any case where it would fail - for the pod case I verified the watcher fails when the scheduler is down and a pod is deleted.

Anyway, we can do that - just to err on the safe side.
Can I update this PR or would you prefer a distinct PR (personally I would not open a new one)

@shettyg
Copy link
Collaborator

shettyg commented Sep 14, 2016

Please go ahead and update the PR.

Replace del statement with pop method, in order to avoid watcher
failures due to KeyError when deleting a pod.
There is at least one corner case where a pod is never processed
and therefore never stored in cache, and that would be when the
kube scheduler is down and does not come up before the pod is deleted.

It is worth noting however that the observed failure is not
critical as the watcher is restarted.

Signed-off-by: Salvatore Orlando <salv.orlando@gmail.com>
@shettyg
Copy link
Collaborator

shettyg commented Sep 14, 2016

LGTM.

@salv-orlando salv-orlando merged commit dcbcbdb into ovn-org:master Sep 14, 2016
@salv-orlando salv-orlando deleted the pop_cache branch September 14, 2016 22:08
pecameron pushed a commit to pecameron/ovn-kubernetes that referenced this pull request Sep 12, 2019
Do not install arch-specific dependencies
Billy99 added a commit to Billy99/ovn-kubernetes-1 that referenced this pull request Jul 20, 2020
ebay/libovsdb had the following issue that was fixed upstream:

Allow libovsdb to connnect to ovsdb instance over IPv6 connection. (ovn-org#20)

When trying to connect to an ovsdb instance via IPv6, encountered an IPv6
parsing issue. In the logic to strip off the leading protocol (i.e. tcp:...),
the code uses strings.Split(endpoint, ":"), which does not take into account
the ':' in an IPv6 address.

Signed-off-by: Billy McFall <22157057+Billy99@users.noreply.github.com>
Billy99 added a commit to Billy99/ovn-kubernetes-1 that referenced this pull request Jul 20, 2020
ebay/libovsdb had the following issue that was fixed upstream:

Allow libovsdb to connnect to ovsdb instance over IPv6 connection. (ovn-org#20)

When trying to connect to an ovsdb instance via IPv6, encountered an IPv6
parsing issue. In the logic to strip off the leading protocol (i.e. tcp:...),
the code uses strings.Split(endpoint, ":"), which does not take into account
the ':' in an IPv6 address.

Signed-off-by: Billy McFall <22157057+Billy99@users.noreply.github.com>
Billy99 added a commit to Billy99/ovn-kubernetes-1 that referenced this pull request Jul 21, 2020
ebay/libovsdb had the following issue that was fixed upstream:

Allow libovsdb to connnect to ovsdb instance over IPv6 connection. (ovn-org#20)

When trying to connect to an ovsdb instance via IPv6, encountered an IPv6
parsing issue. In the logic to strip off the leading protocol (i.e. tcp:...),
the code uses strings.Split(endpoint, ":"), which does not take into account
the ':' in an IPv6 address.

Signed-off-by: Billy McFall <22157057+Billy99@users.noreply.github.com>
Billy99 added a commit to Billy99/ovn-kubernetes-1 that referenced this pull request Jul 22, 2020
ebay/libovsdb had the following issue that was fixed upstream:

Allow libovsdb to connnect to ovsdb instance over IPv6 connection. (ovn-org#20)

When trying to connect to an ovsdb instance via IPv6, encountered an IPv6
parsing issue. In the logic to strip off the leading protocol (i.e. tcp:...),
the code uses strings.Split(endpoint, ":"), which does not take into account
the ':' in an IPv6 address.

Signed-off-by: Billy McFall <22157057+Billy99@users.noreply.github.com>
Billy99 added a commit to Billy99/ovn-kubernetes-1 that referenced this pull request Jul 22, 2020
ebay/libovsdb had the following issue that was fixed upstream:

Allow libovsdb to connnect to ovsdb instance over IPv6 connection. (ovn-org#20)

When trying to connect to an ovsdb instance via IPv6, encountered an IPv6
parsing issue. In the logic to strip off the leading protocol (i.e. tcp:...),
the code uses strings.Split(endpoint, ":"), which does not take into account
the ':' in an IPv6 address.

Signed-off-by: Billy McFall <22157057+Billy99@users.noreply.github.com>
Billy99 added a commit to Billy99/ovn-kubernetes-1 that referenced this pull request Jul 23, 2020
ebay/libovsdb had the following issue that was fixed upstream:

Allow libovsdb to connnect to ovsdb instance over IPv6 connection. (ovn-org#20)

When trying to connect to an ovsdb instance via IPv6, encountered an IPv6
parsing issue. In the logic to strip off the leading protocol (i.e. tcp:...),
the code uses strings.Split(endpoint, ":"), which does not take into account
the ':' in an IPv6 address.

Signed-off-by: Billy McFall <22157057+Billy99@users.noreply.github.com>
Billy99 added a commit to Billy99/ovn-kubernetes-1 that referenced this pull request Jul 23, 2020
ebay/libovsdb had the following issue that was fixed upstream:

Allow libovsdb to connnect to ovsdb instance over IPv6 connection. (ovn-org#20)

When trying to connect to an ovsdb instance via IPv6, encountered an IPv6
parsing issue. In the logic to strip off the leading protocol (i.e. tcp:...),
the code uses strings.Split(endpoint, ":"), which does not take into account
the ':' in an IPv6 address.

Signed-off-by: Billy McFall <22157057+Billy99@users.noreply.github.com>
Billy99 added a commit to Billy99/ovn-kubernetes-1 that referenced this pull request Jul 24, 2020
ebay/libovsdb had the following issue that was fixed upstream:

Allow libovsdb to connnect to ovsdb instance over IPv6 connection. (ovn-org#20)

When trying to connect to an ovsdb instance via IPv6, encountered an IPv6
parsing issue. In the logic to strip off the leading protocol (i.e. tcp:...),
the code uses strings.Split(endpoint, ":"), which does not take into account
the ':' in an IPv6 address.

Signed-off-by: Billy McFall <22157057+Billy99@users.noreply.github.com>
Billy99 added a commit to Billy99/ovn-kubernetes-1 that referenced this pull request Jul 24, 2020
ebay/libovsdb had the following issue that was fixed upstream:

Allow libovsdb to connnect to ovsdb instance over IPv6 connection. (ovn-org#20)

When trying to connect to an ovsdb instance via IPv6, encountered an IPv6
parsing issue. In the logic to strip off the leading protocol (i.e. tcp:...),
the code uses strings.Split(endpoint, ":"), which does not take into account
the ':' in an IPv6 address.

Signed-off-by: Billy McFall <22157057+Billy99@users.noreply.github.com>
Billy99 added a commit to Billy99/ovn-kubernetes-1 that referenced this pull request Jul 24, 2020
ebay/libovsdb had the following issue that was fixed upstream:

Allow libovsdb to connnect to ovsdb instance over IPv6 connection. (ovn-org#20)

When trying to connect to an ovsdb instance via IPv6, encountered an IPv6
parsing issue. In the logic to strip off the leading protocol (i.e. tcp:...),
the code uses strings.Split(endpoint, ":"), which does not take into account
the ':' in an IPv6 address.

Signed-off-by: Billy McFall <22157057+Billy99@users.noreply.github.com>
Billy99 added a commit to Billy99/ovn-kubernetes-1 that referenced this pull request Jul 24, 2020
ebay/libovsdb had the following issue that was fixed upstream:

Allow libovsdb to connnect to ovsdb instance over IPv6 connection. (ovn-org#20)

When trying to connect to an ovsdb instance via IPv6, encountered an IPv6
parsing issue. In the logic to strip off the leading protocol (i.e. tcp:...),
the code uses strings.Split(endpoint, ":"), which does not take into account
the ':' in an IPv6 address.

Signed-off-by: Billy McFall <22157057+Billy99@users.noreply.github.com>
Billy99 added a commit to Billy99/ovn-kubernetes-1 that referenced this pull request Jul 25, 2020
ebay/libovsdb had the following issue that was fixed upstream:

Allow libovsdb to connnect to ovsdb instance over IPv6 connection. (ovn-org#20)

When trying to connect to an ovsdb instance via IPv6, encountered an IPv6
parsing issue. In the logic to strip off the leading protocol (i.e. tcp:...),
the code uses strings.Split(endpoint, ":"), which does not take into account
the ':' in an IPv6 address.

Signed-off-by: Billy McFall <22157057+Billy99@users.noreply.github.com>
Billy99 added a commit to Billy99/ovn-kubernetes-1 that referenced this pull request Jul 25, 2020
ebay/libovsdb had the following issue that was fixed upstream:

Allow libovsdb to connnect to ovsdb instance over IPv6 connection. (ovn-org#20)

When trying to connect to an ovsdb instance via IPv6, encountered an IPv6
parsing issue. In the logic to strip off the leading protocol (i.e. tcp:...),
the code uses strings.Split(endpoint, ":"), which does not take into account
the ':' in an IPv6 address.

Signed-off-by: Billy McFall <22157057+Billy99@users.noreply.github.com>
Billy99 added a commit to Billy99/ovn-kubernetes-1 that referenced this pull request Jul 27, 2020
ebay/libovsdb had the following issue that was fixed upstream:

Allow libovsdb to connnect to ovsdb instance over IPv6 connection. (ovn-org#20)

When trying to connect to an ovsdb instance via IPv6, encountered an IPv6
parsing issue. In the logic to strip off the leading protocol (i.e. tcp:...),
the code uses strings.Split(endpoint, ":"), which does not take into account
the ':' in an IPv6 address.

Signed-off-by: Billy McFall <22157057+Billy99@users.noreply.github.com>
Billy99 added a commit to Billy99/ovn-kubernetes-1 that referenced this pull request Jul 27, 2020
ebay/libovsdb had the following issue that was fixed upstream:

Allow libovsdb to connnect to ovsdb instance over IPv6 connection. (ovn-org#20)

When trying to connect to an ovsdb instance via IPv6, encountered an IPv6
parsing issue. In the logic to strip off the leading protocol (i.e. tcp:...),
the code uses strings.Split(endpoint, ":"), which does not take into account
the ':' in an IPv6 address.

Signed-off-by: Billy McFall <22157057+Billy99@users.noreply.github.com>
Billy99 added a commit to Billy99/ovn-kubernetes-1 that referenced this pull request Jul 27, 2020
ebay/libovsdb had the following issue that was fixed upstream:

Allow libovsdb to connnect to ovsdb instance over IPv6 connection. (ovn-org#20)

When trying to connect to an ovsdb instance via IPv6, encountered an IPv6
parsing issue. In the logic to strip off the leading protocol (i.e. tcp:...),
the code uses strings.Split(endpoint, ":"), which does not take into account
the ':' in an IPv6 address.

Signed-off-by: Billy McFall <22157057+Billy99@users.noreply.github.com>
Billy99 added a commit to Billy99/ovn-kubernetes-1 that referenced this pull request Jul 27, 2020
ebay/libovsdb had the following issue that was fixed upstream:

Allow libovsdb to connnect to ovsdb instance over IPv6 connection. (ovn-org#20)

When trying to connect to an ovsdb instance via IPv6, encountered an IPv6
parsing issue. In the logic to strip off the leading protocol (i.e. tcp:...),
the code uses strings.Split(endpoint, ":"), which does not take into account
the ':' in an IPv6 address.

Signed-off-by: Billy McFall <22157057+Billy99@users.noreply.github.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.

2 participants