Content syncing in Katello 3.2.1 appears to be broken out of the box

Team,

I upgraded my Katello box from 3.1 to 3.2, and then to 3.2.1 and all hell broke loose in terms of syncing packages, which led me to file this bug:

http://projects.theforeman.org/issues/17715

…because I'm using on demand for everything and I assumed that was related as I initially discovered the issue trying to update subscribed hosts.

But then I did a fresh install of 3.2.1 and am getting 500 errors clicking on Content -> Sync Status just like my upgraded host (and this is before doing any customization - no products, CVs, etc).

Is anyone else having any issues? I feel like I'm going crazy or something…

production.log says:

2016-12-16 14:54:30 5c1b2060 [app] [I] Started GET "/katello/sync_management" for 192.168.16.133 at 2016-12-16 14:54:30 -0600
2016-12-16 14:54:31 5c1b2060 [app] [I] Processing by Katello::SyncManagementController#index as HTML
2016-12-16 14:54:31 74681c86 [app] [I] Started POST "/pulp/api/v2/repositories/search/" for 192.168.16.212 at 2016-12-16 14:54:31 -0600
2016-12-16 14:54:31 74681c86 [app] [F]
> ActionController::RoutingError (No route matches [POST] "/pulp/api/v2/repositories/search"):
> lib/middleware/tagged_logging.rb:18:in call' > > 2016-12-16 14:54:31 5c1b2060 [katello/pulp_rest] [I] RestClient.post "https://satellite.tresgeek.org/pulp/api/v2/repositories/search/", "{\"criteria\":{\"filters\":{\"id\":{\"$in\":[]}}}}", "Accept"=>"*/*; q=0.5, application/xml", "Accept-Encoding"=>"gzip, deflate", "Content-Length"=>"42", "accept"=>"application/json", "content_type"=>"application/json" > \n# => 404 NotFound | application/json 36 bytes > 2016-12-16 14:54:31 5c1b2060 [app] [I] Completed 500 Internal Server Error in 129ms (ActiveRecord: 7.6ms) 2016-12-16 14:54:31 5c1b2060 [app] [F] > RestClient::ResourceNotFound (404 Resource Not Found): > katello (3.2.1.1) app/models/katello/glue/pulp/repos.rb:53:inprepopulate!'
> katello (3.2.1.1) app/helpers/katello/sync_management_helper.rb:38:in collect_repos' > katello (3.2.1.1) app/controllers/katello/sync_management_controller.rb:27:inindex'
> app/controllers/concerns/application_shared.rb:14:in set_timezone' > lib/middleware/catch_json_parse_errors.rb:9:incall'
> lib/middleware/tagged_logging.rb:18:in call' > > 2016-12-16 14:54:31 5c1b2060 [app] [I] Started GET "/favicon.ico" for 192.168.16.133 at 2016-12-16 14:54:31 -0600 2016-12-16 14:54:31 5c1b2060 [app] [F] > ActionController::RoutingError (No route matches [GET] "/favicon.ico"): > lib/middleware/tagged_logging.rb:18:incall'
>
>

Here's my foreman-installer line:

foreman-installer
–scenario katello
–enable-foreman-plugin-bootdisk
–enable-foreman-plugin-discovery
–enable-foreman-plugin-hooks
–enable-foreman-plugin-openscap
–enable-foreman-plugin-remote-execution
–enable-foreman-plugin-templates
–enable-foreman-proxy-plugin-openscap
–enable-foreman-proxy-plugin-remote-execution-ssh
–certs-city 'My City'
–certs-org 'My Org'
–certs-org-unit Katello
–certs-state Mystate
–foreman-admin-email admin@email.com
–foreman-admin-password foobar
–foreman-configure-epel-repo false
–foreman-configure-scl-repo false
–foreman-email-delivery-method sendmail
–foreman-initial-location Lab
–foreman-initial-organization 'My Org'
–foreman-ipa-authentication true
–foreman-puppetrun true
–foreman-plugin-discovery-install-images true
–foreman-proxy-manage-puppet-group true
–foreman-proxy-manage-sudoersd true
–foreman-proxy-puppetrun-provider ssh
–foreman-proxy-realm true
–foreman-proxy-realm-principal realm-proxy@DOMAIN.ORG
–foreman-proxy-templates true
–foreman-proxy-tftp true
–foreman-proxy-plugin-openscap-configure-openscap-repo \

I am also getting a 500 error going to the Content -> Sync Status page. I
only just upgraded this morning and I haven't had a chance to investigate
further.

··· On Fri, Dec 16, 2016 at 3:05 PM, 'Jason B. Nance' via Foreman users < foreman-users@googlegroups.com> wrote:

Team,

I upgraded my Katello box from 3.1 to 3.2, and then to 3.2.1 and all hell
broke loose in terms of syncing packages, which led me to file this bug:

Bug #17715: Katello Server Attempting To Pull From Wrong Upstream Repository - Katello - Foreman

…because I’m using on demand for everything and I assumed that was
related as I initially discovered the issue trying to update subscribed
hosts.

But then I did a fresh install of 3.2.1 and am getting 500 errors clicking
on Content -> Sync Status just like my upgraded host (and this is before
doing any customization - no products, CVs, etc).

