Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1323961

Summary: Routing error when syncing puppet contents to external capsule
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: Content ManagementAssignee: John Mitsch <jomitsch>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham
Target Milestone: UnspecifiedKeywords: 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: 2016-07-22 19:12:53 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:

Description Sachin Ghai 2016-04-05 08:00:30 UTC
Description of problem:
I was trying to sync puppet-modules from satellite server to capsule. sync was completed successfully, I can see module synced on capsule node. However, everytime, when I initiate sync, production.log filled with this error:


2016-04-05 03:31:17 [app] [D] Body: {"id":"e47328a4-ecb3-4b4a-b30c-08b8efc32edb","label":"Actions::Katello::CapsuleContent::Sync","pending":true,"username":"admin","started_at":"2016-04-05 07:31:17 UTC","ended_at":null,"state":"running","result":"pending","progress":0.0,"input":{"smart_proxy":{"id":2,"name":"cloud-qe-7.idmqe.lab.eng.bos.redhat.com"},"services_checked":["pulp","pulp_auth"],"locale":"en"},"output":{},"humanized":{"action":"Synchronize capsule content","input":[],"output":"","errors":[]},"cli_example":null}
2016-04-05 03:31:17 [app] [I] Completed 200 OK in 46ms (Views: 19.7ms | ActiveRecord: 13.9ms)
2016-04-05 03:31:17 [app] [I] Started GET "/pulp/puppet/Default_Organization-Test-puppet_cv/PULP_MANIFEST" for 10.16.96.108 at 2016-04-05 03:31:17 -0400
2016-04-05 03:31:17 [app] [F] 
 | ActionController::RoutingError (No route matches [GET] "/pulp/puppet/Default_Organization-Test-puppet_cv/PULP_MANIFEST"):
 |   actionpack (4.1.5) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
 |   actionpack (4.1.5) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
 |   railties (4.1.5) lib/rails/rack/logger.rb:38:in `call_app'
 |   railties (4.1.5) lib/rails/rack/logger.rb:22:in `call'
 |   actionpack (4.1.5) lib/action_dispatch/middleware/request_id.rb:21:in `call'
 |   rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
 |   rack (1.5.2) lib/rack/runtime.rb:17:in `call'
 |   activesupport (4.1.5) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
 |   actionpack (4.1.5) lib/action_dispatch/middleware/static.rb:64:in `call'
 |   rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
 |   railties (4.1.5) lib/rails/engine.rb:514:in `call'
 |   railties (4.1.5) lib/rails/application.rb:144:in `call'
 |   railties (4.1.5) lib/rails/railtie.rb:194:in `public_send'
 |   railties (4.1.5) lib/rails/railtie.rb:194:in `method_missing'
 |   rack (1.5.2) lib/rack/builder.rb:138:in `call'
 |   rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call'
 |   rack (1.5.2) lib/rack/urlmap.rb:50:in `each'
 |   rack (1.5.2) lib/rack/urlmap.rb:50:in `call'
 |   /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
 |   /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request'
 |   /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop'
 |   /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'
 |   logging (1.8.2) lib/logging/diagnostic_context.rb:323:in `call'
 |   logging (1.8.2) lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
 | 
 | 



[root@cloud-qe-15 ~]# hammer -u admin -p changeme capsule content synchronize --id 2
[............................................................................................................................................] [100%]


Version-Release number of selected component (if applicable):
sat6.2 beta snap6

How reproducible:


Steps to Reproduce:
1. sync contents from satellite to capsule. Make sure puppet-modules should be added as contents
2.
3.

Actual results:
2016-04-05 03:31:17 [app] [F] 
 | ActionController::RoutingError (No route matches [GET] "/pulp/puppet/Default_Organization-Test-puppet_cv/PULP_MANIFEST"):

Expected results:
no error should be thrown in production.log while syncing contents between sat server and capsule.

Additional info:
on satellite server: Following two modules are synced
====================
[root@cloud-qe-15 ~]# getenforce 
Enforcing
[root@cloud-qe-15 ~]# grep '"version":' /etc/puppet/environments/KT_Default_Organization_Test_puppet_cv_8/modules/apache/metadata.json 
  "version": "1.8.1",
[root@cloud-qe-15 ~]# grep '"version":' /etc/puppet/environments/KT_Default_Organization_Test_puppet_cv_8/modules/nova/metadata.json 
  "version": "7.0.0",

on capsule, after sync:
=======================

[root@cloud-qe-7 ~]# getenforce 
Enforcing
[root@cloud-qe-7 ~]# grep '"version":' /etc/puppet/environments/KT_Default_Organization_Test_puppet_cv_8/modules/apache/metadata.json
  "version": "1.8.1",
[root@cloud-qe-7 ~]# grep '"version":' /etc/puppet/environments/KT_Default_Organization_Test_puppet_cv_8/modules/nova/metadata.json 
  "version": "7.0.0",

Comment 2 John Mitsch 2016-07-22 19:12:53 UTC
Looks like a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1337979 feel free to reopen if it is different in any way.

*** This bug has been marked as a duplicate of bug 1337979 ***