ansible-devops
ansible-devops copied to clipboard
Backup-Restore Missing Environment Variables
Collection version
22.3.2
Environment information
ansible 8.7.0
ansible-core 2.15.12
What happened?
This ticket is reopening #1430 -- more variables are missing in the scheduled job.
I suspect the line in ansible-devops/ibm/mas_devops/common_tasks/backup_restore/create_run_tasks_job.yml which is responsible for populating the MASBR_
variables is not working as intended.
Relevant log output
Pods Statuses: 0 Active (0 Ready) / 0 Succeeded / 2 Failed
Pod Template:
Labels: batch.kubernetes.io/controller-uid=9d3d2328-e245-4fba-89d8-74b20263b849
batch.kubernetes.io/job-name=schedule-full-20240821230439-28739765
controller-uid=9d3d2328-e245-4fba-89d8-74b20263b849
job-name=schedule-full-20240821230439-28739765
mas.ibm.com/masbr=
masbr-type=schedule
Service Account: masbr-sa
Containers:
main:
Image: quay.io/ibmmas/cli:latest
Port: <none>
Host Port: <none>
Command:
sh
-c
ROLE_NAME=suite_backup_restore ansible-playbook ibm.mas_devops.run_role
Environment:
ANSIBLE_LOG_PATH: /tmp/ansible.log
MASBR_CONFIRM_CLUSTER: false
MASBR_CREATE_TASK_JOB: false
MASBR_RUNNING_IN_TASK_JOB: true
MASBR_TASK_JOB_NAMESPACE: mas-max-core
MASBR_TASK_JOB_NAME: schedule-full-20240821230439
MASBR_JOB_VERSION: 20240821230438
MAS_INSTANCE_ID: max
MASBR_STORAGE_CLOUD_RCLONE_FILE: /mnt/configmap/rclone.conf
Mounts:
/mnt/configmap from cm-volume (ro)