-
Notifications
You must be signed in to change notification settings - Fork 39.4k
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
resize pv failed #72393
Comments
@kubernetes/sig-storage-bugs |
@z8772083: Reiterating the mentions to trigger a notification: In response to this:
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. |
What's the version of your ceph cluster? k8s uses the
|
@mlmhl ceph version 13.2.2 (02899bfda814146b021136e9d8e80eba494e1126) mimic (stable) |
It seems that the output format is different between different ceph versions. I will try to fix it. |
/assign |
@mlmhl your PR has been merged to master branch, and when will Kubernetes v1.11 fix this bug? |
@mlmhl It seems this change is not working in some cases:
I think this is due to two concurrent conditions: I am able to have a workaround creating empty files for A reference on the source code for #72431 https://github.com/kubernetes/kubernetes/pull/72431/files#diff-36f18e327f36d95eb1333c4a18781184R704 Thanks |
@lucaim could you tell where did you put the empty ceph.conf and ceph.keyring files? On the node running kubelet? |
@hasonhai Inside the pod of the |
@lucaim I had the same problem, I added ceph. conf and ceph. Keyring and solved it, but I think k8s got the default user of CEPH before going back to ceph. conf and ceph. Keyring. The following code validates my conjecture: https://github.com/kubernetes/kubernetes/blob/master/pkg/volume/rbd/rbd_util.go//num 672 |
@xiyangxdy as far as I know you do not need to configure those two files if you use a key. That is still an hypothesis as in the version of Ceph we are using this switch seems to be undocumented: http://docs.ceph.com/docs/luminous/man/8/rbd/ |
@lucaim I added two files with empty content before, no error; later I added a soft connection called ceph.conf and ceph. Keyring (pointing to the ceph configuration file and key ring generated by my cluster), but ceph did not report an error. . I think ceph only needs two files to exist and doesn't care about its contents. Fortunately, the current measures can solve the problem. |
@xiyangxdy this matches my experience (see above, I created the empty files too and it gives no error) but another possibility is just not parse |
Same issue as @lucaim here. The warnings about the missing etc files break the JSON output. Adding empty files in the |
Shouldn't this be reopened until the bug is fixed? Creating the two files also "solves" the issue for us. |
We are running a ceph cluster with |
This also seems related to #66757. |
@humblec We are running |
Are there plans to resolve this issue? |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
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. |
Answering myself - apparently it has been fixed in k8s 1.20: #92027 |
What happened:
kubectl create -f ceph-pvc.yaml
and result is ok
pvc-expand-test Bound pvc-962a674c-0a73-11e9-b2d8-0050569bfc0f 1Gi RWO ceph-storage 1h
now i want to resize pv from 1G to 2G, edit
kubectl describe pvc pvc-expand-test
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
ceph storageclass yaml:
ceph secret:
Environment:
Kubernetes version (use
kubectl version
):Client Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.5", GitCommit:"753b2dbc622f5cc417845f0ff8a77f539a4213ea", GitTreeState:"clean", BuildDate:"2018-11-26T14:41:50Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.5", GitCommit:"753b2dbc622f5cc417845f0ff8a77f539a4213ea", GitTreeState:"clean", BuildDate:"2018-11-26T14:31:35Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release):
CentOS Linux release 7.4.1708 (Core)
Kernel (e.g.
uname -a
):Linux m01 3.10.0-693.el7.x86_64 Unit test coverage in Kubelet is lousy. (~30%) #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Install tools:
kubeadm
Others:
ceph version 13.2.2 (02899bfda814146b021136e9d8e80eba494e1126) mimic (stable)
/kind bug
The text was updated successfully, but these errors were encountered: