Replies: 1 comment 2 replies
-
update: this seems to be cause by the docker.io/flant/shell-operator base image. I can use podman to run this base image and manually repeat the commands and see the same:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, first of all this is very cool project and I started to love it on my first trial :)
I'm trying to play with it to simulate what a sriov operator would do: write to the /sys file based on the a VF setting described in CR, here a script sample:
and part of the main body looks like:
Basically when the CR is deleted, the shell script will do:
echo 0 > ${pci_dev_dir}/${pci}/sriov_numvfs
It appears the first time when the delete event is received, this always errors out;
Then the hook gets a retry then succeed.
From the log it seems the redirect has having trouble the first time but the action actually happened; so in the hook retry no action is taken because the "current" is already 0.
If I manually try the same echo redirect command inside this pod it works just fine. Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions