Uploaded image for project: 'WildFly WIP'
  1. WildFly WIP
  2. WFWIP-186

PVC access mode is hardcoded to ReadWriteOnce

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • OpenShift
    • Hide

      1. set storage accessMode to ReadWriteMany

      apiVersion: wildfly.org/v1alpha1
      kind: WildFlyServer
      metadata:
        creationTimestamp: '2019-09-02T07:21:29Z'
        generation: 1
        name: simple-jaxrs-eap72
        namespace: mchoma
        resourceVersion: '4144657'
        selfLink: >-
          /apis/wildfly.org/v1alpha1/namespaces/mchoma/wildflyservers/simple-jaxrs-eap72
        uid: 487e5702-cd52-11e9-b23d-fa163e9a0fb6
      spec:
        applicationImage: 'docker-registry.default.svc:5000/mchoma-xtf-builds/simple-jaxrs-eap72'
        env: []
        size: 1
        storage:
          volumeClaimTemplate:
            apiVersion: v1
            kind: PersistentVolumeClaim
            metadata:
              annotations: {}
              labels: {}
              name: simple-jaxrs-eap72-volume
            spec:
              accessModes:
                - ReadWriteMany
              resources:
                limits: {}
                requests:
                  storage: 1Mi
      status:
        hosts:
          - simple-jaxrs-eap72-mchoma.apps.multinode-nfs-mchoma-001.dynamic.xpaas
        pods:
          - name: simple-jaxrs-eap72-0
            podIP: 10.130.0.113
      

      2. Looking into created object there is `ReadWriteOnce` in spec.

      oc edit pvc simple-jaxrs-eap72-volume-simple-jaxrs-eap72-0
      
      # Please edit the object below. Lines beginning with a '#' will be ignored,
      # and an empty file will abort the edit. If an error occurs while saving this file will be
      # reopened with the relevant failures.
      #
      apiVersion: v1
      kind: PersistentVolumeClaim
      metadata:
        annotations:
          pv.kubernetes.io/bind-completed: "yes"
          pv.kubernetes.io/bound-by-controller: "yes"
        creationTimestamp: 2019-09-02T07:21:29Z
        finalizers:
        - kubernetes.io/pvc-protection
        labels:
          app.kubernetes.io/managed-by: wildfly-operator
          app.kubernetes.io/name: simple-jaxrs-eap72
          app.openshift.io/runtime: wildfly
        name: simple-jaxrs-eap72-volume-simple-jaxrs-eap72-0
        namespace: mchoma
        resourceVersion: "4144635"
        selfLink: /api/v1/namespaces/mchoma/persistentvolumeclaims/simple-jaxrs-eap72-volume-simple-jaxrs-eap72-0
        uid: 4881fb17-cd52-11e9-b23d-fa163e9a0fb6
      spec:
        accessModes:
        - ReadWriteOnce
        resources:
          requests:
            storage: 1Mi
        volumeName: vol08
      status:
        accessModes:
        - ReadWriteMany
        - ReadWriteOnce
        capacity:
          storage: 1Gi
        phase: Bound
      

      Also strange is in `status` there are different values then in spec

      status:
        accessModes:
        - ReadWriteMany
        - ReadWriteOnce
        capacity:
          storage: 1Gi
      
      Show
      1. set storage accessMode to ReadWriteMany apiVersion: wildfly.org/v1alpha1 kind: WildFlyServer metadata: creationTimestamp: '2019-09-02T07:21:29Z' generation: 1 name: simple-jaxrs-eap72 namespace: mchoma resourceVersion: '4144657' selfLink: >- /apis/wildfly.org/v1alpha1/namespaces/mchoma/wildflyservers/simple-jaxrs-eap72 uid: 487e5702-cd52-11e9-b23d-fa163e9a0fb6 spec: applicationImage: 'docker-registry. default .svc:5000/mchoma-xtf-builds/simple-jaxrs-eap72' env: [] size: 1 storage: volumeClaimTemplate: apiVersion: v1 kind: PersistentVolumeClaim metadata: annotations: {} labels: {} name: simple-jaxrs-eap72-volume spec: accessModes: - ReadWriteMany resources: limits: {} requests: storage: 1Mi status: hosts: - simple-jaxrs-eap72-mchoma.apps.multinode-nfs-mchoma-001.dynamic.xpaas pods: - name: simple-jaxrs-eap72-0 podIP: 10.130.0.113 2. Looking into created object there is `ReadWriteOnce` in spec. oc edit pvc simple-jaxrs-eap72-volume-simple-jaxrs-eap72-0 # Please edit the object below. Lines beginning with a '#' will be ignored, # and an empty file will abort the edit. If an error occurs while saving this file will be # reopened with the relevant failures. # apiVersion: v1 kind: PersistentVolumeClaim metadata: annotations: pv.kubernetes.io/bind-completed: "yes" pv.kubernetes.io/bound-by-controller: "yes" creationTimestamp: 2019-09-02T07:21:29Z finalizers: - kubernetes.io/pvc-protection labels: app.kubernetes.io/managed-by: wildfly- operator app.kubernetes.io/name: simple-jaxrs-eap72 app.openshift.io/runtime: wildfly name: simple-jaxrs-eap72-volume-simple-jaxrs-eap72-0 namespace: mchoma resourceVersion: "4144635" selfLink: /api/v1/namespaces/mchoma/persistentvolumeclaims/simple-jaxrs-eap72-volume-simple-jaxrs-eap72-0 uid: 4881fb17-cd52-11e9-b23d-fa163e9a0fb6 spec: accessModes: - ReadWriteOnce resources: requests: storage: 1Mi volumeName: vol08 status: accessModes: - ReadWriteMany - ReadWriteOnce capacity: storage: 1Gi phase: Bound Also strange is in `status` there are different values then in spec status: accessModes: - ReadWriteMany - ReadWriteOnce capacity: storage: 1Gi

    Description

      Attachments

        Activity

          People

            jmesnil1@redhat.com Jeff Mesnil
            mchoma@redhat.com Martin Choma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: