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

Support v2 exec-watch in v3 etcdctl #8814

Closed
wwyiwzhang opened this issue Nov 2, 2017 · 7 comments
Closed

Support v2 exec-watch in v3 etcdctl #8814

wwyiwzhang opened this issue Nov 2, 2017 · 7 comments

Comments

@wwyiwzhang
Copy link

Hi there,
I cannot use exec-watch in etcdctl api v3.
I wonder if it is going to be added as a feature soon or is there a command that can substitute it in v3?

Thanks!

@gyuho
Copy link
Contributor

gyuho commented Nov 2, 2017

What's your use case? We don't have exec-watch command for v3, and no plan yet.

If you use v3 lock command, we have something similar

https://github.com/coreos/etcd/blob/b65435b86d80fd3e71c6411832e8cc7eb8fb8b44/etcdctl/ctlv3/command/lock_command.go#L34-L37

@wwyiwzhang
Copy link
Author

In API v2, I can do something like,
etcdctl --no-sync --endpoints ${ENDPOINTS} exec-watch --recursive /${prefix} -- sh -c 'python <name of the script> -a "$ETCD_WATCH_ACTION" -ck "$ETCD_WATCH_KEY" -cv "$ETCD_WATCH_VALUE"
How can I replicate in API v3?

@wwyiwzhang
Copy link
Author

wwyiwzhang commented Nov 3, 2017

Based on the offline chat, I think etcd watch seems to be the only option.
I am trying to replicate this,
etcdctl --no-sync --endpoints ${ENDPOINTS} exec-watch --recursive /${prefix} -- sh -c 'python <name of the script> -a "$ETCD_WATCH_ACTION" -ck "$ETCD_WATCH_KEY" -cv "$ETCD_WATCH_VALUE" in API v2
using API v3.
We rely on exec-watch to trigger events for the downstream applications. Could you provide any workaround or ideas?

@gyuho gyuho changed the title Has exec-watch been removed from ETCDCTL API v3? Support v2 exec-watch in v3 etcdctl Nov 3, 2017
@pldmgg
Copy link

pldmgg commented Nov 15, 2017

Any news on this? From @wwyiwzhang 's comment, it seems like we use v2's exec-watch similarly.

I'm not sure I quite follow the lock example either...

@gyuho
Copy link
Contributor

gyuho commented Nov 15, 2017

@pldmgg Currently, we don't have bandwidth to add this feature. Contributions are welcome!

@jiaxuanzhou
Copy link
Contributor

@xiang90 I will effort on it

@gyuho
Copy link
Contributor

gyuho commented Nov 27, 2017

@jiaxuanzhou @wwyiwzhang Can you try #8919? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

5 participants