>>> cloud-init: Building community/cloud-init 23.4.4-r0 (using abuild 3.12.0-r0) started Thu, 04 Apr 2024 13:43:15 +0000 >>> cloud-init: Checking sanity of /home/buildozer/aports/community/cloud-init/APKBUILD... >>> WARNING: cloud-init: No maintainer >>> cloud-init: Analyzing dependencies... >>> cloud-init: Installing for build: build-base blkid cloud-utils-growpart iproute2-minimal python3 py3-configobj py3-jinja2 py3-jsonpatch py3-jsonschema py3-netifaces py3-requests py3-yaml shadow tzdata py3-setuptools bash coreutils grep lsblk parted procps-ng py3-passlib py3-pyserial py3-pytest py3-pytest-mock py3-responses py3-tox sfdisk sgdisk (1/126) Installing libblkid (2.39.3-r0) (2/126) Installing blkid (2.39.3-r0) (3/126) Installing libsmartcols (2.39.3-r0) (4/126) Installing partx (2.39.3-r0) (5/126) Installing libuuid (2.39.3-r0) (6/126) Installing libfdisk (2.39.3-r0) (7/126) Installing sfdisk (2.39.3-r0) (8/126) Installing cloud-utils-growpart (0.33-r0) (9/126) Installing libelf (0.190-r1) (10/126) Installing libmnl (1.0.5-r2) (11/126) Installing iproute2-minimal (6.6.0-r0) (12/126) Installing libbz2 (1.0.8-r6) (13/126) Installing libffi (3.4.4-r3) (14/126) Installing gdbm (1.23-r1) (15/126) Installing xz-libs (5.4.5-r0) (16/126) Installing mpdecimal (2.5.1-r2) (17/126) Installing libpanelw (6.4_p20231125-r0) (18/126) Installing readline (8.2.1-r2) (19/126) Installing sqlite-libs (3.44.2-r0) (20/126) Installing python3 (3.11.8-r0) (21/126) Installing python3-pycache-pyc0 (3.11.8-r0) (22/126) Installing pyc (3.11.8-r0) (23/126) Installing python3-pyc (3.11.8-r0) (24/126) Installing py3-six (1.16.0-r8) (25/126) Installing py3-six-pyc (1.16.0-r8) (26/126) Installing py3-configobj (5.0.8-r1) (27/126) Installing py3-configobj-pyc (5.0.8-r1) (28/126) Installing py3-markupsafe (2.1.3-r0) (29/126) Installing py3-markupsafe-pyc (2.1.3-r0) (30/126) Installing py3-jinja2 (3.1.2-r3) (31/126) Installing py3-jinja2-pyc (3.1.2-r3) (32/126) Installing py3-jsonpointer (2.4-r0) (33/126) Installing py3-jsonpointer-pyc (2.4-r0) (34/126) Installing py3-jsonpatch (1.33-r0) (35/126) Installing py3-jsonpatch-pyc (1.33-r0) (36/126) Installing py3-attrs (23.1.0-r1) (37/126) Installing py3-attrs-pyc (23.1.0-r1) (38/126) Installing py3-rpds-py (0.10.6-r0) (39/126) Installing py3-rpds-py-pyc (0.10.6-r0) (40/126) Installing py3-referencing (0.31.1-r0) (41/126) Installing py3-referencing-pyc (0.31.1-r0) (42/126) Installing py3-jsonschema-specifications (2023.07.1-r1) (43/126) Installing py3-jsonschema-specifications-pyc (2023.07.1-r1) (44/126) Installing py3-jsonschema (4.20.0-r0) (45/126) Installing py3-jsonschema-pyc (4.20.0-r0) (46/126) Installing py3-netifaces (0.11.0-r2) (47/126) Installing py3-certifi (2024.2.2-r0) (48/126) Installing py3-certifi-pyc (2024.2.2-r0) (49/126) Installing py3-charset-normalizer (3.3.2-r0) (50/126) Installing py3-charset-normalizer-pyc (3.3.2-r0) (51/126) Installing py3-idna (3.6-r0) (52/126) Installing py3-idna-pyc (3.6-r0) (53/126) Installing py3-urllib3 (1.26.18-r0) (54/126) Installing py3-urllib3-pyc (1.26.18-r0) (55/126) Installing py3-requests (2.31.0-r1) (56/126) Installing py3-requests-pyc (2.31.0-r1) (57/126) Installing yaml (0.2.5-r2) (58/126) Installing py3-yaml (6.0.1-r1) (59/126) Installing py3-yaml-pyc (6.0.1-r1) (60/126) Installing libmd (1.1.0-r0) (61/126) Installing libbsd (0.11.7-r3) (62/126) Installing skalibs (2.14.0.1-r0) (63/126) Installing utmps-libs (0.1.2.2-r0) (64/126) Installing linux-pam (1.5.3-r7) (65/126) Installing shadow (4.14.2-r0) (66/126) Installing tzdata (2024a-r0) (67/126) Installing py3-parsing (3.1.1-r0) (68/126) Installing py3-parsing-pyc (3.1.1-r0) (69/126) Installing py3-packaging (23.2-r0) (70/126) Installing py3-packaging-pyc (23.2-r0) (71/126) Installing py3-setuptools (68.2.2-r0) (72/126) Installing py3-setuptools-pyc (68.2.2-r0) (73/126) Installing bash (5.2.21-r0) Executing bash-5.2.21-r0.post-install (74/126) Installing coreutils-env (9.4-r2) (75/126) Installing coreutils-fmt (9.4-r2) (76/126) Installing coreutils-sha512sum (9.4-r2) (77/126) Installing coreutils (9.4-r2) (78/126) Installing grep (3.11-r0) (79/126) Installing libmount (2.39.3-r0) (80/126) Installing lsblk (2.39.3-r0) (81/126) Installing device-mapper-libs (2.03.23-r0) (82/126) Installing parted (3.6-r2) (83/126) Installing libintl (0.22.3-r0) (84/126) Installing libproc2 (4.0.4-r0) (85/126) Installing procps-ng (4.0.4-r0) (86/126) Installing py3-passlib (1.7.4-r4) (87/126) Installing py3-passlib-pyc (1.7.4-r4) (88/126) Installing py3-pyserial (3.5-r6) (89/126) Installing py3-pyserial-pyc (3.5-r6) (90/126) Installing py3-iniconfig (1.1.1-r7) (91/126) Installing py3-iniconfig-pyc (1.1.1-r7) (92/126) Installing py3-pluggy (1.3.0-r0) (93/126) Installing py3-pluggy-pyc (1.3.0-r0) (94/126) Installing py3-py (1.11.0-r2) (95/126) Installing py3-py-pyc (1.11.0-r2) (96/126) Installing py3-pytest (7.4.3-r0) (97/126) Installing py3-pytest-pyc (7.4.3-r0) (98/126) Installing py3-mock (5.1.0-r0) (99/126) Installing py3-mock-pyc (5.1.0-r0) (100/126) Installing py3-pytest-mock (3.10.0-r2) (101/126) Installing py3-pytest-mock-pyc (3.10.0-r2) (102/126) Installing py3-toml (0.10.2-r6) (103/126) Installing py3-toml-pyc (0.10.2-r6) (104/126) Installing py3-responses (0.23.3-r0) (105/126) Installing py3-responses-pyc (0.23.3-r0) (106/126) Installing py3-cachetools (5.3.2-r0) (107/126) Installing py3-cachetools-pyc (5.3.2-r0) (108/126) Installing py3-chardet (5.2.0-r0) (109/126) Installing py3-chardet-pyc (5.2.0-r0) (110/126) Installing py3-colorama (0.4.6-r3) (111/126) Installing py3-colorama-pyc (0.4.6-r3) (112/126) Installing py3-filelock (3.12.4-r0) (113/126) Installing py3-filelock-pyc (3.12.4-r0) (114/126) Installing py3-platformdirs (4.0.0-r0) (115/126) Installing py3-platformdirs-pyc (4.0.0-r0) (116/126) Installing py3-pyproject-api (1.6.1-r0) (117/126) Installing py3-pyproject-api-pyc (1.6.1-r0) (118/126) Installing py3-distlib (0.3.7-r2) (119/126) Installing py3-distlib-pyc (0.3.7-r2) (120/126) Installing py3-virtualenv (20.24.6-r0) (121/126) Installing py3-virtualenv-pyc (20.24.6-r0) (122/126) Installing py3-tox (4.6.4-r0) (123/126) Installing py3-tox-pyc (4.6.4-r0) (124/126) Installing sgdisk (1.0.9-r4) (125/126) Installing .makedepends-cloud-init (20240404.134316) (126/126) Installing ifupdown-ng-iproute2 (0.12.1-r4) Executing busybox-1.36.1-r15.trigger OK: 357 MiB in 229 packages >>> cloud-init: Cleaning up srcdir >>> cloud-init: Cleaning up pkgdir >>> cloud-init: Cleaning up tmpdir >>> cloud-init: Fetching https://distfiles.alpinelinux.org/distfiles/v3.19//cloud-init-23.4.4.tar.gz >>> cloud-init: Fetching https://distfiles.alpinelinux.org/distfiles/v3.19//cloud-init-23.4.4.tar.gz >>> cloud-init: Checking sha512sums... cloud-init-23.4.4.tar.gz: OK 01-oauthlib-remove.patch: OK 02-disable-irrelevant-modules.patch: OK 03-hook-hotplug-sh.patch: OK 04-set-default-datasource-list.patch: OK cloud-init-hotplugd: OK cloud-init-hotplugd.initd: OK cloud-init.logrotate: OK interfaces: OK setup-cloud-init: OK README.Alpine: OK >>> cloud-init: Unpacking /var/cache/distfiles/cloud-init-23.4.4.tar.gz... >>> cloud-init: 01-oauthlib-remove.patch patching file requirements.txt >>> cloud-init: 02-disable-irrelevant-modules.patch patching file config/cloud.cfg.tmpl >>> cloud-init: 03-hook-hotplug-sh.patch patching file tools/hook-hotplug >>> cloud-init: 04-set-default-datasource-list.patch patching file config/cloud.cfg.tmpl running build running build_py creating build creating build/lib creating build/lib/cloudinit copying cloudinit/__init__.py -> build/lib/cloudinit copying cloudinit/url_helper.py -> build/lib/cloudinit copying cloudinit/registry.py -> build/lib/cloudinit copying cloudinit/temp_utils.py -> build/lib/cloudinit copying cloudinit/log.py -> build/lib/cloudinit copying cloudinit/persistence.py -> build/lib/cloudinit copying cloudinit/subp.py -> build/lib/cloudinit copying cloudinit/atomic_helper.py -> build/lib/cloudinit copying cloudinit/user_data.py -> build/lib/cloudinit copying cloudinit/features.py -> build/lib/cloudinit copying cloudinit/netinfo.py -> build/lib/cloudinit copying cloudinit/simpletable.py -> build/lib/cloudinit copying cloudinit/dmi.py -> build/lib/cloudinit copying cloudinit/version.py -> build/lib/cloudinit copying cloudinit/safeyaml.py -> build/lib/cloudinit copying cloudinit/templater.py -> build/lib/cloudinit copying cloudinit/warnings.py -> build/lib/cloudinit copying cloudinit/cloud.py -> build/lib/cloudinit copying cloudinit/apport.py -> build/lib/cloudinit copying cloudinit/event.py -> build/lib/cloudinit copying cloudinit/stages.py -> build/lib/cloudinit copying cloudinit/signal_handler.py -> build/lib/cloudinit copying cloudinit/ssh_util.py -> build/lib/cloudinit copying cloudinit/importer.py -> build/lib/cloudinit copying cloudinit/gpg.py -> build/lib/cloudinit copying cloudinit/util.py -> build/lib/cloudinit copying cloudinit/settings.py -> build/lib/cloudinit copying cloudinit/helpers.py -> build/lib/cloudinit copying cloudinit/type_utils.py -> build/lib/cloudinit creating build/lib/cloudinit/handlers copying cloudinit/handlers/__init__.py -> build/lib/cloudinit/handlers copying cloudinit/handlers/jinja_template.py -> build/lib/cloudinit/handlers copying cloudinit/handlers/cloud_config.py -> build/lib/cloudinit/handlers copying cloudinit/handlers/boot_hook.py -> build/lib/cloudinit/handlers copying cloudinit/handlers/shell_script_by_frequency.py -> build/lib/cloudinit/handlers copying cloudinit/handlers/shell_script.py -> build/lib/cloudinit/handlers creating build/lib/cloudinit/mergers copying cloudinit/mergers/__init__.py -> build/lib/cloudinit/mergers copying cloudinit/mergers/m_str.py -> build/lib/cloudinit/mergers copying cloudinit/mergers/m_list.py -> build/lib/cloudinit/mergers copying cloudinit/mergers/m_dict.py -> build/lib/cloudinit/mergers creating build/lib/cloudinit/net copying cloudinit/net/__init__.py -> build/lib/cloudinit/net copying cloudinit/net/bsd.py -> build/lib/cloudinit/net copying cloudinit/net/activators.py -> build/lib/cloudinit/net copying cloudinit/net/renderer.py -> build/lib/cloudinit/net copying cloudinit/net/network_manager.py -> build/lib/cloudinit/net copying cloudinit/net/network_state.py -> build/lib/cloudinit/net copying cloudinit/net/eni.py -> build/lib/cloudinit/net copying cloudinit/net/cmdline.py -> build/lib/cloudinit/net copying cloudinit/net/freebsd.py -> build/lib/cloudinit/net copying cloudinit/net/networkd.py -> build/lib/cloudinit/net copying cloudinit/net/udev.py -> build/lib/cloudinit/net copying cloudinit/net/renderers.py -> build/lib/cloudinit/net copying cloudinit/net/netplan.py -> build/lib/cloudinit/net copying cloudinit/net/ephemeral.py -> build/lib/cloudinit/net copying cloudinit/net/netbsd.py -> build/lib/cloudinit/net copying cloudinit/net/dhcp.py -> build/lib/cloudinit/net copying cloudinit/net/sysconfig.py -> build/lib/cloudinit/net copying cloudinit/net/openbsd.py -> build/lib/cloudinit/net creating build/lib/cloudinit/cmd copying cloudinit/cmd/__init__.py -> build/lib/cloudinit/cmd copying cloudinit/cmd/query.py -> build/lib/cloudinit/cmd copying cloudinit/cmd/status.py -> build/lib/cloudinit/cmd copying cloudinit/cmd/cloud_id.py -> build/lib/cloudinit/cmd copying cloudinit/cmd/main.py -> build/lib/cloudinit/cmd copying cloudinit/cmd/clean.py -> build/lib/cloudinit/cmd creating build/lib/cloudinit/reporting copying cloudinit/reporting/__init__.py -> build/lib/cloudinit/reporting copying cloudinit/reporting/handlers.py -> build/lib/cloudinit/reporting copying cloudinit/reporting/events.py -> build/lib/cloudinit/reporting creating build/lib/cloudinit/filters copying cloudinit/filters/__init__.py -> build/lib/cloudinit/filters copying cloudinit/filters/launch_index.py -> build/lib/cloudinit/filters creating build/lib/cloudinit/distros copying cloudinit/distros/__init__.py -> build/lib/cloudinit/distros copying cloudinit/distros/photon.py -> build/lib/cloudinit/distros copying cloudinit/distros/amazon.py -> build/lib/cloudinit/distros copying cloudinit/distros/dragonflybsd.py -> build/lib/cloudinit/distros copying cloudinit/distros/sle-micro.py -> build/lib/cloudinit/distros copying cloudinit/distros/almalinux.py -> build/lib/cloudinit/distros copying cloudinit/distros/openmandriva.py -> build/lib/cloudinit/distros copying cloudinit/distros/debian.py -> build/lib/cloudinit/distros copying cloudinit/distros/bsd.py -> build/lib/cloudinit/distros copying cloudinit/distros/eurolinux.py -> build/lib/cloudinit/distros copying cloudinit/distros/bsd_utils.py -> build/lib/cloudinit/distros copying cloudinit/distros/ug_util.py -> build/lib/cloudinit/distros copying cloudinit/distros/gentoo.py -> build/lib/cloudinit/distros copying cloudinit/distros/mariner.py -> build/lib/cloudinit/distros copying cloudinit/distros/rhel.py -> build/lib/cloudinit/distros copying cloudinit/distros/ubuntu.py -> build/lib/cloudinit/distros copying cloudinit/distros/virtuozzo.py -> build/lib/cloudinit/distros copying cloudinit/distros/opensuse-tumbleweed.py -> build/lib/cloudinit/distros copying cloudinit/distros/rocky.py -> build/lib/cloudinit/distros copying cloudinit/distros/networking.py -> build/lib/cloudinit/distros copying cloudinit/distros/opensuse.py -> build/lib/cloudinit/distros copying cloudinit/distros/suse.py -> build/lib/cloudinit/distros copying cloudinit/distros/sle_hpc.py -> build/lib/cloudinit/distros copying cloudinit/distros/freebsd.py -> build/lib/cloudinit/distros copying cloudinit/distros/sles.py -> build/lib/cloudinit/distros copying cloudinit/distros/cloudlinux.py -> build/lib/cloudinit/distros copying cloudinit/distros/alpine.py -> build/lib/cloudinit/distros copying cloudinit/distros/TencentOS.py -> build/lib/cloudinit/distros copying cloudinit/distros/miraclelinux.py -> build/lib/cloudinit/distros copying cloudinit/distros/net_util.py -> build/lib/cloudinit/distros copying cloudinit/distros/netbsd.py -> build/lib/cloudinit/distros copying cloudinit/distros/openeuler.py -> build/lib/cloudinit/distros copying cloudinit/distros/opensuse-microos.py -> build/lib/cloudinit/distros copying cloudinit/distros/arch.py -> build/lib/cloudinit/distros copying cloudinit/distros/opensuse-leap.py -> build/lib/cloudinit/distros copying cloudinit/distros/cos.py -> build/lib/cloudinit/distros copying cloudinit/distros/fedora.py -> build/lib/cloudinit/distros copying cloudinit/distros/rhel_util.py -> build/lib/cloudinit/distros copying cloudinit/distros/centos.py -> build/lib/cloudinit/distros copying cloudinit/distros/OpenCloudOS.py -> build/lib/cloudinit/distros copying cloudinit/distros/openbsd.py -> build/lib/cloudinit/distros creating build/lib/cloudinit/sources copying cloudinit/sources/__init__.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceVultr.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceAzure.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceCloudStack.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceAkamai.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceOVF.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceAltCloud.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceScaleway.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceHetzner.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceUpCloud.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceGCE.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceExoscale.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceLXD.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceEc2.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceMAAS.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceNWCS.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceConfigDrive.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceNoCloud.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceAliYun.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceRbxCloud.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceDigitalOcean.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceVMware.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceCloudSigma.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceOpenNebula.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceNone.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceBigstep.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceSmartOS.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceIBMCloud.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceOracle.py -> build/lib/cloudinit/sources copying cloudinit/sources/DataSourceOpenStack.py -> build/lib/cloudinit/sources creating build/lib/cloudinit/analyze copying cloudinit/analyze/__init__.py -> build/lib/cloudinit/analyze copying cloudinit/analyze/show.py -> build/lib/cloudinit/analyze copying cloudinit/analyze/dump.py -> build/lib/cloudinit/analyze creating build/lib/cloudinit/config copying cloudinit/config/__init__.py -> build/lib/cloudinit/config copying cloudinit/config/cc_rightscale_userdata.py -> build/lib/cloudinit/config copying cloudinit/config/cc_ssh.py -> build/lib/cloudinit/config copying cloudinit/config/cc_scripts_per_boot.py -> build/lib/cloudinit/config copying cloudinit/config/cc_zypper_add_repo.py -> build/lib/cloudinit/config copying cloudinit/config/cc_ubuntu_autoinstall.py -> build/lib/cloudinit/config copying cloudinit/config/cc_growpart.py -> build/lib/cloudinit/config copying cloudinit/config/cc_users_groups.py -> build/lib/cloudinit/config copying cloudinit/config/cc_rsyslog.py -> build/lib/cloudinit/config copying cloudinit/config/cc_apk_configure.py -> build/lib/cloudinit/config copying cloudinit/config/cc_keys_to_console.py -> build/lib/cloudinit/config copying cloudinit/config/cc_phone_home.py -> build/lib/cloudinit/config copying cloudinit/config/cc_ca_certs.py -> build/lib/cloudinit/config copying cloudinit/config/cc_ssh_import_id.py -> build/lib/cloudinit/config copying cloudinit/config/cc_scripts_per_once.py -> build/lib/cloudinit/config copying cloudinit/config/cc_reset_rmc.py -> build/lib/cloudinit/config copying cloudinit/config/cc_migrator.py -> build/lib/cloudinit/config copying cloudinit/config/cc_seed_random.py -> build/lib/cloudinit/config copying cloudinit/config/cc_chef.py -> build/lib/cloudinit/config copying cloudinit/config/cc_yum_add_repo.py -> build/lib/cloudinit/config copying cloudinit/config/schema.py -> build/lib/cloudinit/config copying cloudinit/config/cc_snap.py -> build/lib/cloudinit/config copying cloudinit/config/cc_final_message.py -> build/lib/cloudinit/config copying cloudinit/config/cc_install_hotplug.py -> build/lib/cloudinit/config copying cloudinit/config/cc_ntp.py -> build/lib/cloudinit/config copying cloudinit/config/cc_ubuntu_advantage.py -> build/lib/cloudinit/config copying cloudinit/config/cc_disable_ec2_metadata.py -> build/lib/cloudinit/config copying cloudinit/config/cc_apt_pipelining.py -> build/lib/cloudinit/config copying cloudinit/config/cc_apt_configure.py -> build/lib/cloudinit/config copying cloudinit/config/cc_byobu.py -> build/lib/cloudinit/config copying cloudinit/config/cc_keyboard.py -> build/lib/cloudinit/config copying cloudinit/config/cc_write_files.py -> build/lib/cloudinit/config copying cloudinit/config/cc_resizefs.py -> build/lib/cloudinit/config copying cloudinit/config/cc_write_files_deferred.py -> build/lib/cloudinit/config copying cloudinit/config/cc_locale.py -> build/lib/cloudinit/config copying cloudinit/config/cc_bootcmd.py -> build/lib/cloudinit/config copying cloudinit/config/cc_scripts_vendor.py -> build/lib/cloudinit/config copying cloudinit/config/cc_package_update_upgrade_install.py -> build/lib/cloudinit/config copying cloudinit/config/cc_update_etc_hosts.py -> build/lib/cloudinit/config copying cloudinit/config/cc_ubuntu_drivers.py -> build/lib/cloudinit/config copying cloudinit/config/cc_grub_dpkg.py -> build/lib/cloudinit/config copying cloudinit/config/cc_rh_subscription.py -> build/lib/cloudinit/config copying cloudinit/config/cc_disk_setup.py -> build/lib/cloudinit/config copying cloudinit/config/cc_scripts_per_instance.py -> build/lib/cloudinit/config copying cloudinit/config/cc_salt_minion.py -> build/lib/cloudinit/config copying cloudinit/config/cc_set_hostname.py -> build/lib/cloudinit/config copying cloudinit/config/cc_mounts.py -> build/lib/cloudinit/config copying cloudinit/config/cc_update_hostname.py -> build/lib/cloudinit/config copying cloudinit/config/modules.py -> build/lib/cloudinit/config copying cloudinit/config/cc_scripts_user.py -> build/lib/cloudinit/config copying cloudinit/config/cc_landscape.py -> build/lib/cloudinit/config copying cloudinit/config/cc_ansible.py -> build/lib/cloudinit/config copying cloudinit/config/cc_runcmd.py -> build/lib/cloudinit/config copying cloudinit/config/cc_power_state_change.py -> build/lib/cloudinit/config copying cloudinit/config/cc_mcollective.py -> build/lib/cloudinit/config copying cloudinit/config/cc_timezone.py -> build/lib/cloudinit/config copying cloudinit/config/cc_lxd.py -> build/lib/cloudinit/config copying cloudinit/config/cc_fan.py -> build/lib/cloudinit/config copying cloudinit/config/cc_set_passwords.py -> build/lib/cloudinit/config copying cloudinit/config/cc_resolv_conf.py -> build/lib/cloudinit/config copying cloudinit/config/cc_puppet.py -> build/lib/cloudinit/config copying cloudinit/config/cc_wireguard.py -> build/lib/cloudinit/config copying cloudinit/config/cc_spacewalk.py -> build/lib/cloudinit/config copying cloudinit/config/cc_ssh_authkey_fingerprints.py -> build/lib/cloudinit/config creating build/lib/cloudinit/net/netops copying cloudinit/net/netops/__init__.py -> build/lib/cloudinit/net/netops copying cloudinit/net/netops/bsd_netops.py -> build/lib/cloudinit/net/netops copying cloudinit/net/netops/iproute2.py -> build/lib/cloudinit/net/netops creating build/lib/cloudinit/cmd/devel copying cloudinit/cmd/devel/__init__.py -> build/lib/cloudinit/cmd/devel copying cloudinit/cmd/devel/render.py -> build/lib/cloudinit/cmd/devel copying cloudinit/cmd/devel/make_mime.py -> build/lib/cloudinit/cmd/devel copying cloudinit/cmd/devel/parser.py -> build/lib/cloudinit/cmd/devel copying cloudinit/cmd/devel/net_convert.py -> build/lib/cloudinit/cmd/devel copying cloudinit/cmd/devel/logs.py -> build/lib/cloudinit/cmd/devel copying cloudinit/cmd/devel/hotplug_hook.py -> build/lib/cloudinit/cmd/devel creating build/lib/cloudinit/distros/parsers copying cloudinit/distros/parsers/__init__.py -> build/lib/cloudinit/distros/parsers copying cloudinit/distros/parsers/hosts.py -> build/lib/cloudinit/distros/parsers copying cloudinit/distros/parsers/networkmanager_conf.py -> build/lib/cloudinit/distros/parsers copying cloudinit/distros/parsers/sys_conf.py -> build/lib/cloudinit/distros/parsers copying cloudinit/distros/parsers/hostname.py -> build/lib/cloudinit/distros/parsers copying cloudinit/distros/parsers/resolv_conf.py -> build/lib/cloudinit/distros/parsers copying cloudinit/distros/parsers/ifconfig.py -> build/lib/cloudinit/distros/parsers creating build/lib/cloudinit/distros/package_management copying cloudinit/distros/package_management/__init__.py -> build/lib/cloudinit/distros/package_management copying cloudinit/distros/package_management/package_manager.py -> build/lib/cloudinit/distros/package_management copying cloudinit/distros/package_management/snap.py -> build/lib/cloudinit/distros/package_management copying cloudinit/distros/package_management/utils.py -> build/lib/cloudinit/distros/package_management copying cloudinit/distros/package_management/apt.py -> build/lib/cloudinit/distros/package_management creating build/lib/cloudinit/sources/azure copying cloudinit/sources/azure/__init__.py -> build/lib/cloudinit/sources/azure copying cloudinit/sources/azure/kvp.py -> build/lib/cloudinit/sources/azure copying cloudinit/sources/azure/imds.py -> build/lib/cloudinit/sources/azure copying cloudinit/sources/azure/errors.py -> build/lib/cloudinit/sources/azure copying cloudinit/sources/azure/identity.py -> build/lib/cloudinit/sources/azure creating build/lib/cloudinit/sources/helpers copying cloudinit/sources/helpers/__init__.py -> build/lib/cloudinit/sources/helpers copying cloudinit/sources/helpers/azure.py -> build/lib/cloudinit/sources/helpers copying cloudinit/sources/helpers/netlink.py -> build/lib/cloudinit/sources/helpers copying cloudinit/sources/helpers/vultr.py -> build/lib/cloudinit/sources/helpers copying cloudinit/sources/helpers/akamai.py -> build/lib/cloudinit/sources/helpers copying cloudinit/sources/helpers/upcloud.py -> build/lib/cloudinit/sources/helpers copying cloudinit/sources/helpers/openstack.py -> build/lib/cloudinit/sources/helpers copying cloudinit/sources/helpers/digitalocean.py -> build/lib/cloudinit/sources/helpers copying cloudinit/sources/helpers/cloudsigma.py -> build/lib/cloudinit/sources/helpers copying cloudinit/sources/helpers/hetzner.py -> build/lib/cloudinit/sources/helpers copying cloudinit/sources/helpers/ec2.py -> build/lib/cloudinit/sources/helpers creating build/lib/cloudinit/sources/helpers/vmware copying cloudinit/sources/helpers/vmware/__init__.py -> build/lib/cloudinit/sources/helpers/vmware creating build/lib/cloudinit/sources/helpers/vmware/imc copying cloudinit/sources/helpers/vmware/imc/guestcust_state.py -> build/lib/cloudinit/sources/helpers/vmware/imc copying cloudinit/sources/helpers/vmware/imc/__init__.py -> build/lib/cloudinit/sources/helpers/vmware/imc copying cloudinit/sources/helpers/vmware/imc/config_nic.py -> build/lib/cloudinit/sources/helpers/vmware/imc copying cloudinit/sources/helpers/vmware/imc/guestcust_event.py -> build/lib/cloudinit/sources/helpers/vmware/imc copying cloudinit/sources/helpers/vmware/imc/config_file.py -> build/lib/cloudinit/sources/helpers/vmware/imc copying cloudinit/sources/helpers/vmware/imc/config_source.py -> build/lib/cloudinit/sources/helpers/vmware/imc copying cloudinit/sources/helpers/vmware/imc/config_custom_script.py -> build/lib/cloudinit/sources/helpers/vmware/imc copying cloudinit/sources/helpers/vmware/imc/guestcust_util.py -> build/lib/cloudinit/sources/helpers/vmware/imc copying cloudinit/sources/helpers/vmware/imc/config_passwd.py -> build/lib/cloudinit/sources/helpers/vmware/imc copying cloudinit/sources/helpers/vmware/imc/nic_base.py -> build/lib/cloudinit/sources/helpers/vmware/imc copying cloudinit/sources/helpers/vmware/imc/nic.py -> build/lib/cloudinit/sources/helpers/vmware/imc copying cloudinit/sources/helpers/vmware/imc/config.py -> build/lib/cloudinit/sources/helpers/vmware/imc copying cloudinit/sources/helpers/vmware/imc/guestcust_error.py -> build/lib/cloudinit/sources/helpers/vmware/imc copying cloudinit/sources/helpers/vmware/imc/boot_proto.py -> build/lib/cloudinit/sources/helpers/vmware/imc creating build/lib/cloudinit/config/schemas copying cloudinit/config/schemas/__init__.py -> build/lib/cloudinit/config/schemas copying cloudinit/config/schemas/schema-network-config-v1.json -> build/lib/cloudinit/config/schemas copying cloudinit/config/schemas/versions.schema.cloud-config.json -> build/lib/cloudinit/config/schemas copying cloudinit/config/schemas/schema-cloud-config-v1.json -> build/lib/cloudinit/config/schemas running build_scripts creating build/scripts-3.11 copying tools/cloud-init-per -> build/scripts-3.11 ============================= test session starts ============================== platform linux -- Python 3.11.8, pytest-7.4.3, pluggy-1.3.0 rootdir: /home/buildozer/aports/community/cloud-init/src/cloud-init-23.4.4 configfile: tox.ini testpaths: tools, tests/unittests plugins: mock-3.10.0 collected 5055 items tools/test_tools.py .......... [ 0%] tests/unittests/test__init__.py ................ [ 0%] tests/unittests/test_apport.py ........... [ 0%] tests/unittests/test_atomic_helper.py ..... [ 0%] tests/unittests/test_builtin_handlers.py ........................ [ 1%] tests/unittests/test_cli.py ........................... [ 1%] tests/unittests/test_conftest.py ......... [ 2%] tests/unittests/test_data.py ................................. [ 2%] tests/unittests/test_dmi.py ........... [ 2%] tests/unittests/test_ds_identify.py .................................... [ 3%] X........................................................... [ 4%] tests/unittests/test_event.py ... [ 4%] tests/unittests/test_features.py . [ 4%] tests/unittests/test_gpg.py ....... [ 5%] tests/unittests/test_helpers.py .... [ 5%] tests/unittests/test_importer.py .... [ 5%] tests/unittests/test_log.py .... [ 5%] tests/unittests/test_merging.py ..................... [ 5%] tests/unittests/test_net.py ............................................ [ 6%] ........................................................................ [ 7%] ....................................x................................... [ 9%] .......................... [ 9%] tests/unittests/test_net_activators.py ............................. [ 10%] tests/unittests/test_net_freebsd.py .. [ 10%] tests/unittests/test_netinfo.py ................. [ 10%] tests/unittests/test_pathprefix2dict.py .... [ 10%] tests/unittests/test_persistence.py ........ [ 11%] tests/unittests/test_registry.py .... [ 11%] tests/unittests/test_render_template.py ................................ [ 11%] ...... [ 11%] tests/unittests/test_safeyaml.py ............. [ 12%] tests/unittests/test_simpletable.py ..... [ 12%] tests/unittests/test_ssh_util.py ....................................... [ 13%] ........................................................................ [ 14%] ............................ [ 15%] tests/unittests/test_stages.py ......................................... [ 15%] ..... [ 15%] tests/unittests/test_subp.py ......................... [ 16%] tests/unittests/test_temp_utils.py ...... [ 16%] tests/unittests/test_templating.py .....s....... [ 16%] tests/unittests/test_upgrade.py ................ [ 17%] tests/unittests/test_url_helper.py s.................................... [ 17%] .. [ 17%] tests/unittests/test_util.py ........................................... [ 18%] ........................................................................ [ 20%] ........................................................................ [ 21%] ........................................................................ [ 23%] ........................................ [ 23%] tests/unittests/test_version.py .... [ 23%] tests/unittests/analyze/test_boot.py ............. [ 24%] tests/unittests/analyze/test_dump.py ........... [ 24%] tests/unittests/cmd/test_clean.py ................ [ 24%] tests/unittests/cmd/test_cloud_id.py ............ [ 24%] tests/unittests/cmd/test_main.py ...... [ 25%] tests/unittests/cmd/test_query.py ........................ [ 25%] tests/unittests/cmd/test_status.py ..................................... [ 26%] ......... [ 26%] tests/unittests/cmd/devel/test_hotplug_hook.py ............. [ 26%] tests/unittests/cmd/devel/test_init.py . [ 26%] tests/unittests/cmd/devel/test_logs.py ............ [ 26%] tests/unittests/cmd/devel/test_net_convert.py ................. [ 27%] tests/unittests/cmd/devel/test_render.py .......... [ 27%] tests/unittests/config/test_apt_conf_v1.py ........... [ 27%] tests/unittests/config/test_apt_configure_sources_list_v1.py ........ [ 27%] tests/unittests/config/test_apt_configure_sources_list_v3.py .......... [ 28%] tests/unittests/config/test_apt_key.py .......... [ 28%] tests/unittests/config/test_apt_source_v1.py ........................ [ 28%] tests/unittests/config/test_apt_source_v3.py ........................... [ 29%] .............................. [ 29%] tests/unittests/config/test_cc_ansible.py ..................... [ 30%] tests/unittests/config/test_cc_apk_configure.py ..................... [ 30%] tests/unittests/config/test_cc_apt_configure.py ........................ [ 31%] .................. [ 31%] tests/unittests/config/test_cc_apt_pipelining.py .......... [ 31%] tests/unittests/config/test_cc_bootcmd.py ........ [ 31%] tests/unittests/config/test_cc_byobu.py ... [ 31%] tests/unittests/config/test_cc_ca_certs.py ....................... [ 32%] tests/unittests/config/test_cc_chef.py ................................. [ 33%] ............ [ 33%] tests/unittests/config/test_cc_disable_ec2_metadata.py .... [ 33%] tests/unittests/config/test_cc_disk_setup.py ...................... [ 33%] tests/unittests/config/test_cc_fan.py .. [ 33%] tests/unittests/config/test_cc_final_message.py .. [ 33%] tests/unittests/config/test_cc_growpart.py ........................... [ 34%] tests/unittests/config/test_cc_grub_dpkg.py .................. [ 34%] tests/unittests/config/test_cc_install_hotplug.py ...... [ 34%] tests/unittests/config/test_cc_keyboard.py ............ [ 35%] tests/unittests/config/test_cc_keys_to_console.py .............. [ 35%] tests/unittests/config/test_cc_landscape.py ............... [ 35%] tests/unittests/config/test_cc_locale.py ....... [ 35%] tests/unittests/config/test_cc_lxd.py .................................. [ 36%] ....... [ 36%] tests/unittests/config/test_cc_mcollective.py ......... [ 36%] tests/unittests/config/test_cc_mounts.py ............................... [ 37%] ....................... [ 37%] tests/unittests/config/test_cc_ntp.py .................................. [ 38%] . [ 38%] tests/unittests/config/test_cc_package_update_upgrade_install.py ....... [ 38%] ...... [ 38%] tests/unittests/config/test_cc_phone_home.py ................ [ 39%] tests/unittests/config/test_cc_power_state_change.py ................... [ 39%] ........... [ 39%] tests/unittests/config/test_cc_puppet.py ............................... [ 40%] ........ [ 40%] tests/unittests/config/test_cc_resizefs.py ............................. [ 41%] .... [ 41%] tests/unittests/config/test_cc_resolv_conf.py .......................... [ 41%] [ 41%] tests/unittests/config/test_cc_rh_subscription.py .............. [ 41%] tests/unittests/config/test_cc_rsyslog.py .............................. [ 42%] .. [ 42%] tests/unittests/config/test_cc_runcmd.py ......... [ 42%] tests/unittests/config/test_cc_scripts_vendor.py ... [ 42%] tests/unittests/config/test_cc_seed_random.py ................ [ 43%] tests/unittests/config/test_cc_set_hostname.py ................. [ 43%] tests/unittests/config/test_cc_set_passwords.py ........................ [ 43%] .................. [ 44%] tests/unittests/config/test_cc_snap.py ................................. [ 44%] [ 44%] tests/unittests/config/test_cc_spacewalk.py ... [ 45%] tests/unittests/config/test_cc_ssh.py ................................. [ 45%] tests/unittests/config/test_cc_ssh_import_id.py ............. [ 45%] tests/unittests/config/test_cc_timezone.py . [ 45%] tests/unittests/config/test_cc_ubuntu_advantage.py ..................... [ 46%] .............................................. [ 47%] tests/unittests/config/test_cc_ubuntu_autoinstall.py ........ [ 47%] tests/unittests/config/test_cc_ubuntu_drivers.py ....................... [ 47%] ....................... [ 48%] tests/unittests/config/test_cc_update_etc_hosts.py ....... [ 48%] tests/unittests/config/test_cc_users_groups.py ......................... [ 48%] .............. [ 49%] tests/unittests/config/test_cc_wireguard.py .............. [ 49%] tests/unittests/config/test_cc_write_files.py ................ [ 49%] tests/unittests/config/test_cc_write_files_deferred.py .. [ 49%] tests/unittests/config/test_cc_yum_add_repo.py .......... [ 50%] tests/unittests/config/test_cc_zypper_add_repo.py .......... [ 50%] tests/unittests/config/test_modules.py ................................. [ 50%] ........................................................................ [ 52%] ........................................................................ [ 53%] ........................................................................ [ 55%] ............. [ 55%] tests/unittests/config/test_salt_minion.py ....... [ 55%] tests/unittests/config/test_schema.py .................................. [ 56%] ........................................................................ [ 57%] ........................................................................ [ 59%] ........................................................................ [ 60%] ............................s....... [ 61%] tests/unittests/distros/test__init__.py ............................ [ 61%] tests/unittests/distros/test_arch.py .. [ 61%] tests/unittests/distros/test_bsd_utils.py ... [ 61%] tests/unittests/distros/test_create_users.py ...................... [ 62%] tests/unittests/distros/test_debian.py ....... [ 62%] tests/unittests/distros/test_dragonflybsd.py .. [ 62%] tests/unittests/distros/test_freebsd.py .... [ 62%] tests/unittests/distros/test_gentoo.py .. [ 62%] tests/unittests/distros/test_hostname.py ... [ 62%] tests/unittests/distros/test_hosts.py ... [ 62%] tests/unittests/distros/test_ifconfig.py ............ [ 62%] tests/unittests/distros/test_init.py ................................... [ 63%] ........................................ [ 64%] tests/unittests/distros/test_manage_service.py ........ [ 64%] tests/unittests/distros/test_mariner.py .. [ 64%] tests/unittests/distros/test_netbsd.py .. [ 64%] tests/unittests/distros/test_netconfig.py ............................ [ 65%] tests/unittests/distros/test_networking.py ........................ [ 65%] tests/unittests/distros/test_opensuse.py .............. [ 66%] tests/unittests/distros/test_photon.py .... [ 66%] tests/unittests/distros/test_resolv.py .... [ 66%] tests/unittests/distros/test_sles.py . [ 66%] tests/unittests/distros/test_sysconfig.py ...... [ 66%] tests/unittests/distros/test_user_data_normalize.py .................. [ 66%] tests/unittests/distros/package_management/test_apt.py ..... [ 66%] tests/unittests/filters/test_launch_index.py ..... [ 66%] tests/unittests/net/test_dhcp.py .....................F................. [ 67%] ............ [ 67%] tests/unittests/net/test_dns.py . [ 67%] tests/unittests/net/test_ephemeral.py ......... [ 68%] tests/unittests/net/test_init.py ....................................... [ 68%] ........................................................................ [ 70%] ................................ [ 70%] tests/unittests/net/test_net_rendering.py . [ 70%] tests/unittests/net/test_netplan.py .. [ 70%] tests/unittests/net/test_network_state.py .............................. [ 71%] ......................... [ 72%] tests/unittests/net/test_networkd.py ................................ [ 72%] tests/unittests/reporting/test_reporting.py ............................ [ 73%] ...................... [ 73%] tests/unittests/reporting/test_reporting_hyperv.py ................. [ 74%] tests/unittests/reporting/test_webhook_handler.py ....... [ 74%] tests/unittests/runs/test_merge_run.py . [ 74%] tests/unittests/runs/test_simple_run.py ...... [ 74%] tests/unittests/sources/test___init__.py ............................ [ 74%] tests/unittests/sources/test_akamai.py ................................. [ 75%] .. [ 75%] tests/unittests/sources/test_aliyun.py ........ [ 75%] tests/unittests/sources/test_altcloud.py ......................... [ 76%] tests/unittests/sources/test_azure.py .................................. [ 76%] ........................................................................ [ 78%] ........................................................................ [ 79%] ..................... [ 80%] tests/unittests/sources/test_azure_helper.py ........................... [ 80%] .........ss............................................................. [ 82%] .... [ 82%] tests/unittests/sources/test_bigstep.py .. [ 82%] tests/unittests/sources/test_cloudsigma.py ............ [ 82%] tests/unittests/sources/test_cloudstack.py ............. [ 82%] tests/unittests/sources/test_common.py ..... [ 82%] tests/unittests/sources/test_configdrive.py .......................... [ 83%] tests/unittests/sources/test_digitalocean.py ............. [ 83%] tests/unittests/sources/test_ec2.py .................................... [ 84%] .. [ 84%] tests/unittests/sources/test_exoscale.py ......... [ 84%] tests/unittests/sources/test_gce.py ................... [ 84%] tests/unittests/sources/test_hetzner.py .. [ 84%] tests/unittests/sources/test_ibmcloud.py .................. [ 85%] tests/unittests/sources/test_init.py ................................... [ 85%] ......... [ 86%] tests/unittests/sources/test_lxd.py .................................. [ 86%] tests/unittests/sources/test_maas.py .............. [ 87%] tests/unittests/sources/test_nocloud.py ................. [ 87%] tests/unittests/sources/test_nwcs.py ... [ 87%] tests/unittests/sources/test_opennebula.py ............................. [ 88%] ..................... [ 88%] tests/unittests/sources/test_openstack.py .............................. [ 89%] ......... [ 89%] tests/unittests/sources/test_oracle.py ................................. [ 89%] ........................................................ [ 90%] tests/unittests/sources/test_ovf.py .............................. [ 91%] tests/unittests/sources/test_rbx.py ....... [ 91%] tests/unittests/sources/test_scaleway.py .......................... [ 92%] tests/unittests/sources/test_smartos.py ................................ [ 92%] ........................s [ 93%] tests/unittests/sources/test_upcloud.py ....... [ 93%] tests/unittests/sources/test_vmware.py ................................. [ 94%] ............. [ 94%] tests/unittests/sources/test_vultr.py ...... [ 94%] tests/unittests/sources/azure/test_errors.py ........................... [ 95%] ................................ [ 95%] tests/unittests/sources/azure/test_identity.py ..................... [ 96%] tests/unittests/sources/azure/test_imds.py ............................. [ 96%] ........................................................................ [ 98%] ........... [ 98%] tests/unittests/sources/azure/test_kvp.py .... [ 98%] tests/unittests/sources/helpers/test_akamai.py ............ [ 98%] tests/unittests/sources/helpers/test_ec2.py .......... [ 98%] tests/unittests/sources/helpers/test_netlink.py ........................ [ 99%] .... [ 99%] tests/unittests/sources/helpers/test_openstack.py .. [ 99%] tests/unittests/sources/vmware/test_custom_script.py .. [ 99%] tests/unittests/sources/vmware/test_guestcust_util.py .... [ 99%] tests/unittests/sources/vmware/test_vmware_config_file.py .............. [ 99%] ........ [100%] =================================== FAILURES =================================== _______________ TestDHCPDiscoveryClean.test_dhcp_client_failover _______________ self = m_which = m_subp = m_remove = m_fallback = @mock.patch("cloudinit.net.dhcp.find_fallback_nic", return_value="eth9") @mock.patch("cloudinit.net.dhcp.os.remove") @mock.patch("cloudinit.net.dhcp.subp.subp") @mock.patch("cloudinit.net.dhcp.subp.which") def test_dhcp_client_failover(self, m_which, m_subp, m_remove, m_fallback): """Log and do nothing when nic is absent and no fallback is found.""" m_subp.side_effect = [ ("", ""), subp.ProcessExecutionError(exit_code=-5), ] m_which.side_effect = [False, True] with pytest.raises(NoDHCPLeaseError): > maybe_perform_dhcp_discovery(MockDistro()) tests/unittests/net/test_dhcp.py:403: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cloudinit/net/dhcp.py:131: in maybe_perform_dhcp_discovery return client.dhcp_discovery(nic, dhcp_log_func, distro) cloudinit/net/dhcp.py:571: in dhcp_discovery util.write_file(udhcpc_script, UDHCPC_SCRIPT, 0o755) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ filename = '/var/tmp/cloud-init/udhcpc_script' content = b'#!/bin/sh\nlog() {\n echo "udhcpc[$PPID]" "$interface: $2"\n}\n[ -z "$1" ] && echo "Error: should be called from ...: $1: $message"\n exit 1\n ;;\n *)\n echo "$0: Unknown udhcpc command: $1" >&2\n exit 1\n ;;\nesac\n' mode = 493, omode = 'wb', preserve_mode = False def write_file( filename, content, mode=0o644, omode="wb", preserve_mode=False, *, ensure_dir_exists=True, user=None, group=None, ): """ Writes a file with the given content and sets the file mode as specified. Restores the SELinux context if possible. @param filename: The full path of the file to write. @param content: The content to write to the file. @param mode: The filesystem mode to set on the file. @param omode: The open mode used when opening the file (w, wb, a, etc.) @param preserve_mode: If True and `filename` exists, preserve `filename`s current mode instead of applying `mode`. @param ensure_dir_exists: If True (the default), ensure that the directory containing `filename` exists before writing to the file. @param user: The user to set on the file. @param group: The group to set on the file. """ if preserve_mode: try: mode = get_permissions(filename) except OSError: pass if ensure_dir_exists: ensure_dir(os.path.dirname(filename), user=user, group=group) if "b" in omode.lower(): content = encode_text(content) write_type = "bytes" else: content = decode_binary(content) write_type = "characters" try: mode_r = "%o" % mode except TypeError: mode_r = "%r" % mode LOG.debug( "Writing to %s - %s: [%s] %s %s", filename, omode, mode_r, len(content), write_type, ) with SeLinuxGuard(path=filename): > with open(filename, omode) as fh: E PermissionError: [Errno 13] Permission denied: '/var/tmp/cloud-init/udhcpc_script' cloudinit/util.py:2269: PermissionError =============================== warnings summary =============================== ../../../../../../../usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1316 /usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1316: PytestRemovedIn8Warning: The --strict option is deprecated, use --strict-markers instead. self.issue_config_time_warning( tests/unittests/helpers.py:545 /home/buildozer/aports/community/cloud-init/src/cloud-init-23.4.4/tests/unittests/helpers.py:545: DeprecationWarning: Accessing jsonschema.__version__ is deprecated and will be removed in a future release. Use importlib.metadata directly to query for jsonschema's version. int(part) for part in jsonschema.__version__.split(".") # type: ignore cloudinit/sources/DataSourceAzure.py:54 /home/buildozer/aports/community/cloud-init/src/cloud-init-23.4.4/cloudinit/sources/DataSourceAzure.py:54: DeprecationWarning: 'crypt' is deprecated and slated for removal in Python 3.13 import crypt ../../../../../../../usr/lib/python3.11/site-packages/_distutils_hack/__init__.py:33 /usr/lib/python3.11/site-packages/_distutils_hack/__init__.py:33: UserWarning: Setuptools is replacing distutils. warnings.warn("Setuptools is replacing distutils.") tests/unittests/test_ds_identify.py::TestDsIdentify::test_ibmcloud_template_no_userdata_in_provisioning /usr/lib/python3.11/unittest/case.py:678: DeprecationWarning: It is deprecated to return a value that is not None from a test case (>) return self.run(*args, **kwds) tests/unittests/test_ds_identify.py::TestDsIdentify::test_ibmcloud_template_userdata_in_provisioning /usr/lib/python3.11/unittest/case.py:678: DeprecationWarning: It is deprecated to return a value that is not None from a test case (>) return self.run(*args, **kwds) tests/unittests/test_ds_identify.py::TestDsIdentify::test_vmware_on_vmware_open_vm_tools_64 /usr/lib/python3.11/unittest/case.py:678: DeprecationWarning: It is deprecated to return a value that is not None from a test case (>) return self.run(*args, **kwds) tests/unittests/test_ds_identify.py::TestDsIdentify::test_vmware_on_vmware_open_vm_tools_aarch64_linux_gnu /usr/lib/python3.11/unittest/case.py:678: DeprecationWarning: It is deprecated to return a value that is not None from a test case (>) return self.run(*args, **kwds) tests/unittests/test_ds_identify.py::TestDsIdentify::test_vmware_on_vmware_open_vm_tools_i386_linux_gnu /usr/lib/python3.11/unittest/case.py:678: DeprecationWarning: It is deprecated to return a value that is not None from a test case (>) return self.run(*args, **kwds) tests/unittests/test_ds_identify.py::TestDsIdentify::test_vmware_on_vmware_open_vm_tools_x86_64_linux_gnu /usr/lib/python3.11/unittest/case.py:678: DeprecationWarning: It is deprecated to return a value that is not None from a test case (>) return self.run(*args, **kwds) tests/unittests/test_merging.py: 2 warnings tests/unittests/test_stages.py: 4 warnings tests/unittests/config/test_cc_apt_pipelining.py: 5 warnings tests/unittests/config/test_cc_bootcmd.py: 1 warning tests/unittests/config/test_cc_growpart.py: 1 warning tests/unittests/config/test_cc_grub_dpkg.py: 1 warning tests/unittests/config/test_cc_mcollective.py: 2 warnings tests/unittests/config/test_cc_mounts.py: 12 warnings tests/unittests/config/test_cc_power_state_change.py: 5 warnings tests/unittests/config/test_cc_runcmd.py: 9 warnings tests/unittests/config/test_cc_scripts_vendor.py: 2 warnings tests/unittests/config/test_cc_set_passwords.py: 3 warnings tests/unittests/config/test_cc_snap.py: 7 warnings tests/unittests/config/test_cc_update_etc_hosts.py: 3 warnings tests/unittests/config/test_cc_users_groups.py: 28 warnings tests/unittests/config/test_schema.py: 175 warnings tests/unittests/reporting/test_reporting.py: 19 warnings tests/unittests/runs/test_simple_run.py: 1 warning /home/buildozer/aports/community/cloud-init/src/cloud-init-23.4.4/cloudinit/config/schema.py:493: DeprecationWarning: Passing a schema to Validator.iter_errors is deprecated and will be removed in a future release. Call validator.evolve(schema=new_schema).iter_errors(...) instead. return next(errors, None) is None tests/unittests/config/test_schema.py::TestVersionedSchemas::test_versioned_cloud_config_schema_is_valid_json[schema0-None] tests/unittests/config/test_schema.py::TestVersionedSchemas::test_versioned_cloud_config_schema_is_valid_json[schema1-None] tests/unittests/config/test_schema.py::TestVersionedSchemas::test_versioned_cloud_config_schema_is_valid_json[schema2-is not one of ['v1']] tests/unittests/config/test_schema.py::TestVersionedSchemas::test_versioned_cloud_config_schema_is_valid_json[schema3-is not of type 'string'] tests/unittests/config/test_schema.py::TestVersionedSchemas::test_versioned_cloud_config_schema_is_valid_json[schema4-None] /home/buildozer/aports/community/cloud-init/src/cloud-init-23.4.4/cloudinit/config/schema.py:398: DeprecationWarning: Automatically retrieving remote references can be a security vulnerability and is discouraged by the JSON Schema specifications. Relying on this behavior is deprecated and will shortly become an error. If you are sure you want to remotely retrieve your reference and that it is safe to do so, you can find instructions for doing so via referencing.Registry in the referencing documentation (https://referencing.readthedocs.org). all_errs = list( -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/unittests/net/test_dhcp.py::TestDHCPDiscoveryClean::test_dhcp_client_failover = 1 failed, 5046 passed, 6 skipped, 1 xfailed, 1 xpassed, 295 warnings in 78.46s (0:01:18) = >>> ERROR: cloud-init: check failed >>> cloud-init: Uninstalling dependencies... (1/126) Purging .makedepends-cloud-init (20240404.134316) (2/126) Purging blkid (2.39.3-r0) (3/126) Purging cloud-utils-growpart (0.33-r0) (4/126) Purging partx (2.39.3-r0) (5/126) Purging py3-configobj-pyc (5.0.8-r1) (6/126) Purging py3-configobj (5.0.8-r1) (7/126) Purging py3-six-pyc (1.16.0-r8) (8/126) Purging py3-six (1.16.0-r8) (9/126) Purging py3-jinja2-pyc (3.1.2-r3) (10/126) Purging py3-jinja2 (3.1.2-r3) (11/126) Purging py3-markupsafe-pyc (2.1.3-r0) (12/126) Purging py3-markupsafe (2.1.3-r0) (13/126) Purging py3-jsonpatch-pyc (1.33-r0) (14/126) Purging py3-jsonpatch (1.33-r0) (15/126) Purging py3-jsonpointer-pyc (2.4-r0) (16/126) Purging py3-jsonpointer (2.4-r0) (17/126) Purging py3-jsonschema-pyc (4.20.0-r0) (18/126) Purging py3-jsonschema (4.20.0-r0) (19/126) Purging py3-jsonschema-specifications-pyc (2023.07.1-r1) (20/126) Purging py3-jsonschema-specifications (2023.07.1-r1) (21/126) Purging py3-referencing-pyc (0.31.1-r0) (22/126) Purging py3-referencing (0.31.1-r0) (23/126) Purging py3-attrs-pyc (23.1.0-r1) (24/126) Purging py3-attrs (23.1.0-r1) (25/126) Purging py3-rpds-py-pyc (0.10.6-r0) (26/126) Purging py3-rpds-py (0.10.6-r0) (27/126) Purging py3-netifaces (0.11.0-r2) (28/126) Purging shadow (4.14.2-r0) (29/126) Purging tzdata (2024a-r0) (30/126) Purging py3-setuptools-pyc (68.2.2-r0) (31/126) Purging py3-setuptools (68.2.2-r0) (32/126) Purging bash (5.2.21-r0) Executing bash-5.2.21-r0.pre-deinstall (33/126) Purging coreutils (9.4-r2) Executing coreutils-9.4-r2.post-deinstall (34/126) Purging coreutils-env (9.4-r2) (35/126) Purging coreutils-fmt (9.4-r2) (36/126) Purging coreutils-sha512sum (9.4-r2) (37/126) Purging grep (3.11-r0) (38/126) Purging lsblk (2.39.3-r0) (39/126) Purging parted (3.6-r2) (40/126) Purging procps-ng (4.0.4-r0) (41/126) Purging py3-passlib-pyc (1.7.4-r4) (42/126) Purging py3-passlib (1.7.4-r4) (43/126) Purging py3-pyserial-pyc (3.5-r6) (44/126) Purging py3-pyserial (3.5-r6) (45/126) Purging py3-pytest-mock-pyc (3.10.0-r2) (46/126) Purging py3-pytest-mock (3.10.0-r2) (47/126) Purging py3-mock-pyc (5.1.0-r0) (48/126) Purging py3-mock (5.1.0-r0) (49/126) Purging py3-pytest-pyc (7.4.3-r0) (50/126) Purging py3-pytest (7.4.3-r0) (51/126) Purging py3-iniconfig-pyc (1.1.1-r7) (52/126) Purging py3-iniconfig (1.1.1-r7) (53/126) Purging py3-py-pyc (1.11.0-r2) (54/126) Purging py3-py (1.11.0-r2) (55/126) Purging py3-responses-pyc (0.23.3-r0) (56/126) Purging py3-responses (0.23.3-r0) (57/126) Purging py3-requests-pyc (2.31.0-r1) (58/126) Purging py3-requests (2.31.0-r1) (59/126) Purging py3-certifi-pyc (2024.2.2-r0) (60/126) Purging py3-certifi (2024.2.2-r0) (61/126) Purging py3-charset-normalizer-pyc (3.3.2-r0) (62/126) Purging py3-charset-normalizer (3.3.2-r0) (63/126) Purging py3-idna-pyc (3.6-r0) (64/126) Purging py3-idna (3.6-r0) (65/126) Purging py3-toml-pyc (0.10.2-r6) (66/126) Purging py3-toml (0.10.2-r6) (67/126) Purging py3-urllib3-pyc (1.26.18-r0) (68/126) Purging py3-urllib3 (1.26.18-r0) (69/126) Purging py3-yaml-pyc (6.0.1-r1) (70/126) Purging py3-yaml (6.0.1-r1) (71/126) Purging py3-tox-pyc (4.6.4-r0) (72/126) Purging py3-tox (4.6.4-r0) (73/126) Purging py3-cachetools-pyc (5.3.2-r0) (74/126) Purging py3-cachetools (5.3.2-r0) (75/126) Purging py3-chardet-pyc (5.2.0-r0) (76/126) Purging py3-chardet (5.2.0-r0) (77/126) Purging py3-colorama-pyc (0.4.6-r3) (78/126) Purging py3-colorama (0.4.6-r3) (79/126) Purging py3-pluggy-pyc (1.3.0-r0) (80/126) Purging py3-pluggy (1.3.0-r0) (81/126) Purging py3-pyproject-api-pyc (1.6.1-r0) (82/126) Purging py3-pyproject-api (1.6.1-r0) (83/126) Purging py3-packaging-pyc (23.2-r0) (84/126) Purging py3-packaging (23.2-r0) (85/126) Purging py3-parsing-pyc (3.1.1-r0) (86/126) Purging py3-parsing (3.1.1-r0) (87/126) Purging py3-virtualenv-pyc (20.24.6-r0) (88/126) Purging py3-virtualenv (20.24.6-r0) (89/126) Purging py3-platformdirs-pyc (4.0.0-r0) (90/126) Purging py3-platformdirs (4.0.0-r0) (91/126) Purging py3-distlib-pyc (0.3.7-r2) (92/126) Purging py3-distlib (0.3.7-r2) (93/126) Purging py3-filelock-pyc (3.12.4-r0) (94/126) Purging py3-filelock (3.12.4-r0) (95/126) Purging sfdisk (2.39.3-r0) (96/126) Purging sgdisk (1.0.9-r4) (97/126) Purging device-mapper-libs (2.03.23-r0) (98/126) Purging ifupdown-ng-iproute2 (0.12.1-r4) (99/126) Purging iproute2-minimal (6.6.0-r0) (100/126) Purging libbsd (0.11.7-r3) (101/126) Purging libelf (0.190-r1) (102/126) Purging libfdisk (2.39.3-r0) (103/126) Purging libintl (0.22.3-r0) (104/126) Purging libmd (1.1.0-r0) (105/126) Purging libmnl (1.0.5-r2) (106/126) Purging libmount (2.39.3-r0) (107/126) Purging libproc2 (4.0.4-r0) (108/126) Purging libsmartcols (2.39.3-r0) (109/126) Purging libuuid (2.39.3-r0) (110/126) Purging linux-pam (1.5.3-r7) (111/126) Purging python3-pyc (3.11.8-r0) (112/126) Purging python3-pycache-pyc0 (3.11.8-r0) (113/126) Purging pyc (3.11.8-r0) (114/126) Purging utmps-libs (0.1.2.2-r0) (115/126) Purging yaml (0.2.5-r2) (116/126) Purging python3 (3.11.8-r0) (117/126) Purging gdbm (1.23-r1) (118/126) Purging libblkid (2.39.3-r0) (119/126) Purging libbz2 (1.0.8-r6) (120/126) Purging libffi (3.4.4-r3) (121/126) Purging libpanelw (6.4_p20231125-r0) (122/126) Purging mpdecimal (2.5.1-r2) (123/126) Purging readline (8.2.1-r2) (124/126) Purging skalibs (2.14.0.1-r0) (125/126) Purging sqlite-libs (3.44.2-r0) (126/126) Purging xz-libs (5.4.5-r0) Executing busybox-1.36.1-r15.trigger OK: 271 MiB in 103 packages