Project

General

Profile

Actions

Bug #35464

closed

Duplicate products defined as redhat products

Added by Piotr Pietruszka about 2 years ago. Updated about 2 years ago.

Status:
Rejected
Priority:
High
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

I have noticed the following problem with me:

[root @ oplrepo-zcpd-dmz ~] # hammer --output csv product list --organization OPL | egrep "Debian | OSP13"
99, Debian ,, OPL, 0,
92, Debian ,, OPL, 8, Syncing Complete.
104, OSP13 Containers ,, OPL, 0,
103, OSP13 Containers ,, OPL, 0,
102, OSP13 Containers ,, OPL, 71, Syncing Complete.

These are duplicate products of which those without repositories are referred to as RedHat products, but are not actually RedHat products:

[root@oplrepo-zcpd-dmz ~]# /usr/bin/curl -s --user '*****' -H 'Content-Type: application/json' -X GET 'https://oplrepo-zcpd-dmz.corpnet.pl/katello/api/products/99' | jq . {
"redhat": true,
"id": 99,
"cp_id": "768348876959",
"name": "Debian",
"label": "Debian_768348876959",
"description": null,
"provider_id": 2,
"sync_plan_id": null,
"sync_summary": {},
"gpg_key_id": null,
"ssl_ca_cert_id": null,
"ssl_client_cert_id": null,
"ssl_client_key_id": null,
"sync_state": null,
"last_sync": null,
"last_sync_words": null,
"organization_id": 1,
"organization": {
"name": "OPL",
"label": "OPL",
"id": 1
},
"sync_plan": null,
"repository_count": 0,
"created_at": "2020-08-10 20:07:04 UTC",
"updated_at": "2020-08-10 20:07:04 UTC",
"product_content": [],
"available_content": [],
"repositories": [],
"provider": {
"name": "Red Hat"
},
"sync_status": {
"id": null,
"product_id": null,
"progress": null,
"sync_id": null,
"state": null,
"raw_state": null,
"start_time": null,
"finish_time": null,
"duration": null,
"display_size": null,
"size": null,
"is_running": null,
"error_details": null
},
"permissions": {
"view_products": true,
"edit_products": true,
"destroy_products": true,
"sync_products": true
},
"published_content_view_ids": [],
"active_task_count": 0
}

And I can not remove them:

[root@oplrepo-zcpd-dmz ~]# hammer product delete --id 99 --organization OPL
Could not destroy the product:
Cannot delete Red Hat product: Debian

/usr/bin/curl -s --user '*****' -H 'Content-Type: application/json' -X DELETE 'https://oplrepo-zcpd-dmz.corpnet.pl/katello/api/products/99' | jq . {
"displayMessage": "Cannot delete Red Hat product: Debian",
"errors": [
"Cannot delete Red Hat product: Debian"
]
}

The question is how can I remedy this situation ? It's Katello 3.14.1

Thanks and Regards

Actions #1

Updated by Ian Ballou about 2 years ago

  • Status changed from New to Rejected
  • Target version set to Katello Recycle Bin
  • Triaged changed from No to Yes

Hi Piotr, Katello 3.14 is quite old at this point and we do not have the tooling available to develop for it. Foreman and Katello say the prior two versions are "supported". I would recommend upgrading your system. If you cannot, please open a community forum post and we can try to debug as much as we can there.

I'm closing this issue out for now. It we find out that it's there on a newer Katello version, please reopen it.

Actions

Also available in: Atom PDF