prashanthr2 commented on PR #14859:
URL: https://github.com/apache/cloudstack/pull/14859#issuecomment-7359273078
Verified on CloudStack 4.22.1.1, packages rebuilt from patched source
(version string unchanged at 4.22.1.1~noble). Management server and both KVM
hosts on Ubuntu 24.04.4 LTS, kernel 6.8.0-147-generic, OpenJDK 21, MySQL
8.0.46. Pure FA-X20R4 sv16-x20r4-b06-15, Purity//FA 6.10.6, REST API 2.23,
FibreChannel 32/16 Gbit, provider Flash Array.
Confirmed in the installed cloudstack-common on both KVM hosts:
```
create_from_file() {
local rc=0
if [ -b $tmpltimg ]; then
$qemu_img convert -f raw -O qcow2 "$tmpltimg" /$tmpltfs/$tmpltname
rc=$?
else
if $qemu_img info "$tmpltimg" | grep -q backing; then
$qemu_img convert -f qcow2 -O qcow2 "$tmpltimg" /$tmpltfs/$tmpltname
>& /dev/null
rc=$?
else
cp -f $tmpltimg /$tmpltfs/$tmpltname
rc=$?
fi
fi
if [ $rc -ne 0 ]
then
printf "Failed to create template /$tmpltfs/$tmpltname from $tmpltimg "
exit 4
fi
```
All three branches capture the status, including the cp path and exit 4
propagates through command.execute() so the template is not marked Ready.
4.22.1.1 captures nothing and ends exit 0 regardless, producing a
correctly-sized but empty template that only reveals itself when a VM deployed
from it reports No bootable device.
Declared as inspection rather than execution: the behavioural test requires
making the source LUN unreadable mid-operation and the code leaves nothing
ambiguous.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]