Management Plane Upgrade From v-5.3.0-1715805 to v-5.3.0-1762883 Failed with Error "error creating vm error resizing DU image disk exit status 1"
Problem
Management Plane upgrade from v-5.3.0-1715805 to v-5.3.0-1762883 failed with error "error creating vm error resizing DU image disk exit status 1".
x
$ /opt/pf9/airctl/airctl upgrade --disk /opt/pf9/airctl/du-v-5.3.0-1762883.qcow2 --config /opt/pf9/airctl/conf/airctl-config.yaml
rollback state directory: /tmp/airctl_backup_334347069
--- backing up management plane ---
backup saved to /tmp/airctl_backup_334347069/backup.tar.gz
--- deleting configuration state ---
--- moving old state file to /tmp/airctl_backup_334347069/state.yaml ---
--- saving VM XML to /tmp/airctl_backup_334347069/domain.xml ---
--- saving network XML to /tmp/airctl_backup_334347069/net.xml ---
--- deleting management plane ---
old disk image (will NOT be deleted): /opt/pf9/airctl/du.qcow2
old ISO image (will NOT be deleted): /home/xyz_admin/.airctl/cloud-init-2021-10-14T09:58:10Z.iso
done
--- creating new management plane ---
fatal error: failed to upgrade: error creating vm error resizing DU image disk exit status 1
Environment
- Platform9 Edge Cloud - v5.3 and Above
Answer
The upgrade failed as install.sh was executed with root user and upgrade was executed with non-root user which resulted in conflicting permissions. On performing rollback and retrying the upgrade with correct file permissions, the upgrade succeeded.
$ /opt/pf9/airctl/airctl upgrade --disk /opt/pf9/airctl/du-v-5.3.0-1762883.qcow2 --config /opt/pf9/airctl/conf/airctl-config.yaml
rollback state directory: /tmp/airctl_backup_330328896
--- backing up management plane ---
backup saved to /tmp/airctl_backup_330328896/backup.tar.gz
--- deleting configuration state ---
--- moving old state file to /tmp/airctl_backup_330328896/state.yaml ---
--- saving VM XML to /tmp/airctl_backup_330328896/domain.xml ---
--- saving network XML to /tmp/airctl_backup_330328896/net.xml ---
--- deleting management plane ---
old disk image (will NOT be deleted): /opt/pf9/airctl/du.qcow2
old ISO image (will NOT be deleted): /home/xyz_admin/.airctl/cloud-init-2021-10-14T09:58:10Z.iso
done
--- creating new management plane ---
--- restoring from backup ---
starting management plane ...
preparing configuration database for restore operation ...
restoring configuration database ...
NTP settings migrated successfully
preparing management plane for restore operation ...
192.168.120.254] Error creating ssh client using ssh user : centos, retrying...
restoring main database ...
re-configuring the management plane ...
44% |█████████████████ | [6m4s:10m8s]
restore operation completed successfully
--- persisting configuration to disk ---
--- upgrade complete ---
upgrade done
##
Was this page helpful?