Bug 1099523 - Synchronize Now button from Sync Status page is not working
Summary: Synchronize Now button from Sync Status page is not working
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.0.3
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Justin Sherrill
QA Contact: sthirugn@redhat.com
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-20 14:16 UTC by Og Maciel
Modified: 2019-09-26 18:15 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-02 14:07:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
javascript error and no spinner (102.78 KB, image/png)
2014-05-20 14:16 UTC, Og Maciel
no flags Details
zero bytes (56.03 KB, image/png)
2014-05-20 14:17 UTC, Og Maciel
no flags Details
Repository page view (93.61 KB, image/png)
2014-05-20 14:18 UTC, Og Maciel
no flags Details
sync status bar almost completes, (63.57 KB, image/png)
2014-06-10 09:15 UTC, Sachin Ghai
no flags Details
sync status bar once almost completes, again it got empty, however sync is on-going (78.95 KB, image/png)
2014-06-10 09:16 UTC, Sachin Ghai
no flags Details
on reloading repo size shows 'zero' (38.30 KB, image/png)
2014-06-10 09:31 UTC, Sachin Ghai
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 5864 0 None None None 2016-04-22 16:10:34 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.