To upgrade pulpcore and pulp_rpm with good compatibity

Hello everyone,

Problem:
I use ansible pulp_installer to set up pulpcore and pulp_rpm.
They are installed under the virtual env: /usr/local/lib/pulp/
The current installed versions are:

pulpcore 3.22.15
pulp_rpm 3.19.9
Operating system:
   NAME="Rocky Linux"
   VERSION="9.2 (Blue Onyx)"

I see the current available versions are:

pulpcore 3.39.0
pulp_rpm 3.23.0

I would like to upgrade the two component for test.
one question: how can I check the compatibility? I see pulp_rpm 3.21.0: Declares (and requires at least) pulpcore/3.25 compatibility, but not find the similare under pulp_rpm 3.23.0 change log, so I can assume the same ?
Second question: I use source /usr/local/lib/pulp/bin/active ; pip install upgrade pulpcore-pulp_rpm, is there any remaining steps to do? or that is all needed?

Thanks in advance!

Pulpcore version:
“component”: “core”,
“version”: “3.22.15”,
“package”: “pulpcore”
},

Pulp plugins installed and their versions:
“component”: “rpm”,
“version”: “3.19.9”,
“package”: “pulp-rpm”
Operating system - distribution and version:
Rocky9

Other relevant data:

When I try (pulp) [root@xxxx ~]# pip install --upgrade pulp_rpm , I got ERROR: Could not build wheels for createrepo-c, which is required to install pyproject.toml-based projects

Here are some details:

(pulp) [root@xxx~]# pip install --upgrade pulp_rpm
Requirement already satisfied: pulp_rpm in /usr/local/lib/pulp/lib/python3.9/site-packages (3.19.9)
Collecting pulp_rpm
  Downloading pulp_rpm-3.23.0-py3-none-any.whl.metadata (1.5 kB)
Collecting createrepo-c~=1.0.1 (from pulp_rpm)
  Downloading createrepo_c-1.0.1.tar.gz (853 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 853.8/853.8 kB 4.7 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: django-readonly-field~=1.1.1 in /usr/local/lib/pulp/lib/python3.9/site-packages 
Building wheels for collected packages: createrepo-c
  Building wheel for createrepo-c (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for createrepo-c (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [202 lines of output]
      
...
      [ 60%] Built target mergerepo_c
      [ 61%] Building C object src/CMakeFiles/createrepo_c.dir/createrepo_c.c.o
      /tmp/pip-install-vtsh307o/createrepo-c_2bb453e2cdc44483ad6b61f9585b232f/src/createrepo_c.c: In function ‘allowed_file’:
      /tmp/pip-install-vtsh307o/createrepo-c_2bb453e2cdc44483ad6b61f9585b232f/src/createrepo_c.c:67:23: warning: implicit declaration of function ‘g_pattern_spec_match’; did you mean ‘g_pattern_match’? [-Wimplicit-function-declaration]
         67 | #define PATTERN_MATCH g_pattern_spec_match
            |                       ^~~~~~~~~~~~~~~~~~~~
      /tmp/pip-install-vtsh307o/createrepo-c_2bb453e2cdc44483ad6b61f9585b232f/src/createrepo_c.c:87:17: note: in expansion of macro ‘PATTERN_MATCH’
         87 |             if (PATTERN_MATCH((GPatternSpec *) element->data,
            |                 ^~~~~~~~~~~~~
      [ 63%] Building C object src/CMakeFiles/createrepo_c.dir/cmd_parser.c.o
      [ 64%] Linking C executable createrepo_c
      /usr/bin/ld: CMakeFiles/createrepo_c.dir/createrepo_c.c.o: in function `main':
      createrepo_c.c:(.text.startup+0x64d): undefined reference to `g_pattern_spec_match'
      /usr/bin/ld: createrepo_c.c:(.text.startup+0x9e7): undefined reference to `g_pattern_spec_match'
      /usr/bin/ld: createrepo_c.c:(.text.startup+0xb4a): undefined reference to `g_pattern_spec_match'
      collect2: error: ld returned 1 exit status
      gmake[2]: *** [src/CMakeFiles/createrepo_c.dir/build.make:120: src/createrepo_c] Error 1
      gmake[1]: *** [CMakeFiles/Makefile2:352: src/CMakeFiles/createrepo_c.dir/all] Error 2
      gmake: *** [Makefile:146: all] Error 2
      Traceback (most recent call last):
        File "/tmp/pip-build-env-d4c7u6ah/overlay/lib/python3.9/site-packages/skbuild/setuptools_wrap.py", line 674, in setup
          cmkr.make(make_args, install_target=cmake_install_target, env=env)
        File "/tmp/pip-build-env-d4c7u6ah/overlay/lib/python3.9/site-packages/skbuild/cmaker.py", line 697, in make
          self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
        File "/tmp/pip-build-env-d4c7u6ah/overlay/lib/python3.9/site-packages/skbuild/cmaker.py", line 742, in make_impl
          raise SKBuildError(msg)
      
      An error occurred while building with CMake.
        Command:
          /usr/bin/cmake3 --build . --target install --config Release --
        Install target:
          install
        Source directory:
          /tmp/pip-install-vtsh307o/createrepo-c_2bb453e2cdc44483ad6b61f9585b232f
        Working directory:
          /tmp/pip-install-vtsh307o/createrepo-c_2bb453e2cdc44483ad6b61f9585b232f/_skbuild/linux-x86_64-3.9/cmake-build
      Please check the install target is valid and see CMake's output for more information.
      
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for createrepo-c
Failed to build createrepo-c
ERROR: Could not build wheels for createrepo-c, which is required to install pyproject.toml-based projects

Hello, pulp_installer is not longer supported Pulp_installer 3.22 will be the last release for the installer
Please consider to migrate to container based deployment Migrating from pulp_installer to a multi-process container - Pulp OCI Images

1 Like