Hi,
I am using the openstack image with libvirt/virsh.
in contrast to the AWS images (according to
https://wiki.debian.org/Cloud/SystemsComparison) apt-transport-https is
not included as a default package for openstack.
adding
apt:
sources:
docker:
source: 'deb [arch=amd64]https://download.docker.com/linux/debian stretch
stable'
will lead to:
[ 14.011339] cloud-init[469]: E: The method driver /usr/lib/apt/methods/https
could not be found.
[ 14.013524] cloud-init[469]: Cloud-init v. 0.7.9 running 'modules:config' at
Wed, 23 Jan 2019 16:28:06 +0000. Up 10.01 seconds.
[ 14.016921] cloud-init[469]: 2019-01-23 16:28:10,921 - util.py[WARNING]: Running
module apt-configure (<module 'cloudinit.config.cc_apt_configure' from
'/usr/lib/python3/dist-packages/cloudinit/config/cc_apt_configure.py'>) failed
Is there any reason not to include since it makes no sense to install it
in later stages? Or is there a way to work around this issue? (except
for using apt-get directly)
Adding the necessary code to cloud-init itself (auto-download on failure
and retry) seems to add a bit much of a complexity...
So my approach was installing apt-transport-https via guestmount. Is
there a better way?
After that I ran into the next issue when adding a key (dirmngr is
missing) ...
[ 14.460293] cloud-init[448]: Command: ['gpg', '--keyserver',
'keyserver.ubuntu.com', '--recv', '0EBFCD88']
[ 14.463206] cloud-init[448]: Stderr: gpg: failed to start the dirmngr
'/usr/bin/dirmngr': No such file or directory
I wondering if I have the right cloud image or if there are better ones
for libvirt, since patching the base images seems to be not the easiest
solution...
Thanks in advance,
Till