Comments (7)
are you able to mount the storage volume in question from a standard pod?
mount.nfs: No route to host
makes it seem like the issue here is w/ your PV setup more than the registry itself.
from image-registry.
Its on libvirt KVM where bastion is having ip: 192.168.79.1.
nfs PV is
[root@localhost ~]# oc get pv nfs-storage -n openshift-image-registry -o yaml
apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"v1","kind":"PersistentVolume","metadata":{"annotations":{},"name":"nfs-storage"},"spec":{"accessModes":["ReadWriteMany","ReadWriteOnce"],"capacity":{"storage":"100Gi"},"claimRef":{"apiVersion":"v1","kind":"PersistentVolumeClaim","name":"image-registry-storage","namespace":"openshift-image-registry"},"nfs":{"path":"/home/nfsshare","server":"192.168.79.1"},"persistentVolumeReclaimPolicy":"Recycle","volumeMode":"Filesystem"},"status":{}}
creationTimestamp: "2020-01-24T12:37:00Z"
finalizers:
- kubernetes.io/pv-protection
name: nfs-storage
resourceVersion: "20593093"
selfLink: /api/v1/persistentvolumes/nfs-storage
uid: 379c807d-3ea6-11ea-8a3e-525400da7041
spec:
accessModes:
- ReadWriteMany
- ReadWriteOnce
capacity:
storage: 100Gi
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: image-registry-storage
namespace: openshift-image-registry
resourceVersion: "20593090"
uid: 5ba8e1da-3ea6-11ea-8a3e-525400da7041
nfs:
path: /home/nfsshare
server: 192.168.79.1
persistentVolumeReclaimPolicy: Recycle
volumeMode: Filesystem
status:
phase: Bound
[root@localhost ~]#
[root@localhost ~]# oc get pod -n openshift-image-registry | grep image-registry
image-registry-5598d76584-4wfxq 0/1 ContainerCreating 0 144m --> With NFS failing with error mount.nfs: No route to host
image-registry-8fdfb6c68-pdf8f 1/1 Running 0 5h26m --> EmptyDir
[root@localhost ~]#
I tried to login to pod image-registry-8fdfb6c68-pdf8f ( EmptyDir) and tried mounting... but it is not allowed to mount as non-root user.
Please let me know, if I am trying correct or understand correctly...
from image-registry.
I tried to login to pod image-registry-8fdfb6c68-pdf8f ( EmptyDir) and tried mounting... but it is not allowed to mount as non-root user.
That's not what i meant. I meant just create your own pod (running whatever image you want) that mounts the PV in the same way that the registry pod does.
That said, I see you have 2 registry instances running, so it seems like one of them was able to mount the NFS volume and one was not? Assuming the two pods are running on different nodes, it would seem likely that the issue is with one of your nodes not being able to reach the NFS server.
from image-registry.
/lifecycle stale
from image-registry.
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen
.
If this issue is safe to close now please do so with /close
.
/lifecycle rotten
/remove-lifecycle stale
from image-registry.
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting /reopen
.
Mark the issue as fresh by commenting /remove-lifecycle rotten
.
Exclude this issue from closing again by commenting /lifecycle frozen
.
/close
from image-registry.
@openshift-bot: Closing this issue.
In response to this:
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting
/reopen
.
Mark the issue as fresh by commenting/remove-lifecycle rotten
.
Exclude this issue from closing again by commenting/lifecycle frozen
./close
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.
from image-registry.
Related Issues (20)
- Update regions HOT 1
- Problems with non AWS-S3 storage backend HOT 1
- Future Release Branches Frozen For Merging | branch:release-4.17 branch:release-4.18 HOT 3
- is it possible to add "app Item" to Catalog??? HOT 3
- [Need help] Is openshift internal registry has token service api ? HOT 3
- error getting secrets: <nil> HOT 1
- redirect parameter not working HOT 10
- registry fail to start (4.2-2019-08-08-070705) HOT 3
- Setup golangci-lint
- openshift create ca server certificate for docker registry HOT 2
- Notifications/Webhooks for repository notifications HOT 2
- Openshift 4.3 - Getting timeout trying to log into image-registry using podman HOT 3
- [Need help]How to get a username/password (do not refresh)who has the admin permission for openshift registry HOT 5
- Failed to create image registry with Swift storage on s390x HOT 7
- CRC Image Registry docker login issue on Windows - 127.0.0.1:80 connection refused
- allowedRegistriesForImport Behavior HOT 4
- DELETE operation is unsupported HOT 1
- OKD doc link do not work HOT 2
- Future Release Branches Frozen For Merging | branch:release-4.16 branch:release-4.17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from image-registry.