Is anyone else having any issues? I feel like I’m going crazy or
something…

production.log says:

2016-12-16 14:54:30 5c1b2060 [app] [I] Started GET
"/katello/sync_management" for 192.168.16.133 at 2016-12-16 14:54:30 -0600
2016-12-16 14:54:31 5c1b2060 [app] [I] Processing by Katello::SyncManagementController#index
as HTML
2016-12-16 14:54:31 74681c86 [app] [I] Started POST
"/pulp/api/v2/repositories/search/" for 192.168.16.212 at 2016-12-16
14:54:31 -0600
2016-12-16 14:54:31 74681c86 [app] [F]

ActionController::RoutingError (No route matches [POST]
"/pulp/api/v2/repositories/search"):
lib/middleware/tagged_logging.rb:18:in `call’

2016-12-16 14:54:31 5c1b2060 [katello/pulp_rest] [I] RestClient.post “
https://satellite.tresgeek.org/pulp/api/v2/repositories/search/”,
"{“criteria”:{“filters”:{“id”:{"$in":[]}}}}", “Accept”=>"/;
q=0.5, application/xml", “Accept-Encoding”=>“gzip, deflate”,
“Content-Length”=>“42”, “accept”=>“application/json”,
“content_type”=>“application/json”

\n# => 404 NotFound | application/json 36 bytes

2016-12-16 14:54:31 5c1b2060 [app] [I] Completed 500 Internal Server Error
in 129ms (ActiveRecord: 7.6ms)
2016-12-16 14:54:31 5c1b2060 [app] [F]

RestClient::ResourceNotFound (404 Resource Not Found):
katello (3.2.1.1) app/models/katello/glue/pulp/repos.rb:53:in
prepopulate!' katello (3.2.1.1) app/helpers/katello/sync_management_helper.rb:38:incollect_repos’
katello (3.2.1.1) app/controllers/katello/sync_management_controller.rb:27:in
index' app/controllers/concerns/application_shared.rb:14:inset_timezone’
lib/middleware/catch_json_parse_errors.rb:9:in call' lib/middleware/tagged_logging.rb:18:incall’

2016-12-16 14:54:31 5c1b2060 [app] [I] Started GET “/favicon.ico” for
192.168.16.133 at 2016-12-16 14:54:31 -0600
2016-12-16 14:54:31 5c1b2060 [app] [F]

ActionController::RoutingError (No route matches [GET] “/favicon.ico”):
lib/middleware/tagged_logging.rb:18:in `call’

Here’s my foreman-installer line:

foreman-installer
–scenario katello
–enable-foreman-plugin-bootdisk
–enable-foreman-plugin-discovery
–enable-foreman-plugin-hooks
–enable-foreman-plugin-openscap
–enable-foreman-plugin-remote-execution
–enable-foreman-plugin-templates
–enable-foreman-proxy-plugin-openscap
–enable-foreman-proxy-plugin-remote-execution-ssh
–certs-city ‘My City’
–certs-org ‘My Org’
–certs-org-unit Katello
–certs-state Mystate
–foreman-admin-email admin@email.com
–foreman-admin-password foobar
–foreman-configure-epel-repo false
–foreman-configure-scl-repo false
–foreman-email-delivery-method sendmail
–foreman-initial-location Lab
–foreman-initial-organization ‘My Org’
–foreman-ipa-authentication true
–foreman-puppetrun true
–foreman-plugin-discovery-install-images true
–foreman-proxy-manage-puppet-group true
–foreman-proxy-manage-sudoersd true
–foreman-proxy-puppetrun-provider ssh
–foreman-proxy-realm true
–foreman-proxy-realm-principal realm-proxy@DOMAIN.ORG
–foreman-proxy-templates true
–foreman-proxy-tftp true
–foreman-proxy-plugin-openscap-configure-openscap-repo \


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Some additional info here… Not sure if this makes it better or worse…

I did another fresh install but this time used the Puppet 4 repo instead of Puppet 3 and I'm not having the content problems. :-\

j

··· From: "Peter Kirby" To: foreman-users@googlegroups.com Sent: Friday, December 16, 2016 3:26:03 PM Subject: Re: [foreman-users] Content syncing in Katello 3.2.1 appears to be broken out of the box

I am also getting a 500 error going to the Content -> Sync Status page. I only just upgraded this morning and I haven’t had a chance to investigate further.

On Fri, Dec 16, 2016 at 3:05 PM, ‘Jason B. Nance’ via Foreman users < [ mailto:foreman-users@googlegroups.com | foreman-users@googlegroups.com ] > wrote:

Team,

I upgraded my Katello box from 3.1 to 3.2, and then to 3.2.1 and all hell broke loose in terms of syncing packages, which led me to file this bug:

