Scheduled backup jobs fail to complete successfully
search cancel

Scheduled backup jobs fail to complete successfully

book

Article ID: 321798

calendar_today

Updated On:

Products

VMware Integrated OpenStack

Issue/Introduction

  • Manual back ups work fine.
  • Log snippets are similar to what is observed below

 02 03:00:10 gs-test-vmware-oms01.lab.com  backupschedule185[539]: successfully create backup scheduled-vio-backup-20xx-yy-zz-uu-00-10 for BackupSchedule backupschedule165
 02 03:02:06  gs-test-vmware-oms01.lab.com upload[539]: failed to upload file scheduled-vio-backup-xxxx-yy-zz-uu-00-10 from directory /var/lib/backup to content library gslab-vmware-VCL01
 02 03:02:06  gs-test-vmware-oms01.lab.com  upload[539]: connection creation failed: x509: certificate signed by unknown authority
 25 10:07:23  gs-test-vmware-oms01.lab.com  vcenter-vcenter3[539]: time="20xx-yy-zzTxx:yy:zz.311Z" level=error msg="TLS validation error while connecting to 'https://www.example.com/sdk': x509: certificate signed by unknown authority" hostname=gsvmware-lab

 

Environment

7.x

Resolution

Resolved in 7.1

Workaround

Login to the Manager UI and disable vCenter certificate validation:
Openstack Deployment > <deployment name> > Manage > vCenter Credentials > Select vCenter > Edit > Ignore the vCenter Server certificate validation

 

Note: If the backup schedule was created prior to that version, update the backup schedule configuration file as below.

  1. Get the backupschedule
#viocli get backupschedule

SCHEDULE NAME STATUS CREATION DATE NAME PREFIX MAX BACKUPS RETAINED KIND LOCATION DESCRIPTION 
backupschedule322 Unknown Wed Jun 17 xx:yy:zz UTC 2020 vio7-backup 2 ContentLibrary xxx.yy.zz.uu:backupcontentlib Backups for VIO7 deployment
  1. Get the vCenter resource.
osctl get vcenter
NAME       AGE
vcenter1   3y35d
  1. Update this backupschedule and remove the lines indicated.
osctl edit backupschedule <backup_schedule_name>

---
#backupschedules.vio.vmware.com
apiVersion: v1
items:
...
  spec:
    backupSchedule: 0 3 * * *
    description: scheduled-vio-backup
    namePrefix: scheduled-vio-backup
    retentionPolicy:
      maximumNumberOfBackup: 30
    target:
      contentLibrary:
        hostname: .VCenter:vcenter759:spec.hostname <-- remove these 4 lines
        insecure: .VCenter:vcenter759:spec.insecure <--
        name: ###-###-###
        password: .VCenter:vcenter759:spec.password <--
        username: .VCenter:vcenter759:spec.username <--
      kind: contentLibrary

  1. Add vCenter resource.
target:
   kind: contentLibrary
   contentLibrary:
      name: ###-###-###
      VCenter: vcenter1 <--- add name from Step 2
  1. Save and exit.