Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1506243 - No count method defined for state stopped/planning/pending/scheduled
Summary: No count method defined for state stopped/planning/pending/scheduled
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Satellite Maintain
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Anurag Patel
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: 1496794
TreeView+ depends on / blocked
 
Reported: 2017-10-25 13:28 UTC by Nikhil Kathole
Modified: 2019-04-12 15:04 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-03 12:16:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 22211 0 None None None 2018-01-10 10:16:13 UTC
Foreman Issue Tracker 23102 0 None None None 2018-04-03 12:16:57 UTC

Description Nikhil Kathole 2017-10-25 13:28:31 UTC
Description of problem: We were trying to run foreman-tasks-fetch-tasks-status with foreman-tasks-fetch-tasks-status. But for state stopped/planning/pending/scheduled (states other than pending/running), it shows error in foreman-maintain.log as "No count method defined for state".


Version-Release number of selected component (if applicable): foreman-maintain snap 3

 # rpm -q rubygem-foreman_maintain
rubygem-foreman_maintain-0.0.10-1.el7sat.noarch


How reproducible:always


Steps to Reproduce:
1.# foreman-maintain advanced procedure  run foreman-tasks-fetch-tasks-status --state stopped

Actual results:

# foreman-maintain advanced procedure  run foreman-tasks-fetch-tasks-status --state stopped
Running ForemanMaintain::Scenario
================================================================================
Fetch tasks status and wait till they finish:
/ Try checking status of stopped task(s)                              [OK]
--------------------------------------------------------------------------------

But foreman-maintain.log shows

I, [2017-10-25 09:20:27-0400 #25041]  INFO -- : Running foreman-maintain command with arguments [["advanced", "procedure", "run", "foreman-tasks-fetch-tasks-status", "--state", "stopped"]]
E, [2017-10-25 09:20:27-0400 #25041] ERROR -- : No count method defined for state stopped.
E, [2017-10-25 09:20:27-0400 #25041] ERROR -- : Unsupported for state stopped.
I, [2017-10-25 09:20:27-0400 #25041]  INFO -- : foreman-maintain command finished with

Expected results:foreman-tasks-fetch-tasks-status should work for all tasks


Additional info: foreman-maintain advanced procedure  run foreman-tasks-fetch-tasks-status --state pending/running works.

Comment 1 Brad Buckingham 2017-10-27 17:09:10 UTC
Anurag, what are your thoughts on this one?  Should it be targeted to 0.5 or 1.0?  Thanks!

Comment 3 Anurag Patel 2018-04-03 12:16:57 UTC
We are going to hide foreman-tasks-fetch-tasks-status procedure ( http://projects.theforeman.org/issues/23102 ). So, marking this as NOTABUG.


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