Bug 1099523

Summary: Synchronize Now button from Sync Status page is not working
Product: Red Hat Satellite Reporter: Og Maciel <omaciel>
Component: Content ManagementAssignee: Justin Sherrill <jsherril>
Status: CLOSED CURRENTRELEASE QA Contact: sthirugn <sthirugn>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.3CC: bbuckingham, bkearney, jmontleo, jsherril, sghai, sthirugn
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/5864
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-02 14:07:27 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 Flags
javascript error and no spinner
none
zero bytes
none
Repository page view
none
sync status bar almost completes,
none
sync status bar once almost completes, again it got empty, however sync is on-going
none
on reloading repo size shows 'zero' none

Description Og Maciel 2014-05-20 14:16:24 UTC
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:

Comment 1 Og Maciel 2014-05-20 14:17:07 UTC
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"

Comment 2 Og Maciel 2014-05-20 14:18:38 UTC
Created attachment 897622 [details]
Repository page view

The Repository page however shows that 41 packages were synced.

Comment 3 Justin Sherrill 2014-05-20 14:20:33 UTC
It occurs in chrome as well.

Comment 6 Sachin Ghai 2014-06-10 09:14:38 UTC
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.

Comment 7 Sachin Ghai 2014-06-10 09:15:53 UTC
Created attachment 907098 [details]
sync status bar almost completes,

Comment 8 Sachin Ghai 2014-06-10 09:16:57 UTC
Created attachment 907099 [details]
sync status bar once almost completes, again it got empty, however sync is on-going

Comment 9 Sachin Ghai 2014-06-10 09:18:31 UTC
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.

Comment 10 Sachin Ghai 2014-06-10 09:31:20 UTC
Created attachment 907105 [details]
on reloading repo size shows 'zero'

Comment 13 Bryan Kearney 2014-06-16 17:50:32 UTC
We believe this is working. Please retest.

Comment 14 sthirugn@redhat.com 2014-06-17 13:13:03 UTC
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

Comment 15 Bryan Kearney 2014-07-02 14:07:27 UTC
This was delivered with 6.0.3, which is the Satellite 6 Beta.