Created attachment 897620 [details] javascript error and no spinner Description of problem: Clicking the Synchronize Now button for a custom repository in the Sync Status page doesn't give the user any status or even the progress bar that used to show up. Instead, there's no notification that something happened and there's a javascript error seen via Firebug: TypeError: e is null https://SERVER/assets/application-852248f822f833239bbf953e758c276b.js Line 16 looks like the sync task was started however from the following lines in prodution.log: ==> /var/log/foreman/production.log <== Processing by Katello::SyncManagementController#sync as JS Parameters: {"utf8"=>"✓", "authenticity_token"=>"3TWya0z4SkWvopCi+85Og1dbn8WWO0l8+kec67Qf9PI=", "sync_status_url"=>"", "repoids"=>["2"], "commit"=>"Synchronize Now"} Completed 200 OK in 655ms (Views: 0.2ms | ActiveRecord: 19.1ms) Processing by Katello::SyncManagementController#sync as JS Parameters: {"utf8"=>"✓", "authenticity_token"=>"3TWya0z4SkWvopCi+85Og1dbn8WWO0l8+kec67Qf9PI=", "sync_status_url"=>"", "repoids"=>["2"]} Completed 200 OK in 1288ms (Views: 0.2ms | ActiveRecord: 57.8ms) Processing by Katello::Api::V2::RepositoriesController#index as JSON Parameters: {"enabled"=>"true", "library"=>"true", "organization_id"=>"1", "page"=>"1", "product_id"=>"2", "search"=>"", "api_version"=>"v2"} Processing by Katello::Api::V2::ProductsController#show as JSON Parameters: {"api_version"=>"v2", "id"=>"2"} Version-Release number of selected component (if applicable): * apr-util-ldap-1.3.9-3.el6_0.1.x86_64 * candlepin-0.9.7-1.el6_5.noarch * candlepin-scl-1-5.el6_4.noarch * candlepin-scl-quartz-2.1.5-5.el6_4.noarch * candlepin-scl-rhino-1.7R3-1.el6_4.noarch * candlepin-scl-runtime-1-5.el6_4.noarch * candlepin-selinux-0.9.7-1.el6_5.noarch * candlepin-tomcat6-0.9.7-1.el6_5.noarch * elasticsearch-0.90.10-4.el6sat.noarch * foreman-1.6.0.8-1.el6sat.noarch * foreman-compute-1.6.0.8-1.el6sat.noarch * foreman-gce-1.6.0.8-1.el6sat.noarch * foreman-libvirt-1.6.0.8-1.el6sat.noarch * foreman-ovirt-1.6.0.8-1.el6sat.noarch * foreman-postgresql-1.6.0.8-1.el6sat.noarch * foreman-proxy-1.6.0.5-1.el6sat.noarch * foreman-selinux-1.6.0-2.el6sat.noarch * foreman-vmware-1.6.0.8-1.el6sat.noarch * katello-1.5.0-24.el6sat.noarch * katello-ca-1.0-1.noarch * katello-certs-tools-1.5.5-1.el6sat.noarch * katello-installer-0.0.40-1.el6sat.noarch * openldap-2.4.23-32.el6_4.1.x86_64 * pulp-katello-plugins-0.3-1.el6sat.noarch * pulp-nodes-common-2.4.0-0.16.beta.el6sat.noarch * pulp-nodes-parent-2.4.0-0.16.beta.el6sat.noarch * pulp-puppet-plugins-2.4.0-0.16.beta.el6sat.noarch * pulp-puppet-tools-2.4.0-0.16.beta.el6sat.noarch * pulp-rpm-plugins-2.4.0-0.16.beta.el6sat.noarch * pulp-selinux-2.4.0-0.16.beta.el6sat.noarch * pulp-server-2.4.0-0.16.beta.el6sat.noarch * python-ldap-2.3.10-1.el6.x86_64 * ruby193-rubygem-ldap_fluff-0.2.2-2.el6sat.noarch * ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch * ruby193-rubygem-runcible-1.1.0-2.el6sat.noarch * rubygem-hammer_cli-0.1.0-13.el6sat.noarch * rubygem-hammer_cli_foreman-0.1.0-13.el6sat.noarch * rubygem-hammer_cli_foreman_tasks-0.0.2-6.el6sat.noarch * rubygem-hammer_cli_katello-0.0.3-24.el6sat.noarch How reproducible: Steps to Reproduce: 1. Create a custom yum repository 2. Go to Sync Status page and click the Synchronize Now button 3. Actual results: Expected results: Additional info:
Created attachment 897621 [details] zero bytes Also, reloading the Sync Status page shows that the sync process was started but the Size column shows "0 Bytes"
Created attachment 897622 [details] Repository page view The Repository page however shows that 41 packages were synced.
It occurs in chrome as well.
I can still reproduce this bz with sat6 beta snap8 (Satellite-6.0.3-RHEL-6-20140604.0) As per description and comments, I can see 3 issues with this bz related to sync status page: 1. Sync Status page doesn't give the user any status or even the progress bar that used to show up 2. there's no notification that something happened 3. reloading the Sync Status page shows that the sync process was started but the Size column shows "0 Bytes" So with snap8, issue 2 and 3 are straightforward reproducible. But issue 1 is partially resolved. I can see the progress via progress bar (see snapshot, sync bar completes) but it completes before sync completion and then again progress bar got empty.
Created attachment 907098 [details] sync status bar almost completes,
Created attachment 907099 [details] sync status bar once almost completes, again it got empty, however sync is on-going
Firebug throws errors and production.log has : AbstractController::ActionNotFound (The action 'get_new' could not be found for NoticesController): lib/middleware/catch_json_parse_errors.rb:9:in `call' Looks like its still missing notifications.
Created attachment 907105 [details] on reloading repo size shows 'zero'
We believe this is working. Please retest.
Verified as per Comment 11 above. There is another bug https://bugzilla.redhat.com/show_bug.cgi?id=1102376 to track the pending issue of zero bytes (packages) Version Tested: * apr-util-ldap-1.3.9-3.el6_0.1.x86_64 * candlepin-0.9.19-1.el6_5.noarch * candlepin-scl-1-5.el6_4.noarch * candlepin-scl-quartz-2.1.5-5.el6_4.noarch * candlepin-scl-rhino-1.7R3-1.el6_4.noarch * candlepin-scl-runtime-1-5.el6_4.noarch * candlepin-selinux-0.9.19-1.el6_5.noarch * candlepin-tomcat6-0.9.19-1.el6_5.noarch * elasticsearch-0.90.10-4.el6sat.noarch * foreman-1.6.0.17-1.el6sat.noarch * foreman-compute-1.6.0.17-1.el6sat.noarch * foreman-gce-1.6.0.17-1.el6sat.noarch * foreman-libvirt-1.6.0.17-1.el6sat.noarch * foreman-ovirt-1.6.0.17-1.el6sat.noarch * foreman-postgresql-1.6.0.17-1.el6sat.noarch * foreman-proxy-1.6.0.7-1.el6sat.noarch * foreman-selinux-1.6.0-4.el6sat.noarch * foreman-vmware-1.6.0.17-1.el6sat.noarch * katello-1.5.0-26.el6sat.noarch * katello-ca-1.0-1.noarch * katello-certs-tools-1.5.5-1.el6sat.noarch * katello-installer-0.0.48-1.el6sat.noarch * openldap-2.4.23-32.el6_4.1.x86_64 * pulp-katello-0.3-3.el6sat.noarch * pulp-nodes-common-2.4.0-0.20.beta.el6sat.noarch * pulp-nodes-parent-2.4.0-0.20.beta.el6sat.noarch * pulp-puppet-plugins-2.4.0-0.20.beta.el6sat.noarch * pulp-puppet-tools-2.4.0-0.20.beta.el6sat.noarch * pulp-rpm-plugins-2.4.0-0.20.beta.el6sat.noarch * pulp-selinux-2.4.0-0.20.beta.el6sat.noarch * pulp-server-2.4.0-0.20.beta.el6sat.noarch * python-ldap-2.3.10-1.el6.x86_64 * ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch * ruby193-rubygem-runcible-1.1.0-2.el6sat.noarch
This was delivered with 6.0.3, which is the Satellite 6 Beta.