Skip to content

Error message in the VM log after cancelling the backup #6981

@OpenNebulaSupport

Description

@OpenNebulaSupport

Description
Execution of the onevm backup-canel command leads to the following error message in the log:

Thu Mar 13 13:30:09 2025 [Z0][VMM][I]: rbd --id oneadmin snap ls one/one-4-0-2 --format json |     jq -r '.[] | select(.name | startswith("one_backup_")) .name' |     xargs -rn1 sh -c '    
     rbd --id oneadmin snap unprotect one/one-4-0-2@$1 > /dev/null 2>&1 || true;         rbd --id oneadmin snap rm one/one-4-0-2@$1;     ' sh
Thu Mar 13 13:30:09 2025 [Z0][VMM][I]: 
Thu Mar 13 13:30:09 2025 [Z0][VMM][I]: /var/lib/one/remotes/tm/lib/tm_action.rb:126:in `ssh': undefined method `gsub' for nil:NilClass (NoMethodError)
Thu Mar 13 13:30:09 2025 [Z0][VMM][I]: from /var/lib/one/remotes/tm/ceph/prebackup_live:91:in `<main>'
Thu Mar 13 13:30:09 2025 [Z0][VMM][I]: Successfully execute transfer manager driver operation: postbackup_live.
Thu Mar 13 13:30:09 2025 [Z0][VMM][I]: Failed to execute transfer manager driver operation: prebackup_live.
Thu Mar 13 13:30:09 2025 [Z0][VMM][E]: BACKUP: #<Thread:0x00007f220c94a158 /usr/lib/one/ruby/CommandManager.rb:147 run> terminated with exception (report_on_exception is true): /usr/lib/one/ruby/CommandManager.rb:147:in `read': stream closed in another thread (IOError)        from /usr/lib/one/ruby/CommandManager.rb:147:in `block (2 levels) in capture3_timeout' #<Thread:0x00007f220c949ff0 /usr/lib/one/ruby/CommandManager.rb:148 run> terminated with exception (report_on_exception is true): /usr/lib/one/ruby/CommandManager.rb:148:in `read': stream closed in another thread (IOError)     from /usr/lib/one/ruby/CommandManager.rb:148:in `block (2 levels) in capture3_timeout' ERROR: prebackup_live: Command failed: export LANG=C export LC_ALL=C set -ex -o pipefail  # ---------------------- # Prepare backup folder # ---------------------- [ -d /var/lib/one//datastores/0/0/backup ] && rm -rf /var/lib/one//datastores/0/0/backup  mkdir -p /var/lib/one//datastores/0/0/backup  echo "P....cut.....

To Reproduce
Create ceph-based DS (have not tried another type of DS)
Create backup DS (I used restic one)
Create the VM with one image on the ceph DS
Instantiate the backup operation:

onevm backup --schedule now -d 101 0

Cancel the backup operation:

onevm backup-cancel 0

Expected behavior
No error message appears in the VM log.

Details

  • Affected Component: Storage
  • Hypervisor: KVM
  • Version: 6.10.3

Additional context
The error message contains partially the same lines as in #3229 bug but I am not sure if the root cause is the same.

Progress Status

  • Code committed
  • Testing - QA
  • Documentation (Release notes - resolved issues, compatibility, known issues)

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions