Bug 1263650
Summary: | hammer import repository-enable publishes CVs async though --no-async is specified | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Lukas Pramuk <lpramuk> | ||||
Component: | Transitions | Assignee: | Adam Price <adprice> | ||||
Status: | CLOSED WONTFIX | QA Contact: | Lukas Pramuk <lpramuk> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | Unspecified | CC: | bbuckingham, bkearney, lpramuk, rplevka | ||||
Target Milestone: | Unspecified | Keywords: | Triaged | ||||
Target Release: | Unused | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2017-01-13 20:48:33 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Lukas Pramuk
2015-09-16 10:58:54 UTC
I should have used verbose mode to see what was going on: # hammer import repository-enable --verbose --csv-file channels.csv --synchronize --no-async Importing from channels.csv Repository 'Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server' already enabled as 134. Redhat content view [1103->36] already imported. Summary Found 1 redhat content view. No action taken. <----1st run has started publishing and ended # hammer import repository-enable --verbose --csv-file channels.csv --synchronize --no-async Importing from channels.csv Repository 'Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server' already enabled as 134. Redhat content view [1103->36] already imported. Publishing of redhat content view [36] failed with RestClient::InternalServerError: 500 Internal Server Error Summary Found 1 redhat content view. No action taken. # tail /root/import.log I, [2015-09-16T05:32:06.829620 #13932] INFO -- : Importing from users.csv I, [2015-09-16T05:32:06.830373 #13932] INFO -- : Creating new organization: Imported Organization I, [2015-09-16T05:32:09.796299 #13932] INFO -- : Summary I, [2015-09-16T05:32:09.796479 #13932] INFO -- : Created 1 organization. I, [2015-09-16T06:14:48.258260 #16844] INFO -- : Importing from channels.csv I, [2015-09-16T06:16:09.085306 #16844] INFO -- : Enabling /content/dist/rhel/server/7/7Server/x86_64/os/Packages for channel rhel-x86_64-server-7 in org 8 I, [2015-09-16T06:16:23.539577 #16844] INFO -- : Mapping redhat repository [1103->134]. I, [2015-09-16T06:16:26.802383 #16844] INFO -- : Waiting for uuids (non async): ["3ccf0544-9593-4114-b0b7-de61c20feec7"]. I, [2015-09-16T06:31:37.270348 #16844] INFO -- : Creating new redhat content view: Red Hat Enterprise Linux Server (v. 7 for 64-bit x86_64) I, [2015-09-16T06:32:38.740051 #16844] INFO -- : Summary I, [2015-09-16T06:32:38.740290 #16844] INFO -- : Mapped 1 redhat repository. I, [2015-09-16T06:32:38.740387 #16844] INFO -- : Created 1 redhat content view. I, [2015-09-16T06:33:20.405388 #21073] INFO -- : Importing from channels.csv I, [2015-09-16T06:34:48.416819 #21073] INFO -- : Repository 'Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server' already enabled as 134. I, [2015-09-16T06:34:49.241886 #21073] INFO -- : Redhat content view [1103->36] already imported. W, [2015-09-16T06:34:49.979998 #21073] WARN -- : Publishing of redhat content view [36] failed with RestClient::InternalServerError: 500 Internal Server Error I, [2015-09-16T06:35:30.169471 #21073] INFO -- : Summary I, [2015-09-16T06:35:30.169684 #21073] INFO -- : Found 1 redhat content view. I, [2015-09-16T06:35:30.169792 #21073] INFO -- : No action taken. # hammer -d ... Redhat content view [1103->36] already imported. [ INFO 2015-09-16 07:49:24 API] POST /katello/api/content_views/36/publish [DEBUG 2015-09-16 07:49:24 API] Params: {} [DEBUG 2015-09-16 07:49:24 API] Headers: {} [DEBUG 2015-09-16 07:49:25 API] 500 Internal Server Error { "errors" => [ [0] "Required lock is already taken by other running tasks.\nPlease inspect their state, fix their errors and resume them.\n\nRequired lock: read\nConflicts with tasks:\n- https://<SAT>/foreman_tasks/tasks/ff5257c9-b0e1-4911-a004-89abe16a89f2" ], "displayMessage" => "Required lock is already taken by other running tasks.\nPlease inspect their state, fix their errors and resume them.\n\nRequired lock: read\nConflicts with tasks:\n- https://<SAT>/foreman_tasks/tasks/ff5257c9-b0e1-4911-a004-89abe16a89f2" } Publishing of redhat content view [36] failed with RestClient::InternalServerError: 500 Internal Server Error Lukas, can we get a foreman-debug that includes the failure scenario? It appears that there is a locked task; therefore, may have been a failure prior. Created attachment 1086759 [details]
production.log
the interesting part of production log -
capturing
-importing of 3 organizations (ids 201-203)
-importing of 3 repositories
-importing of 3 content views
-importing of 3 content hosts
Moving 6.2 bugs out to sat-backlog. This is an older bug which I do not envision being addressed in the near term. I am closing this out. If you believe doing so is an issue, please feel free to re-open and provide additional business information. Thank you. |