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

Old kubeaadmin cert not get deleted when host IP changed in microshift

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • None
    • 4.14
    • MicroShift
    • None
    • No
    • False
    • Hide

      None

      Show
      None
    • Hide
      *Cause*: Changing IP results in leaving kubeconfigs for the old IP on disk.
      *Consequence*: These kubeconfigs are unusable because they target an IP that does not belong to MicroShift anymore.
      *Fix*: Delete pld kubeconfigs when the IP changes.
      *Result*: Bug doesn’t present anymore.
      Show
      *Cause*: Changing IP results in leaving kubeconfigs for the old IP on disk. *Consequence*: These kubeconfigs are unusable because they target an IP that does not belong to MicroShift anymore. *Fix*: Delete pld kubeconfigs when the IP changes. *Result*: Bug doesn’t present anymore.
    • Bug Fix

      Description of problem:

      Old kubeaadmin cert not get deleted when host IP changed in microshift

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

      4.14

      How reproducible:

      Always

      Steps to Reproduce:

      1. modify /etc/NetworkManager/system-connections/ens3.nmconnection with
      [ipv4]
      address1=x.x.x.x/24,x.x.x.x
      method=manualsave file and reboot. It currently does dhcp (method=auto) 
      2. systemctl restart microshift
      3. ls -ltrh /var/lib/microshift/resources/kubeadmin/*/
      

      Actual results:

      /var/lib/microshift/resources/kubeadmin/dhcp-1-235-106.arm.eng.rdu2.redhat.com/: total 8.0K -rw-------. 1 root root 5.6K Jul 3 08:03 kubeconfig /var/lib/microshift/resources/kubeadmin/dhcp-1-235-91.arm.eng.rdu2.redhat.com/: total 8.0K -rw-------. 1 root root 5.6K Jul 3 08:03 kubeconfigIt should not leave old kubeconfig 

      Expected results:

      Old one should be deleted. 

      Additional info:

       

       

              pacevedo@redhat.com Pablo Acevedo Montserrat
              rhn-support-rgangwar Rahul Gangwar
              Rahul Gangwar Rahul Gangwar
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: