Project

General

Profile

Feature #10782

Add global status for hosts

Added by Tomáš Strachota about 4 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Reporting
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

As a support for OpenScap reports and other future types of reports, we need to add a global status to hosts.

Host will have one generic overall status (error, warning, ok) and it's transitions will be caused by other specific statuses. Statuses (e.g. puppet status) will be extracted to separate entity and will be
changed when puppet report is imported (by PuppetReportImporter). This means we need a way to register new report types and importers from plugin (exactly the same we have for facts now). Reports will probably only differ in metrics and their own statuses, therefore we should make metrics optional and mapping to global status should be different per specific status.

User stories:
- As a developer I want to have global host state with developer API allowing me to change it easily.
- As a developer I want to register new host status type and define mapping between it and host global state.
- As a user I want to be able to search based on host global status.
- As a user I want to see the overall host status derived from all report types statuses.


Related issues

Related to Foreman - Feature #4151: Add STI to reports and allow for registering new report typesClosed2014-01-21
Related to Salt - Feature #11699: Use new ConfigurationStatus for Salt report importingClosed2015-09-04
Related to Foreman - Bug #11704: Configuration no report appears as "green" iconClosed2015-09-06
Related to Foreman - Bug #11707: Unmanaged host detail status table is brokenClosed2015-09-07
Related to Discovery - Bug #11708: New status code broke discovery plugin APIClosed2015-09-07
Related to Discovery - Feature #11710: Use global status for DiscoveryNew2015-09-07
Related to Foreman - Bug #11771: Saving host without particular status failsClosed2015-09-10
Related to Foreman - Bug #11834: host status migration is very slowClosed2015-09-15
Related to Foreman - Bug #11835: db migration fail on report statusClosed2015-09-15
Related to OpenSCAP - Feature #11872: Add a compliance status using Foreman 1.10 APIClosed2015-09-17
Related to Foreman - Feature #12213: Support for preferring a particular host status in the global viewNew2015-10-19
Related to Foreman - Bug #13456: Different Icon for Pending changes ?New2016-01-28
Related to Foreman - Bug #13939: API v1 hosts rabl references deprecated puppet_status callClosed2016-02-29
Related to Foreman - Bug #14501: Global status icon does not indicate active or pending configuration statusNew2016-04-06
Related to Foreman - Bug #15213: DHCP conflict detection fails with exception if proxy is unavailableClosed2016-05-27
Related to Foreman - Bug #15362: Global status audit display status numbers instead of labelClosed2016-06-09
Related to Foreman - Refactor #15849: Improve performance of host global status updatesNew2016-07-27
Related to Foreman - Bug #17897: Response of the api to get host status in the apidoc is incorrect with the actualsClosed2017-01-03

Associated revisions

Revision e54016da (diff)
Added by Marek Hulán almost 4 years ago

Fixes #10782 - global host status

Introduce new global host status that is composed of host substatuses.
Each substatus defines a mapping to the global one which can result in
three values
  • OK
  • WARN
  • ERROR

Plugins can add their own substatuses. These are automatically
propagated also to API.

Thanks to Tomas Strachota who wrote the original code.

Revision fcbb4061 (diff)
Added by Marek Hulán over 3 years ago

Refs #10782 - document Foreman statuses

Revision 424e0afe
Added by Dominic Cleal over 3 years ago

Merge pull request #515 from ares/statuses

Refs #10782 - document Foreman statuses

History

#1 Updated by Tomáš Strachota about 4 years ago

  • Related to Feature #4151: Add STI to reports and allow for registering new report types added

#2 Updated by The Foreman Bot about 4 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2580 added
  • Pull request deleted ()

#3 Updated by Dominic Cleal almost 4 years ago

  • Assignee changed from Tomáš Strachota to Marek Hulán
  • Legacy Backlogs Release (now unused) set to 63

#4 Updated by Marek Hulán almost 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#5 Updated by Stephen Benjamin almost 4 years ago

  • Related to Feature #11699: Use new ConfigurationStatus for Salt report importing added

#6 Updated by Ohad Levy almost 4 years ago

  • Related to Bug #11704: Configuration no report appears as "green" icon added

#7 Updated by Lukas Zapletal almost 4 years ago

  • Related to Bug #11707: Unmanaged host detail status table is broken added

#8 Updated by Lukas Zapletal almost 4 years ago

  • Related to Bug #11708: New status code broke discovery plugin API added

#9 Updated by Lukas Zapletal almost 4 years ago

#10 Updated by Dominic Cleal almost 4 years ago

  • Related to Bug #11771: Saving host without particular status fails added

#11 Updated by Ohad Levy almost 4 years ago

  • Related to Bug #11834: host status migration is very slow added

#12 Updated by Ohad Levy almost 4 years ago

  • Related to Bug #11835: db migration fail on report status added

#13 Updated by Marek Hulán almost 4 years ago

  • Related to Feature #11872: Add a compliance status using Foreman 1.10 API added

#14 Updated by Greg Sutcliffe almost 4 years ago

  • Related to Feature #12213: Support for preferring a particular host status in the global view added

#15 Updated by Dominic Cleal over 3 years ago

  • Related to Bug #13456: Different Icon for Pending changes ? added

#16 Updated by Dominic Cleal over 3 years ago

  • Related to Bug #13939: API v1 hosts rabl references deprecated puppet_status call added

#17 Updated by Dominic Cleal over 3 years ago

  • Related to Bug #14501: Global status icon does not indicate active or pending configuration status added

#18 Updated by Marek Hulán about 3 years ago

  • Related to Bug #15213: DHCP conflict detection fails with exception if proxy is unavailable added

#19 Updated by Marek Hulán about 3 years ago

  • Related to Bug #15362: Global status audit display status numbers instead of label added

#20 Updated by Tomer Brisker about 3 years ago

  • Related to Refactor #15849: Improve performance of host global status updates added

#21 Updated by Marek Hulán over 2 years ago

  • Related to Bug #17897: Response of the api to get host status in the apidoc is incorrect with the actuals added

Also available in: Atom PDF