Description of problem: With the new OpenStack deployment tool based on openstack-k8s-operators a new set of qcow images are required for baremetal deployment. In order to ease the creation of this image using RDO packages, the repo https://github.com/openstack-k8s-operators/edpm-image-builder/ should be included in an RDO package.
$ licensecheck -r . ./Containerfile.image: *No copyright* UNKNOWN ./Containerfile.ramdisk: *No copyright* UNKNOWN ./LICENSE: *No copyright* Apache License 2.0 ./README.rst: *No copyright* UNKNOWN ./copy_out.sh: *No copyright* UNKNOWN ./requirements.txt: *No copyright* UNKNOWN ./setup.cfg: *No copyright* Apache License ./setup.py: Apache License 2.0 ./images/edpm-hardened-uefi-centos-9-stream.yaml: *No copyright* UNKNOWN ./images/ironic-python-agent-centos-9-stream.yaml: *No copyright* UNKNOWN ./dib/edpm-base/README.rst: *No copyright* UNKNOWN ./dib/edpm-base/element-deps: *No copyright* UNKNOWN ./dib/edpm-base/package-installs.yaml: *No copyright* UNKNOWN ./dib/edpm-partition-uefi/README.rst: *No copyright* UNKNOWN ./dib/edpm-partition-uefi/block-device-default.yaml: *No copyright* UNKNOWN ./dib/edpm-partition-uefi/element-deps: *No copyright* UNKNOWN ./dib/edpm-partition-uefi/element-provides: *No copyright* UNKNOWN ./dib/enable-packages-install/README.md: *No copyright* UNKNOWN ./dib/interface-names/README.md: *No copyright* UNKNOWN ./dib/iptables/README.md: *No copyright* UNKNOWN ./dib/iptables/package-installs.yaml: *No copyright* UNKNOWN ./dib/ironic-agent-multipath/README.rst: *No copyright* UNKNOWN ./dib/ironic-agent-multipath/element-deps: *No copyright* UNKNOWN ./dib/ironic-agent-multipath/package-installs.yaml: *No copyright* UNKNOWN ./dib/openssh/README.md: *No copyright* UNKNOWN ./dib/openvswitch/README.md: *No copyright* UNKNOWN ./dib/openvswitch/element-deps: *No copyright* UNKNOWN ./dib/openvswitch/package-installs.yaml: *No copyright* UNKNOWN ./dib/override-pip-and-virtualenv/README.md: *No copyright* UNKNOWN ./dib/override-pip-and-virtualenv/element-provides: *No copyright* UNKNOWN ./dib/remove-resolvconf/README.md: *No copyright* UNKNOWN ./dib/repo-setup/README.md: *No copyright* UNKNOWN ./dib/reset-bls-entries/README.rst: *No copyright* UNKNOWN ./dib/edpm-base/install.d/51-persistent-journal: *No copyright* UNKNOWN ./dib/edpm-base/post-install.d/51-enable-network-service: *No copyright* UNKNOWN ./dib/edpm-partition-uefi/environment.d/15-block-device.bash: *No copyright* UNKNOWN ./dib/edpm-partition-uefi/post-install.d/80-enable-fstrim: *No copyright* UNKNOWN ./dib/edpm-partition-uefi/post-install.d/98-enable-tmp-mount: *No copyright* UNKNOWN ./dib/enable-packages-install/environment.d/01-export-install-types.bash: *No copyright* UNKNOWN ./dib/interface-names/install.d/70-clear-net-ifnames: *No copyright* UNKNOWN ./dib/interface-names/install.d/71-clean-stale-interface: *No copyright* UNKNOWN ./dib/iptables/bin/add-rule: *No copyright* UNKNOWN ./dib/iptables/bin/os-iptables-stateful: Apache License 2.0 ./dib/iptables/install.d/99-empty-iptables: *No copyright* UNKNOWN ./dib/openssh/post-install.d/71-openssh: *No copyright* UNKNOWN ./dib/openvswitch/install.d/74-openvswitch: *No copyright* UNKNOWN ./dib/remove-resolvconf/cleanup.d/90-remove-resolvconf: *No copyright* UNKNOWN ./dib/repo-setup/environment.d/01-repo-setup.bash: *No copyright* UNKNOWN ./dib/repo-setup/pre-install.d/00-03-repo-setup: *No copyright* UNKNOWN ./dib/reset-bls-entries/post-install.d/80-reset-bls-entries: *No copyright* UNKNOWN ./dib/reset-bls-entries/init-scripts/systemd/reset-bls-entries.service: *No copyright* UNKNOWN ./dib/ironic-agent-multipath/static/etc/modules-load.d/iscsi.conf: *No copyright* UNKNOWN ./dib/reset-bls-entries/static/usr/lib/systemd/reset-bls-entries: *No copyright* UNKNOWN
License is valid ASL 2.0
Package review based on merged spec in https://review.rdoproject.org/r/c/openstack/edpm-image-builder-distgit/+/48753/ Package is approved Package Review ============== Legend: [x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated [ ] = Manual review needed ===== MUST items ===== Generic: [x]: Package successfully compiles and builds into binary rpms on at least one supported primary architecture. Note: Using prebuilt packages [x]: Package is licensed with an open-source compatible license and meets other legal requirements as defined in the legal section of Packaging Guidelines. [x]: License field in the package spec file matches the actual license. Note: Checking patched sources after %prep for licenses. Licenses found: "Unknown or generated", "*No copyright* Apache License 2.0", "*No copyright* Apache License", "Apache License 2.0". 56 files have unknown license. Detailed output of licensecheck in /var/home/jcapitao/workspace/packages/rdo/edpm-image-builder/edpm- image-builder/licensecheck.txt [x]: Package contains no bundled libraries without FPC exception. [-]: Changelog in prescribed format. [x]: Sources contain only permissible code or content. [-]: Package contains desktop file if it is a GUI application. [-]: Development files must be in a -devel package [x]: Package uses nothing in %doc for runtime. [x]: Package consistently uses macros (instead of hard-coded directory names). [x]: Package is named according to the Package Naming Guidelines. [x]: Package does not generate any conflict. [x]: Package obeys FHS, except libexecdir and /usr/target. [-]: If the package is a rename of another package, proper Obsoletes and Provides are present. [x]: Requires correct, justified where necessary. [x]: Spec file is legible and written in American English. [-]: Package contains systemd file(s) if in need. [x]: Package is not known to require an ExcludeArch tag. [-]: Large documentation must go in a -doc subpackage. Large could be size (~1MB) or number of files. Note: Documentation size is 10240 bytes in 1 files. [x]: Package complies to the Packaging Guidelines [x]: Package installs properly. [x]: Rpmlint is run on all rpms the build produces. Note: There are rpmlint messages (see attachment). [x]: If (and only if) the source package includes the text of the license(s) in its own file, then that file, containing the text of the license(s) for the package is included in %license. [x]: Package requires other packages for directories it uses. [x]: Package must own all directories that it creates. [x]: Package does not own files or directories owned by other packages. [x]: Package uses either %{buildroot} or $RPM_BUILD_ROOT [x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the beginning of %install. [x]: Macros in Summary, %description expandable at SRPM build time. [x]: Dist tag is present. [x]: Package does not contain duplicates in %files. [x]: Permissions on files are set properly. [x]: Package must not depend on deprecated() packages. [x]: Package use %makeinstall only when make install DESTDIR=... doesn't work. [x]: Package is named using only allowed ASCII characters. [x]: Package does not use a name that already exists. [x]: Package is not relocatable. [x]: Sources used to build the package match the upstream source, as provided in the spec URL. [x]: Spec file name must match the spec package %{name}, in the format %{name}.spec. [x]: File names are valid UTF-8. [x]: Packages must not store files under /srv, /opt or /usr/local ===== SHOULD items ===== Generic: [!]: Reviewer should test that the package builds in mock. [-]: If the source package does not include license text(s) as a separate file from upstream, the packager SHOULD query upstream to include it. [x]: Final provides and requires are sane (see attachments). [x]: Package functions as described. [x]: Latest version is packaged. [x]: Package does not include license text files separate from upstream. [-]: SourceX tarball generation or download is documented. Note: Package contains tarball without URL, check comments [-]: Sources are verified with gpgverify first in %prep if upstream publishes signatures. Note: gpgverify is not used. [x]: Package should compile and build into binary rpms on all supported architectures. [!]: %check is present and all tests pass. [x]: Packages should try to preserve timestamps of original installed files. [x]: Spec use %global instead of %define unless justified. Note: %define requiring justification: %define upstream_version 0.0.1.dev21 [x]: Buildroot is not present [x]: Package has no %clean section with rm -rf %{buildroot} (or $RPM_BUILD_ROOT) [x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin. [x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file [x]: SourceX is a working URL. ===== EXTRA items ===== Generic: [x]: Rpmlint is run on all installed packages. Note: There are rpmlint messages (see attachment). Rpmlint ------- Checking: edpm-image-builder-0.0.1-0.20230602070419.a2315ff.el9.noarch.rpm edpm-image-builder-0.0.1-0.20230602070419.a2315ff.el9.src.rpm ================================================================================================================================================== rpmlint session starts ================================================================================================================================================= rpmlint: 2.4.0 configuration: /usr/lib/python3.11/site-packages/rpmlint/configdefaults.toml /etc/xdg/rpmlint/fedora-legacy-licenses.toml /etc/xdg/rpmlint/fedora-spdx-licenses.toml /etc/xdg/rpmlint/fedora.toml /etc/xdg/rpmlint/scoring.toml /etc/xdg/rpmlint/users-groups.toml /etc/xdg/rpmlint/warn-on-functions.toml rpmlintrc: [PosixPath('/tmp/tmpgfg6b4fm')] checks: 31, packages: 2 edpm-image-builder.noarch: E: no-changelogname-tag edpm-image-builder.src: E: no-changelogname-tag edpm-image-builder.spec: W: invalid-url Source0: edpm-image-builder-0.0.1.dev21-0.20230602070419.a2315ff.tar.gz edpm-image-builder.noarch: W: files-duplicate /usr/lib/python3.9/site-packages/edpm_image_builder-0.0.1.dev21-py3.9.egg-info/top_level.txt /usr/lib/python3.9/site-packages/edpm_image_builder-0.0.1.dev21-py3.9.egg-info/dependency_links.txt:/usr/lib/python3.9/site-packages/edpm_image_builder-0.0.1.dev21-py3.9.egg-info/not-zip-safe edpm-image-builder.noarch: W: files-duplicate /usr/share/edpm-image-builder/dib/openvswitch/element-deps /usr/share/edpm-image-builder/dib/edpm-base/element-deps edpm-image-builder.noarch: E: description-line-too-long This package contains elements and files needed to build OS images for deploying EDPM bare edpm-image-builder.noarch: E: description-line-too-long metal nodes and ironic-python-agent image which is used by ironic for BMAAS using edpm-image-builder.src: E: description-line-too-long This package contains elements and files needed to build OS images for deploying EDPM bare edpm-image-builder.src: E: description-line-too-long metal nodes and ironic-python-agent image which is used by ironic for BMAAS using =================================================================================================================== 2 packages and 0 specfiles checked; 6 errors, 3 warnings, 6 badness; has taken 0.3 s ================================================================================================================== Rpmlint (installed packages) ---------------------------- Cannot parse rpmlint output: Requires -------- edpm-image-builder (rpmlib, GLIBC filtered): /usr/bin/bash diskimage-builder openstack-ironic-python-agent-builder python(abi) Provides -------- edpm-image-builder: edpm-image-builder python3.9dist(edpm-image-builder) python3dist(edpm-image-builder) Generated by fedora-review 0.9.0 (6761b6c) last change: 2022-08-23 Command line :/usr/bin/fedora-review -n edpm-image-builder -r -p -m openstack-bobcat-9-x86_64 Buildroot used: openstack-bobcat-9-x86_64 Active plugins: Shell-api, Generic Disabled plugins: Perl, C/C++, Haskell, fonts, R, Java, Ocaml, PHP, Python, SugarActivity Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH