Hi,

I used a VM machine on the cloud with a good connexion to build the image but, it didn't work for me so far :
I get this error while constructing the image :

2022-04-10 08:55:25.497 | + install_deb_packages install iscsi-initiator-utils
2022-04-10 08:55:25.497 | + DEBIAN_FRONTEND=noninteractive
2022-04-10 08:55:25.497 | + http_proxy=
2022-04-10 08:55:25.497 | + https_proxy=
2022-04-10 08:55:25.497 | + no_proxy=
2022-04-10 08:55:25.497 | + apt-get --option Dpkg::Options::=--force-confold --option Dpkg::Options::=--force-confdef --assume-yes install iscsi-initiator-utils
2022-04-10 08:55:25.541 | Reading package lists...
2022-04-10 08:55:25.788 | Building dependency tree...
2022-04-10 08:55:25.788 | Reading state information...
2022-04-10 08:55:25.825 | E: Unable to locate package iscsi-initiator-utils
2022-04-10 08:55:25.838 | ++ diskimage_builder/lib/img-functions:run_in_target:59                             :   check_break after-error run_in_target bash
2022-04-10 08:55:25.843 | ++ diskimage_builder/lib/common-functions:check_break:143                           :   echo ''
2022-04-10 08:55:25.844 | ++ diskimage_builder/lib/common-functions:check_break:143                           :   egrep -e '(,|^)after-error(,|$)' -q
2022-04-10 08:55:25.851 | + diskimage_builder/lib/img-functions:run_in_target:1                              :   trap_cleanup
2022-04-10 08:55:25.855 | + diskimage_builder/lib/img-functions:trap_cleanup:36
 
I am not an Ubuntu person but I think the package's name is open-iscsi.

This is the command I used to build the image :  ./trovestack build-image ubuntu bionic true ubuntu /home/stack/trove-xena-guest-ubuntu-bionic-dev.qcow2
My OS is a Centos 8 Stream. you can find the whole log of the operation attached.

Thanks in advance.

Regards.

Le jeu. 7 avr. 2022 à 16:02, Clark Boylan <cboylan@sapwetik.org> a écrit :
On Thu, Apr 7, 2022, at 6:38 AM, wodel youchi wrote:
> Hi,
> I found the error, Rocky is not supported for, so I switched to CentOS
> machine. The script starts but I had two problems :
> The  trovestack script searches for a package named qemu and don't find
> it, so I modified the script to use qemu* instead of qemu
>
> The second problem is related to the download itself, I have this error
> :
> 2022-04-07 13:18:02.677 | Caching guest-agent from
> https://opendev.org/openstack/trove in /home/deployer/.cache/
> image-create/source-repositories/guest_agent_842a440b9b12731c50f3b4042bf842ea7e58467d
> 2022-04-07 13:22:31.299 | error: RPC failed; curl 18 transfer closed
> with outstanding read data remaining
> 2022-04-07 13:22:31.299 | error: 6149 bytes of body are still expected
> 2022-04-07 13:22:31.300 | fetch-pack: unexpected disconnect while
> reading sideband packet
> 2022-04-07 13:22:31.300 | fatal: early EOF
> 2022-04-07 13:22:31.301 | fatal: fetch-pack: invalid index-pack output
>
> Any ideas?

This is related to cloning and caching the https://opendev.org/openstack/trove git repo during the image build for the trove database image. This looks like a network error of some sort with the connection ending before it was completed. You might want to double check any proxies or firewalls between you and https://opendev.org. It may have also been the Internet acting up and trying again would be fine. I would try again and if it persists start looking at network connectivity between you and https://opendev.org and take it from there.

>
> Regards.