[jboss-jira] [JBoss JIRA] (WFWIP-187) Changes to PVC are not reflected in Operator

Martin Choma (Jira) issues at jboss.org
Thu Sep 26 12:41:00 EDT 2019


    [ https://issues.jboss.org/browse/WFWIP-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13789761#comment-13789761 ] 

Martin Choma edited comment on WFWIP-187 at 9/26/19 12:40 PM:
--------------------------------------------------------------

[~jmesnil] was it necessary to introduce new annotation on StatefulSet. There is currently Kubernetes standard {{metadata.generation}}. I just want to make sure you have considered this option as well. 

EDITED: or the reason was recreation of StatefulSet is needed? Is recreating StatefulSet safe operation?

Anyway, it is not how I would expect to behave.  I see my changes in SS {{2Mi}}, but it is not propagated into pvc object, where there is always {{1Mi}}
 
{code}
  volumeClaimTemplates:
    - metadata:
        creationTimestamp: null
        name: operator-updated-volume
      spec:
        accessModes:
          - ReadWriteOnce
        resources:
          requests:
            storage: 2Mi
      status:
        phase: Pending
{code}

PVC:
{code}
Status:
    Bound to volume vol41 
Capacity:
    allocated 1 GiB 
Requested Capacity:
    1 MiB 
Access Modes:
    RWO (Read-Write-Once)
{code}

EDITED: 
- adding in runtime works as expected. PVC is not there and is created.
- removing in runtime does not work as I would expect. PVC is still there


was (Author: mchoma):
[~jmesnil] was it necessary to introduce new annotation on StatefulSet. There is currently Kubernetes standard {{metadata.generation}}. I just want to make sure you have considered this option as well. 

EDITED: or the reason was recreation of StatefulSet is needed? Is recreating StatefulSet safe operation?

Anyway, it is not how I would expect to behave.  I see my changes in SS {{2Mi}}, but it is not propagated into pvc object, where there is always {{1Mi}}
 
{code}
  volumeClaimTemplates:
    - metadata:
        creationTimestamp: null
        name: operator-updated-volume
      spec:
        accessModes:
          - ReadWriteOnce
        resources:
          requests:
            storage: 2Mi
      status:
        phase: Pending
{code}

PVC:
{code}
Status:
    Bound to volume vol41 
Capacity:
    allocated 1 GiB 
Requested Capacity:
    1 MiB 
Access Modes:
    RWO (Read-Write-Once)
{code}


> Changes to PVC are not reflected in Operator
> --------------------------------------------
>
>                 Key: WFWIP-187
>                 URL: https://issues.jboss.org/browse/WFWIP-187
>             Project: WildFly WIP
>          Issue Type: Bug
>          Components: OpenShift
>            Reporter: Martin Choma
>            Assignee: Jeff Mesnil
>            Priority: Blocker
>              Labels: operator
>
> Any chnages (adding, removing or updating) made to PVC after WildFlyServer CR was created are not reflected in underlying PVC kubernetes object. 



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list