Giter VIP home page Giter VIP logo

Comments (7)

bparees avatar bparees commented on July 19, 2024

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.

AnitaNayak avatar AnitaNayak commented on July 19, 2024

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.

bparees avatar bparees commented on July 19, 2024

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.

dmage avatar dmage commented on July 19, 2024

/lifecycle stale

from image-registry.

openshift-bot avatar openshift-bot commented on July 19, 2024

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.

openshift-bot avatar openshift-bot commented on July 19, 2024

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-ci-robot avatar openshift-ci-robot commented on July 19, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.