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

BUG OCPBUGS-6050: Amq connection configurable timeout and nohup #187

Merged
merged 1 commit into from
Jan 19, 2023

Conversation

jzding
Copy link
Member

@jzding jzding commented Jan 18, 2023

Allow configurable timeout for initial amq connection.

Introduce amqp://nohup transportHost for local logging of events when amq connection is not available

Signed-off-by: Jack Ding jackding@gmail.com

@jzding jzding changed the title Amq connection change [draft] Amq connection configurable timeout and nohup Jan 18, 2023
cmd/main.go Outdated
@@ -71,6 +73,7 @@ func main() {
flag.StringVar(&transportHost, "transport-host", "amqp:localhost:5672", "The transport bus hostname or service name.")
flag.IntVar(&apiPort, "api-port", 8089, "The address the rest api endpoint binds to.")
flag.StringVar(&httpEventPublisher, "http-event-publishers", "", "Comma separated address of the publishers available.")
flag.StringVar(&amqInitTimeout, "amq-init-timeout", amqInitTimeoutDefault.String(), "The retry duration for establishing an amq connection.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should transport protocol agnostic . You can't have amq specific flags on sidecar

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AMQ is going to go away and it not configurable for PTP operator

Copy link
Member Author

@jzding jzding Jan 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed the command line argument

@jzding jzding changed the title [draft] Amq connection configurable timeout and nohup [WIP: need update sdk-go first] Amq connection configurable timeout and nohup Jan 18, 2023
@jzding jzding changed the title [WIP: need update sdk-go first] Amq connection configurable timeout and nohup [WIP: need update sdk-go] Amq connection configurable timeout and nohup Jan 18, 2023
@jzding jzding force-pushed the amq-race branch 3 times, most recently from b1a98d3 to f7d0c37 Compare January 18, 2023 15:21
@jzding jzding changed the title [WIP: need update sdk-go] Amq connection configurable timeout and nohup [need update sdk-go] Amq connection configurable timeout and nohup Jan 18, 2023
@jzding jzding requested a review from aneeshkp January 18, 2023 16:13
@jzding jzding force-pushed the amq-race branch 3 times, most recently from 2c1fdce to 5a7591c Compare January 19, 2023 01:16
Allow configurable timeout for initial amq connection.

Introduce amqp://nohup transportHost for local logging of events
when amq connection is not available

Signed-off-by: Jack Ding <jackding@gmail.com>
@jzding jzding changed the title [need update sdk-go] Amq connection configurable timeout and nohup Amq connection configurable timeout and nohup Jan 19, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 19, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aneeshkp, jzding

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit f6a2f71 into redhat-cne:main Jan 19, 2023
@jzding jzding changed the title Amq connection configurable timeout and nohup BUG OCPBUGS-6050: Amq connection configurable timeout and nohup Jan 19, 2023
@openshift-ci-robot
Copy link

@jzding: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-6050 has been moved to the MODIFIED state.

In response to this:

Allow configurable timeout for initial amq connection.

Introduce amqp://nohup transportHost for local logging of events when amq connection is not available

Signed-off-by: Jack Ding jackding@gmail.com

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.

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

Successfully merging this pull request may close these issues.

None yet

4 participants