备注:现场3台cloudos主机,通过ISCSI外挂存储,目前检查存储状态无异常,链路么什么问题。cloudos版本为3.0
1.执行pod | grep harbor-registry-rc-2wt4s,发现状态一直停留在 ContainerCreating状态
default harbor-registry-rc-2wt4s 0/1 ContainerCreating 0 6d <none> 10.10.4.208 <none>
2. 执行kubectl describe pod -n default harbor-registry-rc-2wt4s,查看harbor-registry-rc-2wt4s详细信息发现如下报错:
Name: harbor-registry-rc-2wt4s
Namespace: default
Priority: 0
PriorityClassName: <none>
Node: 10.10.4.208/10.10.4.208
Start Time: Tue, 06 May 2025 10:51:07 +0800
Labels: name=registry-apps
Annotations: <none>
Status: Pending
IP:
Controlled By: ReplicationController/harbor-registry-rc
Containers:
registry-app:
Container ID:
Image: h3cloud-ce/registry:photon-2.6.0
Image ID:
Ports: 5000/TCP, 5001/TCP
Host Ports: 0/TCP, 0/TCP
State: Waiting
Reason: ContainerCreating
Ready: False
Restart Count: 0
Limits:
cpu: 8
memory: 16Gi
Requests:
cpu: 500m
memory: 128Mi
Liveness: tcp-socket :5000 delay=10s timeout=100s period=30s #success=1 #failure=3
Readiness: tcp-socket :5000 delay=10s timeout=100s period=30s #success=1 #failure=3
Environment: <none>
Mounts:
/etc/docker/registry from config (rw)
/storage from storage (rw)
/var/run/secrets/kubernetes.io/serviceaccount from default-token-xrdpv (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
config:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: harbor-registry-config
Optional: false
storage:
Type: ISCSI (an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod)
TargetPortal: 8.8.8.8:3260
IQN: ***.***.h3c:dss.harbor.registry
Lun: 0
ISCSIInterface default
FSType: ext4
ReadOnly: false
Portals: []
DiscoveryCHAPAuth: false
SessionCHAPAuth: false
SecretRef: <nil>
InitiatorName: <none>
default-token-xrdpv:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-xrdpv
Optional: false
QoS Class: Burstable
Node-Selectors: nodeType=controller
Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
node.kubernetes.io/unreachable:NoExecute for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedMount 7m (x4878 over 6d) kubelet, 10.10.4.208 MountVolume.MountDevice failed for volume "storage" : 'fsck' found errors on device /dev/disk/by-path/ip-8.8.8.8:3260-iscsi-***.***.h3c:dss.harbor.registry-lun-0 but could not correct them: fsck from util-linux 2.23.2
/dev/mapper/harbor-registry: Superblock needs_recovery flag is clear, but journal has data.
/dev/mapper/harbor-registry: Run journal anyway
/dev/mapper/harbor-registry: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
.
Warning FailedMount 1m (x4378 over 6d) kubelet, 10.10.4.208 Unable to mount volumes for pod "harbor-registry-rc-2wt4s_default(f55103b7-2a24-11f0-8e18-7c1e0623fadf)": timeout expired waiting for volumes to attach or mount for pod "default"/"harbor-registry-rc-2wt4s". list of unmounted volumes=[storage]. list of unattached volumes=[config storage default-token-xrdpv]
(0)
最佳答案
这不已经提示挂载的存储失败了吗,查一下harbor对应的存储还在不,不在iscsi 发现一下再挂载,在pod运行的那台主机上执行iscsi 发现存储命令
(0)
你的存储挂的isci吧,现在显示找不到这个东东,检查下iscsi,修复后. Type: ISCSI (an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod) 代理找不到这个存储了。修复后delete -f yaml,然后apply -f yaml就行
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论