[ Bug #17715: Katello Server Attempting To Pull From Wrong Upstream Repository - Katello - Foreman | Bug #17715: Katello Server Attempting To Pull From Wrong Upstream Repository - Katello - Foreman ]

…because I’m using on demand for everything and I assumed that was related as I initially discovered the issue trying to update subscribed hosts.

But then I did a fresh install of 3.2.1 and am getting 500 errors clicking on Content -> Sync Status just like my upgraded host (and this is before doing any customization - no products, CVs, etc).

Is anyone else having any issues? I feel like I’m going crazy or something…

production.log says:

2016-12-16 14:54:30 5c1b2060 [app] [I] Started GET “/katello/sync_management” for 192.168.16.133 at 2016-12-16 14:54:30 -0600
2016-12-16 14:54:31 5c1b2060 [app] [I] Processing by Katello::SyncManagementController#index as HTML
2016-12-16 14:54:31 74681c86 [app] [I] Started POST “/pulp/api/v2/repositories/search/” for 192.168.16.212 at 2016-12-16 14:54:31 -0600
2016-12-16 14:54:31 74681c86 [app] [F]

ActionController::RoutingError (No route matches [POST] “/pulp/api/v2/repositories/search”):
lib/middleware/tagged_logging.rb:18:in `call’

2016-12-16 14:54:31 5c1b2060 [katello/pulp_rest] [I] RestClient.post " [ https://satellite.tresgeek.org/pulp/api/v2/repositories/search/ | https://satellite.tresgeek.org/pulp/api/v2/repositories/search/ ] “, “{“criteria”:{“filters”:{“id”:{”$in”:[]}}}}", “Accept”=>"/; q=0.5, application/xml", “Accept-Encoding”=>“gzip, deflate”, “Content-Length”=>“42”, “accept”=>“application/json”, “content_type”=>“application/json”

\n# => 404 NotFound | application/json 36 bytes

2016-12-16 14:54:31 5c1b2060 [app] [I] Completed 500 Internal Server Error in 129ms (ActiveRecord: 7.6ms)
2016-12-16 14:54:31 5c1b2060 [app] [F]

RestClient::ResourceNotFound (404 Resource Not Found):
katello (3.2.1.1) app/models/katello/glue/pulp/repos.rb:53:in prepopulate!' katello (3.2.1.1) app/helpers/katello/sync_management_helper.rb:38:incollect_repos’
katello (3.2.1.1) app/controllers/katello/sync_management_controller.rb:27:in index' app/controllers/concerns/application_shared.rb:14:inset_timezone’
lib/middleware/catch_json_parse_errors.rb:9:in call' lib/middleware/tagged_logging.rb:18:incall’

2016-12-16 14:54:31 5c1b2060 [app] [I] Started GET “/favicon.ico” for 192.168.16.133 at 2016-12-16 14:54:31 -0600
2016-12-16 14:54:31 5c1b2060 [app] [F]

ActionController::RoutingError (No route matches [GET] “/favicon.ico”):
lib/middleware/tagged_logging.rb:18:in `call’

Here’s my foreman-installer line:

foreman-installer \
–scenario katello \
–enable-foreman-plugin-bootdisk \
–enable-foreman-plugin-discovery \
–enable-foreman-plugin-hooks \
–enable-foreman-plugin-openscap \
–enable-foreman-plugin-remote-execution \
–enable-foreman-plugin-templates \
–enable-foreman-proxy-plugin-openscap \
–enable-foreman-proxy-plugin-remote-execution-ssh \
–certs-city ‘My City’ \
–certs-org ‘My Org’ \
–certs-org-unit Katello \
–certs-state Mystate \
–foreman-admin-email [ mailto:admin@email.com | admin@email.com ] \
–foreman-admin-password foobar \
–foreman-configure-epel-repo false \
–foreman-configure-scl-repo false \
–foreman-email-delivery-method sendmail \
–foreman-initial-location Lab \
–foreman-initial-organization ‘My Org’ \
–foreman-ipa-authentication true \
–foreman-puppetrun true \
–foreman-plugin-discovery-install-images true \
–foreman-proxy-manage-puppet-group true \
–foreman-proxy-manage-sudoersd true \
–foreman-proxy-puppetrun-provider ssh \
–foreman-proxy-realm true \
–foreman-proxy-realm-principal [ mailto:realm-proxy@DOMAIN.ORG | realm-proxy@DOMAIN.ORG ] \
–foreman-proxy-templates true \
–foreman-proxy-tftp true \
–foreman-proxy-plugin-openscap-configure-openscap-repo \


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [ mailto:foreman-users%2Bunsubscribe@googlegroups.com | foreman-users+unsubscribe@googlegroups.com ] .
To post to this group, send email to [ mailto:foreman-users@googlegroups.com | foreman-users@googlegroups.com ] .
Visit this group at [ https://groups.google.com/group/foreman-users | https://groups.google.com/group/foreman-users ] .
For more options, visit [ https://groups.google.com/d/optout | https://groups.google.com/d/optout ] .


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [ mailto:foreman-users+unsubscribe@googlegroups.com | foreman-users+unsubscribe@googlegroups.com ] .
To post to this group, send email to [ mailto:foreman-users@googlegroups.com | foreman-users@googlegroups.com ] .
Visit this group at [ https://groups.google.com/group/foreman-users | https://groups.google.com/group/foreman-users ] .
For more options, visit [ https://groups.google.com/d/optout | https://groups.google.com/d/optout ] .