-
Notifications
You must be signed in to change notification settings - Fork 215
pkg/cincinnati: Set User-Agent for Cincinnati requests #839
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
pkg/cincinnati: Set User-Agent for Cincinnati requests #839
Conversation
|
I tested this in cluster bot with $ oc -n cincinnati-stage get -o name pods | while read POD; do oc -n cincinnati-stage logs -c cincinnati-policy-engine "${POD}" | grep wking; done
[2022-09-19T23:03:09Z ERROR policy_engine] Error serving request 'Method: 'GET', Request: '/api/upgrades_info/wking-cvo-839', Query: 'arch=amd64&channel=wking-cvo-839&id=d9d35431-c35b-4425-bb47-35001cc4da70&version=4.12.0-ec.3', User-Agent: 'Go-http-client/1.1', Accept: 'application/json'' from '10.131.28.30:53010': Incorrect Endpoint
[2022-09-19T23:05:57Z ERROR policy_engine] Error serving request 'Method: 'GET', Request: '/api/upgrades_info/wking-cvo-839', Query: 'arch=amd64&channel=wking-cvo-839&id=d9d35431-c35b-4425-bb47-35001cc4da70&version=4.12.0-ec.3', User-Agent: 'Go-http-client/1.1', Accept: 'application/json'' from '10.131.28.30:35020': Incorrect Endpoint
[2022-09-19T23:07:54Z ERROR policy_engine] Error serving request 'Method: 'GET', Request: '/api/upgrades_info/wking-cvo-839', Query: 'arch=amd64&channel=wking-cvo-839&id=d9d35431-c35b-4425-bb47-35001cc4da70&version=0.0.1-0.test-2022-09-19-221623-ci-ln-l86zy4b-latest', User-Agent: 'ClusterVersionOperator/1.0.0-899-ge3101963-dirty', Accept: 'application/json'' from '10.131.28.30:34674': Incorrect EndpointAs I updated back and forth between 4.12.0-ec.3 and the cluster-bot-built commit to check the behavior vs. the current dev branch. It shows my change improving the User-Agent from ec.3's $ curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/origin-ci-test/logs/periodic-ci-openshift-release-master-nightly-4.12-e2e-aws-sdn-serial/1570267348072402944/artifacts/e2e-aws-sdn-serial/gather-extra/artifacts/pods/openshift-cluster-version_cluster-version-operator-7789fd6cc6-gknjr_cluster-version-operator.log | head -n1
I0915 04:53:34.063931 1 start.go:23] ClusterVersionOperator 4.12.0-202209132338.p0.g583c3e2.assembly.stream-583c3e2for 4.12.0-ec.3. |
cc32403 to
7d0e9bd
Compare
|
/retest |
|
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
So that it's easier to guess at the fraction of requests that are CVOs vs. other clients. I'd like to set this for our signature requests too (vendor/github.com/openshift/library-go/pkg/verify/store/sigstore), but that would take some library-go requests first.
7d0e9bd to
1dd2378
Compare
|
/retest |
petr-muller
left a comment
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.
LGTM
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: petr-muller, wking The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@wking: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. I understand the commands that are listed here. |
So that it's easier to guess at the fraction of requests that are CVOs vs. other clients. I'd like to set this for our signature requests too (
vendor/github.com/openshift/library-go/pkg/verify/store/sigstore), but that would take some library-go requests first.