-
Notifications
You must be signed in to change notification settings - Fork 270
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
Upload iso failed #2447
Comments
Duplicate of #2433 ? |
It doesn't seem to be repeated, #2433 look like a Permission problem, his error log is different from mine |
@mhenriks I just updated context and the file I want to upload is an ISO file. I have tried the suggestion in #2433 but did not worked(I set device_ownership_from_security_context = true). My problem is not 100% showing up. When my OKD just set up, the first time upload ususally would be successful, but after that this problem would show up and make upload failed. |
I think those are related issues. This is what I have found and the permissions seems to be a common problem in various scenarios. FYI using CDI version
So there seems to be permission issues with using block-volumes and another with the RWX volume? Interesting, I tried to upload the The RWX volume:
The RWO scratch volume:
Followed this by doing the same but both the scratch and data volumes set to RWO.
I've done a bit of research and it does not look like |
@bc185174 can you elaborate which RWX filesystem you are using? If it is straight NFS(CSI) then you need to make sure you configure the NFS exports properly otherwise there will be permission issues. Also would like to know your RWX block devices, and which CRI you are using (CRI-O or containerd) which apparently makes a difference in how the permissions are treated. And last but not least what RWO filesystem did you use that did work? |
Hi, I just faced with the same problem after importing dataVolume from the registry to RWX block volume. VM can't start:
When I use RWO filesystem mode, there is no such issue Storage provider: linstor-csi upd: RWO block devices having the same problem |
I believe Ben's issue was the upload itself where the device didn't get the appropriate permissions when using containerd CRI. I don't know if KubeVirt itself is enforcing PSA yet and if that is the reason you are getting the error for the block devices. In case it is please that a look at the documentation update #2458 that explains how to configure the CRI to properly set permissions on the device. |
@awels thanks for pointing out, import was successful, but now virt-launcher can't start the vm with the same error:
any ideas? |
Setting option from #2458 solves the CDI issue [plugins]
[plugins."io.containerd.grpc.v1.cri"]
device_ownership_from_security_context = true For KubeVirt issue let's switch to kubevirt/kubevirt#8699 /close |
@kvaps: 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. |
What happened:
upload iso to dv which source is upload{} failed
What you expected to happen:
dv change phase to successed
How to reproduce it (as minimally and precisely as possible):
Set DV to Block And ReadWriteOnce
Additional context:
When i set DV to FileSystem And ReadWriteOnce, then use upload-async method to upload , it can successed
When i set DV to Block And ReadWirteOnce, then set source to http, it can successed
In this two cases, i use the same iso.
Is there A problem with my StorageClass?
Environment:
kubectl get deployments cdi-deployment -o yaml
): 1.53kubectl version
): 1.22uname -a
): N/AThe text was updated successfully, but these errors were encountered: