Description of problem: Using https://review.rdoproject.org/r/#/c/30839/ as a reference spec we would like to add a rpm for https://opendev.org/openstack/ansible-role-collect-logs The rpm will be integrated for customer use in the sos-report plugins for openstack. Thank you!!
https://review.rdoproject.org/r/30905 thanks
licensecheck $ licensecheck -r . ./.ansible-lint: *No copyright* UNKNOWN ./.envrc: *No copyright* UNKNOWN ./.gitreview: *No copyright* UNKNOWN ./.pre-commit-config.yaml: *No copyright* UNKNOWN ./.yamllint: *No copyright* UNKNOWN ./LICENSE: GENERATED FILE ./README.rst: *No copyright* UNKNOWN ./ansible.cfg: *No copyright* UNKNOWN ./bindep.txt: *No copyright* UNKNOWN ./requirements.txt: *No copyright* UNKNOWN ./setup.cfg: *No copyright* UNKNOWN ./setup.py: Apache License 2.0 ./test-requirements.txt: *No copyright* UNKNOWN ./tox.ini: *No copyright* UNKNOWN ./defaults/main.yml: *No copyright* UNKNOWN ./docs/doc-requirements.txt: *No copyright* UNKNOWN ./files/collect-container-logs.sh: *No copyright* UNKNOWN ./files/heat-deploy-times.py: Apache License 2.0 ./infrared_plugin/main.yml: *No copyright* UNKNOWN ./infrared_plugin/plugin.spec: *No copyright* UNKNOWN ./library/ara_graphite.py: *No copyright* Apache License 2.0 ./library/ara_influxdb.py: *No copyright* Apache License 2.0 ./library/flatten_nested_dict.py: *No copyright* Apache License 2.0 ./library/sova.py: *No copyright* Apache License 2.0 ./meta/main.yml: *No copyright* UNKNOWN ./module_utils/sova_lib.py: *No copyright* Apache License 2.0 ./scripts/doc_extrapolation.awk: *No copyright* UNKNOWN ./tasks/collect.yml: *No copyright* UNKNOWN ./tasks/create-docs.yml: *No copyright* UNKNOWN ./tasks/main.yml: *No copyright* UNKNOWN ./tasks/publish.yml: *No copyright* UNKNOWN ./tasks/publish_ara.yml: *No copyright* UNKNOWN ./tasks/publish_ara_graphite.yml: *No copyright* UNKNOWN ./tasks/publish_ara_influxdb.yml: *No copyright* UNKNOWN ./tasks/sanitize_log_strings.yaml: *No copyright* UNKNOWN ./tasks/sova.yml: *No copyright* UNKNOWN ./templates/full_logs.html.j2: *No copyright* UNKNOWN ./templates/index.rst.j2: *No copyright* GENERATED FILE ./templates/odl_extra_logs.j2: *No copyright* UNKNOWN ./templates/rsync-filter.j2: *No copyright* UNKNOWN ./test-playbooks/zuul-ansible-role-collect-logs.yaml: *No copyright* UNKNOWN ./tests/test_flatten_nested_dict.py: *No copyright* UNKNOWN ./vars/family-redhat.yml: *No copyright* UNKNOWN ./vars/infrared-collect-exclude-list.yml: *No copyright* UNKNOWN ./vars/sova-patterns.yml: *No copyright* UNKNOWN ./vars/unsecure.yml: *No copyright* UNKNOWN ./zuul.d/layout.yaml: *No copyright* UNKNOWN ./docs/source/conf.py: *No copyright* Apache License 2.0 GENERATED FILE ./docs/static/env-setup-virt.rst: *No copyright* UNKNOWN ./molecule/default/converge.yml: *No copyright* UNKNOWN ./molecule/default/molecule.yml: *No copyright* UNKNOWN ./molecule/default/prepare.yml: *No copyright* UNKNOWN ./molecule/default/verify.yml: *No copyright* UNKNOWN ./molecule/infrared/converge.yml: *No copyright* UNKNOWN ./molecule/infrared/molecule.yml: *No copyright* UNKNOWN ./molecule/infrared/verify.yml: *No copyright* GENERATED FILE ./molecule/sova/converge.yml: *No copyright* UNKNOWN ./molecule/sova/molecule.yml: *No copyright* UNKNOWN ./molecule/sova/prepare.yml: *No copyright* UNKNOWN ./molecule/sova/verify.yml: *No copyright* UNKNOWN ./tasks/collect/container.yml: *No copyright* UNKNOWN ./tasks/collect/monitoring.yml: *No copyright* UNKNOWN ./tasks/collect/network.yml: *No copyright* UNKNOWN ./tasks/collect/system.yml: *No copyright* UNKNOWN ./tests/common/utils.py: *No copyright* UNKNOWN ./docs/source/_custom/custom.css: *No copyright* UNKNOWN ./docs/source/_custom/rdo_styling.css: *No copyright* UNKNOWN ./docs/source/_templates/layout.html: *No copyright* UNKNOWN ./docs/static/baremetal-overcloud/copying-customized-files.rst: *No copyright* GENERATED FILE ./docs/static/baremetal-overcloud/customizing-external-network-vlan.rst: *No copyright* UNKNOWN ./docs/static/baremetal-overcloud/customizing-undercloud-conf.rst: *No copyright* UNKNOWN ./docs/static/baremetal-overcloud/env-setup.rst: *No copyright* UNKNOWN ./docs/static/baremetal-overcloud/env-specific-pre-deploy-steps.rst: *No copyright* UNKNOWN ./docs/static/baremetal-overcloud/environment-settings-structure.rst: *No copyright* UNKNOWN ./docs/static/baremetal-overcloud/introduction.rst: *No copyright* UNKNOWN ./docs/static/baremetal-overcloud/networking.rst: *No copyright* UNKNOWN ./docs/static/baremetal-overcloud/requirements.rst: *No copyright* UNKNOWN ./docs/static/baremetal-overcloud/validate-prior-to-deploy.rst: *No copyright* UNKNOWN ./docs/static/baremetal-overcloud/virtual-vs-baremetal-undercloud.rst: *No copyright* UNKNOWN ./docs/static/ovb-openstack-cloud/calling-quickstart.rst: *No copyright* UNKNOWN ./docs/static/ovb-openstack-cloud/introduction.rst: *No copyright* UNKNOWN ./docs/static/ovb-openstack-cloud/running-quickstart-instances-openstack.rst: *No copyright* UNKNOWN ./docs/static/baremetal-overcloud/_images/TripleO_Network_Diagram_.jpg: UNKNOWN License is valid Apache Software License v2.0
Package Review ============== Legend: [x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated [ ] = Manual review needed Issues: ======= - 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. Note: License file copying-customized-files.rst is not marked as %license See: https://docs.fedoraproject.org/en-US/packaging- guidelines/LicensingGuidelines/#_license_text ===== MUST items ===== Generic: [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", "Apache License 2.0", "*No copyright* Apache License 2.0". 83 files have unknown license. Detailed output of licensecheck in /tmp/borrar/ansible-role-collect-logs/licensecheck.txt [x]: Package does not own files or directories owned by other packages. Note: Dirs in package are owned also by: /usr/share/ansible(tripleo- ansible, ansible-tripleo-ipa, ansible, ansible-pacemaker, ansible- config_template, ansible-tripleo-ipa-server, rhel-system-roles), /usr/share/ansible/roles(ansible-role-atos-hsm, ansible-role-chrony, ansible-role-lunasa-hsm, ansible-tripleo-ipa, tripleo-ansible, ansible-role-tripleo-modify-image, ansible, ansible-role-openstack- operations, ansible-role-container-registry, ansible-role-redhat- subscription, openstack-tripleo-common, ansible-role-thales-hsm, rhel- system-roles, ansible-tripleo-ipsec) [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 20480 bytes in 1 files. [x]: Package complies to the Packaging Guidelines [x]: Package successfully compiles and builds into binary rpms on at least one supported primary architecture. [x]: Package installs properly. [x]: Rpmlint is run on all rpms the build produces. Note: There are rpmlint messages (see attachment). [x]: Package requires other packages for directories it uses. [x]: Package must own all directories that it creates. [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: [!]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin. Note: Incorrect Requires : /usr/libexec/platform-python See: https://docs.fedoraproject.org/en-US/packaging- guidelines/#_file_and_directory_dependencies [-]: 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. [x]: SourceX tarball generation or download is documented. Note: Package contains tarball without URL, check comments [x]: Sources are verified with gpgverify first in %prep if upstream publishes signatures. Note: gpgverify occurs outside of %prep. [x]: Description and summary sections in the package spec file contains translations for supported Non-English languages, if available. [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 1.1.1.dev6 [x]: Reviewer should test that the package builds in mock. [x]: Buildroot is not present [x]: Package has no %clean section with rm -rf %{buildroot} (or $RPM_BUILD_ROOT) [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: ansible-role-collect-logs-1.1.1-0.20201124034926.188e42d.el8.noarch.rpm ansible-role-collect-logs-1.1.1-0.20201124034926.188e42d.el8.src.rpm ansible-role-collect-logs.noarch: E: summary-too-long C Ansible role to collect the logs from a TripleO/OSP based deployment of OpenStack ansible-role-collect-logs.noarch: E: description-line-too-long C Ansible role to collect the logs from a TripleO/OSP based deployment of OpenStack ansible-role-collect-logs.noarch: E: no-changelogname-tag ansible-role-collect-logs.noarch: E: non-executable-script /usr/share/ansible/roles/collect-logs/files/heat-deploy-times.py 644 /usr/bin/env python ansible-role-collect-logs.noarch: E: non-executable-script /usr/share/ansible/roles/collect-logs/library/ara_graphite.py 644 /usr/bin/env python ansible-role-collect-logs.noarch: E: non-executable-script /usr/share/ansible/roles/collect-logs/library/ara_influxdb.py 644 /usr/bin/env python ansible-role-collect-logs.noarch: E: non-executable-script /usr/share/ansible/roles/collect-logs/library/sova.py 644 /usr/bin/python ansible-role-collect-logs.noarch: E: non-executable-script /usr/share/ansible/roles/collect-logs/module_utils/sova_lib.py 644 /usr/bin/python ansible-role-collect-logs.src: E: summary-too-long C Ansible role to collect the logs from a TripleO/OSP based deployment of OpenStack ansible-role-collect-logs.src: E: description-line-too-long C Ansible role to collect the logs from a TripleO/OSP based deployment of OpenStack ansible-role-collect-logs.src: E: no-changelogname-tag ansible-role-collect-logs.src:5: W: macro-in-comment %global ansible-role-collect-logs.src: E: specfile-error warning: Macro expanded in comment on line 5: %global sources_gpg_sign <get the Cryptographic Signatures of current release from https://releases.openstack.org/#cryptographic-signatures> ansible-role-collect-logs.src: E: specfile-error ansible-role-collect-logs.src: E: specfile-error warning: Macro expanded in comment on line 5: %global sources_gpg_sign <get the Cryptographic Signatures of current release from https://releases.openstack.org/#cryptographic-signatures> 2 packages and 0 specfiles checked; 14 errors, 1 warnings. Rpmlint (installed packages) ---------------------------- ansible-role-collect-logs.noarch: E: summary-too-long C Ansible role to collect the logs from a TripleO/OSP based deployment of OpenStack ansible-role-collect-logs.noarch: E: description-line-too-long C Ansible role to collect the logs from a TripleO/OSP based deployment of OpenStack ansible-role-collect-logs.noarch: E: no-changelogname-tag ansible-role-collect-logs.noarch: W: invalid-url URL: https://git.openstack.org/cgit/openstack/ansible-role-collect-logs <urlopen error [Errno -2] Name or service not known> ansible-role-collect-logs.noarch: E: wrong-script-interpreter /usr/share/ansible/roles/collect-logs/files/heat-deploy-times.py /usr/bin/env python ansible-role-collect-logs.noarch: E: non-executable-script /usr/share/ansible/roles/collect-logs/files/heat-deploy-times.py 644 /usr/bin/env python ansible-role-collect-logs.noarch: E: wrong-script-interpreter /usr/share/ansible/roles/collect-logs/library/ara_graphite.py /usr/bin/env python ansible-role-collect-logs.noarch: E: non-executable-script /usr/share/ansible/roles/collect-logs/library/ara_graphite.py 644 /usr/bin/env python ansible-role-collect-logs.noarch: E: wrong-script-interpreter /usr/share/ansible/roles/collect-logs/library/ara_influxdb.py /usr/bin/env python ansible-role-collect-logs.noarch: E: non-executable-script /usr/share/ansible/roles/collect-logs/library/ara_influxdb.py 644 /usr/bin/env python ansible-role-collect-logs.noarch: E: non-executable-script /usr/share/ansible/roles/collect-logs/library/sova.py 644 /usr/bin/python ansible-role-collect-logs.noarch: E: non-executable-script /usr/share/ansible/roles/collect-logs/module_utils/sova_lib.py 644 /usr/bin/python 1 packages and 0 specfiles checked; 11 errors, 1 warnings. Requires -------- ansible-role-collect-logs (rpmlib, GLIBC filtered): /usr/bin/bash /usr/libexec/platform-python python(abi) python3dist(ansible) Provides -------- ansible-role-collect-logs: ansible-role-collect-logs python3.6dist(ansible-role-collect-logs) python3dist(ansible-role-collect-logs) Generated by fedora-review 0.7.5 (5fa5b7e) last change: 2020-02-16 Command line :/usr/bin/fedora-review -m centos-8-x86_64 -rn ansible-role-collect-logs-1.1.1-0.20201124034926.188e42d.el8.src.rpm Buildroot used: centos-8-x86_64 Active plugins: Generic, Shell-api Disabled plugins: Ocaml, R, fonts, Python, Perl, Java, Haskell, SugarActivity, PHP, C/C++ Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH Notes: - no-changelogname-tag: package is to be built for DLRN, no changelog is used - invalid-url: dlrn creates its own tarball - non-executable-script: those are part of ansible role, not to be executed locally - wrong-script-interpreter: should be fixed upstream if needed Package is APPROVED
Added to Train+ releases, closing it.