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:
Created attachment 552123 [details] Applied sync plan and selected product is not working.
Created attachment 552124 [details] Created sync plan
IF a sync plan is not selected do you also want the message changed in terms of wording?
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.
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 ;)
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.
Created attachment 555478 [details] sync plan is applied on selected product