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

[cinder-csi-plugin] Add http endpoint of CSI container #1398

Closed
wants to merge 1 commit into from

Conversation

jichenjc
Copy link
Contributor

@jichenjc jichenjc commented Feb 4, 2021

What this PR does / why we need it:

Add http endpoint of CSI container , it will be used for metris later

Which issue this PR fixes(if applicable):
fixes #

Special notes for reviewers:

Release note:

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Feb 4, 2021
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 4, 2021
@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 4, 2021

Build failed.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 4, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 4, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 4, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 4, 2021

Build failed.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 4, 2021

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 4, 2021

Build failed.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 4, 2021

Build failed.

@jichenjc jichenjc force-pushed the add_http_endpoint_csi branch from 90476d0 to 38c3d65 Compare February 4, 2021 04:26
@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 4, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 4, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 4, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 4, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 4, 2021

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 4, 2021

Build failed.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 4, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 4, 2021

Build failed.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 4, 2021

Build failed.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 4, 2021

Build failed.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 4, 2021

Build failed.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 4, 2021

Build failed.

@jichenjc
Copy link
Contributor Author

jichenjc commented Feb 5, 2021

# kubectl get pods  -n kube-system -o wide
NAME                            READY   STATUS    RESTARTS   AGE   IP           NODE        NOMINATED NODE   READINESS GATES
csi-cinder-controllerplugin-0   6/6     Running   0          6s    172.17.0.3   127.0.0.1   <none>           <none>
csi-cinder-nodeplugin-2j5gg     3/3     Running   0          6s    127.0.0.1    127.0.0.1   <none>           <none>
kube-dns-58fd9b49f7-ffn4b       3/3     Running   0          59s   172.17.0.2   127.0.0.1   <none>           <none>
root@jjtest1:~/go/src/github.com/cloud-provider-openstack/manifests# kubectl run -i --tty curl1 --image=curlimages/curl --restart=Never
 -- sh
If you don't see a command prompt, try pressing enter.
/ $ curl 172.17.0.3:8080/metrics
# HELP process_start_time_seconds [ALPHA] Start time of the process since unix epoch in seconds.
# TYPE process_start_time_seconds gauge
process_start_time_seconds 1.6124993369e+09

the result looks like this

@jichenjc
Copy link
Contributor Author

jichenjc commented Feb 5, 2021

/retest

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 5, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 5, 2021

Build succeeded.

@jichenjc
Copy link
Contributor Author

/retest

@theopenlab-ci
Copy link

theopenlab-ci bot commented Apr 21, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Apr 21, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Apr 21, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Apr 21, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Apr 21, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Apr 21, 2021

Build failed.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Apr 21, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Apr 21, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Apr 21, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Apr 21, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Apr 21, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Apr 21, 2021

Build succeeded.

@jichenjc
Copy link
Contributor Author

/test cloud-provider-openstack-acceptance-test-csi-manila

@k8s-ci-robot
Copy link
Contributor

@jichenjc: The specified target(s) for /test were not found.
The following commands are available to trigger jobs:

  • /test pull-cloud-provider-openstack-check
  • /test pull-cloud-provider-openstack-test

Use /test all to run all jobs.

In response to this:

/test cloud-provider-openstack-acceptance-test-csi-manila

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.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Apr 22, 2021

Build failed.

@jichenjc
Copy link
Contributor Author

/test cloud-provider-openstack-acceptance-test-csi-manila

@k8s-ci-robot
Copy link
Contributor

@jichenjc: The specified target(s) for /test were not found.
The following commands are available to trigger jobs:

  • /test pull-cloud-provider-openstack-check
  • /test pull-cloud-provider-openstack-test

Use /test all to run all jobs.

In response to this:

/test cloud-provider-openstack-acceptance-test-csi-manila

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.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Apr 22, 2021

Build failed.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 28, 2021
@k8s-ci-robot
Copy link
Contributor

@jichenjc: PR needs rebase.

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.

@k8s-triage-robot
Copy link

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 sig-contributor-experience at kubernetes/community.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 27, 2021
@ramineni
Copy link
Contributor

/close

please feel free to reopen , if you would like to work on it in future

@k8s-ci-robot
Copy link
Contributor

@ramineni: Closed this PR.

In response to this:

/close

please feel free to reopen , if you would like to work on it in future

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.

@zetaab
Copy link
Member

zetaab commented May 31, 2022

@ramineni @jichenjc @chrigl it looks like discussion around cinder csi metrics started in year 2020. However, one reason why we do not have metrics yet is comment #1392 (comment) it is pretty difficult to implement. As I see it: we have already multiple components (occm+cinder-csi), why we should have common endpoint to retrieve metrics from all components? Why we cannot have own metrics endpoints for csi and occm?

So I am kind of asking: could we just use different way to provide metrics? Now we do not have anything.

For instance, AWS EBS CSI is using similar solution that was implemented in this PR. I think we should use this as starting point

kubernetes-sigs/aws-ebs-csi-driver#842

@zetaab
Copy link
Member

zetaab commented May 31, 2022

dd83566

few things that we should think of:

  • it does not have any authentication, how easy it is use similar authentication method than occm has?
  • should cinder-csi component fetch other csi sidecar metrics internally and provide them?

@jichenjc
Copy link
Contributor Author

should cinder-csi component fetch other csi sidecar metrics internally and provide them?

I am not sure this is best practice, at least I think metics comes from its own endpoint..

it does not have any authentication, how easy it is use similar authentication method than occm has?

should this be similar way? I don't see any reason we should be different on OCCM and CSI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants