Project

General

Profile

Actions

Bug #30534

closed

'hammer repository export' broken in 3.16

Added by Jonathon Turel over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Discourse thread pointed out some sort of problem: https://community.theforeman.org/t/selinux-issues-while-running-hammer-repository-export/19763

I saw an entirely different error in my environment with katello-selinux 3.3.1 :

[vagrant@centos7-katello-3-16 ~]$ hammer -u admin -p changeme repository export --iso-mb-size 22000 --id 1 --export-to-iso 1
[.......................................................................................................................................................................................................................................................................] [100%]
Error: 404 Not Found
404 Not Found
No such file or directory @ rb_file_s_stat - /var/lib/pulp/published/yum/master/group_export_distributor/c0ac2ce8-711c-4ae9-aeae-b38f1e7564ee
404 Not Found

From production.log :

2020-07-30T20:56:17 [I|kat|] GET: https://centos7-katello-3-16.strangeways.example.com/pulp/api/v2/repo_groups/c0ac2ce8-711c-4ae9-aeae-b38f1e7564ee/distributors/: {"content_type"=>"application/json", "accept"=>"application/json"}
404 Not Found: {"http_request_method": "GET", "exception": null, "error_message": "Missing resource(s): repo_group=c0ac2ce8-711c-4ae9-aeae-b38f1e7564ee", "_href": "/pulp/api/v2/repo_groups/c0ac2ce8-711c-4ae9-aeae-b38f1e7564ee/distributors/", "http_status": 404, "error": {"code": "PLP0009", "data": {"resources": {"repo_group": "c0ac2ce8-711c-4ae9-aeae-b38f1e7564ee"}}, "description": "Missing resource(s): repo_group=c0ac2ce8-711c-4ae9-aeae-b38f1e7564ee", "sub_errors": []}, "traceback": null, "resources": {"repo_group": "c0ac2ce8-711c-4ae9-aeae-b38f1e7564ee"}}                                                                       
2020-07-30T20:56:17 [E|bac|] 404 Not Found (RestClient::NotFound)                                                                                                                                                                                                               
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/abstract_response.rb:223:in `exception_with_response'                                                                                                                                             /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/abstract_response.rb:103:in `return!'                                                                                                                                                             
/opt/theforeman/tfm/root/usr/share/gems/gems/runcible-2.13.1/lib/runcible/base.rb:95:in `block in get_response'                                                                                                                                                                 /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:807:in `process_result'                                                                                                                                                                
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:725:in `block in transmit'                                                                                                                                                             
/opt/rh/rh-ruby25/root/usr/share/ruby/net/http.rb:910:in `start'                                                                        
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:715:in `transmit'                                                                                                                                                                      
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:145:in `execute'                                                                                                                                                                       
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:52:in `execute'                                                                                                                                                                        
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/resource.rb:51:in `get'                                                                                                                                                                           
/opt/theforeman/tfm/root/usr/share/gems/gems/runcible-2.13.1/lib/runcible/base.rb:94:in `get_response'                                                                                                                                                                          
/opt/theforeman/tfm/root/usr/share/gems/gems/runcible-2.13.1/lib/runcible/base.rb:74:in `call'                                                                                                                                                                                  
/opt/theforeman/tfm/root/usr/share/gems/gems/runcible-2.13.1/lib/runcible/resources/repository_group.rb:39:in `retrieve_distributors'                                                                                                                                           
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.0.rc5/app/lib/actions/pulp/repository_group/export.rb:46:in `repo_group_distributors'                                                                                                                                 
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.0.rc5/app/lib/actions/pulp/repository_group/export.rb:39:in `distributor_id'                                                                                                                                          
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.0.rc5/app/lib/actions/pulp/repository_group/export.rb:33:in `invoke_external_task'      
Actions #1

Updated by James Jeffers over 3 years ago

  • Target version set to Katello 3.16.1
  • Triaged changed from No to Yes
Actions #2

Updated by Ian Ballou over 3 years ago

  • Target version changed from Katello 3.16.1 to Katello 3.16.2
Actions #3

Updated by Ian Ballou over 3 years ago

  • Status changed from New to Resolved
  • Target version changed from Katello 3.16.2 to Katello Recycle Bin

Closing because it works for me in production (3.15->3.16, 3.16, nightly). Will monitor the related community thread to see if more issues pop up.

Actions

Also available in: Atom PDF