From 510c4395e8cf124f9059ec674e3d370cbeca36d0 Mon Sep 17 00:00:00 2001 From: Albert Esteve Date: Fri, 2 Sep 2022 08:48:19 +0200 Subject: [PATCH] reuse: make linter happy Add header to the rest of the project to make the reuse linter pass. Signed-off-by: Albert Esteve --- .copr/Makefile | 3 + .github/workflows/ci.yml | 3 + .github/workflows/codeql-analysis.yml | 3 + .github/workflows/containers.yml | 3 + .github/workflows/network.yml | 3 + .github/workflows/ost.yml | 3 + .gitignore | 3 + .gitlab-ci.yml | 3 + .gitreview | 3 + .travis.yml | 3 + AUTHORS | 5 ++ CODEOWNERS | 5 ++ CODE_OF_CONDUCT.md | 5 ++ README.logging | 5 ++ README.md | 5 ++ autobuild.sh | 3 + autogen.sh | 3 + automation/README | 5 ++ automation/artifacts.repo | 2 + automation/build-artifacts-manual.sh | 3 + ...build-artifacts.build-py3.packages.license | 2 + automation/build.sh | 3 + automation/check-patch.install.sh | 3 + automation/check-patch.linters.sh | 3 + automation/check-patch.mounts.license | 2 + .../check-patch.nmstate-func-tests-ovs.sh | 3 + ...-patch.nmstate-func-tests.environment.yaml | 3 + ...-patch.nmstate-func-tests.packages.license | 2 + automation/check-patch.nmstate-func-tests.sh | 3 + .../check-patch.packages.el9stream.license | 2 + automation/check-patch.packages.license | 2 + .../check-patch.repos.el9stream.license | 2 + automation/check-patch.repos.license | 2 + ...eck-patch.tests-container.environment.yaml | 3 + ...eck-patch.tests-container.packages.license | 2 + automation/check-patch.tests-container.sh | 3 + automation/check-patch.tests-py3.sh | 3 + automation/check-patch.tests-storage.sh | 3 + automation/common.sh | 3 + automation/deploy.sh | 3 + automation/exclude_from_conf | 3 + automation/lago-env_el7.yml | 3 + automation/lago-env_fc29.yml | 3 + automation/lint.sh | 3 + automation/py2.environment.yaml | 3 + automation/py3.environment.yaml | 3 + automation/rpm.sh | 3 + automation/tests-storage.sh | 3 + automation/tests.sh | 3 + build-aux/Makefile.subs | 20 +----- build-aux/gitlog-to-changelog | 2 + build-aux/list-all-python-files | 3 + build-aux/make-dist | 3 + build-aux/pkg-version | 3 + build-aux/vercmp | 21 +------ commit-template.txt | 3 + configure.ac | 3 + contrib/block | 35 +---------- contrib/create-gluster-volume.sh | 3 + contrib/create-vdo-brick.sh | 3 + contrib/deploy-gluster.sh | 3 + contrib/extend-stats | 21 +------ contrib/git-sync | 21 +------ contrib/koji_build.sh | 3 + contrib/logdb | 21 +------ contrib/logstat | 21 +------ contrib/lvs-stats | 21 +------ contrib/profile-stats | 21 +------ contrib/refmt | 62 +------------------ contrib/repoplot | 21 +------ contrib/repostat | 22 ++----- contrib/rhv_build.sh | 3 + contrib/runvm | 20 +----- contrib/shell_helper | 3 + contrib/target | 21 +------ contrib/vmconfig.json.license | 2 + doc/Makefile | 3 + doc/check-volume-leases.md | 5 ++ doc/development.md | 5 ++ doc/guest-agent.md | 5 ++ doc/incremental-backup.md | 5 ++ doc/index.rst | 3 + doc/io-timeouts.md | 5 ++ doc/iscsi-server-setup.md | 5 ++ doc/managed-volume.md | 5 ++ doc/profile-vdsm-with-yappi.md | 5 ++ doc/thin-provisioning.md | 5 ++ docker/Dockerfile.centos-8 | 3 + docker/Makefile | 20 +----- docker/lvmlocal.conf | 3 + docker/network/Makefile | 18 +----- docker/network/functional/Dockerfile.alma-9 | 3 + docker/network/functional/Dockerfile.centos-8 | 3 + docker/network/functional/Dockerfile.centos-9 | 3 + docker/network/integration/Dockerfile.alma-9 | 3 + .../network/integration/Dockerfile.centos-8 | 3 + .../network/integration/Dockerfile.centos-9 | 3 + docker/network/unit/Dockerfile.alma-9 | 3 + docker/network/unit/Dockerfile.centos-8 | 3 + docker/network/unit/Dockerfile.centos-9 | 3 + docker/requirements.txt | 3 + execcmd-allowlist.txt.license | 2 + helpers/fallocate | 20 +----- helpers/kvm2ovirt | 21 ++----- init/daemonAdapter | 21 ++----- init/systemd/unlimited-core.conf | 3 + init/systemd/vdsm-tmpfiles.d.conf.in.license | 2 + init/vdsmd_init_common.sh.in | 20 +----- lib/vdsm/api/vdsm-api-gluster.yml | 3 + lib/vdsm/api/vdsm-api.yml | 3 + lib/vdsm/api/vdsm-events.yml | 3 + lib/vdsm/common/config.py.in | 21 +------ lib/vdsm/common/constants.py.in | 20 +----- lib/vdsm/common/dsaversion.py.in | 21 +------ lib/vdsm/storage/curl-img-wrap | 21 +------ lib/vdsm/storage/fc-scan | 21 +------ lib/vdsm/storage/lvm.env.in | 3 + lib/vdsm/storage/managedvolume-helper | 22 ++----- lib/vdsm/storage/protect/spmprotect.sh.in | 21 +------ lib/vdsm/storage/protect/spmstop.sh | 21 +------ lib/vdsm/storage/vdsm_lvm_rules.template.in | 10 +-- m4/ax_python_module.m4 | 13 ++-- pylintrc | 3 + pyproject.toml | 3 + static/etc/NetworkManager/conf.d/vdsm.conf | 3 + static/etc/cron.hourly/vdsm-logrotate | 4 ++ static/etc/libvirt/hooks/qemu | 3 + .../etc/modprobe.d/vdsm-bonding-modprobe.conf | 3 + static/etc/modules-load.d/vdsm.conf | 3 + static/etc/ovirt-imageio/conf.d/60-vdsm.conf | 3 + .../pki/vdsm/keys/libvirt_password.license | 2 + static/etc/security/limits.d/99-vdsm.conf | 3 + static/etc/sudoers.d/50_vdsm.in.license | 2 + static/etc/sysctl.d/vdsm.conf | 3 + static/etc/vdsm/logger.conf.in | 3 + static/etc/vdsm/logrotate/vdsm.license | 2 + static/etc/vdsm/mom.conf.in | 3 + static/etc/vdsm/mom.d/00-defines.policy | 3 + .../vdsm/mom.d/01-parameters.policy.license | 2 + static/etc/vdsm/mom.d/02-balloon.policy | 3 + static/etc/vdsm/mom.d/03-ksm.policy | 3 + static/etc/vdsm/mom.d/04-cputune.policy | 3 + static/etc/vdsm/mom.d/05-iotune.policy | 3 + static/etc/vdsm/svdsm.logger.conf.in | 3 + static/libexec/vdsm/get-conf-item | 3 + static/libexec/vdsm/supervdsmd | 21 ++----- static/libexec/vdsm/vdsm-gencerts.sh.in | 21 +------ static/libexec/vdsm/vdsmd | 11 ++-- static/usr/bin/vdsm-client | 22 ++----- static/usr/bin/vdsm-tool | 21 ++----- .../lib/systemd/system/dev-hugepages1G.mount | 3 + .../lib/systemd/system/mom-vdsm.service.in | 3 + .../lib/systemd/system/supervdsmd.service.in | 3 + .../systemd/system/vdsm-network.service.in | 3 + .../usr/lib/systemd/system/vdsmd.service.in | 3 + .../usr/share/man/man1/vdsm-client.1.license | 2 + .../usr/share/man/man1/vdsm-tool.1.in.license | 2 + static/usr/share/man/man8/vdsmd.8.in.license | 2 + .../rules.d/10-vdsm-libvirt-access.rules | 3 + .../vdsm/autounattend/Autounattend.xml.in | 5 ++ static/usr/share/vdsm/lvmlocal.conf.license | 2 + stdci.yaml | 3 + tests/README.md | 5 ++ tests/caps_libvirt_amd_6274.out | 5 ++ tests/caps_libvirt_ibm_S822L.out | 5 ++ tests/caps_libvirt_ibm_S822L_le.out | 5 ++ tests/caps_libvirt_intel_E31220.out | 5 ++ tests/caps_libvirt_intel_E5606.out | 5 ++ tests/caps_libvirt_intel_E5649.out | 5 ++ tests/caps_libvirt_intel_i73770.out | 5 ++ tests/caps_libvirt_intel_i73770_nosnap.out | 5 ++ tests/caps_libvirt_multiqemu.out | 5 ++ tests/caps_libvirt_s390x.out | 5 ++ tests/caps_numactl_4_nodes.out | 5 ++ tests/check_distpkg.sh | 4 ++ tests/check_rpms.sh | 3 + tests/common/fileutils_tests_qemu.conf | 3 + tests/conf/svdsm.logger.conf | 3 + tests/container-shell | 3 + tests/cpu_info.out.license | 2 + .../cpuinfo/cpuinfo_E5649_x86_64.out.license | 2 + .../cpuinfo_POWER8E_ppc64le.out.license | 2 + tests/cpuinfo/cpuinfo_aarch64.out.license | 2 + tests/cpuinfo/cpuinfo_z14_s390x.out.license | 2 + tests/cpuinfo/cpuinfo_z196_s390x.out.license | 2 + tests/devices/data/block_sda_ssd.xml | 5 ++ tests/devices/data/computer.xml.license | 2 + tests/devices/data/devicetree.xml | 5 ++ .../data/net_em1_28_d2_44_55_66_88.xml | 5 ++ tests/devices/data/pci_0000_00_02_0.xml | 5 ++ tests/devices/data/pci_0000_00_09_0.xml | 5 ++ tests/devices/data/pci_0000_00_19_0.xml | 5 ++ tests/devices/data/pci_0000_00_1a_0.xml | 5 ++ tests/devices/data/pci_0000_00_1b_0.xml | 5 ++ tests/devices/data/pci_0000_00_1f_2.xml | 5 ++ tests/devices/data/pci_0000_05_00_1.xml | 5 ++ tests/devices/data/pci_0000_05_10_7.xml | 5 ++ tests/devices/data/pci_0000_06_00_0.xml | 5 ++ tests/devices/data/scsi_0_0_0_0.xml | 5 ++ tests/devices/data/scsi_1_0_0_0.xml | 5 ++ tests/devices/data/scsi_2_0_0_0.xml | 5 ++ tests/devices/data/scsi_generic_sg0.xml | 5 ++ tests/devices/data/scsi_generic_sg1.xml | 5 ++ tests/devices/data/scsi_host0.xml | 5 ++ tests/devices/data/scsi_host1.xml | 5 ++ tests/devices/data/scsi_host2.xml | 5 ++ tests/devices/data/scsi_target0_0_0.xml | 5 ++ tests/devices/data/scsi_target1_0_0.xml | 5 ++ tests/devices/data/scsi_target2_0_0.xml | 5 ++ tests/devices/data/testComplexVm.xml | 5 ++ tests/devices/data/testSRiovVm.xml | 5 ++ tests/devices/data/usb_1_1.xml | 5 ++ tests/devices/data/usb_1_1_4.xml | 5 ++ tests/devices/data/usb_usb1.xml | 5 ++ tests/devices/data/vm_restore_spice_after.xml | 5 ++ .../devices/data/vm_restore_spice_before.xml | 5 ++ tests/domcaps_libvirt_ppc64le.out | 5 ++ tests/domcaps_libvirt_s390x.out | 5 ++ tests/domcaps_libvirt_x86_64.out | 5 ++ tests/domcaps_libvirt_x86_64_noibrs.out | 5 ++ tests/fake-gluster-cli | 19 +----- tests/fake-ssh-add | 20 +----- tests/fake-ssh-agent | 20 +----- tests/fake-virt-sysprep | 21 ++----- tests/fake-virt-v2v | 21 ++----- tests/fake-virt-v2v.err.license | 2 + tests/fake-virt-v2v.out.license | 2 + .../functional/60_test_balloon_shrink.policy | 3 + tests/functional/70_test_balloon_grow.policy | 3 + tests/gluster/results/fake_vdo_status.yml | 3 + tests/gluster/results/getTreeTestData-1.xml | 5 ++ tests/gluster/results/hook_read.json.license | 2 + tests/gluster/results/hooks_list.json.license | 2 + tests/glusterGeoRepStatus.xml | 5 ++ tests/glusterGlobalVolumeOptions.xml | 5 ++ tests/glusterSnapshotConfig.xml | 5 ++ tests/glusterSnapshotList.xml | 5 ++ tests/glusterSnapshotListEmpty.xml | 5 ++ tests/glusterSnapshotRestore.xml | 5 ++ tests/glusterVolumeGeoRepConfigList.xml | 5 ++ tests/glusterVolumeHealInfo.xml | 5 ++ tests/glusterVolumeProfileInfo.xml | 5 ++ tests/glusterVolumeProfileInfoNfs.xml | 5 ++ tests/glusterVolumeRebalanceStatus.xml | 5 ++ tests/glusterVolumeRemoveBricksStatus.xml | 5 ++ tests/glusterVolumeSnapshotList.xml | 5 ++ tests/glusterVolumeSnapshotListEmpty.xml | 5 ++ tests/glusterVolumeTasks.xml | 5 ++ tests/mem_info.out.license | 2 + tests/network/common.sh | 3 + tests/network/functional/README.md | 5 ++ tests/network/functional/run-tests.sh | 3 + tests/network/integration/README.md | 5 ++ tests/network/integration/run-tests.sh | 3 + .../static/bonding-defaults.json.license | 2 + .../static/bonding-name2numeric.json.license | 2 + .../ip_route_show_table_all.out.license | 2 + tests/network/unit/README.md | 5 ++ tests/network/unit/netmaskconversions | 3 + tests/network/unit/run-tests.sh | 3 + tests/network/unit/tc_filter_show.out.license | 2 + tests/profile | 4 ++ tests/profile-analyze | 4 ++ tests/py-watch | 3 + tests/run_tests_local.sh.in | 4 ++ tests/slow-gluster-cli | 19 +----- tests/start-container | 3 + tests/storage/README.md | 5 ++ tests/storage/fake-devices-non-standard | 3 + tests/storage/fake-devices-standard | 3 + tests/storage/fake-lsblk | 4 ++ tests/storage/fake-lsblk.el8.out.license | 2 + tests/storage/fake-lsblk.fedora.out.license | 2 + tests/storage/fake-lsblk.node.out.license | 2 + tests/storage/fake-lsblk.rhel74.out.license | 2 + tests/storage/iscsiadm_-m_iface.out.license | 2 + ...f2-926f-42c4-839c-38287fac8998.out.license | 2 + ...18-67c4-4377-8e39-5833ca422bef.out.license | 2 + tests/toolTests_CCPP.conf | 3 + tests/toolTests_empty.conf | 3 +- tests/toolTests_lconf_ssl.conf | 3 + tests/toolTests_libvirtd.conf | 3 + tests/toolTests_mtab_1g.license | 2 + tests/toolTests_mtab_default.license | 2 + tests/toolTests_mtab_nohugetlbfs.license | 2 + tests/toolTests_qemu_sanlock.conf | 3 + tests/toolTests_qemu_ssl.conf | 3 + tests/toolTests_vdsm_no_ssl.conf | 3 + tests/toolTests_vdsm_ssl.conf | 3 + tests/toolTests_vmcore.conf | 3 + tests/virt/data/active-merge/00-before.xml | 5 ++ tests/virt/data/active-merge/01-commit.xml | 5 ++ .../data/active-merge/02-commit-ready.xml | 5 ++ tests/virt/data/active-merge/03-abort.xml | 5 ++ .../virt/data/active-merge/04-abort-ready.xml | 5 ++ tests/virt/data/active-merge/05-after.xml | 5 ++ tests/virt/data/active-merge/values.yml | 3 + tests/virt/data/disk_devices.xml | 5 ++ tests/virt/data/disk_updated_snippet.xml | 5 ++ tests/virt/data/domain.xml | 5 ++ tests/virt/data/domain_disk_block.xml | 5 ++ tests/virt/data/domain_disk_file.xml | 5 ++ tests/virt/data/hostedengine.xml | 5 ++ tests/virt/data/hostedengine_lease.xml | 5 ++ tests/virt/data/internal-merge/00-before.xml | 5 ++ tests/virt/data/internal-merge/01-commit.xml | 5 ++ tests/virt/data/internal-merge/02-after.xml | 5 ++ tests/virt/data/internal-merge/values.yml | 3 + tests/virt/data/sysinfo_snippet_filled.xml | 5 ++ tests/virt/data/sysinfo_snippet_template.xml | 5 ++ tests/virt/data/vm_compat41.json.license | 2 + tests/virt/data/vm_compat41.xml | 5 ++ tests/virt/data/vm_hibernated.xml | 5 ++ tests/virt/data/vm_hibernated_390.xml | 5 ++ tests/virt/data/vm_hosted_engine_42.xml | 5 ++ tests/virt/data/vm_replace_md_base.xml | 5 ++ tests/virt/data/vm_replace_md_update.xml | 5 ++ tests/virt/data/vm_sysprep_floppy.xml | 5 ++ tox.ini | 3 + travis/test.sh | 4 ++ vdsm.spec.in | 3 + vdsm_hooks/README | 5 ++ vdsm_hooks/allocate_net/README | 5 ++ vdsm_hooks/boot_hostdev/README | 5 ++ vdsm_hooks/checkimages/README | 5 ++ vdsm_hooks/checkips/README | 5 ++ vdsm_hooks/checkips/checkipsd | 22 ++----- vdsm_hooks/checkips/vdsm-checkips.service.in | 3 + vdsm_hooks/diskunmap/README | 5 ++ vdsm_hooks/ethtool_options/README | 5 ++ vdsm_hooks/extnet/README | 5 ++ vdsm_hooks/extra_ipv4_addrs/README | 5 ++ vdsm_hooks/extra_ipv4_addrs/sudoers | 3 + vdsm_hooks/fcoe/85-vdsm-hook-fcoe.preset | 3 + vdsm_hooks/fcoe/README | 5 ++ vdsm_hooks/fileinject/README | 5 ++ vdsm_hooks/httpsisoboot/README | 5 ++ vdsm_hooks/localdisk/12-vdsm-localdisk.rules | 9 +-- vdsm_hooks/localdisk/README | 5 ++ vdsm_hooks/localdisk/after_disk_prepare | 22 ++----- vdsm_hooks/localdisk/before_vm_migrate_source | 22 ++----- vdsm_hooks/localdisk/localdisk-helper | 22 ++----- .../localdisk/sudoers.vdsm_hook_localdisk | 3 + vdsm_hooks/log_console/README | 5 ++ vdsm_hooks/log_firmware/README | 5 ++ vdsm_hooks/macbind/README | 5 ++ vdsm_hooks/nestedvt/README | 5 ++ vdsm_hooks/nestedvt/modprobe.conf | 3 + vdsm_hooks/openstacknet/README | 5 ++ vdsm_hooks/openstacknet/sudoers.in.license | 2 + vdsm_hooks/qemucmdline/README | 5 ++ vdsm_hooks/scratchpad/README | 5 ++ vdsm_hooks/smbios/README | 5 ++ vdsm_hooks/spiceoptions/README | 5 ++ vdsm_hooks/vhostmd/sudoers.vdsm_hook_vhostmd | 3 + vdsm_hooks/vmfex_dev/README | 5 ++ vdsm_log/vdsmlog.lang | 3 + vdsm_log/vdsmlog.sh | 21 +------ vdsm_log/vdsmlog.style | 3 + 359 files changed, 1302 insertions(+), 845 deletions(-) create mode 100644 automation/build-artifacts.build-py3.packages.license create mode 100644 automation/check-patch.mounts.license create mode 100644 automation/check-patch.nmstate-func-tests.packages.license create mode 100644 automation/check-patch.packages.el9stream.license create mode 100644 automation/check-patch.packages.license create mode 100644 automation/check-patch.repos.el9stream.license create mode 100644 automation/check-patch.repos.license create mode 100644 automation/check-patch.tests-container.packages.license create mode 100644 contrib/vmconfig.json.license create mode 100644 execcmd-allowlist.txt.license create mode 100644 init/systemd/vdsm-tmpfiles.d.conf.in.license create mode 100644 static/etc/pki/vdsm/keys/libvirt_password.license create mode 100644 static/etc/sudoers.d/50_vdsm.in.license create mode 100644 static/etc/vdsm/logrotate/vdsm.license create mode 100644 static/etc/vdsm/mom.d/01-parameters.policy.license create mode 100644 static/usr/share/man/man1/vdsm-client.1.license create mode 100644 static/usr/share/man/man1/vdsm-tool.1.in.license create mode 100644 static/usr/share/man/man8/vdsmd.8.in.license create mode 100644 static/usr/share/vdsm/lvmlocal.conf.license create mode 100644 tests/cpu_info.out.license create mode 100644 tests/cpuinfo/cpuinfo_E5649_x86_64.out.license create mode 100644 tests/cpuinfo/cpuinfo_POWER8E_ppc64le.out.license create mode 100644 tests/cpuinfo/cpuinfo_aarch64.out.license create mode 100644 tests/cpuinfo/cpuinfo_z14_s390x.out.license create mode 100644 tests/cpuinfo/cpuinfo_z196_s390x.out.license create mode 100644 tests/devices/data/computer.xml.license create mode 100644 tests/fake-virt-v2v.err.license create mode 100644 tests/fake-virt-v2v.out.license create mode 100644 tests/gluster/results/hook_read.json.license create mode 100644 tests/gluster/results/hooks_list.json.license create mode 100644 tests/mem_info.out.license create mode 100644 tests/network/static/bonding-defaults.json.license create mode 100644 tests/network/static/bonding-name2numeric.json.license create mode 100644 tests/network/static/ip_route_show_table_all.out.license create mode 100644 tests/network/unit/tc_filter_show.out.license create mode 100644 tests/storage/fake-lsblk.el8.out.license create mode 100644 tests/storage/fake-lsblk.fedora.out.license create mode 100644 tests/storage/fake-lsblk.node.out.license create mode 100644 tests/storage/fake-lsblk.rhel74.out.license create mode 100644 tests/storage/iscsiadm_-m_iface.out.license create mode 100644 tests/storage/lvs_3386c6f2-926f-42c4-839c-38287fac8998.out.license create mode 100644 tests/storage/lvs_f9e55e18-67c4-4377-8e39-5833ca422bef.out.license create mode 100644 tests/toolTests_mtab_1g.license create mode 100644 tests/toolTests_mtab_default.license create mode 100644 tests/toolTests_mtab_nohugetlbfs.license create mode 100644 tests/virt/data/vm_compat41.json.license create mode 100644 vdsm_hooks/openstacknet/sudoers.in.license diff --git a/.copr/Makefile b/.copr/Makefile index 9ec4e217d9..483092cc7a 100644 --- a/.copr/Makefile +++ b/.copr/Makefile @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + .PHONY: installdeps git_cfg_safe srpm installdeps: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 468555de67..685ce39b64 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + name: CI on: [push, pull_request] env: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index ba99d8c966..082c6d3d34 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + name: "Code scanning - action" on: diff --git a/.github/workflows/containers.yml b/.github/workflows/containers.yml index 9b536f2805..49a22f1184 100644 --- a/.github/workflows/containers.yml +++ b/.github/workflows/containers.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + name: Containers on: # Be able to run the job manually when needed diff --git a/.github/workflows/network.yml b/.github/workflows/network.yml index b739b86d0b..ccbb0f8b3f 100644 --- a/.github/workflows/network.yml +++ b/.github/workflows/network.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + name: Network CI on: push: diff --git a/.github/workflows/ost.yml b/.github/workflows/ost.yml index 83d126d92b..f9dc4d3710 100644 --- a/.github/workflows/ost.yml +++ b/.github/workflows/ost.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + name: OST on: diff --git a/.gitignore b/.gitignore index 13aed94fca..6b1822d57f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + *.iml *.o *.pickle diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 082d1f429a..80f3a14fa6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + image: quay.io/ovirt/vdsm-test-centos-8 variables: diff --git a/.gitreview b/.gitreview index bfeb8943e7..0d9141883d 100644 --- a/.gitreview +++ b/.gitreview @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + [gerrit] host=gerrit.ovirt.org defaultbranch=master diff --git a/.travis.yml b/.travis.yml index 330096f964..ce4cd006f5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + dist: bionic group: edge language: python diff --git a/AUTHORS b/AUTHORS index 668a1169d4..8b55668de6 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,3 +1,8 @@ + + VDSM Author Credits =================== diff --git a/CODEOWNERS b/CODEOWNERS index 319965d1f6..b9a99f4891 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,3 +1,8 @@ + + # See github docs for more info on the syntax: # https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index e8e2d20744..a78928a4c6 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,3 +1,8 @@ + + # Community Code of Conduct We want to keep the oVirt Community a great place to participate, but we diff --git a/README.logging b/README.logging index ad2058d061..f09d80503d 100644 --- a/README.logging +++ b/README.logging @@ -1,3 +1,8 @@ + + Logging in Vdsm =============== diff --git a/README.md b/README.md index f6fa76ebf9..7e0b66ecb2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ + + # Virtual Desktop Server Manager [![CI Status](https://github.com/oVirt/vdsm/actions/workflows/ci.yml/badge.svg)](https://github.com/oVirt/vdsm/actions) diff --git a/autobuild.sh b/autobuild.sh index c7a592ca86..89bc67ffd2 100755 --- a/autobuild.sh +++ b/autobuild.sh @@ -1,5 +1,8 @@ #!/bin/sh +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + set -e set -v diff --git a/autogen.sh b/autogen.sh index 26930ce728..af9cd29758 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,5 +1,8 @@ #!/bin/sh -e +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + autoreconf -if if test "x$1" = "x--system"; then diff --git a/automation/README b/automation/README index bedf7a309a..6f2302b30c 100644 --- a/automation/README +++ b/automation/README @@ -1,3 +1,8 @@ + + Take a look to the [wiki] page on the details of what is in this directory and how it's used. diff --git a/automation/artifacts.repo b/automation/artifacts.repo index ff3859abb1..faa3233713 100644 --- a/automation/artifacts.repo +++ b/automation/artifacts.repo @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later [artifacts] name=artifacts diff --git a/automation/build-artifacts-manual.sh b/automation/build-artifacts-manual.sh index 50bb7444c2..9f1e6712b6 100755 --- a/automation/build-artifacts-manual.sh +++ b/automation/build-artifacts-manual.sh @@ -1,5 +1,8 @@ #!/bin/bash +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + set -xe # prepare env diff --git a/automation/build-artifacts.build-py3.packages.license b/automation/build-artifacts.build-py3.packages.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/automation/build-artifacts.build-py3.packages.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/automation/build.sh b/automation/build.sh index c10e4b1a72..a8d3974dd8 100755 --- a/automation/build.sh +++ b/automation/build.sh @@ -1,5 +1,8 @@ #!/bin/bash +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + source automation/common.sh prepare_env diff --git a/automation/check-patch.install.sh b/automation/check-patch.install.sh index ab2c6eecf5..a4a30e0aae 100644 --- a/automation/check-patch.install.sh +++ b/automation/check-patch.install.sh @@ -1,5 +1,8 @@ #!/bin/bash -xe +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + source automation/common.sh prepare_env diff --git a/automation/check-patch.linters.sh b/automation/check-patch.linters.sh index 2922c52b26..1618ed293c 100755 --- a/automation/check-patch.linters.sh +++ b/automation/check-patch.linters.sh @@ -1,5 +1,8 @@ #!/bin/bash -xe +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + source automation/common.sh prepare_env diff --git a/automation/check-patch.mounts.license b/automation/check-patch.mounts.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/automation/check-patch.mounts.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/automation/check-patch.nmstate-func-tests-ovs.sh b/automation/check-patch.nmstate-func-tests-ovs.sh index 299d2a7e4b..eb121ba6ab 100644 --- a/automation/check-patch.nmstate-func-tests-ovs.sh +++ b/automation/check-patch.nmstate-func-tests-ovs.sh @@ -1,4 +1,7 @@ #!/bin/bash -xe +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + ./tests/network/functional/run-tests.sh --switch-type=ovs \ --pytest-args="--skip-stable-link-monitor" diff --git a/automation/check-patch.nmstate-func-tests.environment.yaml b/automation/check-patch.nmstate-func-tests.environment.yaml index 94d1416c27..4a650b6b51 100644 --- a/automation/check-patch.nmstate-func-tests.environment.yaml +++ b/automation/check-patch.nmstate-func-tests.environment.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + - name: 'CI_PYTHON' # This variable needs to be in a 'pythonMAJOR' form because it's value: 'python3' # used to run commands like 'python3-coverage' and for package names - name: 'CONTAINER_IMAGE' diff --git a/automation/check-patch.nmstate-func-tests.packages.license b/automation/check-patch.nmstate-func-tests.packages.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/automation/check-patch.nmstate-func-tests.packages.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/automation/check-patch.nmstate-func-tests.sh b/automation/check-patch.nmstate-func-tests.sh index c6397c0cff..1ad5ba1ebb 100644 --- a/automation/check-patch.nmstate-func-tests.sh +++ b/automation/check-patch.nmstate-func-tests.sh @@ -1,3 +1,6 @@ #!/bin/bash -xe +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + ./tests/network/functional/run-tests.sh diff --git a/automation/check-patch.packages.el9stream.license b/automation/check-patch.packages.el9stream.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/automation/check-patch.packages.el9stream.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/automation/check-patch.packages.license b/automation/check-patch.packages.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/automation/check-patch.packages.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/automation/check-patch.repos.el9stream.license b/automation/check-patch.repos.el9stream.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/automation/check-patch.repos.el9stream.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/automation/check-patch.repos.license b/automation/check-patch.repos.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/automation/check-patch.repos.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/automation/check-patch.tests-container.environment.yaml b/automation/check-patch.tests-container.environment.yaml index f364e46751..3abdbbd596 100644 --- a/automation/check-patch.tests-container.environment.yaml +++ b/automation/check-patch.tests-container.environment.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # TODO rename to DISTRO with DIST in .travis.yaml - name: 'DIST' value: 'centos-8 ' diff --git a/automation/check-patch.tests-container.packages.license b/automation/check-patch.tests-container.packages.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/automation/check-patch.tests-container.packages.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/automation/check-patch.tests-container.sh b/automation/check-patch.tests-container.sh index 555f70e404..169259c7d9 100644 --- a/automation/check-patch.tests-container.sh +++ b/automation/check-patch.tests-container.sh @@ -1,5 +1,8 @@ #!/bin/bash -xe +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + podman run \ --env-host \ --privileged \ diff --git a/automation/check-patch.tests-py3.sh b/automation/check-patch.tests-py3.sh index 59661a1a74..06817c2ad2 100644 --- a/automation/check-patch.tests-py3.sh +++ b/automation/check-patch.tests-py3.sh @@ -1,5 +1,8 @@ #!/bin/bash -xe +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + source automation/common.sh prepare_env diff --git a/automation/check-patch.tests-storage.sh b/automation/check-patch.tests-storage.sh index 601bbe184f..bbed5bc8f0 100644 --- a/automation/check-patch.tests-storage.sh +++ b/automation/check-patch.tests-storage.sh @@ -1,5 +1,8 @@ #!/bin/bash -xe +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + source automation/common.sh prepare_env diff --git a/automation/common.sh b/automation/common.sh index 109e33fe4f..9e4a03b55a 100755 --- a/automation/common.sh +++ b/automation/common.sh @@ -1,5 +1,8 @@ #!/bin/bash +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + set -e # Common helpers diff --git a/automation/deploy.sh b/automation/deploy.sh index adc15e2ef6..efaeff9631 100644 --- a/automation/deploy.sh +++ b/automation/deploy.sh @@ -1,5 +1,8 @@ #!/bin/bash -ex +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + shopt -s extglob IFACES=(/proc/sys/net/ipv4/conf/!(all|default|lo)) shopt -u extglob diff --git a/automation/exclude_from_conf b/automation/exclude_from_conf index 5e99a504d8..8c9778c1e6 100755 --- a/automation/exclude_from_conf +++ b/automation/exclude_from_conf @@ -1,5 +1,8 @@ #!/usr/bin/python3 +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + from __future__ import absolute_import import sys diff --git a/automation/lago-env_el7.yml b/automation/lago-env_el7.yml index 353b08b1b2..9fff962ab4 100644 --- a/automation/lago-env_el7.yml +++ b/automation/lago-env_el7.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + domains: vdsm_functional_tests_host-el7: nics: diff --git a/automation/lago-env_fc29.yml b/automation/lago-env_fc29.yml index 3b87b61dfa..bdc9a45da5 100644 --- a/automation/lago-env_fc29.yml +++ b/automation/lago-env_fc29.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + domains: vdsm_functional_tests_host-fc29: nics: diff --git a/automation/lint.sh b/automation/lint.sh index fefc89d6be..2665e24594 100755 --- a/automation/lint.sh +++ b/automation/lint.sh @@ -1,5 +1,8 @@ #!/bin/bash -xe +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + ./autogen.sh --system make make lint diff --git a/automation/py2.environment.yaml b/automation/py2.environment.yaml index f2eb649d28..86839e838c 100644 --- a/automation/py2.environment.yaml +++ b/automation/py2.environment.yaml @@ -1,2 +1,5 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + - name: 'CI_PYTHON' # This variable needs to be in a 'pythonMAJOR' form because it's value: 'python2' # used to run commands like 'python3-coverage' and for package names diff --git a/automation/py3.environment.yaml b/automation/py3.environment.yaml index 9f243c5de3..739fb0a3ec 100644 --- a/automation/py3.environment.yaml +++ b/automation/py3.environment.yaml @@ -1,2 +1,5 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + - name: 'CI_PYTHON' # This variable needs to be in a 'pythonMAJOR' form because it's value: 'python3' # used to run commands like 'python3-coverage' and for package names diff --git a/automation/rpm.sh b/automation/rpm.sh index 4696b63780..0ee60b4efe 100755 --- a/automation/rpm.sh +++ b/automation/rpm.sh @@ -1,5 +1,8 @@ #!/bin/bash -xe +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + export EXPORT_DIR="${EXPORT_DIR:-exported-artifacts}" if [ "$GITHUB_EVENT_NAME" = "push" ]; then diff --git a/automation/tests-storage.sh b/automation/tests-storage.sh index 795bf225a4..0916bd50c9 100755 --- a/automation/tests-storage.sh +++ b/automation/tests-storage.sh @@ -1,5 +1,8 @@ #!/bin/sh -e +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + print_help() { echo "Usage: $0 USER" echo "" diff --git a/automation/tests.sh b/automation/tests.sh index ddaf671d90..cc02589b0e 100755 --- a/automation/tests.sh +++ b/automation/tests.sh @@ -1,5 +1,8 @@ #!/bin/bash -xe +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # Enable IPv6 echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6 # Load bonding module diff --git a/build-aux/Makefile.subs b/build-aux/Makefile.subs index 3c4642f5b5..ee70d59fd4 100644 --- a/build-aux/Makefile.subs +++ b/build-aux/Makefile.subs @@ -1,22 +1,6 @@ -# # Copyright 2008-2012 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later SUFFIXES: .in diff --git a/build-aux/gitlog-to-changelog b/build-aux/gitlog-to-changelog index b0db3052b0..d9b4365cf8 100755 --- a/build-aux/gitlog-to-changelog +++ b/build-aux/gitlog-to-changelog @@ -10,6 +10,8 @@ my $VERSION = '2009-10-30 13:46'; # UTC # do its job. Otherwise, update this string manually. # Copyright (C) 2008-2011 Free Software Foundation, Inc. +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/build-aux/list-all-python-files b/build-aux/list-all-python-files index ebee103c37..85fc03b8c0 100755 --- a/build-aux/list-all-python-files +++ b/build-aux/list-all-python-files @@ -1,5 +1,8 @@ #!/bin/bash +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # Lists all Python files (including the ones without '.py' extension, # but containing a Python shebang line) in current directory. # Please remember to run 'make' before using this script - it doesn't diff --git a/build-aux/make-dist b/build-aux/make-dist index 6c7017b4f6..cf6a34d953 100755 --- a/build-aux/make-dist +++ b/build-aux/make-dist @@ -1,5 +1,8 @@ #!/bin/sh +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + cd $(dirname $0)/.. if [ -f Makefile ]; then diff --git a/build-aux/pkg-version b/build-aux/pkg-version index 42be7c6e42..3e4726a75d 100755 --- a/build-aux/pkg-version +++ b/build-aux/pkg-version @@ -1,5 +1,8 @@ #!/bin/sh +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # tags and output versions: # - v4.9.0 => 4.9.0 (upstream clean) # - v4.9.0-1 => 4.9.0 (downstream clean) diff --git a/build-aux/vercmp b/build-aux/vercmp index 70e59c21c1..c6d62bbf81 100755 --- a/build-aux/vercmp +++ b/build-aux/vercmp @@ -1,23 +1,8 @@ #!/usr/bin/python3 -# + # Copyright 2016 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later from __future__ import absolute_import diff --git a/commit-template.txt b/commit-template.txt index af1ff41f35..53cda06f0c 100644 --- a/commit-template.txt +++ b/commit-template.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + topic: Short summary under 50 chars (if possible) The topic should be a module name, a subsystem name, or a feature name, diff --git a/configure.ac b/configure.ac index bf01c9c05d..36cd61127b 100644 --- a/configure.ac +++ b/configure.ac @@ -1,3 +1,6 @@ +dnl SPDX-FileCopyrightText: 2022 Red Hat, Inc. +dnl SPDX-License-Identifier: GPL-2.0-or-later + # # Copyright 2008-2020 Red Hat, Inc. # diff --git a/contrib/block b/contrib/block index dd90e39a4d..c98f6e86ce 100755 --- a/contrib/block +++ b/contrib/block @@ -1,37 +1,8 @@ #!/usr/bin/python3 -# + # Copyright 2020 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# -# This script blocks access to a certain port on a server temporarily. This is -# useful for testing recovery flows when storage server is not accessible. -# -# Examples -# -# - Blocking all outgoing traffic to server my.storage until the script is -# interrupted: -# -# $ sudo contrib/block my.server -# -# - Blocking outgoing traffic to NFS server my.storage for 60 seconds: -# -# $ sudo contrib/block --port 2049 --duration 60 my.storage -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later import argparse import atexit diff --git a/contrib/create-gluster-volume.sh b/contrib/create-gluster-volume.sh index 2250e8c67d..98ee7f0169 100644 --- a/contrib/create-gluster-volume.sh +++ b/contrib/create-gluster-volume.sh @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # Create replica 3 volume with arbiter. # # Requirements: diff --git a/contrib/create-vdo-brick.sh b/contrib/create-vdo-brick.sh index fb531a63da..5711bcb398 100644 --- a/contrib/create-vdo-brick.sh +++ b/contrib/create-vdo-brick.sh @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # Create brick backed by vdo device. # # Requirements: diff --git a/contrib/deploy-gluster.sh b/contrib/deploy-gluster.sh index ae99a28d59..863ab463d6 100644 --- a/contrib/deploy-gluster.sh +++ b/contrib/deploy-gluster.sh @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # Install required packages and start services. # This must run on all gluster nodes. When done, you can create gluster # bricks and volumes on one of the nodes. diff --git a/contrib/extend-stats b/contrib/extend-stats index 92174322f2..01f745569d 100755 --- a/contrib/extend-stats +++ b/contrib/extend-stats @@ -1,23 +1,8 @@ #!/usr/bin/python3 -# + # Copyright 2014 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later """ Compute extend stats from vdsm log. diff --git a/contrib/git-sync b/contrib/git-sync index 2bba2300e8..3bce73980a 100755 --- a/contrib/git-sync +++ b/contrib/git-sync @@ -1,23 +1,8 @@ #!/usr/bin/python3 -# + # Copyright 2020 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later """ Push a git branch to remote, modifying the remote working directory. diff --git a/contrib/koji_build.sh b/contrib/koji_build.sh index 33c8f47fbc..40fd7aaede 100755 --- a/contrib/koji_build.sh +++ b/contrib/koji_build.sh @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + echo 'Please run this script from vdsm main folder' echo '============================================' diff --git a/contrib/logdb b/contrib/logdb index 51d6da5fa2..8ac48644eb 100755 --- a/contrib/logdb +++ b/contrib/logdb @@ -1,23 +1,8 @@ #!/usr/bin/python3 -# + # Copyright 2015 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later """ Usage: logdb dbname logfile ... diff --git a/contrib/logstat b/contrib/logstat index b3f28e04d5..624d8647ed 100755 --- a/contrib/logstat +++ b/contrib/logstat @@ -1,23 +1,8 @@ #!/usr/bin/python3 -# + # Copyright 2016 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later """ Usage: logstat logfile ... diff --git a/contrib/lvs-stats b/contrib/lvs-stats index c426c68ab7..5ef9653e8a 100755 --- a/contrib/lvs-stats +++ b/contrib/lvs-stats @@ -1,23 +1,8 @@ #!/usr/bin/python3 -# + # Copyright 2017 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later """ Analayze lvs info from sosreport. diff --git a/contrib/profile-stats b/contrib/profile-stats index 21c687c7df..d087cca2ed 100755 --- a/contrib/profile-stats +++ b/contrib/profile-stats @@ -1,23 +1,8 @@ #!/usr/bin/python3 -# + # Copyright 2014 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later """ Print statistics from recorded profile using pstat format. diff --git a/contrib/refmt b/contrib/refmt index 794a17ad91..2616fd27ae 100755 --- a/contrib/refmt +++ b/contrib/refmt @@ -1,64 +1,8 @@ #!/usr/bin/python3 -# + # Copyright 2016 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# -# -# helper script to prettify Vdsm parameter dumps from the logs. -# useful to extract test data. -# This tool is intended to make it easier for humans to read -# the dump. -# -# The intended workflow is: -# 1. scan the Vdsm logs to fetch the parameter/return type -# dump you need. -# You MUST keep the dump on one line! -# 2. copy the dump into a file, let's call it 'param.out' -# 3. beautify the dump with -# /path/to/refmt /path/to/param.out -# 4. the beautified dump will be printed on stdout -# -# Example: -# - before: -# (please note line continuations to fit in 80 columns; -# please remember each dump must be on its own line.) -# {u'b0390d9e-2f1d-43c0-a56c-a20af032e934': {'code': 0, 'actual': True, \ -# 'version': 0, 'acquired': True, 'delay': '0.000521661', \ -# 'lastCheck': '9.8', 'valid': True}, \ -# u'c17ac7f2-bec0-4ed1-a04e-790799e65d7c': {'code': 0, 'actual': True, \ -# 'version': 3, 'acquired': True, 'delay': '0.000640848', \ -# 'lastCheck': '0.0', 'valid': True}} -# -# - after: -# {u'b0390d9e-2f1d-43c0-a56c-a20af032e934': {'acquired': True, -# 'actual': True, -# 'code': 0, -# 'delay': '0.000521661', -# 'lastCheck': '9.8', -# 'valid': True, -# 'version': 0}, -# u'c17ac7f2-bec0-4ed1-a04e-790799e65d7c': {'acquired': True, -# 'actual': True, -# 'code': 0, -# 'delay': '0.000640848', -# 'lastCheck': '0.0', -# 'valid': True, -# 'version': 3}} +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later from __future__ import absolute_import diff --git a/contrib/repoplot b/contrib/repoplot index 1f2a2c048f..21a250aff7 100755 --- a/contrib/repoplot +++ b/contrib/repoplot @@ -1,23 +1,8 @@ #!/usr/bin/python3 -# + # Copyright 2014 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later """ Parse repoStats log lines and plot graphs of lastCheck and read delay for all diff --git a/contrib/repostat b/contrib/repostat index 480729e1af..60e22f878d 100755 --- a/contrib/repostat +++ b/contrib/repostat @@ -1,23 +1,9 @@ #!/usr/bin/python3 -# + # Copyright 2015-2018 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + """ Parse repoStats log lines and calculate statistics. diff --git a/contrib/rhv_build.sh b/contrib/rhv_build.sh index c5838affd9..4c5a38451a 100755 --- a/contrib/rhv_build.sh +++ b/contrib/rhv_build.sh @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + echo 'Please run this script from vdsm main folder' echo '============================================' diff --git a/contrib/runvm b/contrib/runvm index c9662fa771..6f39954e08 100755 --- a/contrib/runvm +++ b/contrib/runvm @@ -1,22 +1,8 @@ #!/usr/bin/python3 -# + # Copyright 2016-2017 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later # cat < + # Check Volume Leases Running legacy cold merge, when the cluster level <= 4.0, ends with diff --git a/doc/development.md b/doc/development.md index c912310b99..ad8d2dc2b1 100644 --- a/doc/development.md +++ b/doc/development.md @@ -1,3 +1,8 @@ + + # Development ## Environment setup diff --git a/doc/guest-agent.md b/doc/guest-agent.md index 0ddb8089d3..c5605a7be1 100644 --- a/doc/guest-agent.md +++ b/doc/guest-agent.md @@ -1,3 +1,8 @@ + + oVirt Guest Agent =================== diff --git a/doc/incremental-backup.md b/doc/incremental-backup.md index f5a70e991e..e849b7a9fe 100644 --- a/doc/incremental-backup.md +++ b/doc/incremental-backup.md @@ -1,3 +1,8 @@ + + # Incremental backup support In version 4.3, oVirt introduced support for incremental backup. diff --git a/doc/index.rst b/doc/index.rst index 94ee8fc05e..0b7dd4c8cf 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -1,3 +1,6 @@ +.. SPDX-FileCopyrightText: 2022 Red Hat, Inc. +.. SPDX-License-Identifier: GPL-2.0-or-later + .. Vdsm documentation master file, created by sphinx-quickstart on Thu Dec 24 14:07:47 2009. You can adapt this file completely to your liking, but it should at least diff --git a/doc/io-timeouts.md b/doc/io-timeouts.md index 7ece3d4f0f..314c03314f 100644 --- a/doc/io-timeouts.md +++ b/doc/io-timeouts.md @@ -1,3 +1,8 @@ + + # vdsm I/O timeouts Some storage servers need longer I/O timeouts in failover or upgrade diff --git a/doc/iscsi-server-setup.md b/doc/iscsi-server-setup.md index 4b75e5e63f..a66a543ad8 100644 --- a/doc/iscsi-server-setup.md +++ b/doc/iscsi-server-setup.md @@ -1,3 +1,8 @@ + + # Setting iSCSI storage For testing oVirt setups using iSCSI storage domain, take following steps: diff --git a/doc/managed-volume.md b/doc/managed-volume.md index 2a31492e4a..bb9e1b36ed 100644 --- a/doc/managed-volume.md +++ b/doc/managed-volume.md @@ -1,3 +1,8 @@ + + # Managed Volumes In version 4.3, oVirt introduced support of Managed Block Storage. diff --git a/doc/profile-vdsm-with-yappi.md b/doc/profile-vdsm-with-yappi.md index a7ff04d79d..bdf0dd73fc 100644 --- a/doc/profile-vdsm-with-yappi.md +++ b/doc/profile-vdsm-with-yappi.md @@ -1,3 +1,8 @@ + + # Profile Vdsm execution using Yappi To profile Vdsm execution using Yappi, take the following steps: diff --git a/doc/thin-provisioning.md b/doc/thin-provisioning.md index 6cd6498d2e..1b7050ae47 100644 --- a/doc/thin-provisioning.md +++ b/doc/thin-provisioning.md @@ -1,3 +1,8 @@ + + # thin-provisioning support in Vdsm Vdsm supports thin-provisioned drives backed by either block or diff --git a/docker/Dockerfile.centos-8 b/docker/Dockerfile.centos-8 index 5c1e3f2cc0..d58fe57c12 100644 --- a/docker/Dockerfile.centos-8 +++ b/docker/Dockerfile.centos-8 @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + FROM quay.io/centos/centos:stream8 # Add runtime dependencies. diff --git a/docker/Makefile b/docker/Makefile index 7150dcb18f..18fd9fbe37 100644 --- a/docker/Makefile +++ b/docker/Makefile @@ -1,22 +1,6 @@ -# # Copyright 2019 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later targets := centos-8 prefix := vdsm-test diff --git a/docker/lvmlocal.conf b/docker/lvmlocal.conf index 1d4d46fe31..be8e4e2562 100644 --- a/docker/lvmlocal.conf +++ b/docker/lvmlocal.conf @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # LVM conf required for running lvm commands under mock or inside a # container. diff --git a/docker/network/Makefile b/docker/network/Makefile index 1cfacf1cf9..3186c464a6 100644 --- a/docker/network/Makefile +++ b/docker/network/Makefile @@ -1,20 +1,6 @@ # Copyright 2021 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later CONTAINER_CMD := podman PREFIX := ovirt/vdsm-network-tests diff --git a/docker/network/functional/Dockerfile.alma-9 b/docker/network/functional/Dockerfile.alma-9 index e5bbe748e4..04a1e622ae 100644 --- a/docker/network/functional/Dockerfile.alma-9 +++ b/docker/network/functional/Dockerfile.alma-9 @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + FROM quay.io/almalinux/almalinux:9.0 # Use legacy cryptopolicy as workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2059101 diff --git a/docker/network/functional/Dockerfile.centos-8 b/docker/network/functional/Dockerfile.centos-8 index d02f1a5cb9..c84e55e49a 100644 --- a/docker/network/functional/Dockerfile.centos-8 +++ b/docker/network/functional/Dockerfile.centos-8 @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + FROM quay.io/centos/centos:stream8 # Add runtime dependencies. diff --git a/docker/network/functional/Dockerfile.centos-9 b/docker/network/functional/Dockerfile.centos-9 index 8508f3bcaa..8a2af06748 100644 --- a/docker/network/functional/Dockerfile.centos-9 +++ b/docker/network/functional/Dockerfile.centos-9 @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + FROM quay.io/centos/centos:stream9 # Use legacy cryptopolicy as workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2059101 diff --git a/docker/network/integration/Dockerfile.alma-9 b/docker/network/integration/Dockerfile.alma-9 index 41575249ac..d03ffc3f93 100644 --- a/docker/network/integration/Dockerfile.alma-9 +++ b/docker/network/integration/Dockerfile.alma-9 @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + FROM quay.io/almalinux/almalinux:9.0 # Use legacy cryptopolicy as workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2059101 diff --git a/docker/network/integration/Dockerfile.centos-8 b/docker/network/integration/Dockerfile.centos-8 index 24c888f39e..1cb986a41a 100644 --- a/docker/network/integration/Dockerfile.centos-8 +++ b/docker/network/integration/Dockerfile.centos-8 @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + FROM quay.io/centos/centos:stream8 # Add runtime dependencies. diff --git a/docker/network/integration/Dockerfile.centos-9 b/docker/network/integration/Dockerfile.centos-9 index ebcbffa61b..7a74abb90c 100644 --- a/docker/network/integration/Dockerfile.centos-9 +++ b/docker/network/integration/Dockerfile.centos-9 @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + FROM quay.io/centos/centos:stream9 # Use legacy cryptopolicy as workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2059101 diff --git a/docker/network/unit/Dockerfile.alma-9 b/docker/network/unit/Dockerfile.alma-9 index aa890bbb90..5d627a78e3 100644 --- a/docker/network/unit/Dockerfile.alma-9 +++ b/docker/network/unit/Dockerfile.alma-9 @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + FROM quay.io/almalinux/almalinux:9.0 # Use legacy cryptopolicy as workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2059101 diff --git a/docker/network/unit/Dockerfile.centos-8 b/docker/network/unit/Dockerfile.centos-8 index 7d3763de15..48e5303567 100644 --- a/docker/network/unit/Dockerfile.centos-8 +++ b/docker/network/unit/Dockerfile.centos-8 @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + FROM quay.io/centos/centos:stream8 # Add runtime dependencies. diff --git a/docker/network/unit/Dockerfile.centos-9 b/docker/network/unit/Dockerfile.centos-9 index 3bbc3bd357..db380e41f4 100644 --- a/docker/network/unit/Dockerfile.centos-9 +++ b/docker/network/unit/Dockerfile.centos-9 @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + FROM quay.io/centos/centos:stream9 # Use legacy cryptopolicy as workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2059101 diff --git a/docker/requirements.txt b/docker/requirements.txt index 3234150c81..427076e1da 100644 --- a/docker/requirements.txt +++ b/docker/requirements.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + nose==1.3.7 tox yappi diff --git a/execcmd-allowlist.txt.license b/execcmd-allowlist.txt.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/execcmd-allowlist.txt.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/helpers/fallocate b/helpers/fallocate index 50fc196417..c947e9fc1c 100755 --- a/helpers/fallocate +++ b/helpers/fallocate @@ -1,22 +1,8 @@ #!/usr/bin/python3 + # Copyright 2017 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later import argparse import ctypes diff --git a/helpers/kvm2ovirt b/helpers/kvm2ovirt index d4aea88349..e78032f109 100755 --- a/helpers/kvm2ovirt +++ b/helpers/kvm2ovirt @@ -1,22 +1,9 @@ #!/usr/bin/python3 + # Copyright 2016 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + from __future__ import absolute_import from vdsm import kvm2ovirt diff --git a/init/daemonAdapter b/init/daemonAdapter index e8ce8565ef..e95c1775dd 100755 --- a/init/daemonAdapter +++ b/init/daemonAdapter @@ -1,22 +1,9 @@ #!/usr/bin/python3 + # Copyright 2013 IBM, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + from __future__ import absolute_import import argparse diff --git a/init/systemd/unlimited-core.conf b/init/systemd/unlimited-core.conf index 45c0770cde..e0924b81a9 100644 --- a/init/systemd/unlimited-core.conf +++ b/init/systemd/unlimited-core.conf @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + ## beginning of configuration section by vdsm [Service] LimitCORE=infinity diff --git a/init/systemd/vdsm-tmpfiles.d.conf.in.license b/init/systemd/vdsm-tmpfiles.d.conf.in.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/init/systemd/vdsm-tmpfiles.d.conf.in.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/init/vdsmd_init_common.sh.in b/init/vdsmd_init_common.sh.in index 7965bf6e45..702aac5743 100755 --- a/init/vdsmd_init_common.sh.in +++ b/init/vdsmd_init_common.sh.in @@ -1,23 +1,9 @@ #!/bin/sh + # Copyright 2013 IBM, Inc. # Copyright 2017-2020 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later VDSM_TOOL="@BINDIR@/vdsm-tool" UPGRADE_LOGGING_PARAMS="--vvverbose --append --logfile=@VDSMLOGDIR@/upgrade.log" diff --git a/lib/vdsm/api/vdsm-api-gluster.yml b/lib/vdsm/api/vdsm-api-gluster.yml index 4fc7e9afcc..872238c592 100644 --- a/lib/vdsm/api/vdsm-api-gluster.yml +++ b/lib/vdsm/api/vdsm-api-gluster.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + types: UUID: &UUID added: '3.1' diff --git a/lib/vdsm/api/vdsm-api.yml b/lib/vdsm/api/vdsm-api.yml index 3eb1058507..2bf8657563 100644 --- a/lib/vdsm/api/vdsm-api.yml +++ b/lib/vdsm/api/vdsm-api.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + types: AutoNumaBalancingStatus: &AutoNumaBalancingStatus added: '3.4' diff --git a/lib/vdsm/api/vdsm-events.yml b/lib/vdsm/api/vdsm-events.yml index 20e58168ea..966db1c4dc 100644 --- a/lib/vdsm/api/vdsm-events.yml +++ b/lib/vdsm/api/vdsm-events.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + types: UUID: &UUID description: A universally unique identifier in RFC 4122 format.eg. diff --git a/lib/vdsm/common/config.py.in b/lib/vdsm/common/config.py.in index 8504d04ff3..4da9a89922 100644 --- a/lib/vdsm/common/config.py.in +++ b/lib/vdsm/common/config.py.in @@ -1,22 +1,7 @@ -# # Copyright 2011-2022 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + """ This module creates vdsm configuration from a default vdsm configuration file under /etc/vdsm/vdsm.conf. It reads conf files from drop-in dirs and updates diff --git a/lib/vdsm/common/constants.py.in b/lib/vdsm/common/constants.py.in index 0be97b69b0..b9b2424a58 100644 --- a/lib/vdsm/common/constants.py.in +++ b/lib/vdsm/common/constants.py.in @@ -1,22 +1,6 @@ -# # Copyright 2009-2020 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later from __future__ import absolute_import from __future__ import division diff --git a/lib/vdsm/common/dsaversion.py.in b/lib/vdsm/common/dsaversion.py.in index db7a3da529..c81c790446 100644 --- a/lib/vdsm/common/dsaversion.py.in +++ b/lib/vdsm/common/dsaversion.py.in @@ -1,22 +1,7 @@ -# # Copyright 2007-2020 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + """ This module provides DSA software versioning information for python based components diff --git a/lib/vdsm/storage/curl-img-wrap b/lib/vdsm/storage/curl-img-wrap index 65daba666b..1c82b1c3f3 100755 --- a/lib/vdsm/storage/curl-img-wrap +++ b/lib/vdsm/storage/curl-img-wrap @@ -1,23 +1,8 @@ #!/usr/bin/python3 -# + # Copyright 2013-2017 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later # README # ====== diff --git a/lib/vdsm/storage/fc-scan b/lib/vdsm/storage/fc-scan index 64d1e5e7af..8dd7bc0187 100755 --- a/lib/vdsm/storage/fc-scan +++ b/lib/vdsm/storage/fc-scan @@ -1,23 +1,8 @@ #!/usr/bin/python3 -# + # Copyright 2014-2017 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later """ Usage: fc-scan [-v|-h] [--no-devices] diff --git a/lib/vdsm/storage/lvm.env.in b/lib/vdsm/storage/lvm.env.in index 25f73cb4df..4e4caf563e 100644 --- a/lib/vdsm/storage/lvm.env.in +++ b/lib/vdsm/storage/lvm.env.in @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # # source this into your shell to gain vdsm's view of lvm. # diff --git a/lib/vdsm/storage/managedvolume-helper b/lib/vdsm/storage/managedvolume-helper index a8947f8467..99bd37fb28 100755 --- a/lib/vdsm/storage/managedvolume-helper +++ b/lib/vdsm/storage/managedvolume-helper @@ -1,23 +1,9 @@ #!/usr/bin/python3 -# + # Copyright 2018-2019 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + """ This helper provides a wrapper to os_brick module, exposing the commands needed for getting the Host connector information, attach diff --git a/lib/vdsm/storage/protect/spmprotect.sh.in b/lib/vdsm/storage/protect/spmprotect.sh.in index ed99607bc6..0fe899ed39 100755 --- a/lib/vdsm/storage/protect/spmprotect.sh.in +++ b/lib/vdsm/storage/protect/spmprotect.sh.in @@ -1,23 +1,8 @@ #!/bin/bash -# + # Copyright 2011 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later set +o pipefail diff --git a/lib/vdsm/storage/protect/spmstop.sh b/lib/vdsm/storage/protect/spmstop.sh index 582730ea81..47ab419be2 100755 --- a/lib/vdsm/storage/protect/spmstop.sh +++ b/lib/vdsm/storage/protect/spmstop.sh @@ -1,23 +1,8 @@ #!/bin/bash -# + # Copyright 2011 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later LOGFILE="/var/log/vdsm/spm-lock.log" KILL="/bin/kill" diff --git a/lib/vdsm/storage/vdsm_lvm_rules.template.in b/lib/vdsm/storage/vdsm_lvm_rules.template.in index e6a21c34b8..689e749750 100644 --- a/lib/vdsm/storage/vdsm_lvm_rules.template.in +++ b/lib/vdsm/storage/vdsm_lvm_rules.template.in @@ -1,11 +1,7 @@ -# # Copyright 2010-2014 Red Hat, Inc. and/or its affiliates. -# -# Licensed to you under the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. See the files README and -# LICENSE_GPL_v2 which accompany this distribution. -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + """ Generate vdsm lvm udev rule """ diff --git a/m4/ax_python_module.m4 b/m4/ax_python_module.m4 index 9c78d8ba43..89e31f2b16 100644 --- a/m4/ax_python_module.m4 +++ b/m4/ax_python_module.m4 @@ -1,3 +1,7 @@ +# Copyright (c) 2008 Andrew Collier +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # =========================================================================== # http://www.gnu.org/software/autoconf-archive/ax_python_module.html # =========================================================================== @@ -13,15 +17,6 @@ # If fatal is non-empty then absence of a module will trigger an error. # The third parameter can either be "python" for Python 2 or "python3" for # Python 3; defaults to Python 3. -# -# LICENSE -# -# Copyright (c) 2008 Andrew Collier -# -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty provided the copyright notice -# and this notice are preserved. This file is offered as-is, without any -# warranty. #serial 8 diff --git a/pylintrc b/pylintrc index 0dc965c460..fd01dc494c 100644 --- a/pylintrc +++ b/pylintrc @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # This file was generated using `pylint --generate-rcfile > pylintrc` command. # It was edited to support vdsm python source conventions. [MASTER] diff --git a/pyproject.toml b/pyproject.toml index d3728bae84..ddfd615403 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + [tool.black] line-length = 79 skip-string-normalization = true diff --git a/static/etc/NetworkManager/conf.d/vdsm.conf b/static/etc/NetworkManager/conf.d/vdsm.conf index 65a00a3249..637db767b8 100644 --- a/static/etc/NetworkManager/conf.d/vdsm.conf +++ b/static/etc/NetworkManager/conf.d/vdsm.conf @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # VDSM specific configuration. [main] diff --git a/static/etc/cron.hourly/vdsm-logrotate b/static/etc/cron.hourly/vdsm-logrotate index 8711fbd579..4cb08cc419 100755 --- a/static/etc/cron.hourly/vdsm-logrotate +++ b/static/etc/cron.hourly/vdsm-logrotate @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + errors=0 # diff --git a/static/etc/libvirt/hooks/qemu b/static/etc/libvirt/hooks/qemu index d8d6dc591b..694dac7fa5 100755 --- a/static/etc/libvirt/hooks/qemu +++ b/static/etc/libvirt/hooks/qemu @@ -1,5 +1,8 @@ #!/bin/sh +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + DOMAIN="$1" EVENT="$2" PHASE="$3" diff --git a/static/etc/modprobe.d/vdsm-bonding-modprobe.conf b/static/etc/modprobe.d/vdsm-bonding-modprobe.conf index dce5224f96..9736c30b92 100644 --- a/static/etc/modprobe.d/vdsm-bonding-modprobe.conf +++ b/static/etc/modprobe.d/vdsm-bonding-modprobe.conf @@ -1,2 +1,5 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # VDSM bonding modprobe configuration options bonding max_bonds=0 diff --git a/static/etc/modules-load.d/vdsm.conf b/static/etc/modules-load.d/vdsm.conf index 180826824f..3a7aadd548 100644 --- a/static/etc/modules-load.d/vdsm.conf +++ b/static/etc/modules-load.d/vdsm.conf @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # Kernel modules required by vdsm bonding bridge diff --git a/static/etc/ovirt-imageio/conf.d/60-vdsm.conf b/static/etc/ovirt-imageio/conf.d/60-vdsm.conf index 64ba1b941a..5ba64ef984 100644 --- a/static/etc/ovirt-imageio/conf.d/60-vdsm.conf +++ b/static/etc/ovirt-imageio/conf.d/60-vdsm.conf @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # Configuration overrides for vdsm. # # WARNING: This file is owned by vdsm. If you modify this file your changes diff --git a/static/etc/pki/vdsm/keys/libvirt_password.license b/static/etc/pki/vdsm/keys/libvirt_password.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/static/etc/pki/vdsm/keys/libvirt_password.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/static/etc/security/limits.d/99-vdsm.conf b/static/etc/security/limits.d/99-vdsm.conf index f6174ae480..bb2d9df52e 100644 --- a/static/etc/security/limits.d/99-vdsm.conf +++ b/static/etc/security/limits.d/99-vdsm.conf @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # This limits are intended for medium VDSM hosts, for large hosts scale these # numbers appropriately. diff --git a/static/etc/sudoers.d/50_vdsm.in.license b/static/etc/sudoers.d/50_vdsm.in.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/static/etc/sudoers.d/50_vdsm.in.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/static/etc/sysctl.d/vdsm.conf b/static/etc/sysctl.d/vdsm.conf index 88c2a2ec0b..769af7f211 100644 --- a/static/etc/sysctl.d/vdsm.conf +++ b/static/etc/sysctl.d/vdsm.conf @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # Set dirty page parameters vm.dirty_ratio = 5 vm.dirty_background_ratio = 2 diff --git a/static/etc/vdsm/logger.conf.in b/static/etc/vdsm/logger.conf.in index f7d124c09a..0f1971cfaf 100644 --- a/static/etc/vdsm/logger.conf.in +++ b/static/etc/vdsm/logger.conf.in @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # Vdsm logging configuration. [loggers] diff --git a/static/etc/vdsm/logrotate/vdsm.license b/static/etc/vdsm/logrotate/vdsm.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/static/etc/vdsm/logrotate/vdsm.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/static/etc/vdsm/mom.conf.in b/static/etc/vdsm/mom.conf.in index b13b15be09..c647ab0387 100644 --- a/static/etc/vdsm/mom.conf.in +++ b/static/etc/vdsm/mom.conf.in @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + ### DO NOT REMOVE THIS COMMENT -- MOM Configuration for VDSM ### [main] diff --git a/static/etc/vdsm/mom.d/00-defines.policy b/static/etc/vdsm/mom.d/00-defines.policy index 206bb7a0ec..efcccc767b 100644 --- a/static/etc/vdsm/mom.d/00-defines.policy +++ b/static/etc/vdsm/mom.d/00-defines.policy @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # This file defines python constans that make it easier to convert data # received by setMOMPolicyParameters (defvar False 0) diff --git a/static/etc/vdsm/mom.d/01-parameters.policy.license b/static/etc/vdsm/mom.d/01-parameters.policy.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/static/etc/vdsm/mom.d/01-parameters.policy.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/static/etc/vdsm/mom.d/02-balloon.policy b/static/etc/vdsm/mom.d/02-balloon.policy index b1af0d5833..f0651e7052 100644 --- a/static/etc/vdsm/mom.d/02-balloon.policy +++ b/static/etc/vdsm/mom.d/02-balloon.policy @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + ### Auto-Balloon ############################################################### ### Constants diff --git a/static/etc/vdsm/mom.d/03-ksm.policy b/static/etc/vdsm/mom.d/03-ksm.policy index 55c7c5f618..aed6ba939a 100644 --- a/static/etc/vdsm/mom.d/03-ksm.policy +++ b/static/etc/vdsm/mom.d/03-ksm.policy @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + ### KSM ######################################################################## ### Constants diff --git a/static/etc/vdsm/mom.d/04-cputune.policy b/static/etc/vdsm/mom.d/04-cputune.policy index 92e331f3b7..49324cf640 100644 --- a/static/etc/vdsm/mom.d/04-cputune.policy +++ b/static/etc/vdsm/mom.d/04-cputune.policy @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + ### Auto-CpuTune ############################################################### # Default quota turns off the CPU limits diff --git a/static/etc/vdsm/mom.d/05-iotune.policy b/static/etc/vdsm/mom.d/05-iotune.policy index b9d845cfc3..b09b4c1535 100644 --- a/static/etc/vdsm/mom.d/05-iotune.policy +++ b/static/etc/vdsm/mom.d/05-iotune.policy @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + ### Auto-IoTune ################################################################ (defvar unlimited_io 0) diff --git a/static/etc/vdsm/svdsm.logger.conf.in b/static/etc/vdsm/svdsm.logger.conf.in index 007571e8c2..f9b2c3cb42 100644 --- a/static/etc/vdsm/svdsm.logger.conf.in +++ b/static/etc/vdsm/svdsm.logger.conf.in @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # supervdsm logging configuration. [loggers] diff --git a/static/libexec/vdsm/get-conf-item b/static/libexec/vdsm/get-conf-item index f358688195..6c1eb16c47 100755 --- a/static/libexec/vdsm/get-conf-item +++ b/static/libexec/vdsm/get-conf-item @@ -1,5 +1,8 @@ #!/usr/bin/python3 +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # Access python's config files from bash. # Usage: get-conf-item filename.conf section item default diff --git a/static/libexec/vdsm/supervdsmd b/static/libexec/vdsm/supervdsmd index ea3d269fef..1b1d103b41 100755 --- a/static/libexec/vdsm/supervdsmd +++ b/static/libexec/vdsm/supervdsmd @@ -1,22 +1,9 @@ #!/usr/bin/python3 + # Copyright 2011-2021 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + from __future__ import absolute_import import sys diff --git a/static/libexec/vdsm/vdsm-gencerts.sh.in b/static/libexec/vdsm/vdsm-gencerts.sh.in index b4344da2e2..297bfff8bf 100755 --- a/static/libexec/vdsm/vdsm-gencerts.sh.in +++ b/static/libexec/vdsm/vdsm-gencerts.sh.in @@ -1,23 +1,8 @@ #!/bin/bash -e -# + # Copyright 2012-2019 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later VDSM_CA="$1" VDSM_KEY="$2" diff --git a/static/libexec/vdsm/vdsmd b/static/libexec/vdsm/vdsmd index 09a1c6d121..4fee455413 100755 --- a/static/libexec/vdsm/vdsmd +++ b/static/libexec/vdsm/vdsmd @@ -1,12 +1,9 @@ #!/usr/bin/python3 -# + # Copyright 2009-2021 Red Hat, Inc. and/or its affiliates. -# -# Licensed to you under the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. See the files README and -# LICENSE_GPL_v2 which accompany this distribution. -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + from __future__ import absolute_import from vdsm import vdsmd diff --git a/static/usr/bin/vdsm-client b/static/usr/bin/vdsm-client index 61c55282fc..a4e5fd488f 100755 --- a/static/usr/bin/vdsm-client +++ b/static/usr/bin/vdsm-client @@ -1,23 +1,9 @@ #!/usr/bin/python3 -# + # Copyright 2016-2018 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + from __future__ import absolute_import from vdsmclient import client diff --git a/static/usr/bin/vdsm-tool b/static/usr/bin/vdsm-tool index 3ff12dc6a0..e83f2e2246 100755 --- a/static/usr/bin/vdsm-tool +++ b/static/usr/bin/vdsm-tool @@ -1,22 +1,9 @@ #!/usr/bin/python3 + # Copyright 2011-2018 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + from __future__ import absolute_import from __future__ import print_function diff --git a/static/usr/lib/systemd/system/dev-hugepages1G.mount b/static/usr/lib/systemd/system/dev-hugepages1G.mount index 8b9041ba80..68ee6e1f36 100644 --- a/static/usr/lib/systemd/system/dev-hugepages1G.mount +++ b/static/usr/lib/systemd/system/dev-hugepages1G.mount @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + [Unit] Description=Huge Pages 1G File System ConditionPathExists=/sys/kernel/mm/hugepages/hugepages-1048576kB diff --git a/static/usr/lib/systemd/system/mom-vdsm.service.in b/static/usr/lib/systemd/system/mom-vdsm.service.in index e83acb40fc..9010e0e684 100644 --- a/static/usr/lib/systemd/system/mom-vdsm.service.in +++ b/static/usr/lib/systemd/system/mom-vdsm.service.in @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + [Unit] Description=MOM instance configured for VDSM purposes Requires=vdsmd.service diff --git a/static/usr/lib/systemd/system/supervdsmd.service.in b/static/usr/lib/systemd/system/supervdsmd.service.in index 2c91bc60ce..bda9ff7bbf 100644 --- a/static/usr/lib/systemd/system/supervdsmd.service.in +++ b/static/usr/lib/systemd/system/supervdsmd.service.in @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + [Unit] Description=Auxiliary vdsm service for running helper functions as root Requires=libvirtd.service diff --git a/static/usr/lib/systemd/system/vdsm-network.service.in b/static/usr/lib/systemd/system/vdsm-network.service.in index 43341f2a9e..3cb089fb88 100644 --- a/static/usr/lib/systemd/system/vdsm-network.service.in +++ b/static/usr/lib/systemd/system/vdsm-network.service.in @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + [Unit] Description=Virtual Desktop Server Manager network restoration Wants=network.target diff --git a/static/usr/lib/systemd/system/vdsmd.service.in b/static/usr/lib/systemd/system/vdsmd.service.in index 60042b32f5..e1df0fd843 100644 --- a/static/usr/lib/systemd/system/vdsmd.service.in +++ b/static/usr/lib/systemd/system/vdsmd.service.in @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + [Unit] Description=Virtual Desktop Server Manager Requires=multipathd.service time-sync.target \ diff --git a/static/usr/share/man/man1/vdsm-client.1.license b/static/usr/share/man/man1/vdsm-client.1.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/static/usr/share/man/man1/vdsm-client.1.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/static/usr/share/man/man1/vdsm-tool.1.in.license b/static/usr/share/man/man1/vdsm-tool.1.in.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/static/usr/share/man/man1/vdsm-tool.1.in.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/static/usr/share/man/man8/vdsmd.8.in.license b/static/usr/share/man/man8/vdsmd.8.in.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/static/usr/share/man/man8/vdsmd.8.in.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/static/usr/share/polkit-1/rules.d/10-vdsm-libvirt-access.rules b/static/usr/share/polkit-1/rules.d/10-vdsm-libvirt-access.rules index 959078b6c5..bc79bb7071 100644 --- a/static/usr/share/polkit-1/rules.d/10-vdsm-libvirt-access.rules +++ b/static/usr/share/polkit-1/rules.d/10-vdsm-libvirt-access.rules @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # VDSM libvirt management permissions polkit.addRule(function(action, subject) { diff --git a/static/usr/share/vdsm/autounattend/Autounattend.xml.in b/static/usr/share/vdsm/autounattend/Autounattend.xml.in index b207ec97a9..45442cab73 100644 --- a/static/usr/share/vdsm/autounattend/Autounattend.xml.in +++ b/static/usr/share/vdsm/autounattend/Autounattend.xml.in @@ -1,3 +1,8 @@ + + diff --git a/static/usr/share/vdsm/lvmlocal.conf.license b/static/usr/share/vdsm/lvmlocal.conf.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/static/usr/share/vdsm/lvmlocal.conf.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/stdci.yaml b/stdci.yaml index 65799acc11..c201d4c7d8 100644 --- a/stdci.yaml +++ b/stdci.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + --- release_branches: master: diff --git a/tests/README.md b/tests/README.md index ece625d8d1..a3546650b4 100644 --- a/tests/README.md +++ b/tests/README.md @@ -1,3 +1,8 @@ + + # Vdsm tests This tests suite is built on tox, pytest and nose. For more info on diff --git a/tests/caps_libvirt_amd_6274.out b/tests/caps_libvirt_amd_6274.out index 97f8be48bc..6919099426 100644 --- a/tests/caps_libvirt_amd_6274.out +++ b/tests/caps_libvirt_amd_6274.out @@ -1,3 +1,8 @@ + + diff --git a/tests/caps_libvirt_ibm_S822L.out b/tests/caps_libvirt_ibm_S822L.out index 05055a3248..896aa697bb 100644 --- a/tests/caps_libvirt_ibm_S822L.out +++ b/tests/caps_libvirt_ibm_S822L.out @@ -1,3 +1,8 @@ + + diff --git a/tests/caps_libvirt_ibm_S822L_le.out b/tests/caps_libvirt_ibm_S822L_le.out index bc8b90ca0e..6a6477ef7c 100644 --- a/tests/caps_libvirt_ibm_S822L_le.out +++ b/tests/caps_libvirt_ibm_S822L_le.out @@ -1,3 +1,8 @@ + + diff --git a/tests/caps_libvirt_intel_E31220.out b/tests/caps_libvirt_intel_E31220.out index 75a5c6057f..36b2ebde65 100644 --- a/tests/caps_libvirt_intel_E31220.out +++ b/tests/caps_libvirt_intel_E31220.out @@ -1,3 +1,8 @@ + + diff --git a/tests/caps_libvirt_intel_E5606.out b/tests/caps_libvirt_intel_E5606.out index 5aa670b5da..4bc7d811c9 100644 --- a/tests/caps_libvirt_intel_E5606.out +++ b/tests/caps_libvirt_intel_E5606.out @@ -1,3 +1,8 @@ + + diff --git a/tests/caps_libvirt_intel_E5649.out b/tests/caps_libvirt_intel_E5649.out index 2faaace12f..e6d3efd486 100644 --- a/tests/caps_libvirt_intel_E5649.out +++ b/tests/caps_libvirt_intel_E5649.out @@ -1,3 +1,8 @@ + + diff --git a/tests/caps_libvirt_intel_i73770.out b/tests/caps_libvirt_intel_i73770.out index fdeff64aac..813893cbb3 100644 --- a/tests/caps_libvirt_intel_i73770.out +++ b/tests/caps_libvirt_intel_i73770.out @@ -1,3 +1,8 @@ + + diff --git a/tests/caps_libvirt_intel_i73770_nosnap.out b/tests/caps_libvirt_intel_i73770_nosnap.out index b7a31d1660..e4ab6fe45f 100644 --- a/tests/caps_libvirt_intel_i73770_nosnap.out +++ b/tests/caps_libvirt_intel_i73770_nosnap.out @@ -1,3 +1,8 @@ + + diff --git a/tests/caps_libvirt_multiqemu.out b/tests/caps_libvirt_multiqemu.out index 38e962f617..f60e5a16bd 100644 --- a/tests/caps_libvirt_multiqemu.out +++ b/tests/caps_libvirt_multiqemu.out @@ -1,3 +1,8 @@ + + diff --git a/tests/caps_libvirt_s390x.out b/tests/caps_libvirt_s390x.out index a31fc466b7..1a975818fd 100644 --- a/tests/caps_libvirt_s390x.out +++ b/tests/caps_libvirt_s390x.out @@ -1,3 +1,8 @@ + + diff --git a/tests/caps_numactl_4_nodes.out b/tests/caps_numactl_4_nodes.out index 53d175db18..e04e09db71 100644 --- a/tests/caps_numactl_4_nodes.out +++ b/tests/caps_numactl_4_nodes.out @@ -1,3 +1,8 @@ + + available: 4 nodes (0-3) node 0 cpus: 0 1 2 3 4 5 6 7 node 0 size: 65525 MB diff --git a/tests/check_distpkg.sh b/tests/check_distpkg.sh index c5bf820600..0bfcffa0be 100755 --- a/tests/check_distpkg.sh +++ b/tests/check_distpkg.sh @@ -1,4 +1,8 @@ #!/bin/sh -e + +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # Check that the distibution tarball does not contain generated files. DIST=$1 diff --git a/tests/check_rpms.sh b/tests/check_rpms.sh index 560e43ad73..2bef3f9814 100755 --- a/tests/check_rpms.sh +++ b/tests/check_rpms.sh @@ -1,5 +1,8 @@ #!/bin/bash -e +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # enable complex globs shopt -s extglob diff --git a/tests/common/fileutils_tests_qemu.conf b/tests/common/fileutils_tests_qemu.conf index 72f9a13ef6..8951b71571 100644 --- a/tests/common/fileutils_tests_qemu.conf +++ b/tests/common/fileutils_tests_qemu.conf @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + vnc_tls_x509_cert_dir="/etc/pki/vdsm/libvirt-vnc" dynamic_ownership=0 lock_manager="sanlock" diff --git a/tests/conf/svdsm.logger.conf b/tests/conf/svdsm.logger.conf index 559d892431..ad22e8b98d 100644 --- a/tests/conf/svdsm.logger.conf +++ b/tests/conf/svdsm.logger.conf @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # supervdsm logging configuration for testing. [loggers] diff --git a/tests/container-shell b/tests/container-shell index 4fd04614f8..1751cdf840 100755 --- a/tests/container-shell +++ b/tests/container-shell @@ -1,5 +1,8 @@ #!/bin/sh +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + export CI_PYTHON="python3" export TRAVIS_CI=1 diff --git a/tests/cpu_info.out.license b/tests/cpu_info.out.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/cpu_info.out.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/cpuinfo/cpuinfo_E5649_x86_64.out.license b/tests/cpuinfo/cpuinfo_E5649_x86_64.out.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/cpuinfo/cpuinfo_E5649_x86_64.out.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/cpuinfo/cpuinfo_POWER8E_ppc64le.out.license b/tests/cpuinfo/cpuinfo_POWER8E_ppc64le.out.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/cpuinfo/cpuinfo_POWER8E_ppc64le.out.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/cpuinfo/cpuinfo_aarch64.out.license b/tests/cpuinfo/cpuinfo_aarch64.out.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/cpuinfo/cpuinfo_aarch64.out.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/cpuinfo/cpuinfo_z14_s390x.out.license b/tests/cpuinfo/cpuinfo_z14_s390x.out.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/cpuinfo/cpuinfo_z14_s390x.out.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/cpuinfo/cpuinfo_z196_s390x.out.license b/tests/cpuinfo/cpuinfo_z196_s390x.out.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/cpuinfo/cpuinfo_z196_s390x.out.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/devices/data/block_sda_ssd.xml b/tests/devices/data/block_sda_ssd.xml index 168ae5376a..1c0ec7c2df 100644 --- a/tests/devices/data/block_sda_ssd.xml +++ b/tests/devices/data/block_sda_ssd.xml @@ -1,3 +1,8 @@ + + block_sda_ssd /sys/devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sdb diff --git a/tests/devices/data/computer.xml.license b/tests/devices/data/computer.xml.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/devices/data/computer.xml.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/devices/data/devicetree.xml b/tests/devices/data/devicetree.xml index a48ebc1cff..a4685da0c1 100644 --- a/tests/devices/data/devicetree.xml +++ b/tests/devices/data/devicetree.xml @@ -1,3 +1,8 @@ + + computerZ10PE-D8 WSASUSTeK COMPUTER INC.System VersionSystem Serial Number2e248efb-8970-d34d-b33f-7dfd3b0db96dAmerican Megatrends Inc.100103/17/2015 pci_0000_00_00_0/sys/devices/pci0000:00/0000:00:00.0computer0000Xeon E7 v3/Xeon E5 v3/Core i7 DMI2Intel Corporation pci_0000_00_01_0/sys/devices/pci0000:00/0000:00:01.0computerpcieport0010Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 1Intel Corporation diff --git a/tests/devices/data/net_em1_28_d2_44_55_66_88.xml b/tests/devices/data/net_em1_28_d2_44_55_66_88.xml index 15c6d2a038..75baa92ca8 100644 --- a/tests/devices/data/net_em1_28_d2_44_55_66_88.xml +++ b/tests/devices/data/net_em1_28_d2_44_55_66_88.xml @@ -1,3 +1,8 @@ + + net_em1_28_d2_44_55_66_88 /sys/devices/pci0000:00/0000:00:19.0/net/em1 diff --git a/tests/devices/data/pci_0000_00_02_0.xml b/tests/devices/data/pci_0000_00_02_0.xml index af73c9fe99..7f5928583b 100644 --- a/tests/devices/data/pci_0000_00_02_0.xml +++ b/tests/devices/data/pci_0000_00_02_0.xml @@ -1,3 +1,8 @@ + + pci_0000_00_02_0 /sys/devices/pci0000:00/0000:00:02.0 diff --git a/tests/devices/data/pci_0000_00_09_0.xml b/tests/devices/data/pci_0000_00_09_0.xml index eba242651b..cead5689bb 100644 --- a/tests/devices/data/pci_0000_00_09_0.xml +++ b/tests/devices/data/pci_0000_00_09_0.xml @@ -1,3 +1,8 @@ + + pci_0000_00_09_0 /sys/devices/pci0000:00/0000:00:09.0 diff --git a/tests/devices/data/pci_0000_00_19_0.xml b/tests/devices/data/pci_0000_00_19_0.xml index b98c145687..92586ed024 100644 --- a/tests/devices/data/pci_0000_00_19_0.xml +++ b/tests/devices/data/pci_0000_00_19_0.xml @@ -1,3 +1,8 @@ + + pci_0000_00_19_0 /sys/devices/pci0000:00/0000:00:19.0 diff --git a/tests/devices/data/pci_0000_00_1a_0.xml b/tests/devices/data/pci_0000_00_1a_0.xml index 4b4122ff20..a9e9427e1e 100644 --- a/tests/devices/data/pci_0000_00_1a_0.xml +++ b/tests/devices/data/pci_0000_00_1a_0.xml @@ -1,3 +1,8 @@ + + pci_0000_00_1a_0 /sys/devices/pci0000:00/0000:00:1a.0 diff --git a/tests/devices/data/pci_0000_00_1b_0.xml b/tests/devices/data/pci_0000_00_1b_0.xml index d7614f34e1..5d991625c3 100644 --- a/tests/devices/data/pci_0000_00_1b_0.xml +++ b/tests/devices/data/pci_0000_00_1b_0.xml @@ -1,3 +1,8 @@ + + pci_0000_00_1b_0 /sys/devices/pci0000:00/0000:00:1b.0 diff --git a/tests/devices/data/pci_0000_00_1f_2.xml b/tests/devices/data/pci_0000_00_1f_2.xml index ba25dd85d2..81d3eb328b 100644 --- a/tests/devices/data/pci_0000_00_1f_2.xml +++ b/tests/devices/data/pci_0000_00_1f_2.xml @@ -1,3 +1,8 @@ + + pci_0000_00_1f_2 /sys/devices/pci0000:00/0000:00:1f.2 diff --git a/tests/devices/data/pci_0000_05_00_1.xml b/tests/devices/data/pci_0000_05_00_1.xml index 9abac6e410..aca467e7a1 100644 --- a/tests/devices/data/pci_0000_05_00_1.xml +++ b/tests/devices/data/pci_0000_05_00_1.xml @@ -1,3 +1,8 @@ + + pci_0000_05_00_1 /sys/devices/pci0000:00/0000:00:09.0/0000:05:00.1 diff --git a/tests/devices/data/pci_0000_05_10_7.xml b/tests/devices/data/pci_0000_05_10_7.xml index ca67927435..b3b4bf50a5 100644 --- a/tests/devices/data/pci_0000_05_10_7.xml +++ b/tests/devices/data/pci_0000_05_10_7.xml @@ -1,3 +1,8 @@ + + pci_0000_05_10_7 /sys/devices/pci0000:00/0000:00:09.0/0000:05:10.7 diff --git a/tests/devices/data/pci_0000_06_00_0.xml b/tests/devices/data/pci_0000_06_00_0.xml index 5b70d98236..0226529324 100644 --- a/tests/devices/data/pci_0000_06_00_0.xml +++ b/tests/devices/data/pci_0000_06_00_0.xml @@ -1,3 +1,8 @@ + + pci_0000_06_00_0 /sys/devices/pci0000:00/0000:00:03.0/0000:04:00.0/0000:05:08.0/0000:06:00.0 diff --git a/tests/devices/data/scsi_0_0_0_0.xml b/tests/devices/data/scsi_0_0_0_0.xml index 3d3b4f6f38..e26a43fabe 100644 --- a/tests/devices/data/scsi_0_0_0_0.xml +++ b/tests/devices/data/scsi_0_0_0_0.xml @@ -1,3 +1,8 @@ + + scsi_0_0_0_0 /sys/devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0 diff --git a/tests/devices/data/scsi_1_0_0_0.xml b/tests/devices/data/scsi_1_0_0_0.xml index 3075864392..2c5a1139ba 100644 --- a/tests/devices/data/scsi_1_0_0_0.xml +++ b/tests/devices/data/scsi_1_0_0_0.xml @@ -1,3 +1,8 @@ + + scsi_1_0_0_0 /sys/devices/pci0000:00/0000:00:1f.2/ata1/host1/target1:0:0/1:0:0:0 diff --git a/tests/devices/data/scsi_2_0_0_0.xml b/tests/devices/data/scsi_2_0_0_0.xml index 7aca3acc30..ba239c9eac 100644 --- a/tests/devices/data/scsi_2_0_0_0.xml +++ b/tests/devices/data/scsi_2_0_0_0.xml @@ -1,3 +1,8 @@ + + scsi_2_0_0_0 /sys/devices/pci0000:00/0000:00:1f.2/ata1/host2/target2:0:0/2:0:0:0 diff --git a/tests/devices/data/scsi_generic_sg0.xml b/tests/devices/data/scsi_generic_sg0.xml index 779191adba..3b9799bcbe 100644 --- a/tests/devices/data/scsi_generic_sg0.xml +++ b/tests/devices/data/scsi_generic_sg0.xml @@ -1,3 +1,8 @@ + + scsi_generic_sg0 /sys/devices/pci0000:00/0000:00:11.4/ata1/host0/target0:0:0/0:0:0:0/scsi_generic/sg0 diff --git a/tests/devices/data/scsi_generic_sg1.xml b/tests/devices/data/scsi_generic_sg1.xml index 9c9cdaa850..e8f7536b0f 100644 --- a/tests/devices/data/scsi_generic_sg1.xml +++ b/tests/devices/data/scsi_generic_sg1.xml @@ -1,3 +1,8 @@ + + scsi_generic_sg1 /sys/devices/pci0000:00/0000:00:11.4/ata1/host1/target1:0:0/1:0:0:0/scsi_generic/sg1 diff --git a/tests/devices/data/scsi_host0.xml b/tests/devices/data/scsi_host0.xml index f20c3a1d3f..dcc3b59c91 100644 --- a/tests/devices/data/scsi_host0.xml +++ b/tests/devices/data/scsi_host0.xml @@ -1,3 +1,8 @@ + + scsi_host0 /sys/devices/pci0000:00/0000:00:1f.2/ata1/host0 diff --git a/tests/devices/data/scsi_host1.xml b/tests/devices/data/scsi_host1.xml index cc1bb399c2..b985ca2f24 100644 --- a/tests/devices/data/scsi_host1.xml +++ b/tests/devices/data/scsi_host1.xml @@ -1,3 +1,8 @@ + + scsi_host1 /sys/devices/pci0000:00/0000:00:1f.2/ata1/host1 diff --git a/tests/devices/data/scsi_host2.xml b/tests/devices/data/scsi_host2.xml index ebfbb5fb11..2afc2ffcb3 100644 --- a/tests/devices/data/scsi_host2.xml +++ b/tests/devices/data/scsi_host2.xml @@ -1,3 +1,8 @@ + + scsi_host2 /sys/devices/pci0000:00/0000:00:1f.2/ata1/host2 diff --git a/tests/devices/data/scsi_target0_0_0.xml b/tests/devices/data/scsi_target0_0_0.xml index 399374c6f5..3b634afeb0 100644 --- a/tests/devices/data/scsi_target0_0_0.xml +++ b/tests/devices/data/scsi_target0_0_0.xml @@ -1,3 +1,8 @@ + + scsi_target0_0_0 /sys/devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0 diff --git a/tests/devices/data/scsi_target1_0_0.xml b/tests/devices/data/scsi_target1_0_0.xml index 9a7217384c..d92ab3a997 100644 --- a/tests/devices/data/scsi_target1_0_0.xml +++ b/tests/devices/data/scsi_target1_0_0.xml @@ -1,3 +1,8 @@ + + scsi_target1_0_0 /sys/devices/pci0000:00/0000:00:1f.2/ata1/host1/target1:0:0 diff --git a/tests/devices/data/scsi_target2_0_0.xml b/tests/devices/data/scsi_target2_0_0.xml index 75fa872629..aa03b6cdf4 100644 --- a/tests/devices/data/scsi_target2_0_0.xml +++ b/tests/devices/data/scsi_target2_0_0.xml @@ -1,3 +1,8 @@ + + scsi_target2_0_0 /sys/devices/pci0000:00/0000:00:1f.2/ata1/host2/target2:0:0 diff --git a/tests/devices/data/testComplexVm.xml b/tests/devices/data/testComplexVm.xml index 17f2d9a5db..41eda83eec 100644 --- a/tests/devices/data/testComplexVm.xml +++ b/tests/devices/data/testComplexVm.xml @@ -1,3 +1,8 @@ + + testComplexVm 77777777-ffff-3333-bbbb-222222222222 diff --git a/tests/devices/data/testSRiovVm.xml b/tests/devices/data/testSRiovVm.xml index 457a40cecb..baa44d460e 100644 --- a/tests/devices/data/testSRiovVm.xml +++ b/tests/devices/data/testSRiovVm.xml @@ -1,3 +1,8 @@ + + SRiovVm 77777777-ffff-3333-bbbb-222222222222 diff --git a/tests/devices/data/usb_1_1.xml b/tests/devices/data/usb_1_1.xml index 7c0dacdd18..a84821aaae 100644 --- a/tests/devices/data/usb_1_1.xml +++ b/tests/devices/data/usb_1_1.xml @@ -1,3 +1,8 @@ + + usb_1_1 /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1 diff --git a/tests/devices/data/usb_1_1_4.xml b/tests/devices/data/usb_1_1_4.xml index 35a0aee8e1..51d2a3f6dd 100644 --- a/tests/devices/data/usb_1_1_4.xml +++ b/tests/devices/data/usb_1_1_4.xml @@ -1,3 +1,8 @@ + + usb_1_1_4 /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4 diff --git a/tests/devices/data/usb_usb1.xml b/tests/devices/data/usb_usb1.xml index 586a4500c1..a88da3dbd7 100644 --- a/tests/devices/data/usb_usb1.xml +++ b/tests/devices/data/usb_usb1.xml @@ -1,3 +1,8 @@ + + usb_usb1 /sys/devices/pci0000:00/0000:00:1a.0/usb1 diff --git a/tests/devices/data/vm_restore_spice_after.xml b/tests/devices/data/vm_restore_spice_after.xml index 454ca26113..313d257609 100644 --- a/tests/devices/data/vm_restore_spice_after.xml +++ b/tests/devices/data/vm_restore_spice_after.xml @@ -1,3 +1,8 @@ + + ftest1 42e30017-b29c-4646-aa75-e42c4d0fe659 diff --git a/tests/devices/data/vm_restore_spice_before.xml b/tests/devices/data/vm_restore_spice_before.xml index 344aefd13f..223faf0c03 100644 --- a/tests/devices/data/vm_restore_spice_before.xml +++ b/tests/devices/data/vm_restore_spice_before.xml @@ -1,3 +1,8 @@ + + ftest1 42e30017-b29c-4646-aa75-e42c4d0fe659 diff --git a/tests/domcaps_libvirt_ppc64le.out b/tests/domcaps_libvirt_ppc64le.out index 4127cd086d..44c57b16fc 100644 --- a/tests/domcaps_libvirt_ppc64le.out +++ b/tests/domcaps_libvirt_ppc64le.out @@ -1,3 +1,8 @@ + + /usr/libexec/qemu-kvm kvm diff --git a/tests/domcaps_libvirt_s390x.out b/tests/domcaps_libvirt_s390x.out index 3780e0b860..991930b26a 100644 --- a/tests/domcaps_libvirt_s390x.out +++ b/tests/domcaps_libvirt_s390x.out @@ -1,3 +1,8 @@ + + /usr/bin/qemu-kvm kvm diff --git a/tests/domcaps_libvirt_x86_64.out b/tests/domcaps_libvirt_x86_64.out index 580262d890..383c56fc32 100644 --- a/tests/domcaps_libvirt_x86_64.out +++ b/tests/domcaps_libvirt_x86_64.out @@ -1,3 +1,8 @@ + + /usr/libexec/qemu-kvm kvm diff --git a/tests/domcaps_libvirt_x86_64_noibrs.out b/tests/domcaps_libvirt_x86_64_noibrs.out index 731eaa10b3..cceb41bbbb 100644 --- a/tests/domcaps_libvirt_x86_64_noibrs.out +++ b/tests/domcaps_libvirt_x86_64_noibrs.out @@ -1,3 +1,8 @@ + + /usr/libexec/qemu-kvm kvm diff --git a/tests/fake-gluster-cli b/tests/fake-gluster-cli index eb40ddf084..5edbbee0bc 100644 --- a/tests/fake-gluster-cli +++ b/tests/fake-gluster-cli @@ -1,21 +1,6 @@ # Copyright 2018 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later from __future__ import absolute_import from __future__ import print_function diff --git a/tests/fake-ssh-add b/tests/fake-ssh-add index 4bffabc8d7..184a599988 100755 --- a/tests/fake-ssh-add +++ b/tests/fake-ssh-add @@ -1,22 +1,8 @@ #!/usr/bin/python3 + # Copyright 2016 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later from __future__ import absolute_import from __future__ import print_function diff --git a/tests/fake-ssh-agent b/tests/fake-ssh-agent index 4abf114cdc..b246ad8a4b 100755 --- a/tests/fake-ssh-agent +++ b/tests/fake-ssh-agent @@ -1,22 +1,8 @@ #!/usr/bin/python3 + # Copyright 2016 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later from __future__ import absolute_import from __future__ import print_function diff --git a/tests/fake-virt-sysprep b/tests/fake-virt-sysprep index 2bf0410c70..9a46ec8eeb 100755 --- a/tests/fake-virt-sysprep +++ b/tests/fake-virt-sysprep @@ -1,22 +1,9 @@ #!/usr/bin/python3 + # Copyright 2017 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + from __future__ import absolute_import import io diff --git a/tests/fake-virt-v2v b/tests/fake-virt-v2v index da678dbfa7..63f4f00e6d 100755 --- a/tests/fake-virt-v2v +++ b/tests/fake-virt-v2v @@ -1,22 +1,9 @@ #!/usr/bin/python3 + # Copyright 2015 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + from __future__ import absolute_import from __future__ import print_function diff --git a/tests/fake-virt-v2v.err.license b/tests/fake-virt-v2v.err.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/fake-virt-v2v.err.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/fake-virt-v2v.out.license b/tests/fake-virt-v2v.out.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/fake-virt-v2v.out.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/functional/60_test_balloon_shrink.policy b/tests/functional/60_test_balloon_shrink.policy index d385dd07c1..df1197eca0 100644 --- a/tests/functional/60_test_balloon_shrink.policy +++ b/tests/functional/60_test_balloon_shrink.policy @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + ### Auto-Balloon ############################################################### # This policy decreases the balloon target by 5% until it reaches diff --git a/tests/functional/70_test_balloon_grow.policy b/tests/functional/70_test_balloon_grow.policy index 10c0a9140a..ce5d2151b6 100644 --- a/tests/functional/70_test_balloon_grow.policy +++ b/tests/functional/70_test_balloon_grow.policy @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + ### Auto-Balloon ############################################################### # This policy increases the balloon target by 5% until it reaches diff --git a/tests/gluster/results/fake_vdo_status.yml b/tests/gluster/results/fake_vdo_status.yml index 9c644f4d24..afe23394a4 100644 --- a/tests/gluster/results/fake_vdo_status.yml +++ b/tests/gluster/results/fake_vdo_status.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + VDO status: Date: '2018-03-02 15:55:12+02:00' Node: hc-tiger.eng.lab.tlv.redhat.com diff --git a/tests/gluster/results/getTreeTestData-1.xml b/tests/gluster/results/getTreeTestData-1.xml index 14b7d94a94..78897d61c8 100644 --- a/tests/gluster/results/getTreeTestData-1.xml +++ b/tests/gluster/results/getTreeTestData-1.xml @@ -1,3 +1,8 @@ + + 0 diff --git a/tests/gluster/results/hook_read.json.license b/tests/gluster/results/hook_read.json.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/gluster/results/hook_read.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/gluster/results/hooks_list.json.license b/tests/gluster/results/hooks_list.json.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/gluster/results/hooks_list.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/glusterGeoRepStatus.xml b/tests/glusterGeoRepStatus.xml index d1dc2ca254..d99f8ee100 100644 --- a/tests/glusterGeoRepStatus.xml +++ b/tests/glusterGeoRepStatus.xml @@ -1,3 +1,8 @@ + + 0 diff --git a/tests/glusterGlobalVolumeOptions.xml b/tests/glusterGlobalVolumeOptions.xml index 79a5062e25..903e46a24a 100644 --- a/tests/glusterGlobalVolumeOptions.xml +++ b/tests/glusterGlobalVolumeOptions.xml @@ -1,3 +1,8 @@ + + 0 diff --git a/tests/glusterSnapshotConfig.xml b/tests/glusterSnapshotConfig.xml index 698e8062e7..55740cac56 100644 --- a/tests/glusterSnapshotConfig.xml +++ b/tests/glusterSnapshotConfig.xml @@ -1,3 +1,8 @@ + + 0 diff --git a/tests/glusterSnapshotList.xml b/tests/glusterSnapshotList.xml index e2082c17cb..d4c60d5c19 100644 --- a/tests/glusterSnapshotList.xml +++ b/tests/glusterSnapshotList.xml @@ -1,3 +1,8 @@ + + 0 diff --git a/tests/glusterSnapshotListEmpty.xml b/tests/glusterSnapshotListEmpty.xml index e280dbab0b..86611920c2 100644 --- a/tests/glusterSnapshotListEmpty.xml +++ b/tests/glusterSnapshotListEmpty.xml @@ -1,3 +1,8 @@ + + 0 diff --git a/tests/glusterSnapshotRestore.xml b/tests/glusterSnapshotRestore.xml index 2086038e1f..6894588eff 100644 --- a/tests/glusterSnapshotRestore.xml +++ b/tests/glusterSnapshotRestore.xml @@ -1,3 +1,8 @@ + + 0 diff --git a/tests/glusterVolumeGeoRepConfigList.xml b/tests/glusterVolumeGeoRepConfigList.xml index 844a4534fa..b1e7271635 100644 --- a/tests/glusterVolumeGeoRepConfigList.xml +++ b/tests/glusterVolumeGeoRepConfigList.xml @@ -1,3 +1,8 @@ + + 0 diff --git a/tests/glusterVolumeHealInfo.xml b/tests/glusterVolumeHealInfo.xml index b10cbef59b..9486237e27 100644 --- a/tests/glusterVolumeHealInfo.xml +++ b/tests/glusterVolumeHealInfo.xml @@ -1,3 +1,8 @@ + + diff --git a/tests/glusterVolumeProfileInfo.xml b/tests/glusterVolumeProfileInfo.xml index e3f47a55fd..0d6a620450 100644 --- a/tests/glusterVolumeProfileInfo.xml +++ b/tests/glusterVolumeProfileInfo.xml @@ -1,3 +1,8 @@ + + 0 diff --git a/tests/glusterVolumeProfileInfoNfs.xml b/tests/glusterVolumeProfileInfoNfs.xml index f3a725a2b7..21febd6b1d 100644 --- a/tests/glusterVolumeProfileInfoNfs.xml +++ b/tests/glusterVolumeProfileInfoNfs.xml @@ -1,3 +1,8 @@ + + 0 diff --git a/tests/glusterVolumeRebalanceStatus.xml b/tests/glusterVolumeRebalanceStatus.xml index 41f5598842..1db57befc6 100644 --- a/tests/glusterVolumeRebalanceStatus.xml +++ b/tests/glusterVolumeRebalanceStatus.xml @@ -1,3 +1,8 @@ + + 0 diff --git a/tests/glusterVolumeRemoveBricksStatus.xml b/tests/glusterVolumeRemoveBricksStatus.xml index eb7df914ca..1032237db3 100644 --- a/tests/glusterVolumeRemoveBricksStatus.xml +++ b/tests/glusterVolumeRemoveBricksStatus.xml @@ -1,3 +1,8 @@ + + 0 diff --git a/tests/glusterVolumeSnapshotList.xml b/tests/glusterVolumeSnapshotList.xml index 07edfe95ae..0984d1f101 100644 --- a/tests/glusterVolumeSnapshotList.xml +++ b/tests/glusterVolumeSnapshotList.xml @@ -1,3 +1,8 @@ + + 0 diff --git a/tests/glusterVolumeSnapshotListEmpty.xml b/tests/glusterVolumeSnapshotListEmpty.xml index 73d5474df0..10e3ed3bd8 100644 --- a/tests/glusterVolumeSnapshotListEmpty.xml +++ b/tests/glusterVolumeSnapshotListEmpty.xml @@ -1,3 +1,8 @@ + + 0 diff --git a/tests/glusterVolumeTasks.xml b/tests/glusterVolumeTasks.xml index e4060c3429..5f5524f9b6 100644 --- a/tests/glusterVolumeTasks.xml +++ b/tests/glusterVolumeTasks.xml @@ -1,3 +1,8 @@ + + 0 diff --git a/tests/mem_info.out.license b/tests/mem_info.out.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/mem_info.out.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/network/common.sh b/tests/network/common.sh index 82d871f15a..3dbf4a1638 100755 --- a/tests/network/common.sh +++ b/tests/network/common.sh @@ -1,5 +1,8 @@ #!/bin/bash -xe +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + PROJECT=${PROJECT:-${PWD##*/}} PROJECT_PATH="$PWD" CONTAINER_WORKSPACE="/workspace/$PROJECT" diff --git a/tests/network/functional/README.md b/tests/network/functional/README.md index f7515ff39e..8770cc90c7 100644 --- a/tests/network/functional/README.md +++ b/tests/network/functional/README.md @@ -1,3 +1,8 @@ + + # VDSM network functional tests ### Running the tests in a container diff --git a/tests/network/functional/run-tests.sh b/tests/network/functional/run-tests.sh index bc16ea9a75..e31e8a3c71 100755 --- a/tests/network/functional/run-tests.sh +++ b/tests/network/functional/run-tests.sh @@ -1,5 +1,8 @@ #!/bin/bash -xe +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + source tests/network/common.sh IMAGE_TAG="${IMAGE_TAG:=centos-8}" diff --git a/tests/network/integration/README.md b/tests/network/integration/README.md index d40c31ed88..6d88898c55 100644 --- a/tests/network/integration/README.md +++ b/tests/network/integration/README.md @@ -1,3 +1,8 @@ + + # VDSM network integration tests #### Run the tests diff --git a/tests/network/integration/run-tests.sh b/tests/network/integration/run-tests.sh index 968934964e..81c2900480 100755 --- a/tests/network/integration/run-tests.sh +++ b/tests/network/integration/run-tests.sh @@ -1,5 +1,8 @@ #!/bin/bash -xe +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + source tests/network/common.sh IMAGE_TAG="${IMAGE_TAG:=centos-8}" diff --git a/tests/network/static/bonding-defaults.json.license b/tests/network/static/bonding-defaults.json.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/network/static/bonding-defaults.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/network/static/bonding-name2numeric.json.license b/tests/network/static/bonding-name2numeric.json.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/network/static/bonding-name2numeric.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/network/static/ip_route_show_table_all.out.license b/tests/network/static/ip_route_show_table_all.out.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/network/static/ip_route_show_table_all.out.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/network/unit/README.md b/tests/network/unit/README.md index 179df8748c..8871422e8e 100644 --- a/tests/network/unit/README.md +++ b/tests/network/unit/README.md @@ -1,3 +1,8 @@ + + # VDSM network unit tests #### Run the tests diff --git a/tests/network/unit/netmaskconversions b/tests/network/unit/netmaskconversions index dd27cb29e6..73293cbe0e 100644 --- a/tests/network/unit/netmaskconversions +++ b/tests/network/unit/netmaskconversions @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + #bitmask address 0 0.0.0.0 1 128.0.0.0 diff --git a/tests/network/unit/run-tests.sh b/tests/network/unit/run-tests.sh index a2e064ee5a..d677784bf8 100755 --- a/tests/network/unit/run-tests.sh +++ b/tests/network/unit/run-tests.sh @@ -1,5 +1,8 @@ #!/bin/bash -xe +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + source tests/network/common.sh IMAGE_TAG="${IMAGE_TAG:=centos-8}" diff --git a/tests/network/unit/tc_filter_show.out.license b/tests/network/unit/tc_filter_show.out.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/network/unit/tc_filter_show.out.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/profile b/tests/profile index d545e41671..eb74693d1d 100755 --- a/tests/profile +++ b/tests/profile @@ -1,4 +1,8 @@ #!/usr/bin/python3 + +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + """ Log resource usage info. diff --git a/tests/profile-analyze b/tests/profile-analyze index 2d2c28cfd4..71cc597b06 100755 --- a/tests/profile-analyze +++ b/tests/profile-analyze @@ -1,4 +1,8 @@ #!/usr/bin/python3 + +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + """ Analyze commands profiled using profile tool. """ diff --git a/tests/py-watch b/tests/py-watch index d97b5318b7..084db4a09f 100755 --- a/tests/py-watch +++ b/tests/py-watch @@ -1,5 +1,8 @@ #!/usr/bin/python3 +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + """ Spawn a command, and terminate it with a backtrace after a timeout. diff --git a/tests/run_tests_local.sh.in b/tests/run_tests_local.sh.in index 4c9824d799..79be633235 100644 --- a/tests/run_tests_local.sh.in +++ b/tests/run_tests_local.sh.in @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + if [ -z "$PYTHON_EXE" ]; then PYTHON_EXE="python3" fi diff --git a/tests/slow-gluster-cli b/tests/slow-gluster-cli index de0e44c16f..d18e9b9e1d 100644 --- a/tests/slow-gluster-cli +++ b/tests/slow-gluster-cli @@ -1,21 +1,6 @@ # Copyright 2018 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later from __future__ import absolute_import from __future__ import print_function diff --git a/tests/start-container b/tests/start-container index d1abff4394..06d1a76a05 100755 --- a/tests/start-container +++ b/tests/start-container @@ -1,5 +1,8 @@ #!/bin/sh +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + IMAGE="vdsm-test-centos-8" REGISTRY="quay.io/ovirt" diff --git a/tests/storage/README.md b/tests/storage/README.md index 09f04c0917..5239fc4ab0 100644 --- a/tests/storage/README.md +++ b/tests/storage/README.md @@ -1,3 +1,8 @@ + + # Storage tests diff --git a/tests/storage/fake-devices-non-standard b/tests/storage/fake-devices-non-standard index 5e659ede6f..04c9885abc 100644 --- a/tests/storage/fake-devices-non-standard +++ b/tests/storage/fake-devices-non-standard @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + Character devices: 1 mem 4 /dev/vc/0 diff --git a/tests/storage/fake-devices-standard b/tests/storage/fake-devices-standard index 4564da62be..14b0a6d23e 100644 --- a/tests/storage/fake-devices-standard +++ b/tests/storage/fake-devices-standard @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + Character devices: 1 mem 4 /dev/vc/0 diff --git a/tests/storage/fake-lsblk b/tests/storage/fake-lsblk index 0377f6e583..b8eb602a37 100755 --- a/tests/storage/fake-lsblk +++ b/tests/storage/fake-lsblk @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + set -e # Fake the output diff --git a/tests/storage/fake-lsblk.el8.out.license b/tests/storage/fake-lsblk.el8.out.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/storage/fake-lsblk.el8.out.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/storage/fake-lsblk.fedora.out.license b/tests/storage/fake-lsblk.fedora.out.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/storage/fake-lsblk.fedora.out.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/storage/fake-lsblk.node.out.license b/tests/storage/fake-lsblk.node.out.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/storage/fake-lsblk.node.out.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/storage/fake-lsblk.rhel74.out.license b/tests/storage/fake-lsblk.rhel74.out.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/storage/fake-lsblk.rhel74.out.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/storage/iscsiadm_-m_iface.out.license b/tests/storage/iscsiadm_-m_iface.out.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/storage/iscsiadm_-m_iface.out.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/storage/lvs_3386c6f2-926f-42c4-839c-38287fac8998.out.license b/tests/storage/lvs_3386c6f2-926f-42c4-839c-38287fac8998.out.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/storage/lvs_3386c6f2-926f-42c4-839c-38287fac8998.out.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/storage/lvs_f9e55e18-67c4-4377-8e39-5833ca422bef.out.license b/tests/storage/lvs_f9e55e18-67c4-4377-8e39-5833ca422bef.out.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/storage/lvs_f9e55e18-67c4-4377-8e39-5833ca422bef.out.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/toolTests_CCPP.conf b/tests/toolTests_CCPP.conf index f0233e96ae..83afa5b45f 100644 --- a/tests/toolTests_CCPP.conf +++ b/tests/toolTests_CCPP.conf @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + ## beginning of configuration section by vdsm-%(LATEST_CONF_VERSION)s MakeCompatCore=no SaveBinaryImage=no diff --git a/tests/toolTests_empty.conf b/tests/toolTests_empty.conf index 8b13789179..7cec2738df 100644 --- a/tests/toolTests_empty.conf +++ b/tests/toolTests_empty.conf @@ -1 +1,2 @@ - +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/toolTests_lconf_ssl.conf b/tests/toolTests_lconf_ssl.conf index 848de760ca..847892e31a 100644 --- a/tests/toolTests_lconf_ssl.conf +++ b/tests/toolTests_lconf_ssl.conf @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + ## beginning of configuration section by vdsm-%(LATEST_CONF_VERSION)s listen_tcp=0 auth_tcp="sasl" diff --git a/tests/toolTests_libvirtd.conf b/tests/toolTests_libvirtd.conf index 776eccc78a..0ee6526179 100644 --- a/tests/toolTests_libvirtd.conf +++ b/tests/toolTests_libvirtd.conf @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + ## beginning of configuration section by vdsm-%(LATEST_CONF_VERSION)s auto_disk_leases=0 require_lease_for_disks=0 diff --git a/tests/toolTests_mtab_1g.license b/tests/toolTests_mtab_1g.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/toolTests_mtab_1g.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/toolTests_mtab_default.license b/tests/toolTests_mtab_default.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/toolTests_mtab_default.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/toolTests_mtab_nohugetlbfs.license b/tests/toolTests_mtab_nohugetlbfs.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/toolTests_mtab_nohugetlbfs.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/toolTests_qemu_sanlock.conf b/tests/toolTests_qemu_sanlock.conf index 75e0e5e67c..2f6a32f756 100644 --- a/tests/toolTests_qemu_sanlock.conf +++ b/tests/toolTests_qemu_sanlock.conf @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + ## beginning of configuration section by vdsm-%(LATEST_CONF_VERSION)s LIBVIRTD_ARGS=--listen DAEMON_COREFILE_LIMIT=unlimited diff --git a/tests/toolTests_qemu_ssl.conf b/tests/toolTests_qemu_ssl.conf index 7f852090d6..664849e366 100644 --- a/tests/toolTests_qemu_ssl.conf +++ b/tests/toolTests_qemu_ssl.conf @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + ## beginning of configuration section by vdsm-%(LATEST_CONF_VERSION)s spice_tls=1 dynamic_ownership=1 diff --git a/tests/toolTests_vdsm_no_ssl.conf b/tests/toolTests_vdsm_no_ssl.conf index cb3f2e54bc..821027db8e 100644 --- a/tests/toolTests_vdsm_no_ssl.conf +++ b/tests/toolTests_vdsm_no_ssl.conf @@ -1,2 +1,5 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + [vars] ssl = false diff --git a/tests/toolTests_vdsm_ssl.conf b/tests/toolTests_vdsm_ssl.conf index d95f9e8cbf..8608281efb 100644 --- a/tests/toolTests_vdsm_ssl.conf +++ b/tests/toolTests_vdsm_ssl.conf @@ -1,2 +1,5 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + [vars] ssl = true diff --git a/tests/toolTests_vmcore.conf b/tests/toolTests_vmcore.conf index 1177d021c5..f50ebcda6d 100644 --- a/tests/toolTests_vmcore.conf +++ b/tests/toolTests_vmcore.conf @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + ## beginning of configuration section by vdsm-%(LATEST_CONF_VERSION)s CopyVMcore=no ## end of configuration section by vdsm-%(LATEST_CONF_VERSION)s diff --git a/tests/virt/data/active-merge/00-before.xml b/tests/virt/data/active-merge/00-before.xml index 8a29e1e1df..3fd2fc6235 100644 --- a/tests/virt/data/active-merge/00-before.xml +++ b/tests/virt/data/active-merge/00-before.xml @@ -1,3 +1,8 @@ + + vm1 diff --git a/tests/virt/data/active-merge/01-commit.xml b/tests/virt/data/active-merge/01-commit.xml index f677e5044c..b2ff18dbaa 100644 --- a/tests/virt/data/active-merge/01-commit.xml +++ b/tests/virt/data/active-merge/01-commit.xml @@ -1,3 +1,8 @@ + + vm1 diff --git a/tests/virt/data/active-merge/02-commit-ready.xml b/tests/virt/data/active-merge/02-commit-ready.xml index 57b22344e8..1af38ee40d 100644 --- a/tests/virt/data/active-merge/02-commit-ready.xml +++ b/tests/virt/data/active-merge/02-commit-ready.xml @@ -1,3 +1,8 @@ + + vm1 diff --git a/tests/virt/data/active-merge/03-abort.xml b/tests/virt/data/active-merge/03-abort.xml index 978f4117b9..d1b10194d1 100644 --- a/tests/virt/data/active-merge/03-abort.xml +++ b/tests/virt/data/active-merge/03-abort.xml @@ -1,3 +1,8 @@ + + vm1 diff --git a/tests/virt/data/active-merge/04-abort-ready.xml b/tests/virt/data/active-merge/04-abort-ready.xml index b128b29540..2bced5a6db 100644 --- a/tests/virt/data/active-merge/04-abort-ready.xml +++ b/tests/virt/data/active-merge/04-abort-ready.xml @@ -1,3 +1,8 @@ + + vm1 diff --git a/tests/virt/data/active-merge/05-after.xml b/tests/virt/data/active-merge/05-after.xml index 8a48e6f4fe..ab999c39f0 100644 --- a/tests/virt/data/active-merge/05-after.xml +++ b/tests/virt/data/active-merge/05-after.xml @@ -1,3 +1,8 @@ + + vm1 diff --git a/tests/virt/data/active-merge/values.yml b/tests/virt/data/active-merge/values.yml index 3bd15f5ff5..05fd32bf47 100644 --- a/tests/virt/data/active-merge/values.yml +++ b/tests/virt/data/active-merge/values.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + --- # # Information here should match the tests xmls in this directory. diff --git a/tests/virt/data/disk_devices.xml b/tests/virt/data/disk_devices.xml index 77ab12dd5f..90282e7c59 100644 --- a/tests/virt/data/disk_devices.xml +++ b/tests/virt/data/disk_devices.xml @@ -1,3 +1,8 @@ + + diff --git a/tests/virt/data/disk_updated_snippet.xml b/tests/virt/data/disk_updated_snippet.xml index 37dc34f0a5..b52deedfff 100644 --- a/tests/virt/data/disk_updated_snippet.xml +++ b/tests/virt/data/disk_updated_snippet.xml @@ -1,3 +1,8 @@ + +
diff --git a/tests/virt/data/domain.xml b/tests/virt/data/domain.xml index f7ff894d26..c7168a82ec 100644 --- a/tests/virt/data/domain.xml +++ b/tests/virt/data/domain.xml @@ -1,3 +1,8 @@ + + a_c7_2 diff --git a/tests/virt/data/domain_disk_block.xml b/tests/virt/data/domain_disk_block.xml index 94b960dc8a..9312777e21 100644 --- a/tests/virt/data/domain_disk_block.xml +++ b/tests/virt/data/domain_disk_block.xml @@ -1,3 +1,8 @@ + + a2 69b6b942-b5bf-4740-bb95-6752ffbd3bcf diff --git a/tests/virt/data/domain_disk_file.xml b/tests/virt/data/domain_disk_file.xml index 8ea257f558..8b77fb9956 100644 --- a/tests/virt/data/domain_disk_file.xml +++ b/tests/virt/data/domain_disk_file.xml @@ -1,3 +1,8 @@ + + a2 69b6b942-b5bf-4740-bb95-6752ffbd3bcf diff --git a/tests/virt/data/hostedengine.xml b/tests/virt/data/hostedengine.xml index 922619b2eb..028367b471 100644 --- a/tests/virt/data/hostedengine.xml +++ b/tests/virt/data/hostedengine.xml @@ -1,3 +1,8 @@ + + HostedEngine 346b8d80-b4f2-4a81-bf60-a662220c27a4 diff --git a/tests/virt/data/hostedengine_lease.xml b/tests/virt/data/hostedengine_lease.xml index 835fa99436..831329aa2c 100644 --- a/tests/virt/data/hostedengine_lease.xml +++ b/tests/virt/data/hostedengine_lease.xml @@ -1,3 +1,8 @@ + + HostedEngine diff --git a/tests/virt/data/internal-merge/00-before.xml b/tests/virt/data/internal-merge/00-before.xml index c356370d03..2df0623043 100644 --- a/tests/virt/data/internal-merge/00-before.xml +++ b/tests/virt/data/internal-merge/00-before.xml @@ -1,3 +1,8 @@ + + vm1 diff --git a/tests/virt/data/internal-merge/01-commit.xml b/tests/virt/data/internal-merge/01-commit.xml index a5bf340a5a..1d9c23a9cb 100644 --- a/tests/virt/data/internal-merge/01-commit.xml +++ b/tests/virt/data/internal-merge/01-commit.xml @@ -1,3 +1,8 @@ + + vm1 diff --git a/tests/virt/data/internal-merge/02-after.xml b/tests/virt/data/internal-merge/02-after.xml index 1d77068d90..d0a4555c22 100644 --- a/tests/virt/data/internal-merge/02-after.xml +++ b/tests/virt/data/internal-merge/02-after.xml @@ -1,3 +1,8 @@ + + vm1 diff --git a/tests/virt/data/internal-merge/values.yml b/tests/virt/data/internal-merge/values.yml index a5c4398d32..24117dbe17 100644 --- a/tests/virt/data/internal-merge/values.yml +++ b/tests/virt/data/internal-merge/values.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + --- # # Information here should match the xmls information in the same directory. diff --git a/tests/virt/data/sysinfo_snippet_filled.xml b/tests/virt/data/sysinfo_snippet_filled.xml index cd7b4c4131..21570fec0d 100644 --- a/tests/virt/data/sysinfo_snippet_filled.xml +++ b/tests/virt/data/sysinfo_snippet_filled.xml @@ -1,3 +1,8 @@ + + sysinfo_snippet diff --git a/tests/virt/data/sysinfo_snippet_template.xml b/tests/virt/data/sysinfo_snippet_template.xml index 3fe7e6752d..bc639db241 100644 --- a/tests/virt/data/sysinfo_snippet_template.xml +++ b/tests/virt/data/sysinfo_snippet_template.xml @@ -1,3 +1,8 @@ + + sysinfo_snippet 8386df52-d717-4353-93ad-2c72d20eccaf diff --git a/tests/virt/data/vm_compat41.json.license b/tests/virt/data/vm_compat41.json.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/tests/virt/data/vm_compat41.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/tests/virt/data/vm_compat41.xml b/tests/virt/data/vm_compat41.xml index 22892dfb33..7a91449415 100644 --- a/tests/virt/data/vm_compat41.xml +++ b/tests/virt/data/vm_compat41.xml @@ -1,3 +1,8 @@ + + a0_41 13070562-2ee7-4092-a746-7975ff5b3993 diff --git a/tests/virt/data/vm_hibernated.xml b/tests/virt/data/vm_hibernated.xml index daf6868348..a62ff71833 100644 --- a/tests/virt/data/vm_hibernated.xml +++ b/tests/virt/data/vm_hibernated.xml @@ -1,3 +1,8 @@ + + a2 69b6b942-b5bf-4740-bb95-6752ffbd3bcf diff --git a/tests/virt/data/vm_hibernated_390.xml b/tests/virt/data/vm_hibernated_390.xml index d47dc3d5e4..43e211a614 100644 --- a/tests/virt/data/vm_hibernated_390.xml +++ b/tests/virt/data/vm_hibernated_390.xml @@ -1,3 +1,8 @@ + + suspend_resume_vm d6a8fd3f-6bdf-4030-9e31-ae193543e1c6 diff --git a/tests/virt/data/vm_hosted_engine_42.xml b/tests/virt/data/vm_hosted_engine_42.xml index 6dcdc52912..3d0a4c8465 100644 --- a/tests/virt/data/vm_hosted_engine_42.xml +++ b/tests/virt/data/vm_hosted_engine_42.xml @@ -1,3 +1,8 @@ + + HostedEngineLocal 2fbdf767-df29-4ed9-bb25-db310da4e683 diff --git a/tests/virt/data/vm_replace_md_base.xml b/tests/virt/data/vm_replace_md_base.xml index 3c8c7e6509..a75ce3b5f5 100644 --- a/tests/virt/data/vm_replace_md_base.xml +++ b/tests/virt/data/vm_replace_md_base.xml @@ -1,3 +1,8 @@ + + a7 diff --git a/tests/virt/data/vm_replace_md_update.xml b/tests/virt/data/vm_replace_md_update.xml index cbda3450c8..30b1d36b2d 100644 --- a/tests/virt/data/vm_replace_md_update.xml +++ b/tests/virt/data/vm_replace_md_update.xml @@ -1,3 +1,8 @@ + + a7 diff --git a/tests/virt/data/vm_sysprep_floppy.xml b/tests/virt/data/vm_sysprep_floppy.xml index 6b2410b936..56aa0ec2fc 100644 --- a/tests/virt/data/vm_sysprep_floppy.xml +++ b/tests/virt/data/vm_sysprep_floppy.xml @@ -1,3 +1,8 @@ + + windows_10 diff --git a/tox.ini b/tox.ini index f11fce37b6..327e324f2a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,3 +1,6 @@ +; SPDX-FileCopyrightText: 2022 Red Hat, Inc. +; SPDX-License-Identifier: GPL-2.0-or-later + [tox] envlist = flake8, pylint, tests, storage, lib, network, virt, gluster, hooks diff --git a/travis/test.sh b/travis/test.sh index e583386f6c..b66c0ffae4 100755 --- a/travis/test.sh +++ b/travis/test.sh @@ -1,4 +1,8 @@ #!/bin/bash -e + +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # Usage: # test.sh target1 target2 ... diff --git a/vdsm.spec.in b/vdsm.spec.in index 38cd92dbb1..2debf3a3cf 100644 --- a/vdsm.spec.in +++ b/vdsm.spec.in @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # Packages names %global vdsm_name vdsm diff --git a/vdsm_hooks/README b/vdsm_hooks/README index 2c04be69b8..aac9ec98a6 100644 --- a/vdsm_hooks/README +++ b/vdsm_hooks/README @@ -1,3 +1,8 @@ + + IMPORTANT NOTE: *********************************************************************** hooks are NOT part of VDSM. They are extensions that - diff --git a/vdsm_hooks/allocate_net/README b/vdsm_hooks/allocate_net/README index 3b4ed3e67a..88ee4a8a6e 100644 --- a/vdsm_hooks/allocate_net/README +++ b/vdsm_hooks/allocate_net/README @@ -1,3 +1,8 @@ + + allocate_net vdsm hook ===================== This hook allocates a random network to a VM when the VM is started. diff --git a/vdsm_hooks/boot_hostdev/README b/vdsm_hooks/boot_hostdev/README index 28f3ec3463..120372391e 100644 --- a/vdsm_hooks/boot_hostdev/README +++ b/vdsm_hooks/boot_hostdev/README @@ -1,3 +1,8 @@ + + boot_hostdev vdsm hook ================================= This hook allows to boot VMs from passthrough devices such as SCSI, PCI cards diff --git a/vdsm_hooks/checkimages/README b/vdsm_hooks/checkimages/README index 8a31504711..36ebcd29cc 100644 --- a/vdsm_hooks/checkimages/README +++ b/vdsm_hooks/checkimages/README @@ -1,3 +1,8 @@ + + checkimages vdsm hook ===================== Hook performs consistency check on all qcow2 format disk images of a diff --git a/vdsm_hooks/checkips/README b/vdsm_hooks/checkips/README index f9e31cd81f..eea62c6e6d 100644 --- a/vdsm_hooks/checkips/README +++ b/vdsm_hooks/checkips/README @@ -1,3 +1,8 @@ + + checkips vdsm hook ===================== This hook check connectivity from host to given addresses diff --git a/vdsm_hooks/checkips/checkipsd b/vdsm_hooks/checkips/checkipsd index d14400d05f..ed6b7694e5 100644 --- a/vdsm_hooks/checkips/checkipsd +++ b/vdsm_hooks/checkips/checkipsd @@ -1,23 +1,9 @@ #!/usr/bin/python3 -# + # Copyright 2008-2016 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + from __future__ import absolute_import import os diff --git a/vdsm_hooks/checkips/vdsm-checkips.service.in b/vdsm_hooks/checkips/vdsm-checkips.service.in index 568e8a353b..8768d2948b 100644 --- a/vdsm_hooks/checkips/vdsm-checkips.service.in +++ b/vdsm_hooks/checkips/vdsm-checkips.service.in @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + [Unit] Description=Service that ping given ips each 60 seconds diff --git a/vdsm_hooks/diskunmap/README b/vdsm_hooks/diskunmap/README index efbf508758..0fef99d6ac 100644 --- a/vdsm_hooks/diskunmap/README +++ b/vdsm_hooks/diskunmap/README @@ -1,3 +1,8 @@ + + diskunmap vdsm hook: ================== This hook goes through all of the VM's disks and manipulate its XML diff --git a/vdsm_hooks/ethtool_options/README b/vdsm_hooks/ethtool_options/README index db8272e001..f86576d067 100644 --- a/vdsm_hooks/ethtool_options/README +++ b/vdsm_hooks/ethtool_options/README @@ -1,3 +1,8 @@ + + ethtool_options vdsm hook ================================= This hook allows the user to set ethtool options for networks that are set diff --git a/vdsm_hooks/extnet/README b/vdsm_hooks/extnet/README index 0778dbb3ef..4f6911f352 100644 --- a/vdsm_hooks/extnet/README +++ b/vdsm_hooks/extnet/README @@ -1,3 +1,8 @@ + + extnet vdsm hook ================================= This hook allows to override Engine's choice of to which bridge device should a diff --git a/vdsm_hooks/extra_ipv4_addrs/README b/vdsm_hooks/extra_ipv4_addrs/README index 01e4675dc8..b9aa4f8a89 100644 --- a/vdsm_hooks/extra_ipv4_addrs/README +++ b/vdsm_hooks/extra_ipv4_addrs/README @@ -1,3 +1,8 @@ + + extra_ipv4_addrs vdsm hook ================================= This hook allows the user to set extra ipv4 addresses for vdsm networks. diff --git a/vdsm_hooks/extra_ipv4_addrs/sudoers b/vdsm_hooks/extra_ipv4_addrs/sudoers index f996069180..b467fd2c73 100644 --- a/vdsm_hooks/extra_ipv4_addrs/sudoers +++ b/vdsm_hooks/extra_ipv4_addrs/sudoers @@ -1 +1,4 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + vdsm ALL=(ALL) NOPASSWD: /usr/sbin/ip, /sbin/ip, /usr/bin/ip diff --git a/vdsm_hooks/fcoe/85-vdsm-hook-fcoe.preset b/vdsm_hooks/fcoe/85-vdsm-hook-fcoe.preset index 2684d36aec..03cd613d0f 100644 --- a/vdsm_hooks/fcoe/85-vdsm-hook-fcoe.preset +++ b/vdsm_hooks/fcoe/85-vdsm-hook-fcoe.preset @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # vdsm-hook-fcoe preset file enables services that it requires to run on boot enable lldpad.service diff --git a/vdsm_hooks/fcoe/README b/vdsm_hooks/fcoe/README index ea74546c7c..088a8507d9 100644 --- a/vdsm_hooks/fcoe/README +++ b/vdsm_hooks/fcoe/README @@ -1,3 +1,8 @@ + + fcoe vdsm hook ================================= This hook allow to configure one or more NICs as FCoE interface(s) diff --git a/vdsm_hooks/fileinject/README b/vdsm_hooks/fileinject/README index 96b25958ed..f26267befa 100644 --- a/vdsm_hooks/fileinject/README +++ b/vdsm_hooks/fileinject/README @@ -1,3 +1,8 @@ + + fileinject vdsm hook ==================== hook is getting target file name and its content and diff --git a/vdsm_hooks/httpsisoboot/README b/vdsm_hooks/httpsisoboot/README index 22fcb22b0b..3b5a1a391a 100644 --- a/vdsm_hooks/httpsisoboot/README +++ b/vdsm_hooks/httpsisoboot/README @@ -1,3 +1,8 @@ + + httpsisoboot hook: ============ Let the VM boot from an ISO image made available via an https URL without diff --git a/vdsm_hooks/localdisk/12-vdsm-localdisk.rules b/vdsm_hooks/localdisk/12-vdsm-localdisk.rules index fd8a0a587a..4f10910a7b 100644 --- a/vdsm_hooks/localdisk/12-vdsm-localdisk.rules +++ b/vdsm_hooks/localdisk/12-vdsm-localdisk.rules @@ -1,11 +1,6 @@ -# # Copyright 2017 Red Hat, Inc. and/or its affiliates. -# -# Licensed to you under the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. See the files README and -# LICENSE_GPL_v2 which accompany this distribution. -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later # Vdsm udev rules for local lvs diff --git a/vdsm_hooks/localdisk/README b/vdsm_hooks/localdisk/README index dc259ccc51..48298fbe5d 100644 --- a/vdsm_hooks/localdisk/README +++ b/vdsm_hooks/localdisk/README @@ -1,3 +1,8 @@ + + # localdisk vdsm hook ## Overview diff --git a/vdsm_hooks/localdisk/after_disk_prepare b/vdsm_hooks/localdisk/after_disk_prepare index 244e9a44a2..cfcb23e8b4 100755 --- a/vdsm_hooks/localdisk/after_disk_prepare +++ b/vdsm_hooks/localdisk/after_disk_prepare @@ -1,23 +1,9 @@ #!/usr/bin/python3 -# + # Copyright 2017 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + from __future__ import absolute_import import json diff --git a/vdsm_hooks/localdisk/before_vm_migrate_source b/vdsm_hooks/localdisk/before_vm_migrate_source index 0986f09f31..76db506ff1 100755 --- a/vdsm_hooks/localdisk/before_vm_migrate_source +++ b/vdsm_hooks/localdisk/before_vm_migrate_source @@ -1,23 +1,9 @@ #!/usr/bin/python3 -# + # Copyright 2017 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + from __future__ import absolute_import import hooking diff --git a/vdsm_hooks/localdisk/localdisk-helper b/vdsm_hooks/localdisk/localdisk-helper index 8e993ca169..336222f6ce 100755 --- a/vdsm_hooks/localdisk/localdisk-helper +++ b/vdsm_hooks/localdisk/localdisk-helper @@ -1,23 +1,9 @@ #!/usr/bin/python3 -# + # Copyright 2017 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + from __future__ import absolute_import import argparse diff --git a/vdsm_hooks/localdisk/sudoers.vdsm_hook_localdisk b/vdsm_hooks/localdisk/sudoers.vdsm_hook_localdisk index 88f8696e50..6dc78d0782 100644 --- a/vdsm_hooks/localdisk/sudoers.vdsm_hook_localdisk +++ b/vdsm_hooks/localdisk/sudoers.vdsm_hook_localdisk @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + vdsm ALL=(ALL) NOPASSWD: /usr/libexec/vdsm/localdisk-helper Defaults:vdsm !requiretty Defaults:vdsm !syslog diff --git a/vdsm_hooks/log_console/README b/vdsm_hooks/log_console/README index ebba01203f..d8d20c0b45 100644 --- a/vdsm_hooks/log_console/README +++ b/vdsm_hooks/log_console/README @@ -1,3 +1,8 @@ + + log_console vdsm hook ================================= This hook appends a VM's serial console to a log file on the host. diff --git a/vdsm_hooks/log_firmware/README b/vdsm_hooks/log_firmware/README index 26af8ffc77..e4098093e8 100644 --- a/vdsm_hooks/log_firmware/README +++ b/vdsm_hooks/log_firmware/README @@ -1,3 +1,8 @@ + + log_firmware vdsm hook ================================= This hook appends a VM's firmware debug logging to a log file on the host. diff --git a/vdsm_hooks/macbind/README b/vdsm_hooks/macbind/README index ba417770c0..3b494b2aaa 100644 --- a/vdsm_hooks/macbind/README +++ b/vdsm_hooks/macbind/README @@ -1,3 +1,8 @@ + + macbind vdsm hook: ================== This hook goes through all of the VM's interfaces and manipulate its diff --git a/vdsm_hooks/nestedvt/README b/vdsm_hooks/nestedvt/README index a6de150167..2c7d062bd8 100644 --- a/vdsm_hooks/nestedvt/README +++ b/vdsm_hooks/nestedvt/README @@ -1,3 +1,8 @@ + + VDSM Nested Virtualization ========================== This hook provides the support for nested virtualization in the guests managed diff --git a/vdsm_hooks/nestedvt/modprobe.conf b/vdsm_hooks/nestedvt/modprobe.conf index 4fd6f7fda4..72c57fee35 100644 --- a/vdsm_hooks/nestedvt/modprobe.conf +++ b/vdsm_hooks/nestedvt/modprobe.conf @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # VDSM nestedvt modprobe configuration options kvm-intel nested=1 options kvm-amd nested=1 diff --git a/vdsm_hooks/openstacknet/README b/vdsm_hooks/openstacknet/README index 678cc537ea..7038305fe6 100644 --- a/vdsm_hooks/openstacknet/README +++ b/vdsm_hooks/openstacknet/README @@ -1,3 +1,8 @@ + + openstacknet vdsm hook ====================== This hook will treat vNICs that need to be handled by an OpenStack Network diff --git a/vdsm_hooks/openstacknet/sudoers.in.license b/vdsm_hooks/openstacknet/sudoers.in.license new file mode 100644 index 0000000000..f5c559d98e --- /dev/null +++ b/vdsm_hooks/openstacknet/sudoers.in.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2022 Red Hat, Inc. +SPDX-License-Identifier: GPL-2.0-or-later \ No newline at end of file diff --git a/vdsm_hooks/qemucmdline/README b/vdsm_hooks/qemucmdline/README index 4844bbdcb9..86145a5d3f 100644 --- a/vdsm_hooks/qemucmdline/README +++ b/vdsm_hooks/qemucmdline/README @@ -1,3 +1,8 @@ + + qemu_cmdline hook: ================== libvirt provides support for passing QEMU cmdline options. diff --git a/vdsm_hooks/scratchpad/README b/vdsm_hooks/scratchpad/README index 48416c8c43..5bcf08a4ab 100644 --- a/vdsm_hooks/scratchpad/README +++ b/vdsm_hooks/scratchpad/README @@ -1,3 +1,8 @@ + + scratchpad vdsm hook ==================== Hook creates a disk for a VM onetime usage, diff --git a/vdsm_hooks/smbios/README b/vdsm_hooks/smbios/README index caba65dfd3..f4a053224a 100644 --- a/vdsm_hooks/smbios/README +++ b/vdsm_hooks/smbios/README @@ -1,3 +1,8 @@ + + smbios vdsm hook ================ adding/changing entries to smbios domain entry: diff --git a/vdsm_hooks/spiceoptions/README b/vdsm_hooks/spiceoptions/README index 40dfde22aa..3449be8945 100644 --- a/vdsm_hooks/spiceoptions/README +++ b/vdsm_hooks/spiceoptions/README @@ -1,3 +1,8 @@ + + spiceoptions vdsm hook: =============================== diff --git a/vdsm_hooks/vhostmd/sudoers.vdsm_hook_vhostmd b/vdsm_hooks/vhostmd/sudoers.vdsm_hook_vhostmd index ea34057d1c..03a61f6bfc 100644 --- a/vdsm_hooks/vhostmd/sudoers.vdsm_hook_vhostmd +++ b/vdsm_hooks/vhostmd/sudoers.vdsm_hook_vhostmd @@ -1 +1,4 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + vdsm ALL=(ALL) NOPASSWD: /sbin/service vhostmd * diff --git a/vdsm_hooks/vmfex_dev/README b/vdsm_hooks/vmfex_dev/README index ed01528c1c..9895856b66 100644 --- a/vdsm_hooks/vmfex_dev/README +++ b/vdsm_hooks/vmfex_dev/README @@ -1,3 +1,8 @@ + + vmfex_dev vdsm hook ====================== diff --git a/vdsm_log/vdsmlog.lang b/vdsm_log/vdsmlog.lang index 4364757a41..a9f363361e 100644 --- a/vdsm_log/vdsmlog.lang +++ b/vdsm_log/vdsmlog.lang @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later + # VDSM log highlighter state flow = '^' begin mainprocess = "MainProcess" diff --git a/vdsm_log/vdsmlog.sh b/vdsm_log/vdsmlog.sh index d32df6a7ec..dd10182114 100755 --- a/vdsm_log/vdsmlog.sh +++ b/vdsm_log/vdsmlog.sh @@ -1,23 +1,8 @@ #!/bin/bash -# + # Copyright 2011 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# +# SPDX-FileCopyrightText: 2022 Red Hat, Inc. +# SPDX-License-Identifier: GPL-2.0-or-later ssh $1 "cat /var/log/vdsm/vdsm.log" | source-highlight -f esc --style-file=vdsmlog.style --lang-def=vdsmlog.lang | less -R diff --git a/vdsm_log/vdsmlog.style b/vdsm_log/vdsmlog.style index 4fba22ac9e..f8feacbe61 100644 --- a/vdsm_log/vdsmlog.style +++ b/vdsm_log/vdsmlog.style @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2022 Red Hat, Inc. +// SPDX-License-Identifier: GPL-2.0-or-later + thread, mainprocess, mainthread purple b; apierror, cmderror, error red b ; warning orange b ;