Skip to content

python-site cp warning/errors #7544

@yadvr

Description

@yadvr

Upgrading ACS version (4.18.0.0) to another (4.18.0.0) version throws warning, though the package upgrades OK. It's possible we need to check how to properly manage the new /usr/share/cloudstack-common/python-site path where py3 dependencies are installed (mainly for cloudstack-setup-databases, cloudstack-setup-management and cloudstack-setup-agent)

The following was seen:

Running transaction
  Preparing        :                                                                                                            1/1
  Installing       : jitterentropy-3.4.1-2.el9.x86_64                                                                           1/8
  Installing       : rng-tools-6.15-3.el9.x86_64                                                                                2/8
  Running scriptlet: rng-tools-6.15-3.el9.x86_64                                                                                2/8
Created symlink /etc/systemd/system/multi-user.target.wants/rngd.service → /usr/lib/systemd/system/rngd.service.

  Upgrading        : cloudstack-common-4.18.0.0-shapeblue0.x86_64                                                               3/8
  Running scriptlet: cloudstack-management-4.18.0.0-shapeblue0.x86_64                                                           4/8
  Upgrading        : cloudstack-management-4.18.0.0-shapeblue0.x86_64                                                           4/8
warning: /etc/cloudstack/management/db.properties created as /etc/cloudstack/management/db.properties.rpmnew

  Running scriptlet: cloudstack-management-4.18.0.0-shapeblue0.x86_64                                                           4/8
Processing /usr/share/cloudstack-management/setup/wheel/six-1.15.0-py2.py3-none-any.whl
Processing /usr/share/cloudstack-management/setup/wheel/setuptools-47.3.1-py3-none-any.whl
Processing /usr/share/cloudstack-management/setup/wheel/protobuf-3.19.6-py2.py3-none-any.whl
Processing /usr/share/cloudstack-management/setup/wheel/mysql_connector_python-8.0.31-py2.py3-none-any.whl
six is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.
protobuf is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.
mysql-connector-python is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.
setuptools is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

  Running scriptlet: cloudstack-usage-4.18.0.0-shapeblue0.x86_64                                                                5/8
  Upgrading        : cloudstack-usage-4.18.0.0-shapeblue0.x86_64                                                                5/8
  Running scriptlet: cloudstack-usage-4.18.0.0-shapeblue0.x86_64                                                                5/8
Replacing usage server's db.properties with a link to the management server's db.properties
Replacing usage server's key with a link to the management server's key

  Running scriptlet: cloudstack-management-4.17.2.0-1.x86_64                                                                    6/8
Removed "/etc/systemd/system/multi-user.target.wants/cloudstack-management.service".

  Cleanup          : cloudstack-management-4.17.2.0-1.x86_64                                                                    6/8
  Cleanup          : cloudstack-common-4.17.2.0-1.x86_64                                                                        7/8
  Running scriptlet: cloudstack-usage-4.17.2.0-1.x86_64                                                                         8/8
Redirecting to /bin/systemctl stop cloudstack-usage.service

  Cleanup          : cloudstack-usage-4.17.2.0-1.x86_64                                                                         8/8
  Running scriptlet: cloudstack-common-4.18.0.0-shapeblue0.x86_64                                                               8/8
