Hide Forgot
Description of problem: after enabling few RHEL repos using webui (specifically): Red Hat Enterprise Linux 7 Server RPMs x86_64 7.2 Red Hat Enterprise Linux 7 Server Kickstart x86_64 7.2 and listing the products using hammer CLI tool, many other products with 0 repositories are listed: ``` # hammer -u admin -p changeme product list --organization-id 1 ---|------------------------------------------------------------|-------------|----------------------|--------------|----------- ID | NAME | DESCRIPTION | ORGANIZATION | REPOSITORIES | SYNC STATE ---|------------------------------------------------------------|-------------|----------------------|--------------|----------- 4 | Red Hat Software Collections for RHEL Server | | Default Organization | 0 | 12 | Red Hat Software Collections Beta for RHEL Server | | Default Organization | 0 | 6 | Red Hat Satellite with Embedded Oracle | | Default Organization | 0 | 3 | Red Hat Satellite Capsule Beta | | Default Organization | 0 | 5 | Red Hat Satellite Capsule | | Default Organization | 0 | 7 | Red Hat Satellite Beta | | Default Organization | 0 | 8 | Red Hat Satellite 6 Beta | | Default Organization | 0 | 11 | Red Hat Satellite | | Default Organization | 0 | 10 | Red Hat Enterprise Linux Server | | Default Organization | 2 | 13 | Red Hat Enterprise Linux Load Balancer for RHEL Server | | Default Organization | 0 | 9 | Red Hat Enterprise Linux High Availability for RHEL Server | | Default Organization | 0 | 2 | Red Hat Beta | | Default Organization | 0 | 1 | my_prod_1 | | Default Organization | 1 | ---|------------------------------------------------------------|-------------|----------------------|--------------|----------- ``` UI correctly shows only the chosen ones. on trying to create some repositories inside the mysterious repo, i get an error: ``` hammer -u admin -p changeme repository create --product-id 4 --name foo --content-type yum Could not create the repository: Red Hat products cannot be manipulated. ``` Version-Release number of selected component (if applicable): 6.2 Snap 4.1 How reproducible: Steps to Reproduce: 1. enable some rhel repos in Default Org 2. list the repositories using `hammer product list --organization-id 1` Actual results: some invalid products are listed Expected results: only the relevant enabled products are shown Additional info:
Hi Roman, Are you certain that this is a regression? I see the same behavior on a Satellite 6.1.5 server. When a manifest is imported, Satellite does create products for all RH products identified within the manifest; therefore, that is what you are seeing. In addition, it is prohibited to create repositories within those products; therefore, the second error is also expected. For those products, the repositories are created as a result of enabling them either in UI or CLI/API. The following is an example on from Satellite 6.1.5 where I have a manifest containing many products: hammer> product list --organization-id 1 ----|----------------------------------------------------------------------------------|-------------|----------------------|--------------|------------------ ID | NAME | DESCRIPTION | ORGANIZATION | REPOSITORIES | SYNC STATE ----|----------------------------------------------------------------------------------|-------------|----------------------|--------------|------------------ 98 | Atomic Enterprise Platform Beta | | Default Organization | 0 | 131 | dotNET on RHEL Beta for RHEL Server | | Default Organization | 0 | 132 | dotNET on RHEL for RHEL Server | | Default Organization | 0 | 278 | invalid | | Default Organization | 1 | Syncing Complete. 8 | JBoss Enterprise Application Platform | | Default Organization | 0 | 65 | JBoss Enterprise Application Platform - ELS | | Default Organization | 0 | 91 | JBoss Enterprise Web Platform | | Default Organization | 0 | 72 | JBoss Enterprise Web Server | | Default Organization | 0 | 36 | Kernel Derivative Works for BluegeneQ | | Default Organization | 0 | 96 | Kernel Derivative Works for HPC for Power Systems | | Default Organization | 0 | 108 | MRG Grid | | Default Organization | 0 | 58 | MRG Grid Execute | | Default Organization | 0 | 27 | MRG Management | | Default Organization | 0 | 79 | MRG Realtime | | Default Organization | 0 | 117 | OLD Red Hat Enterprise Linux Server for ARM Development Preview | | Default Organization | 0 | 15 | Oracle Java for Middleware | | Default Organization | 0 | 14 | Oracle Java for RHEL Client | | Default Organization | 0 | 11 | Oracle Java for RHEL Compute Node | | Default Organization | 0 | 84 | Oracle Java for RHEL Compute Node - Extended Update Support | | Default Organization | 0 | 92 | Oracle Java for RHEL Server | | Default Organization | 0 | 95 | Oracle Java for RHEL Server - AUS | | Default Organization | 0 | 39 | Oracle Java for RHEL Server - Extended Update Support | | Default Organization | 0 | 86 | Oracle Java for RHEL Workstation | | Default Organization | 0 | 277 | puppet | | Default Organization | 1 | 24 | Red Hat Beta | | Default Organization | 0 | 49 | Red Hat Ceph Storage | | Default Organization | 0 | 9 | Red Hat Ceph Storage Calamari | | Default Organization | 0 | 88 | Red Hat Ceph Storage MON | | Default Organization | 0 | 90 | Red Hat Ceph Storage OSD | | Default Organization | 0 | 6 | Red Hat Certificate System | | Default Organization | 0 | 7 | Red Hat Certificate System with Advanced Access | | Default Organization | 0 | 12 | Red Hat Certification for RHEL Server | | Default Organization | 0 | 136 | Red Hat Certification for RHEL Server from RHUI | | Default Organization | 0 | 41 | Red Hat Cloud Infrastructure | | Default Organization | 0 | 93 | Red Hat CloudForms | | Default Organization | 0 | 17 | Red Hat Container Development Kit | | Default Organization | 0 | 97 | Red Hat Container Images | | Default Organization | 0 | 102 | Red Hat Container Images Beta | | Default Organization | 0 | 60 | Red Hat Container Images HTB | | Default Organization | 0 | 82 | Red Hat Developer Toolset for RHEL Server | | Default Organization | 0 | 48 | Red Hat Developer Toolset for RHEL Server EUS | | Default Organization | 0 | 25 | Red Hat Developer Toolset for RHEL Workstation | | Default Organization | 0 | 75 | Red Hat Directory Server | | Default Organization | 0 | 2 | red hat docker | | Default Organization | 1 | Syncing Complete. 29 | Red Hat Enterprise Linux 6 Server HTB | | Default Organization | 0 | 33 | Red Hat Enterprise Linux 6 Workstation HTB | | Default Organization | 0 | 26 | Red Hat Enterprise Linux 7 Desktop High Touch Beta | | Default Organization | 0 | 69 | Red Hat Enterprise Linux 7 for HPC Compute Node High Touch Beta | | Default Organization | 0 | 124 | Red Hat Enterprise Linux 7 for IBM POWER High Touch Beta | | Default Organization | 0 | 52 | Red Hat Enterprise Linux 7 for IBM z Systems High Touch Beta | | Default Organization | 0 | 47 | Red Hat Enterprise Linux 7 High Availability High Touch Beta | | Default Organization | 0 | 104 | Red Hat Enterprise Linux 7 Load Balancer High Touch Beta | | Default Organization | 0 | 71 | Red Hat Enterprise Linux 7 Resilient Storage High Touch Beta | | Default Organization | 0 | 61 | Red Hat Enterprise Linux 7 Server High Touch Beta | | Default Organization | 0 | 107 | Red Hat Enterprise Linux 7 Workstation High Touch Beta | | Default Organization | 0 | 40 | Red Hat Enterprise Linux Atomic Host | | Default Organization | 0 | 45 | Red Hat Enterprise Linux Atomic Host Beta | | Default Organization | 0 | 83 | Red Hat Enterprise Linux Atomic Host HTB | | Default Organization | 0 | 118 | Red Hat Enterprise Linux Desktop | | Default Organization | 0 | 5 | Red Hat Enterprise Linux EUS Compute Node | | Default Organization | 0 | 70 | Red Hat Enterprise Linux EUS Compute Node High Performance Networking | | Default Organization | 0 | 109 | Red Hat Enterprise Linux EUS Compute Node Scalable File System | | Default Organization | 0 | 67 | Red Hat Enterprise Linux for IBM z Systems | | Default Organization | 0 | 38 | Red Hat Enterprise Linux for IBM z Systems - Extended Update Support | | Default Organization | 0 | 121 | Red Hat Enterprise Linux for Power big endian | | Default Organization | 0 | 105 | Red Hat Enterprise Linux for Power big endian - Extended Update Support | | Default Organization | 0 | 34 | Red Hat Enterprise Linux for Power little endian | | Default Organization | 0 | 135 | Red Hat Enterprise Linux for Power little endian - Extended Update Support | | Default Organization | 0 | 51 | Red Hat Enterprise Linux for Real Time | | Default Organization | 0 | 134 | Red Hat Enterprise Linux for Real Time for NFV | | Default Organization | 0 | 68 | Red Hat Enterprise Linux for SAP | | Default Organization | 0 | 57 | Red Hat Enterprise Linux for SAP Hana | | Default Organization | 0 | 62 | Red Hat Enterprise Linux for Scientific Computing | | Default Organization | 0 | 78 | Red Hat Enterprise Linux High Availability for IBM z Systems | | Default Organization | 0 | 21 | Red Hat Enterprise Linux High Availability for RHEL Server | | Default Organization | 0 | 73 | Red Hat Enterprise Linux High Availability for RHEL Server - AUS | | Default Organization | 0 | 37 | Red Hat Enterprise Linux High Availability for RHEL Server - Extended Update ... | | Default Organization | 0 | 116 | Red Hat Enterprise Linux High Performance Networking for RHEL Compute Node | | Default Organization | 0 | 123 | Red Hat Enterprise Linux High Performance Networking for RHEL for IBM POWER | | Default Organization | 0 | 66 | Red Hat Enterprise Linux High Performance Networking for RHEL Server | | Default Organization | 0 | 10 | Red Hat Enterprise Linux Load Balancer for RHEL Server | | Default Organization | 0 | 120 | Red Hat Enterprise Linux Load Balancer for RHEL Server - AUS | | Default Organization | 0 | 13 | Red Hat Enterprise Linux Load Balancer for RHEL Server - Extended Update Support | | Default Organization | 0 | 63 | Red Hat Enterprise Linux Resilient Storage for IBM z Systems | | Default Organization | 0 | 87 | Red Hat Enterprise Linux Resilient Storage for RHEL Server | | Default Organization | 0 | 113 | Red Hat Enterprise Linux Resilient Storage for RHEL Server - AUS | | Default Organization | 0 | 76 | Red Hat Enterprise Linux Resilient Storage for RHEL Server - Extended Update ... | | Default Organization | 0 | 19 | Red Hat Enterprise Linux Scalable File System for RHEL Compute Node | | Default Organization | 0 | 30 | Red Hat Enterprise Linux Scalable File System for RHEL Server | | Default Organization | 0 | 122 | Red Hat Enterprise Linux Scalable File System for RHEL Server - AUS | | Default Organization | 0 | 28 | Red Hat Enterprise Linux Scalable File System for RHEL Server - Extended Upda... | | Default Organization | 0 | 111 | Red Hat Enterprise Linux Scalable File System for RHEL Workstation | | Default Organization | 0 | 50 | Red Hat Enterprise Linux Server | | Default Organization | 2 | Syncing Complete. 112 | Red Hat Enterprise Linux Server - AUS | | Default Organization | 0 | 4 | Red Hat Enterprise Linux Server - Extended Life Cycle Support | | Default Organization | 0 | 32 | Red Hat Enterprise Linux Server - Extended Update Support | | Default Organization | 0 | 103 | Red Hat Enterprise Linux Server for ARM Beta | | Default Organization | 0 | 31 | Red Hat Enterprise Linux Server for ARM Development Preview | | Default Organization | 0 | 20 | Red Hat Enterprise Linux Workstation | | Default Organization | 0 | 77 | Red Hat Enterprise MRG Messaging | | Default Organization | 0 | 22 | Red Hat Enterprise MRG Messaging 3 for RHEL 7 | | Default Organization | 0 | 74 | Red Hat Enterprise Virtualization | | Default Organization | 0 | 80 | Red Hat Enterprise Virtualization for IBM Power | | Default Organization | 0 | 119 | Red Hat EUCJP Support for RHEL Server | | Default Organization | 0 | 54 | Red Hat Gluster Storage Management Console for RHEL Server | | Default Organization | 0 | 100 | Red Hat Gluster Storage Nagios Server | | Default Organization | 0 | 94 | Red Hat Gluster Storage Server for On-premise | | Default Organization | 0 | 18 | Red Hat Hardware Certification Test Suite | | Default Organization | 0 | 99 | Red Hat JBoss A-MQ Clients | | Default Organization | 0 | 133 | Red Hat JBoss Core Services | | Default Organization | 0 | 130 | Red Hat Mobile Application Platform v40 Beta | | Default Organization | 0 | 53 | Red Hat OpenShift Enterprise | | Default Organization | 0 | 43 | Red Hat OpenShift Enterprise Application Node | | Default Organization | 0 | 85 | Red Hat OpenShift Enterprise Application Node Beta | | Default Organization | 0 | 59 | Red Hat OpenShift Enterprise Client Tools | | Default Organization | 0 | 64 | Red Hat OpenShift Enterprise Client Tools Beta | | Default Organization | 0 | 23 | Red Hat OpenShift Enterprise Infrastructure | | Default Organization | 0 | 114 | Red Hat OpenShift Enterprise Infrastructure Beta | | Default Organization | 0 | 101 | Red Hat OpenShift Enterprise JBoss A-MQ add-on | | Default Organization | 0 | 56 | Red Hat OpenShift Enterprise JBoss EAP add-on | | Default Organization | 0 | 42 | Red Hat OpenShift Enterprise JBoss EAP add-on Beta | | Default Organization | 0 | 81 | Red Hat OpenShift Enterprise JBoss FUSE add-on | | Default Organization | 0 | 16 | Red Hat OpenStack | | Default Organization | 0 | 125 | Red Hat OpenStack Beta | | Default Organization | 0 | 3 | Red Hat OpenStack Beta Certification Test Suite | | Default Organization | 0 | 110 | Red Hat S-JIS Support for RHEL Server | | Default Organization | 0 | 35 | Red Hat S-JIS Support for RHEL Server - AUS | | Default Organization | 0 | 129 | Red Hat Single Sign-On | | Default Organization | 0 | 106 | Red Hat Software Collections Beta for RHEL Client | | Default Organization | 0 | 44 | Red Hat Software Collections Beta for RHEL Server | | Default Organization | 0 | 55 | Red Hat Software Collections Beta for RHEL Workstation | | Default Organization | 0 | 46 | Red Hat Software Collections for RHEL Server | | Default Organization | 0 | 89 | Red Hat Software Collections for RHEL Workstation | | Default Organization | 0 | 115 | Red Hat Storage | | Default Organization | 0 | 1 | zoo | | Default Organization | 1 | Syncing Complete. ----|----------------------------------------------------------------------------------|-------------|----------------------|--------------|------------------ hammer>