| Summary: | Failed to import manifest into SAM | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] Subscription Asset Manager | Reporter: | Li Bin Liu <liliu> | ||||
| Component: | katello-configure | Assignee: | Jordan OMara <jomara> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Tazim Kolhar <tkolhar> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 1.0.0 | CC: | athomas, cwelton, khong, tkolhar, tomckay, wili | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2012-04-27 00:21:25 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Bug Depends On: | |||||||
| Bug Blocks: | 703617 | ||||||
| Attachments: |
|
||||||
|
Description
Li Bin Liu
2012-01-19 10:47:03 UTC
From the pulp log during import into katello (not a fresh install, development environment w/ other existing orgs, etc.):
2012-01-19 08:48:22,120 13886:139817079793408: pulp.server.webservices.controllers.decorators:ERROR: decorators:52 Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/decorators.py", line 48, in report_error
return method(self, *args, **kwargs)
File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/decorators.py", line 127, in _auth_decorator
value = method(self, *args, **kwargs)
File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/repositories.py", line 253, in POST
content_types=repo_data.get('content_types', 'yum'))
File "/usr/lib/python2.6/site-packages/pulp/server/api/repo.py", line 308, in create
raise PulpException("A Repo with relative path `%s` already exists; failed to create repo `%s`" % (r['relative_path'], id))
PulpException: A Repo with relative path `org3/Locker/content/beta/rhel/workstation/5/5.8/x86_64/vt/os` already exists; failed to create repo `org3-Red_Hat_Enterprise_Linux_Workstation-Red_Hat_Enterprise_Linux_5_Workstation_-_Virtualization_Beta_Debug_RPMs_x86_64_58`
The katello import error is due to repos with the same path and is/was a problem on stage. See BZ 769640 Headpin/SAM issue confirmed different and fix in-progress. fix committed and in brew (0.1.126-2): c4019f77512ce722537c613949b4110ab7602ad4 # rpm -qa katello-headpin-all
katello-headpin-all-0.1.126-2.el6.noarch
headpin> product list --org ACME_Corporation
--------------------------------------------------------------------------------
Product List For Organization ACME_Corporation, Environment 'Locker'
Id Name Provider Id Provider Name
--------------------------------------------------------------------------------
RH1149049 High-Availability 8 sockets 1 Red Hat
83 Red Hat Enterprise Linux High Availability for RHEL Server 1 Red Hat
90 Red Hat Enterprise Linux Resilient Storage for RHEL Server 1 Red Hat
RH0197329 Red Hat Enterprise Linux Server Premium 1-2 sockets Unlimited guests 1 Red Hat
RH0197181 Red Hat Enterprise Linux Server Self-support 1-2 sockets Up to 1 guest 1 Red Hat
68 Red Hat Enterprise Linux Desktop 1 Red Hat
69 Red Hat Enterprise Linux Server 1 Red Hat
RH1316844 Resilient Storage 8 sockets 1 Red Hat
RH0823221 Red Hat Enterprise Linux Desktop 50 pack Standard 1 Red Hat
eadpin> product list --org Org-AhFPd6pUscy6iia8
--------------------------------------------------------------------------------
Product List For Organization Org-AhFPd6pUscy6iia8, Environment 'Locker'
Id Name Provider Id Provider Name
--------------------------------------------------------------------------------
83 Red Hat Enterprise Linux High Availability for RHEL Server 2 Red Hat
RH1149049 High-Availability 8 sockets 2 Red Hat
90 Red Hat Enterprise Linux Resilient Storage for RHEL Server 2 Red Hat
RH0197329 Red Hat Enterprise Linux Server Premium 1-2 sockets Unlimited guests 2 Red Hat
RH0197181 Red Hat Enterprise Linux Server Self-support 1-2 sockets Up to 1 guest 2 Red Hat
69 Red Hat Enterprise Linux Server 2 Red Hat
RH1316844 Resilient Storage 8 sockets 2 Red Hat
I'm not seeing this issue in the latest puddle, I have multiple orgs loaded with manifests successfully.
VERIFIED
No issue in importing the manifests with the build below :
[root@ibm-hs22-03 ~]# rpm -qa katello-headpin
katello-headpin-0.1.145-1.el6.noarch
[root@ibm-hs22-03 ~]# headpin -u admin -p admin provider import_manifest --name "Red Hat" --org ibm-hs22-03testorg --file manifestnew.zip
Manifest imported
[root@ibm-hs22-03 ~]# headpin -u admin -p admin product list --org ibm-hs22-03testorg
--------------------------------------------------------------------------------
Product List For Organization ibm-hs22-03testorg, Environment 'Library'
Id Name Provider Id Provider Name Sync Plan Name GPG key
--------------------------------------------------------------------------------
83 Red Hat Enterprise Linux High Availability for RHEL Server 2 Red Hat
69 Red Hat Enterprise Linux Server 2 Red Hat
RH1149049 High-Availability 8 sockets 2 Red Hat
RH0197181 Red Hat Enterprise Linux Server Self-support 1-2 sockets Up to 1 guest 2 Red Hat
[root@ibm-hs22-03 ~]# headpin -u admin -p admin product list --org ACME_Corporation
--------------------------------------------------------------------------------
Product List For Organization ACME_Corporation, Environment 'Library'
Id Name Provider Id Provider Name Sync Plan Name GPG key
|