On Fri, Oct 20, 2017 at 11:37 AM Sandro Bonazzola <sbonazzo@redhat.com> wrote:Just an heads up we have improvement margin on vdsm spec file quality.[sbonazzo@sbonazzo SPECS]$ rpmlint ./vdsm.spec /var/lib/mock/epel-7-x86_64/result/*rpm vdsm.x86_64: E: explicit-lib-dependency libnl3What is wrong with this?vdsm.x86_64: E: explicit-lib-dependency libvirt-clientvdsm.x86_64: E: explicit-lib-dependency libvirt-daemon-config-nwfiltervdsm.x86_64: E: explicit-lib-dependency libvirt-lock-sanlockvdsm.x86_64: W: obsolete-not-provided vdsm-infravdsm.x86_64: E: no-binaryHa?vdsm.x86_64: W: conffile-without-noreplace-flag /var/log/vdsm/mom.log This is not a conf file, we should probably change thisvdsm.x86_64: W: conffile-without-noreplace-flag /var/log/vdsm/supervdsm.log vdsm.x86_64: W: conffile-without-noreplace-flag /var/log/vdsm/vdsm.log vdsm.x86_64: W: non-conffile-in-etc /etc/NetworkManager/conf.d/vdsm.conf Ha?
vdsm.x86_64: W: non-conffile-in-etc /etc/modprobe.d/vdsm-bonding-modprobe.conf vdsm.x86_64: E: non-readable /etc/pki/vdsm/keys/libvirt_password 600 vdsm.x86_64: W: non-conffile-in-etc /etc/security/limits.d/99-vdsm.conf Ha?
vdsm.x86_64: W: non-conffile-in-etc /etc/sudoers.d/50_vdsmvdsm.x86_64: W: systemd-unit-in-etc /etc/systemd/system/libvirtd.service.d/unlimited-core.conf vdsm.x86_64: W: non-conffile-in-etc /etc/systemd/system/libvirtd.service.d/unlimited-core.conf vdsm.x86_64: E: zero-length /etc/vdsm/mom.d/01-parameters.policy vdsm.x86_64: E: wrong-script-interpreter /usr/libexec/vdsm/kvm2ovirt /usr/bin/env pythonThis used to be the recommended way to write scripts, but it is easy toreplace with /usr/bin/python2.vdsm.x86_64: E: wrong-script-interpreter /usr/libexec/vdsm/vm_migrate_hook.py /usr/bin/env python vdsm.x86_64: E: wrong-script-interpreter /usr/share/vdsm/virt/vm_migrate_hook.py /usr/bin/env python vdsm.x86_64: E: non-executable-script /usr/share/vdsm/virt/vm_migrate_hook.py 644 /usr/bin/env python vdsm.x86_64: E: non-standard-dir-perm /var/lib/libvirt/qemu/channels 775vdsm.x86_64: E: non-standard-dir-perm /var/log/core 1777vdsm.x86_64: E: dir-or-file-in-var-run /var/run/vdsmWhat is wrong with this?
vdsm.x86_64: E: dir-or-file-in-var-run /var/run/vdsm/payloadvdsm.x86_64: E: dir-or-file-in-var-run /var/run/vdsm/sourceRoutesvdsm.x86_64: E: dir-or-file-in-var-run /var/run/vdsm/trackedInterfaces vdsm.x86_64: E: dir-or-file-in-var-run /var/run/vdsm/v2vvdsm.x86_64: W: log-files-without-logrotate ['/var/log/core', '/var/log/vdsm']We have logrotate configuration for vdsm, but we don't use the standardconfiguration since we need more frequent rotation.vdsm.x86_64: W: dangerous-command-in-%pre rpmvdsm.x86_64: W: dangerous-command-in-%post chmodvdsm-api.noarch: E: wrong-script-interpreter /usr/lib/python2.7/site-packages/vdsm/api/vdsmapi.py /usr/bin/env python vdsm-api.noarch: E: non-executable-script /usr/lib/python2.7/site-packages/vdsm/api/vdsmapi.py 644 /usr/bin/env python vdsm-cli.noarch: W: non-conffile-in-etc /etc/bash_completion.d/vdsClient vdsm-gluster.noarch: W: spelling-error %description -l en_US functionalities -> functionalists, functionality, functionalistvdsm-gluster.noarch: W: no-documentationvdsm-hook-allocate_net.noarch: W: summary-not-capitalized C random_network allocation hook for VDSMvdsm-hook-allocate_net.noarch: W: spelling-error %description -l en_US vms -> vs, ms, emsvdsm-hook-allocate_net.noarch: W: no-documentationvdsm-hook-allocate_net.noarch: E: wrong-script-interpreter /usr/libexec/vdsm/hooks/before_device_create/10_ allocate_net /usr/bin/env python vdsm-hook-checkimages.noarch: W: no-documentationvdsm-hook-checkips.x86_64: W: no-documentationvdsm-hook-checkips.x86_64: E: wrong-script-interpreter /usr/libexec/vdsm/hooks/after_get_stats/10_checkips /usr/bin/env python vdsm-hook-checkips.x86_64: E: non-executable-script /usr/libexec/vdsm/hooks/after_get_stats/checkips_utils.py 644 /usr/bin/python2 vdsm-hook-diskunmap.noarch: W: spelling-error Summary(en_US) lun -> loon, lung, sunvdsm-hook-diskunmap.noarch: W: no-documentationvdsm-hook-diskunmap.noarch: E: wrong-script-interpreter /usr/libexec/vdsm/hooks/before_vm_start/50_diskunmap /usr/bin/env python2 vdsm-hook-ethtool-options.noarch: W: spelling-error Summary(en_US) nics -> incs, mics, nicks vdsm-hook-ethtool-options.noarch: W: spelling-error %description -l en_US nics -> incs, mics, nicks vdsm-hook-ethtool-options.noarch: W: no-documentation vdsm-hook-ethtool-options.noarch: E: wrong-script-interpreter /usr/libexec/vdsm/hooks/after_ network_setup/30_ethtool_ options /usr/bin/env python vdsm-hook-extnet.noarch: W: spelling-error Summary(en_US) vNIC -> Venicevdsm-hook-extnet.noarch: W: spelling-error Summary(en_US) libvirt -> liberty, ovirtvdsm-hook-extnet.noarch: W: spelling-error %description -l en_US vNIC -> Venicevdsm-hook-extnet.noarch: W: spelling-error %description -l en_US libvirt -> liberty, ovirtvdsm-hook-extnet.noarch: W: spelling-error %description -l en_US openvswitch -> switchboardvdsm-hook-extnet.noarch: W: no-documentationvdsm-hook-extra-ipv4-addrs.x86_64: W: summary-ended-with-dot C Set extra ipv4 addresses for vdsm networks. vdsm-hook-extra-ipv4-addrs.x86_64: W: no-documentation vdsm-hook-extra-ipv4-addrs.x86_64: E: wrong-script-interpreter /usr/libexec/vdsm/hooks/after_ network_setup/40_extra_ipv4_ addrs /usr/bin/env python vdsm-hook-fakesriov.x86_64: W: spelling-error %description -l en_US hostdevListByCapsvdsm-hook-fakesriov.x86_64: W: spelling-error %description -l en_US sriov -> Riosvdsm-hook-fakesriov.x86_64: W: spelling-error %description -l en_US conf -> con, cone, consvdsm-hook-fakesriov.x86_64: W: no-documentationvdsm-hook-fakevmstats.noarch: W: spelling-error %description -l en_US vmstats -> statsvdsm-hook-fakevmstats.noarch: W: spelling-error %description -l en_US conf -> con, cone, consvdsm-hook-fakevmstats.noarch: W: no-documentationvdsm-hook-faqemu.noarch: W: spelling-error Summary(en_US) qemu -> emu, q emuvdsm-hook-faqemu.noarch: W: spelling-error %description -l en_US kvm -> kmvdsm-hook-faqemu.noarch: W: spelling-error %description -l en_US conf -> con, cone, consvdsm-hook-faqemu.noarch: W: no-documentationvdsm-hook-fcoe.noarch: W: no-documentationvdsm-hook-fcoe.noarch: E: wrong-script-interpreter /usr/libexec/vdsm/hooks/before_network_setup/50_fcoe /bin/env python vdsm-hook-fileinject.noarch: W: no-documentationvdsm-hook-floppy.noarch: W: no-documentationvdsm-hook-hostusb.noarch: W: no-documentationvdsm-hook-hostusb.noarch: E: non-readable /etc/sudoers.d/50_vdsm_hook_hostusb 440 vdsm-hook-hostusb.noarch: W: non-conffile-in-etc /etc/sudoers.d/50_vdsm_hook_hostusb vdsm-hook-httpsisoboot.noarch: W: spelling-error Summary(en_US) https -> HTTPvdsm-hook-httpsisoboot.noarch: W: spelling-error %description -l en_US https -> HTTPvdsm-hook-httpsisoboot.noarch: W: spelling-error %description -l en_US http -> HTTPvdsm-hook-httpsisoboot.noarch: W: no-documentationvdsm-hook-hugepages.noarch: W: summary-ended-with-dot C Huge pages enable user to handle VM with 2048KB page files.vdsm-hook-hugepages.noarch: W: no-documentationvdsm-hook-hugepages.noarch: E: non-readable /etc/sudoers.d/50_vdsm_hook_hugepages 440 vdsm-hook-hugepages.noarch: W: non-conffile-in-etc /etc/sudoers.d/50_vdsm_hook_hugepages vdsm-hook-ipv6.noarch: W: no-documentationvdsm-hook-ipv6.noarch: E: wrong-script-interpreter /usr/libexec/vdsm/hooks/before_network_setup/50_ipv6 /usr/bin/env python2 vdsm-hook-isolatedprivatevlan.noarch: W: spelling-error %description -l en_US ip -> pi, up, op vdsm-hook-isolatedprivatevlan.noarch: W: spelling-error %description -l en_US filterref -> filter ref, filter-ref, filterer vdsm-hook-isolatedprivatevlan.noarch: W: spelling-error %description -l en_US xml -> XML, ml, x ml vdsm-hook-isolatedprivatevlan.noarch: W: no-documentation vdsm-hook-isolatedprivatevlan.noarch: E: executable-marked-as-config- file /etc/libvirt/nwfilter/ isolatedprivatevlan-vdsm.xml vdsm-hook-isolatedprivatevlan.noarch: E: script-without-shebang /etc/libvirt/nwfilter/ isolatedprivatevlan-vdsm.xml vdsm-hook-localdisk.noarch: W: spelling-error %description -l en_US lvm -> lvi, lam, Lvovvdsm-hook-localdisk.noarch: W: only-non-binary-in-usr-libvdsm-hook-localdisk.noarch: W: no-documentationvdsm-hook-localdisk.noarch: E: non-readable /etc/sudoers.d/50_vdsm_hook_localdisk 440 vdsm-hook-localdisk.noarch: W: non-conffile-in-etc /etc/sudoers.d/50_vdsm_hook_localdisk vdsm-hook-macbind.noarch: W: spelling-error Summary(en_US) vNIC -> Venicevdsm-hook-macbind.noarch: W: spelling-error %description -l en_US vNIC -> Venicevdsm-hook-macbind.noarch: W: no-documentationvdsm-hook-macbind.noarch: E: wrong-script-interpreter /usr/libexec/vdsm/hooks/before_vm_start/50_macbind /usr/bin/env python2 vdsm-hook-macspoof.noarch: W: spelling-error %description -l en_US vnics -> conicsvdsm-hook-macspoof.noarch: W: no-documentationvdsm-hook-nestedvt.noarch: W: spelling-error %description -l en_US virtualization -> visualization, actualization, vitalizationvdsm-hook-nestedvt.noarch: W: spelling-error %description -l en_US kvm -> kmvdsm-hook-nestedvt.noarch: W: no-documentationvdsm-hook-nestedvt.noarch: W: non-conffile-in-etc /etc/modprobe.d/vdsm-nestedvt.conf vdsm-hook-noipspoof.noarch: W: no-documentationvdsm-hook-numa.noarch: W: spelling-error %description -l en_US xml -> XML, ml, x mlvdsm-hook-numa.noarch: W: no-documentationvdsm-hook-openstacknet.noarch: W: spelling-error Summary(en_US) vNICs -> conicsvdsm-hook-openstacknet.noarch: W: spelling-error %description -l en_US vNICs -> conicsvdsm-hook-openstacknet.noarch: W: no-documentationvdsm-hook-openstacknet.noarch: E: non-readable /etc/sudoers.d/50_vdsm_hook_openstacknet 440 vdsm-hook-openstacknet.noarch: W: non-conffile-in-etc /etc/sudoers.d/50_vdsm_hook_openstacknet vdsm-hook-openstacknet.noarch: E: wrong-script-interpreter /usr/libexec/vdsm/hooks/before_device_migrate_ destination/50_openstacknet /usr/bin/env python2 vdsm-hook-pincpu.noarch: W: no-documentationvdsm-hook-promisc.noarch: W: no-documentationvdsm-hook-promisc.noarch: E: non-readable /etc/sudoers.d/50_vdsm_hook_promisc 440 vdsm-hook-promisc.noarch: W: non-conffile-in-etc /etc/sudoers.d/50_vdsm_hook_promisc vdsm-hook-qemucmdline.noarch: W: spelling-error Summary(en_US) cmdline -> declinevdsm-hook-qemucmdline.noarch: W: spelling-error %description -l en_US cmdline -> declinevdsm-hook-qemucmdline.noarch: W: spelling-error %description -l en_US libvirt's -> liberty'svdsm-hook-qemucmdline.noarch: W: spelling-error %description -l en_US qemu -> emu, q emuvdsm-hook-qemucmdline.noarch: W: spelling-error %description -l en_US commandline -> command line, command-line, commandmentvdsm-hook-qemucmdline.noarch: W: spelling-error %description -l en_US xml -> XML, ml, x mlvdsm-hook-qemucmdline.noarch: W: spelling-error %description -l en_US namespace -> name space, name-space, names pacevdsm-hook-qemucmdline.noarch: W: no-documentationvdsm-hook-qos.noarch: W: no-documentationvdsm-hook-scratchpad.noarch: W: no-documentationvdsm-hook-smbios.noarch: W: spelling-error Summary(en_US) libvirt -> liberty, ovirtvdsm-hook-smbios.noarch: W: spelling-error %description -l en_US libvirt -> liberty, ovirtvdsm-hook-smbios.noarch: W: no-documentationvdsm-hook-spiceoptions.noarch: W: spelling-error Summary(en_US) vm -> cm, v, mvdsm-hook-spiceoptions.noarch: W: no-documentationvdsm-hook-vfio-mdev.noarch: W: summary-ended-with-dot C Hook to enable mdev-capable devices.vdsm-hook-vfio-mdev.noarch: W: no-documentationvdsm-hook-vhostmd.noarch: W: no-documentationvdsm-hook-vhostmd.noarch: E: non-readable /etc/sudoers.d/50_vdsm_hook_vhostmd 440 vdsm-hook-vhostmd.noarch: W: non-conffile-in-etc /etc/sudoers.d/50_vdsm_hook_vhostmd vdsm-hook-vmdisk.noarch: W: no-documentationvdsm-hook-vmfex.noarch: W: summary-not-capitalized C vmfex support for VDSMvdsm-hook-vmfex.noarch: W: no-documentationvdsm-hook-vmfex-dev.noarch: W: spelling-error Summary(en_US) vNIC -> Venicevdsm-hook-vmfex-dev.noarch: W: spelling-error %description -l en_US vNIC -> Venicevdsm-hook-vmfex-dev.noarch: W: spelling-error %description -l en_US macvtap -> madcapvdsm-hook-vmfex-dev.noarch: W: no-documentationvdsm-jsonrpc.noarch: W: spelling-error %description -l en_US libvdsm -> liberalismvdsm-jsonrpc.noarch: W: obsolete-not-provided vdsm-apivdsm-jsonrpc.noarch: W: no-documentationvdsm-python.noarch: E: non-executable-script /usr/lib/python2.7/site-packages/vdsm/tool/dummybr.py 644 /usr/bin/python2 vdsm-python.noarch: E: non-executable-script /usr/lib/python2.7/site-packages/vdsm/tool/nwfilter.py 644 /usr/bin/python2 vdsm-python.noarch: W: dangerous-command-in-%post rmvdsm-tests.noarch: E: non-executable-script /usr/share/vdsm/tests/alignmentScanTests.py 644 /usr/bin/python2 This looks easy, this is not a scriptvdsm-tests.noarch: E: wrong-script-interpreter /usr/share/vdsm/tests/fake-ssh-add /usr/bin/env python vdsm-tests.noarch: E: non-executable-script /usr/share/vdsm/tests/fake-ssh-add 644 /usr/bin/env python vdsm-tests.noarch: E: wrong-script-interpreter /usr/share/vdsm/tests/fake-ssh-agent /usr/bin/env python vdsm-tests.noarch: E: non-executable-script /usr/share/vdsm/tests/fake-ssh-agent 644 /usr/bin/env python vdsm-tests.noarch: E: wrong-script-interpreter /usr/share/vdsm/tests/fake-virt-v2v /usr/bin/env python vdsm-tests.noarch: E: non-executable-script /usr/share/vdsm/tests/fake-virt-v2v 644 /usr/bin/env python vdsm-tests.noarch: E: script-without-shebang /usr/share/vdsm/tests/testValidation.py This is also not a script, maybe wrong permissions?vdsm-tests.noarch: E: zero-length /usr/share/vdsm/tests/toolTests_empty.conf This is bogus error, but we can probably replace this with generated temporary file.vdsm-xmlrpc.noarch: W: spelling-error %description -l en_US vdsmdvdsm-xmlrpc.noarch: W: spelling-error %description -l en_US vdsClient -> clientelevdsm-xmlrpc.noarch: W: no-documentationvdsm-yajsonrpc.noarch: W: no-documentation48 packages and 1 specfiles checked; 49 errors, 120 warnings.Sandro, can you help with adding a test to vdsm build, failing if the spec haserrors?This would also would be useful to other projects like ovirt-imageio.Nir_______________________________________________
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel
_______________________________________________
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel