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

Latest version of ose-cli image is misbehaving

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • 4.12.z
    • oc
    • Important
    • None
    • Proposed
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Latest version of ose-cli image is misbehaving and automated etcd backups are failing.  

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

      4.12.0

      How reproducible:

      Always

      Steps to Reproduce:

      1. We've setup automated etcd backups using cronjobs.
      REF: https://access.redhat.com/solutions/5843611
      
      2. Cronjob will try to take the backups as per the schedule

      Actual results:

      These automated backups were working fine till yesterday but suddenly they are failing with:
      
      ~~~
      error: unable to get namespace namespaces "test" is forbidden: User "system:serviceaccount:sa-test:backup-etcd" cannot get resource "namespaces" in API group "" in the namespace "test"
      ~~~

       

       

       

      Expected results:

      Automated etcd backups should run as per schedule and it should complete with results like below:
      
      ~~~
      Snapshot saved at /home/core/backup//snapshot_2023-01-18_110220.db
      Deprecated: Use `etcdutl snapshot status` instead.
      
      {"hash":3038530310,"revision":8956239,"totalKey":28555,"totalSize":212643840}
      snapshot db and kube resources are successfully saved to /home/core/backup/
      ~~~

      Additional info:

      This started happening from yesterday and only before 15 hours ago this latest ose-cli image was updated so I believe some latest changes caused this issue. 

      If we use previous ose-cli image in the script the automated etcd backup script works fine.

              jchaloup@redhat.com Jan Chaloupka
              rhn-support-sambekar Shubham Ambekar (Inactive)
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: