-
Notifications
You must be signed in to change notification settings - Fork 32
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 call "bash -c" unnecessarily as entry points #249
base: main
Are you sure you want to change the base?
Conversation
Hi @ralonsoh. Thanks for your PR. I'm waiting for a openstack-k8s-operators member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/9babb1ba4c57454b90662c4b937fe4e1 ❌ openstack-k8s-operators-content-provider FAILURE in 6m 31s |
/ok-to-test |
pkg/ovncontroller/daemonset.go
Outdated
@@ -131,14 +131,11 @@ func DaemonSet( | |||
} | |||
|
|||
ovnControllerCmd = []string{ | |||
"/bin/bash", "-c", | |||
"/usr/local/bin/container-scripts/net_setup.sh && ovn-controller", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this will work, because && is handled by shell.
pkg/ovncontroller/daemonset.go
Outdated
} | ||
ovnControllerArgs = []string{ | ||
strings.Join( | ||
append( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like this doesn't compile, as per CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't compile, and I think you have to have a shell to do &&. Either we find a different way to do setup (with job / preStart hook), or have a script that would start ovn-controller for us; or do nothing.
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ralonsoh The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/60351f5760564d2abd0ab6157bf18ff7 ❌ openstack-k8s-operators-content-provider FAILURE in 7m 24s |
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/be180f1f13d442338835c25e16a81413 ❌ openstack-k8s-operators-content-provider FAILURE in 7m 07s |
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/51e9fd937426432f92e76762194c3b1b ❌ openstack-k8s-operators-content-provider FAILURE in 8m 55s |
@booxter @karelyatin @slawqo I think this patch is ready for review, thanks in advance. |
@ralonsoh LGTM for the changes done here, but the linked but also mentions about bash usage in ovncontroller but i don't see any changes/comment for that either in PR or in Jira and also the comment says Closes Jira. |
@karelyatin when the ovn-controller command [1] is executed outside the bash call, it always returns an error with the socket file. Also when dumb-init is used. The directory /run/openvswitch exists. E.g.:
|
@ralonsoh but dumb-init shouldn't be needed just for this, i did tried locally removing bash and seems to work. |
I did something similar some PS ago [1] and it wasn't working. The problem was to divide the command string... Thanks for your help. [1]40f649e#diff-853730e1a0e56623824bb603929544f54d838010a75b27a62b285ae738064744 |
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/86d0858cda2a4117908ca694ce919b3c ❌ openstack-k8s-operators-content-provider FAILURE in 7m 35s |
Resolves: #OSPRH-680
/retest-required |
Closes: OSPRH-680