Bug 773314

Summary: Misleading error message and unable to apply sync plan on selected product
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: WebUIAssignee: Shannon Hughes <shughes>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: mmccune
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: 2012-08-22 18:18:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 747354    
Attachments:
Description Flags
Applied sync plan and selected product is not working.
none
Created sync plan
none
sync plan is applied on selected product none

Description Sachin Ghai 2012-01-11 13:52:13 UTC
Description of problem:
I created a repo and synced it. Later I created a sync plan ( daily_sync) and applied on selected product. Everytime I'm getting :

There must be at least one plan selected

production.log says:


Started POST "/katello//sync_schedules/apply" for 10.65.193.48 at Wed Jan 11 19:05:16 +0530 2012
  Processing by SyncSchedulesController#apply as HTML
  Parameters: {"data"=>"{\"products\":[\"2\"],\"plans\":[\"1\"]}", "authenticity_token"=>"VbkHdXQH7Zp9YvPMQQCPBqZyT/h/GY8PmWzBWtJfoHI=", "utf8"=>"✓"}
Redirected to https://dhcp201-187.englab.pnq.redhat.com/katello/sync_schedules/index
Completed 302 Found in 124ms


Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. Create a product/repo
2. sync it
3. Create a sync plan
4. apply on product created at step1.  

Actual results:
Message pop ups : "There must be at least one plan selected"

However sync plan and product both are selected
Expected results:
Sync plan should be applied on selected product

Additional info:

Comment 1 Sachin Ghai 2012-01-11 13:53:38 UTC
Created attachment 552123 [details]
Applied sync plan and selected product is not working.

Comment 2 Sachin Ghai 2012-01-11 13:55:01 UTC
Created attachment 552124 [details]
Created sync plan

Comment 3 Shannon Hughes 2012-01-11 16:22:15 UTC
IF a sync plan is not selected do you also want the message changed in terms of wording?

Comment 4 Sachin Ghai 2012-01-11 17:41:57 UTC
If sync plan is not selected and then this message makes sense.. 
However in my case I've applied the sync plan on selected product and still got this message, so in this case this message shouldn't be appeared.

Comment 5 Shannon Hughes 2012-01-11 17:48:24 UTC
05cd856..ae61307  master -> master

accidentally misspelled 'empty' in my exception handler code that I added...so it was getting caught and hiding the syntax error i introduced ;)

Comment 6 Sachin Ghai 2012-01-16 11:19:07 UTC
Re-verified with latest katello build:

[root@dhcp201-176 yum.repos.d]# rpm -qa | grep -ie katello-0 -ie pulp-0
katello-0.1.178-1.el6.noarch
katello-glue-pulp-0.1.178-1.el6.noarch
pulp-0.0.257-1.el6.noarch


The reported issue has been resolved. I can apply the sync plan on selected product. Please see the attachment in next comment for verification results.

Comment 7 Sachin Ghai 2012-01-16 11:19:59 UTC
Created attachment 555478 [details]
sync plan is applied on selected product