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

microshift show-config command is confusing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • None
    • 4.14
    • MicroShift
    • None
    • No
    • uShift Sprint 236, uShift Sprint 237
    • 2
    • False
    • Hide

      None

      Show
      None
    • Changed the behavior of the `microshift show-config` command to show the effective configuration by default.
    • Enhancement
    • Done

      Description of problem:

      microshift show-config command is confusing when we change the microshift config, then microshift show-config doesn't show config change after and before restart of microshift. It shows only change when we use  microshift show-config --mode effective. It is confusing for end users to find which show correct output. It should be better both command show config change.

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

      4.14

      How reproducible:

      Always
      

       

      Steps to Reproduce:

      1. Change microshift config and run below command.
      microshift show-config apiServer:   advertiseAddress: 10.44.0.0   subjectAltNames:   - dhcp-1-235-5.arm.eng.rdu2.redhat.com debugging:   logLevel: Normal dns:   baseDomain: example.com etcd:   memoryLimitMB: 0 manifests:   kustomizePaths:   - /usr/lib/microshift/manifests   - /usr/lib/microshift/manifests.d/*   - /etc/microshift/manifests   - /etc/microshift/manifests.d/* network:   clusterNetwork:   - 10.42.0.0/16   serviceNetwork:   - 10.43.0.0/16   serviceNodePortRange: 30000-32767 node:   hostnameOverride: dhcp-1-235-5.arm.eng.rdu2.redhat.com   nodeIP: 10.1.235.5
      2. Restart microshift
      3. Check microshift config from below command
      microshift show-config apiServer:   advertiseAddress: 10.44.0.0   subjectAltNames:   - dhcp-1-235-5.arm.eng.rdu2.redhat.com debugging:   logLevel: Normal dns:   baseDomain: example.com etcd:   memoryLimitMB: 0 manifests:   kustomizePaths:   - /usr/lib/microshift/manifests   - /usr/lib/microshift/manifests.d/*   - /etc/microshift/manifests   - /etc/microshift/manifests.d/* network:   clusterNetwork:   - 10.42.0.0/16   serviceNetwork:   - 10.43.0.0/16   serviceNodePortRange: 30000-32767 node:   hostnameOverride: dhcp-1-235-5.arm.eng.rdu2.redhat.com   nodeIP: 10.1.235.5
      
      
      It shows correct when we use
      microshift show-config --mode effective apiServer:   advertiseAddress: 10.44.0.0   subjectAltNames:   - dhcp-1-235-5.arm.eng.rdu2.redhat.com debugging:   logLevel: Normal dns:   baseDomain: example.com etcd:   memoryLimitMB: 0 manifests:   kustomizePaths:   - /etc/microshift/manifests.d/   - /usr/lib/microshift/manifests.d/   - /var/lib/microshift/manifests/   - /etc/microshift/manifests.d/my-app/*/   - /etc/microshift/manifests.d/my-app/*/patches/ network:   clusterNetwork:   - 10.42.0.0/16   serviceNetwork:   - 10.43.0.0/16   serviceNodePortRange: 30000-32767 node:   hostnameOverride: dhcp-1-235-5.arm.eng.rdu2.redhat.com   nodeIP: 10.1.235.5
       
      

       

      It should show correct config in both

       

      microshift show-config and microshift show-config --mode effective
       
      

      Actual results:

      microshift show-config 
      apiServer:
        advertiseAddress: 10.44.0.0
        subjectAltNames:
        - dhcp-1-235-5.arm.eng.rdu2.redhat.com
      debugging:
        logLevel: Normal
      dns:
        baseDomain: example.com
      etcd:
        memoryLimitMB: 0
      manifests:
        kustomizePaths:
        - /usr/lib/microshift/manifests
        - /usr/lib/microshift/manifests.d/*
        - /etc/microshift/manifests
        - /etc/microshift/manifests.d/*
      network:
        clusterNetwork:
        - 10.42.0.0/16
        serviceNetwork:
        - 10.43.0.0/16
        serviceNodePortRange: 30000-32767
      node:
        hostnameOverride: dhcp-1-235-5.arm.eng.rdu2.redhat.com
        nodeIP: 10.1.235.5

      Expected results:

       microshift show-config 
      apiServer:
        advertiseAddress: 10.44.0.0
        subjectAltNames:
        - dhcp-1-235-5.arm.eng.rdu2.redhat.com
      debugging:
        logLevel: Normal
      dns:
        baseDomain: example.com
      etcd:
        memoryLimitMB: 0
      manifests:
        kustomizePaths:
        - /etc/microshift/manifests.d/
        - /usr/lib/microshift/manifests.d/
        - /var/lib/microshift/manifests/
        - /etc/microshift/manifests.d/my-app/*/
        - /etc/microshift/manifests.d/my-app/*/patches/
      network:
        clusterNetwork:
        - 10.42.0.0/16
        serviceNetwork:
        - 10.43.0.0/16
        serviceNodePortRange: 30000-32767
      node:
        hostnameOverride: dhcp-1-235-5.arm.eng.rdu2.redhat.com
        nodeIP: 10.1.235.5

      Additional info:

       

            dhellman@redhat.com Doug Hellmann
            rhn-support-rgangwar Rahul Gangwar
            Rahul Gangwar Rahul Gangwar
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: