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

Ability to check Venafi API parameter in log #5472

Closed
JaslynnWangTR opened this issue Sep 30, 2022 · 4 comments
Closed

Ability to check Venafi API parameter in log #5472

JaslynnWangTR opened this issue Sep 30, 2022 · 4 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@JaslynnWangTR
Copy link

JaslynnWangTR commented Sep 30, 2022

Is your feature request related to a problem? Please describe.

I have issue creating new certificate using Venafi TPP, I'm not able to understand what exact custom field is not valid

the error msg:

Warning Failed 46m cert-manager-certificates-issuing The certificate request has failed to complete and will be retried: Failed to request venafi certific │
│ ate: custom field value not a valid list item. Server returned error 17

level 6 log on cert manager pod

I0930 18:58:38.519708 1 round_trippers.go:553] POST https://xxx.xxx.xxx.x/api/v1/namespaces/demo/events 201 Created in 19 milliseconds
I0930 18:58:38.545192 1 controller.go:173] cert-manager/certificates-request-manager "msg"="finished processing work item" "key"="demo/example-com-cert1"
I0930 18:58:38.545228 1 controller.go:153] cert-manager/certificates-request-manager "msg"="syncing item" "key"="demo/example-com-cert1"
I0930 18:58:38.545763 1 controller.go:173] cert-manager/certificates-request-manager "msg"="finished processing work item" "key"="demo/example-com-cert1"
I0930 18:58:38.970338 1 controller.go:153] cert-manager/certificates-readiness "msg"="syncing item" "key"="demo/example-com-cert1"
I0930 18:58:38.970497 1 controller.go:173] cert-manager/certificates-readiness "msg"="finished processing work item" "key"="demo/example-com-cert1"
I0930 18:58:39.008136 1 logs.go:59] vCert: Got 200 OK status for POST https://devcertificates.int.xxx.com/vedsdk/certificates/checkpolicy
I0930 18:58:39.009221 1 instrumentedvenaficlient.go:57] cert-manager/certificaterequests-issuer-venafi/sign "msg"="calling RequestCertificate" "related_resource_kind"="ClusterIssuer" "related_resource_name"="tpp-issuer" "related_resource_namespace"="" "related_resource_version"="v1" "resource_kind"="CertificateRequest" "resource_name"="example-com-cert1-fvzl5" "resource_namespace"="demo" "resource_version"="v1"
I0930 18:58:39.363703 1 logs.go:59] vCert: Got 200 OK status for POST https://devcertificates.int.xxx.com/vedsdk/certificates/request
I0930 18:58:39.377649 1 controller.go:153] cert-manager/certificates-key-manager "msg"="syncing item" "key"="demo/example-com-cert1"
I0930 18:58:39.378777 1 controller.go:173] cert-manager/certificates-key-manager "msg"="finished processing work item" "key"="demo/example-com-cert1"
I0930 18:58:39.634460 1 logs.go:59] vCert: Got 200 OK status for POST https://devcertificates.int.xxx.com/vedsdk/metadata/get
I0930 18:58:39.634846 1 logs.go:59] vCert: Saving metadata custom field using 19.2 method
I0930 18:58:39.860146 1 logs.go:59] vCert: Got 200 OK status for POST https://devcertificates.int.xxx.com/vedsdk/metadata/getitems
I0930 18:58:40.105614 1 logs.go:59] vCert: Got 200 OK status for POST https://devcertificates.int.xxx.com/vedsdk/metadata/set
I0930 18:58:40.105684 1 logs.go:59] vCert: custom field value not a valid list item. Server returned error 17

Describe the solution you'd like

I'd like to see more information in logs(level 6) related to the post parameters for Venafi API

Describe alternatives you've considered

Additional context

Environment details (remove if not applicable):

  • Kubernetes version:
    Client Version: version.Info{Major:"1", Minor:"25", GitVersion:"v1.25.0", GitCommit:"a866cbe2e5bbaa01cfd5e969aa3e033f3282a8a2", GitTreeState:"clean", BuildDate:"2022-08-23T17:36:43Z", GoVersion:"go1.19", Compiler:"gc", Platform:"darwin/amd64"}
    Kustomize Version: v4.5.7
    Server Version: version.Info{Major:"1", Minor:"21+", GitVersion:"v1.21.14-eks-18ef993", GitCommit:"ac73613dfd25370c18cbbbc6bfc65449397b35c7", GitTreeState:"clean", BuildDate:"2022-07-06T18:06:50Z", GoVersion:"go1.16.15", Compiler:"gc", Platform:"linux/amd64"}

  • Cloud-provider/provisioner:Venafi TPP

  • cert-manager version: v1.9.1

  • Install method: helm

/kind feature

@jetstack-bot jetstack-bot added the kind/feature Categorizes issue or PR as related to a new feature. label Sep 30, 2022
@jetstack-bot
Copy link
Collaborator

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Send feedback to jetstack.
/lifecycle stale

@jetstack-bot jetstack-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 29, 2022
@jetstack-bot
Copy link
Collaborator

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Send feedback to jetstack.
/lifecycle rotten
/remove-lifecycle stale

@jetstack-bot jetstack-bot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jan 28, 2023
@jetstack-bot
Copy link
Collaborator

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Send feedback to jetstack.
/close

@jetstack-bot
Copy link
Collaborator

@jetstack-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Send feedback to jetstack.
/close

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
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

2 participants