Bug 1782650
| Summary: | UI creates block mode disk for hostpath provisioner storage class | ||||||
|---|---|---|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Guohua Ouyang <gouyang> | ||||
| Component: | Console Kubevirt Plugin | Assignee: | Tomas Jelinek <tjelinek> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Nelly Credi <ncredi> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 4.3.0 | CC: | aos-bugs, fkrepins, gouyang | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2019-12-13 01:15:35 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Guohua Ouyang
2019-12-12 02:44:20 UTC
It is configured by kubevirt-storage-class-defaults config map. Please refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1724654#c4 and try to configure your storage class to use filesystem mode. I've given it a try, but it still create the PVC with block mode.
$ oc get cm kubevirt-storage-class-defaults -n openshift-cnv -o yaml
apiVersion: v1
data:
accessMode: ReadWriteMany
hostpath-provisioner.accessMode: ReadWriteOnce
hostpath-provisioner.volumeMode: Filesystem
local-sc.accessMode: ReadWriteOnce
local-sc.volumeMode: Filesystem
volumeMode: Filesystem
kind: ConfigMap
metadata:
creationTimestamp: "2019-12-12T08:20:52Z"
labels:
app: hyperconverged-cluster
name: kubevirt-storage-class-defaults
namespace: openshift-cnv
ownerReferences:
- apiVersion: hco.kubevirt.io/v1alpha1
blockOwnerDeletion: true
controller: true
kind: HyperConverged
name: hyperconverged-cluster
uid: 2148a988-a1ca-44f3-8d33-ab160e879755
resourceVersion: "1296080"
selfLink: /api/v1/namespaces/openshift-cnv/configmaps/kubevirt-storage-class-defaults
uid: 14455a39-f0cf-4b14-976a-1baf84ac81db
hostpath-provisioner.accessMode: ReadWriteOnce this looks suspicious. It should be the name of your storage class. Is your storage class name really "hostpath-provisioner"? We can not reproduce this on any environment and the environment on which it reproduced is gone. Obviously it is not a generic issue, most probably some misconfiguration on the env. Lowering priority and will keep trying to understand how it happened, but not blocking on it. It would be helpful to see the VM YAML once the VM is created by the wizard Created attachment 1644608 [details]
vm yaml
Don't see this on a fresh deployed env, it's probably a misconfiguration issue, close it for now. |