操作系统信息
虚拟机,Red Hat Enterprise Linux 8.10 (Ootpa),16C/32G
Kubernetes版本信息
将 kubectl version
命令执行结果贴在下方

容器运行时
Docker: 20.10.9
KubeSphere版本信息
v4.1.3。在线安装。在已有K8s上安装。
问题是什么
openebs-ndm-operator 一直在重启报错“block device CRD creation failed : the server could not find the requested resource”

openebs-ndm-operator 容器一直在重启
报错完整信息
{"level":"info","ts":1753359679.124609,"logger":"ndm-operator","msg":"Go Version: go1.12.7"}
{"level":"info","ts":1753359679.1246514,"logger":"ndm-operator","msg":"Go OS/Arch: linux/amd64"}
{"level":"info","ts":1753359679.124658,"logger":"ndm-operator","msg":"operator-sdk Version: v0.5.0"}
{"level":"info","ts":1753359679.124667,"logger":"ndm-operator","msg":"Version Tag: v0.5.0"}
{"level":"info","ts":1753359679.124672,"logger":"ndm-operator","msg":"Git Commit: 63ca87a283e5feea87821c4f96c8b38c038343e3"}
{"level":"info","ts":1753359679.1251893,"logger":"leader","msg":"Trying to become the leader."}
{"level":"info","ts":1753359679.1820223,"logger":"leader","msg":"Found existing lock with my name. I was likely restarted."}
{"level":"info","ts":1753359679.182079,"logger":"leader","msg":"Continuing as the leader."}
{"level":"info","ts":1753359679.221693,"logger":"ndm-operator","msg":"Installing the components"}
{"level":"error","ts":1753359679.2232413,"logger":"ndm-operator","msg":"","error":"block device CRD creation failed : the server could not find the requested resource","stacktrace":"github.com/openebs/node-disk-manager/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/home/travis/gopath/src/github.com/openebs/node-disk-manager/vendor/github.com/go-logr/zapr/zapr.go:128\nmain.main\n\t/home/travis/gopath/src/github.com/openebs/node-disk-manager/cmd/manager/main.go:117\nruntime.main\n\t/home/travis/.gimme/versions/go1.12.7.linux.amd64/src/runtime/proc.go:200"}
我是从kubesphere 3.1.1 一步步升级到了4.1.3 最近才发现这个问题,这个容器跟local卷有关,不敢轻易删除crd重建,怕数据丢失。生产环境,有人遇到一样的问题吗?
下面是blockdevices.openebs.io CRD信息
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
creationTimestamp: "2021-05-25T08:11:49Z"
generation: 1
name: blockdevices.openebs.io
resourceVersion: "806632357"
uid: 00bcc53c-6c99-426b-8b80-af9ea0e5d341
spec:
conversion:
strategy: None
group: openebs.io
names:
kind: BlockDevice
listKind: BlockDeviceList
plural: blockdevices
shortNames:
- bd
singular: blockdevice
preserveUnknownFields: true
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .spec.nodeAttributes.nodeName
name: NodeName
type: string
- jsonPath: .spec.path
name: Path
priority: 1
type: string
- jsonPath: .spec.capacity.storage
name: Size
type: string
- jsonPath: .status.claimState
name: ClaimState
type: string
- jsonPath: .status.state
name: Status
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: BlockDevice
listKind: BlockDeviceList
plural: blockdevices
shortNames:
- bd
singular: blockdevice
conditions:
- lastTransitionTime: "2021-05-25T08:11:49Z"
message: no conflicts found
reason: NoConflicts
status: "True"
type: NamesAccepted
- lastTransitionTime: "2021-05-25T08:11:49Z"
message: the initial names have been accepted
reason: InitialNamesAccepted
status: "True"
type: Established
- lastTransitionTime: "2025-07-11T12:43:41Z"
message: 'spec.preserveUnknownFields: Invalid value: true: must be false'
reason: Violations
status: "True"
type: NonStructuralSchema
storedVersions:
- v1alpha1