cp: '/usr/share/cloudstack-common/python-site/audit.py' and '/usr/lib64/python3.9/site-packages/audit.py' are the same file
cp: '/usr/share/cloudstack-common/python-site/_audit.so' and '/usr/lib64/python3.9/site-packages/_audit.so' are the same file
cp: '/usr/share/cloudstack-common/python-site/auparse.so' and '/usr/lib64/python3.9/site-packages/auparse.so' are the same file
cp: '/usr/share/cloudstack-common/python-site/capng.py' and '/usr/lib64/python3.9/site-packages/capng.py' are the same file
cp: '/usr/share/cloudstack-common/python-site/_capng.so' and '/usr/lib64/python3.9/site-packages/_capng.so' are the same file
cp: '/usr/share/cloudstack-common/python-site/cffi' and '/usr/lib64/python3.9/site-packages/cffi' are the same file
cp: '/usr/share/cloudstack-common/python-site/cffi-1.14.5-py3.9.egg-info' and '/usr/lib64/python3.9/site-packages/cffi-1.14.5-py3.9.egg-info' are the same file
cp: '/usr/share/cloudstack-common/python-site/_cffi_backend.cpython-39-x86_64-linux-gnu.so' and '/usr/lib64/python3.9/site-packages/_cffi_backend.cpython-39-x86_64-linux-gnu.so' are the same file
cp: '/usr/share/cloudstack-common/python-site/cloudutils' and '/usr/lib64/python3.9/site-packages/cloudutils' are the same file
cp: '/usr/share/cloudstack-common/python-site/cloud_utils.py' and '/usr/lib64/python3.9/site-packages/cloud_utils.py' are the same file
cp: '/usr/share/cloudstack-common/python-site/cloud_what' and '/usr/lib64/python3.9/site-packages/cloud_what' are the same file
cp: '/usr/share/cloudstack-common/python-site/cryptography' and '/usr/lib64/python3.9/site-packages/cryptography' are the same file
cp: '/usr/share/cloudstack-common/python-site/cryptography-36.0.1-py3.9.egg-info' and '/usr/lib64/python3.9/site-packages/cryptography-36.0.1-py3.9.egg-info' are the same file
cp: '/usr/share/cloudstack-common/python-site/dbus' and '/usr/lib64/python3.9/site-packages/dbus' are the same file
cp: '/usr/share/cloudstack-common/python-site/_dbus_bindings.so' and '/usr/lib64/python3.9/site-packages/_dbus_bindings.so' are the same file
cp: '/usr/share/cloudstack-common/python-site/_dbus_glib_bindings.so' and '/usr/lib64/python3.9/site-packages/_dbus_glib_bindings.so' are the same file
cp: '/usr/share/cloudstack-common/python-site/dbus_python-1.2.18-py3.9.egg-info' and '/usr/lib64/python3.9/site-packages/dbus_python-1.2.18-py3.9.egg-info' are the same file
cp: '/usr/share/cloudstack-common/python-site/drv_libxml2.py' and '/usr/lib64/python3.9/site-packages/drv_libxml2.py' are the same file
cp: '/usr/share/cloudstack-common/python-site/ethtool-0.15-py3.9.egg-info' and '/usr/lib64/python3.9/site-packages/ethtool-0.15-py3.9.egg-info' are the same file
cp: '/usr/share/cloudstack-common/python-site/ethtool.cpython-39-x86_64-linux-gnu.so' and '/usr/lib64/python3.9/site-packages/ethtool.cpython-39-x86_64-linux-gnu.so' are the same file
cp: '/usr/share/cloudstack-common/python-site/gi' and '/usr/lib64/python3.9/site-packages/gi' are the same file
cp: '/usr/share/cloudstack-common/python-site/gpg' and '/usr/lib64/python3.9/site-packages/gpg' are the same file
cp: '/usr/share/cloudstack-common/python-site/gpg-1.15.1-py3.9.egg-info' and '/usr/lib64/python3.9/site-packages/gpg-1.15.1-py3.9.egg-info' are the same file
cp: '/usr/share/cloudstack-common/python-site/hawkey' and '/usr/lib64/python3.9/site-packages/hawkey' are the same file
cp: '/usr/share/cloudstack-common/python-site/ldb.cpython-39-x86_64-linux-gnu.so' and '/usr/lib64/python3.9/site-packages/ldb.cpython-39-x86_64-linux-gnu.so' are the same file
cp: '/usr/share/cloudstack-common/python-site/_ldb_text.py' and '/usr/lib64/python3.9/site-packages/_ldb_text.py' are the same file
cp: '/usr/share/cloudstack-common/python-site/libcomps' and '/usr/lib64/python3.9/site-packages/libcomps' are the same file
cp: '/usr/share/cloudstack-common/python-site/libcomps-0.1.18-py3.9.egg-info' and '/usr/lib64/python3.9/site-packages/libcomps-0.1.18-py3.9.egg-info' are the same file
cp: '/usr/share/cloudstack-common/python-site/libdnf' and '/usr/lib64/python3.9/site-packages/libdnf' are the same file
cp: '/usr/share/cloudstack-common/python-site/librepo' and '/usr/lib64/python3.9/site-packages/librepo' are the same file
cp: '/usr/share/cloudstack-common/python-site/libvirtaio.py' and '/usr/lib64/python3.9/site-packages/libvirtaio.py' are the same file
cp: '/usr/share/cloudstack-common/python-site/libvirt_lxc.py' and '/usr/lib64/python3.9/site-packages/libvirt_lxc.py' are the same file
cp: '/usr/share/cloudstack-common/python-site/libvirtmod.cpython-39-x86_64-linux-gnu.so' and '/usr/lib64/python3.9/site-packages/libvirtmod.cpython-39-x86_64-linux-gnu.so' are the same file
cp: '/usr/share/cloudstack-common/python-site/libvirtmod_lxc.cpython-39-x86_64-linux-gnu.so' and '/usr/lib64/python3.9/site-packages/libvirtmod_lxc.cpython-39-x86_64-linux-gnu.so' are the same file
cp: '/usr/share/cloudstack-common/python-site/libvirtmod_qemu.cpython-39-x86_64-linux-gnu.so' and '/usr/lib64/python3.9/site-packages/libvirtmod_qemu.cpython-39-x86_64-linux-gnu.so' are the same file
cp: '/usr/share/cloudstack-common/python-site/libvirt.py' and '/usr/lib64/python3.9/site-packages/libvirt.py' are the same file
cp: '/usr/share/cloudstack-common/python-site/libvirt_python-9.0.0-py3.9.egg-info' and '/usr/lib64/python3.9/site-packages/libvirt_python-9.0.0-py3.9.egg-info' are the same file
cp: '/usr/share/cloudstack-common/python-site/libvirt_qemu.py' and '/usr/lib64/python3.9/site-packages/libvirt_qemu.py' are the same file
cp: '/usr/share/cloudstack-common/python-site/libxml2mod.so' and '/usr/lib64/python3.9/site-packages/libxml2mod.so' are the same file
cp: '/usr/share/cloudstack-common/python-site/libxml2.py' and '/usr/lib64/python3.9/site-packages/libxml2.py' are the same file
cp: '/usr/share/cloudstack-common/python-site/lsm' and '/usr/lib64/python3.9/site-packages/lsm' are the same file
cp: '/usr/share/cloudstack-common/python-site/lxml' and '/usr/lib64/python3.9/site-packages/lxml' are the same file
cp: '/usr/share/cloudstack-common/python-site/lxml-4.6.5-py3.9.egg-info' and '/usr/lib64/python3.9/site-packages/lxml-4.6.5-py3.9.egg-info' are the same file
cp: '/usr/share/cloudstack-common/python-site/perf-0.1-py3.9.egg-info' and '/usr/lib64/python3.9/site-packages/perf-0.1-py3.9.egg-info' are the same file
cp: '/usr/share/cloudstack-common/python-site/perf.cpython-39-x86_64-linux-gnu.so' and '/usr/lib64/python3.9/site-packages/perf.cpython-39-x86_64-linux-gnu.so' are the same file
cp: '/usr/share/cloudstack-common/python-site/psutil' and '/usr/lib64/python3.9/site-packages/psutil' are the same file
cp: '/usr/share/cloudstack-common/python-site/psutil-5.8.0-py3.9.egg-info' and '/usr/lib64/python3.9/site-packages/psutil-5.8.0-py3.9.egg-info' are the same file
cp: '/usr/share/cloudstack-common/python-site/__pycache__' and '/usr/lib64/python3.9/site-packages/__pycache__' are the same file
cp: '/usr/share/cloudstack-common/python-site/PyGObject-3.40.1.egg-info' and '/usr/lib64/python3.9/site-packages/PyGObject-3.40.1.egg-info' are the same file
cp: '/usr/share/cloudstack-common/python-site/PyYAML-5.4.1-py3.9.egg-info' and '/usr/lib64/python3.9/site-packages/PyYAML-5.4.1-py3.9.egg-info' are the same file
cp: '/usr/share/cloudstack-common/python-site/rct' and '/usr/lib64/python3.9/site-packages/rct' are the same file
cp: '/usr/share/cloudstack-common/python-site/README.txt' and '/usr/lib64/python3.9/site-packages/README.txt' are the same file
cp: '/usr/share/cloudstack-common/python-site/rhsm' and '/usr/lib64/python3.9/site-packages/rhsm' are the same file
cp: '/usr/share/cloudstack-common/python-site/rhsm_debug' and '/usr/lib64/python3.9/site-packages/rhsm_debug' are the same file
cp: '/usr/share/cloudstack-common/python-site/rhsmlib' and '/usr/lib64/python3.9/site-packages/rhsmlib' are the same file
cp: '/usr/share/cloudstack-common/python-site/rpm' and '/usr/lib64/python3.9/site-packages/rpm' are the same file
cp: '/usr/share/cloudstack-common/python-site/rpm-4.16.1.3-py3.9.egg-info' and '/usr/lib64/python3.9/site-packages/rpm-4.16.1.3-py3.9.egg-info' are the same file
cp: '/usr/share/cloudstack-common/python-site/samba' and '/usr/lib64/python3.9/site-packages/samba' are the same file
cp: '/usr/share/cloudstack-common/python-site/selinux' and '/usr/lib64/python3.9/site-packages/selinux' are the same file
cp: '/usr/share/cloudstack-common/python-site/selinux-3.5-py3.9.egg-info' and '/usr/lib64/python3.9/site-packages/selinux-3.5-py3.9.egg-info' are the same file
cp: '/usr/share/cloudstack-common/python-site/_semanage.cpython-39-x86_64-linux-gnu.so' and '/usr/lib64/python3.9/site-packages/_semanage.cpython-39-x86_64-linux-gnu.so' are the same file
cp: '/usr/share/cloudstack-common/python-site/semanage.py' and '/usr/lib64/python3.9/site-packages/semanage.py' are the same file
cp: '/usr/share/cloudstack-common/python-site/setools' and '/usr/lib64/python3.9/site-packages/setools' are the same file
cp: '/usr/share/cloudstack-common/python-site/setools-4.4.1-py3.9.egg-info' and '/usr/lib64/python3.9/site-packages/setools-4.4.1-py3.9.egg-info' are the same file
cp: '/usr/share/cloudstack-common/python-site/sim_plugin' and '/usr/lib64/python3.9/site-packages/sim_plugin' are the same file
cp: '/usr/share/cloudstack-common/python-site/subscription_manager' and '/usr/lib64/python3.9/site-packages/subscription_manager' are the same file
cp: '/usr/share/cloudstack-common/python-site/subscription_manager-1.29.33.1-py3.9.egg-info' and '/usr/lib64/python3.9/site-packages/subscription_manager-1.29.33.1-py3.9.egg-info' are the same file
cp: '/usr/share/cloudstack-common/python-site/syspurpose' and '/usr/lib64/python3.9/site-packages/syspurpose' are the same file
cp: '/usr/share/cloudstack-common/python-site/systemd' and '/usr/lib64/python3.9/site-packages/systemd' are the same file
cp: '/usr/share/cloudstack-common/python-site/systemd_python-234-py3.9.egg-info' and '/usr/lib64/python3.9/site-packages/systemd_python-234-py3.9.egg-info' are the same file
cp: '/usr/share/cloudstack-common/python-site/talloc.cpython-39-x86_64-linux-gnu.so' and '/usr/lib64/python3.9/site-packages/talloc.cpython-39-x86_64-linux-gnu.so' are the same file
cp: '/usr/share/cloudstack-common/python-site/tdb.cpython-39-x86_64-linux-gnu.so' and '/usr/lib64/python3.9/site-packages/tdb.cpython-39-x86_64-linux-gnu.so' are the same file
cp: '/usr/share/cloudstack-common/python-site/_tdb_text.py' and '/usr/lib64/python3.9/site-packages/_tdb_text.py' are the same file
cp: '/usr/share/cloudstack-common/python-site/_tevent.cpython-39-x86_64-linux-gnu.so' and '/usr/lib64/python3.9/site-packages/_tevent.cpython-39-x86_64-linux-gnu.so' are the same file
cp: '/usr/share/cloudstack-common/python-site/tevent.py' and '/usr/lib64/python3.9/site-packages/tevent.py' are the same file
cp: '/usr/share/cloudstack-common/python-site/_yaml' and '/usr/lib64/python3.9/site-packages/_yaml' are the same file
cp: '/usr/share/cloudstack-common/python-site/yaml' and '/usr/lib64/python3.9/site-packages/yaml' are the same file
warning: %posttrans(cloudstack-common-4.18.0.0-shapeblue0.x86_64) scriptlet failed, exit status 1

Error in POSTTRANS scriptlet in rpm package cloudstack-common
  Running scriptlet: cloudstack-management-4.18.0.0-shapeblue0.x86_64
ISSUE TYPE
  • Bug Report
COMPONENT NAME
EL8/EL9 rpm packages
CLOUDSTACK VERSION
4.18+

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions