Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-61848

Updation of label from edit label doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • 4.20.0
    • 4.18.0
    • Management Console
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • In Progress
    • Release Note Not Required
    • None
    • None
    • None
    • None
    • None

      This is a clone of issue OCPBUGS-61087. The following is the description of the original issue:

      Description of problem:

      Updation of  label from edit label doesn't work, can only be set from yaml.screenshot attached
      
      There are two cases to note:    
      This command works as expected: (UI worked fine)oc label vmcf ccxz.testing instancetype.kubevirt.io/cpu=500    
      
      However, this version is silently ignored by the UI:oc label vmcf ccxz.testing instancetype.kubevirt.io/cpu: '500'
      
      The issue is that if there's a problem with the label format, the UI fails silently. As a user, it still appears as if the label was successfully added which can be misleading.
      when overwriting a label, the system does not prompt or double-check before applying the change. On the CLI, overwriting requires an explicit --overwrite flag, which acts as a safeguard. It would be better if the UI also prompted before overwriting or provided a visible warning to prevent accidental changes.

      Version-Release number of selected component (if applicable):

      4.19

      How reproducible:

       

      Steps to Reproduce:

      1.
      2.
      3.
      

      Actual results:

       

      Expected results:

       

      Additional info:

      $ oc label vmcf ccxz.testing instancetype.kubevirt.io/cpu: '500'
      error: at least one label update is required
      
      [cloud-user@ocp-psi-executor-xl ~]$ oc label vmcf ccxz.testing instancetype.kubevirt.io/cpu=500
      virtualmachineclusterinstancetype.instancetype.kubevirt.io/ccxz.testing labeled
      
      [cloud-user@ocp-psi-executor-xl ~]$ oc label vmcf ccxz.testing instancetype.kubevirt.io/cpu=500 instancetype.kubevirt.io/cpu=700
      error: 'instancetype.kubevirt.io/cpu' already has a value (400), and --overwrite is false
      

              rh-ee-mziska Marek Ziska (Inactive)
              upalatuc@redhat.com Ugo Palatucci
              None
              None
              Xiyun Zhao Xiyun Zhao
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: