CCVs show wrong rpm-version

Problem:
There are 2 Servers which have the same CCV-ELK assigned same Lifecycle-environement just everything of the following params is identically:
image

One of them gets a kibana-8.7.1 version provisioned. According to the CV-APP-ELK its not even published in the library and still it appears. Its only available in the repo which has nowhere been published.

Host A:

root@HOSTA  ~ # dnf info kibana
Updating Subscription Management repositories.
Elastic 8                                                                                                                                                                          79 kB/s | 1.3 kB     00:00
Puppet7 - RHEL8                                                                                                                                                                    80 kB/s | 1.3 kB     00:00
LDAP                                                                                                                                                                              134 kB/s | 2.0 kB     00:00
Antivir                                                                                                                                                                           100 kB/s | 1.5 kB     00:00
RKHunter - RHEL8                                                                                                                                                                  160 kB/s | 2.3 kB     00:00
Other                                                                                                                                                                             129 kB/s | 2.0 kB     00:00
EPEL - RHEL8                                                                                                                                                                      145 kB/s | 2.3 kB     00:00
Icinga2 - RHEL8                                                                                                                                                                    96 kB/s | 1.5 kB     00:00
ModSecurity                                                                                                                                                                        90 kB/s | 1.5 kB     00:00
SOLR                                                                                                                                                                              102 kB/s | 1.5 kB     00:00
Netbackup                                                                                                                                                                         137 kB/s | 2.0 kB     00:00
Nginx                                                                                                                                                                             101 kB/s | 1.5 kB     00:00
Messenger                                                                                                                                                                         132 kB/s | 1.9 kB     00:00
Tomcat                                                                                                                                                                            103 kB/s | 1.5 kB     00:00
HAProxy                                                                                                                                                                           107 kB/s | 1.5 kB     00:00
Module yaml error: Encountered two streams with matching NSVCA ant:1.10:820181213135032:5ea3b708:x86_64 but differing content
Module yaml error: Encountered two streams with matching NSVCA scala:2.10:820181213143541:2b79a98f:x86_64 but differing content
Module yaml error: Encountered two streams with matching NSVCA subversion:1.10:820181215112250:a51370e3:x86_64 but differing content
Module yaml error: Encountered two streams with matching NSVCA ant:1.10:820181213135032:5ea3b708:x86_64 but differing content
Module yaml error: Encountered two streams with matching NSVCA scala:2.10:820181213143541:2b79a98f:x86_64 but differing content
Module yaml error: Encountered two streams with matching NSVCA subversion:1.10:820181215112250:a51370e3:x86_64 but differing content
Available Packages
Name         : kibana
Version      : 8.7.1
Release      : 1
Architecture : aarch64
Size         : 245 M
Source       : kibana-8.7.1-1.src.rpm
Repository   : Elastic_Elastic_8
Summary      : Explore and visualize your Elasticsearch data
URL          : https://www.elastic.co
License      : Elastic License
Description  : Explore and visualize your Elasticsearch data

Name         : kibana
Version      : 8.7.1
Release      : 1
Architecture : x86_64
Size         : 230 M
Source       : kibana-8.7.1-1.src.rpm
Repository   : Elastic_Elastic_8
Summary      : Explore and visualize your Elasticsearch data
URL          : https://www.elastic.co
License      : Elastic License
Description  : Explore and visualize your Elasticsearch data

HOSTB:

root@su0031p01 ~ # dnf info kibana
Updating Subscription Management repositories.
Antivir                                                                                                                                                                            82 kB/s | 1.5 kB     00:00
EPEL - RHEL8                                                                                                                                                                      141 kB/s | 2.3 kB     00:00
LDAP                                                                                                                                                                              114 kB/s | 2.0 kB     00:00
Elastic 8                                                                                                                                                                          80 kB/s | 1.3 kB     00:00
Tomcat                                                                                                                                                                             90 kB/s | 1.5 kB     00:00
Messenger                                                                                                                                                                         120 kB/s | 1.9 kB     00:00
Other                                                                                                                                                                             113 kB/s | 2.0 kB     00:00
Elastic 7                                                                                                                                                                         113 kB/s | 2.0 kB     00:00
Nginx                                                                                                                                                                              86 kB/s | 1.5 kB     00:00
SOLR                                                                                                                                                                               93 kB/s | 1.5 kB     00:00
HAProxy                                                                                                                                                                            94 kB/s | 1.5 kB     00:00
Puppet7 - RHEL8                                                                                                                                                                    78 kB/s | 1.3 kB     00:00
RKHunter - RHEL8                                                                                                                                                                  127 kB/s | 2.3 kB     00:00
Icinga2 - RHEL8                                                                                                                                                                    77 kB/s | 1.5 kB     00:00
ModSecurity                                                                                                                                                                        75 kB/s | 1.5 kB     00:00
Netbackup                                                                                                                                                                         102 kB/s | 2.0 kB     00:00
Remi-modular - RHEL8                                                                                                                                                               93 kB/s | 1.8 kB     00:00
Module yaml error: Encountered two streams with matching NSVCA ant:1.10:820181213135032:5ea3b708:x86_64 but differing content
Module yaml error: Encountered two streams with matching NSVCA scala:2.10:820181213143541:2b79a98f:x86_64 but differing content
Module yaml error: Encountered two streams with matching NSVCA subversion:1.10:820181215112250:a51370e3:x86_64 but differing content
Module yaml error: Encountered two streams with matching NSVCA ant:1.10:820181213135032:5ea3b708:x86_64 but differing content
Module yaml error: Encountered two streams with matching NSVCA scala:2.10:820181213143541:2b79a98f:x86_64 but differing content
Module yaml error: Encountered two streams with matching NSVCA subversion:1.10:820181215112250:a51370e3:x86_64 but differing content
Available Packages
Name         : kibana
Version      : 8.6.1
Release      : 1
Architecture : aarch64
Size         : 234 M
Source       : kibana-8.6.1-1.src.rpm
Repository   : Elastic_Elastic_8
Summary      : Explore and visualize your Elasticsearch data
URL          : https://www.elastic.co
License      : Elastic License
Description  : Explore and visualize your Elasticsearch data

