OpenNebula / one-apps

Toolchain to build OpenNebula appliances
Apache License 2.0
12 stars 9 forks source link

MinIO appliance instantiation issue with certain disk sizes #122

Closed dgarcia18 closed 1 week ago

dgarcia18 commented 2 weeks ago

Bug when deploying the MinIO appliance. The virtual size of the appliance disk is 2,2GB, while the real disk size is 454MB.

When we try to instantiate it with less than 2.2GB disk size and get the following error from the Ceph driver:

Mon Jul  8 13:53:17 2024 [Z0][TrM][D]: Message received: TRANSFER FAILURE 1420 ERROR: clone: Command "    RBD="rbd --id oneclient"      rbd --id oneclient info onepool/one-132-1420-0 >/dev/null 2>&1 && exit 0      rbd_make_snap onepool/one-132      set -e -o pipefail      if [ "$(rbd_format onepool/one-132)" = "2" ]; then         rbd --id oneclient  clone "onepool/one-132@snap" onepool/one-132-1420-0     else         rbd --id oneclient copy onepool/one-132 onepool/one-132-1420-0     fi      if [ -n "454" -a "2048" -gt "454" ]; then         rbd --id oneclient resize onepool/one-132-1420-0 --size 2048     fi" failed: ^MCreating snap: 10% complete...^MCreating snap: 100% complete...done. rbd: shrinking an image is only allowed with the --allow-shrink flag Error cloning onepool/one-132 to onepool/one-132-1420-0 in uma-host-09

Issue probably due to the skip_resize_disk attribute in the appliance Packer script.

Aletibazo commented 1 week ago

Real disk size should be 2.2GB, fixed on linked PR.