Name         : kibana
Version      : 8.6.1
Release      : 1
Architecture : x86_64
Size         : 220 M
Source       : kibana-8.6.1-1.src.rpm
Repository   : Elastic_Elastic_8
Summary      : Explore and visualize your Elasticsearch data
URL          : https://www.elastic.co
License      : Elastic License
Description  : Explore and visualize your Elasticsearch data

Furthermore, the CCV-ELK has been published and promoted with a CV-APP-ELK-Version where the “Elastic 7” Repo is not added to the CCV-ELK. How can HOSTB see the Elastic7 Repo?

root@HOSTB ~ # yum repolist all
Updating Subscription Management repositories.
repo id                                                                                    repo name                                                                                                      status
EPEL_EPEL_-_RHEL8                                                                     EPEL - RHEL8                                                                                                   enabled
Elastic_Elastic_7                                                                     Elastic 7                                                                                                      enabled
Elastic_Elastic_8                                                                     Elastic 8                                                                                                      enabled
root@HOSTA ~ # yum repolist all
Updating Subscription Management repositories.
repo id                                                                                    repo name                                                                                                      status
EPEL_EPEL_-_RHEL8                                                                     EPEL - RHEL8                                                                                                   enabled
Elastic_Elastic_8                                                                     Elastic 8                                                                                                      enabled

And finally the following error. No idea how to get rid of this or what exatly the problem is. Does somebody know how to check the origin of this second stream which raises this exception and is according to the msg the reason? I thought its rhel-repo related but until now I didnt find any infos related to this and couldnt fix the problem.

Module yaml error: Encountered two streams with matching NSVCA ant:1.10:820181213135032:5ea3b708:x86_64 but differing content
Module yaml error: Encountered two streams with matching NSVCA scala:2.10:820181213143541:2b79a98f:x86_64 but differing content
Module yaml error: Encountered two streams with matching NSVCA subversion:1.10:820181215112250:a51370e3:x86_64 but differing content
Module yaml error: Encountered two streams with matching NSVCA ant:1.10:820181213135032:5ea3b708:x86_64 but differing content
Module yaml error: Encountered two streams with matching NSVCA scala:2.10:820181213143541:2b79a98f:x86_64 but differing content
Module yaml error: Encountered two streams with matching NSVCA subversion:1.10:820181215112250:a51370e3:x86_64 but differing content

Would be very happy if someone can shed some light on this topic.

Expected outcome:
see only rpm-Version which have been published and promoted to the corresponding LCE

Foreman and Proxy versions:
foreman 3.6.1
katello 4.8.2
Foreman and Proxy plugin versions:

Distribution and version:
both rhel8
Other relevant data:

Here some additions

Both Servers retrieve from CCV-ELK and as mentioned are in the same LCE. The CCV-ELK is set up with the CV-APP-ELK-Version 38.0. The CV-APP-ELK-Version has according to Foreman the kibana 8.7.1-1 Version.
HOST A:

HOST B:

Has anyone a guess or did anyone expierenced same?

What I have found out is that when registering a host with a certain activation key which has a CCV-A configured and afterwards the hosts CCV is changed for instance to CCV-B the host still tries to fetch the repos from CCV-A. This was reproducable on 2 futher hosts.

What I did on foreman:

  • changed a hosts CCV from CCV-A to CCV-B in the Web-UI

What I did on the host:

  • dnf clean all
  • rm -rf /var/cache/dnf
  • rm /etc/yum.repos.d/redhat.repo
  • subscription-manager refresh

I would expect that the new generated /etc/yum.repos.d/redhat.repo base-url references to the correct URLs but its referencing still to the old CCV-A.
baseurl = https://foreman.example.com/pulp/content/ORG/Test/**CCV-A**/custom/Elastic/Elastic_8

A reregistration with a new generated activation-key with the natively correct CCV-B solved this problem. But I doubt that this is how it should work.