Project

General

Profile

Actions

Bug #31521

closed

make /api/statuses output more structured data about plugins

Added by Evgeni Golov about 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

currently, the data returned about plugins is a string, which makes it really cumbersome to look up information (like versions) of a plugin:

{"results":{"foreman":{"version":"2.2.1","api":{"version":"v2"},"plugins":["Foreman plugin: foreman-tasks, 3.0.1, Ivan Nečas, The goal of this plugin is to unify the way of showing task statuses across the Foreman instance.\nIt defines Task model for keeping the information about the tasks and Lock for assigning the tasks\nto resources. The locking allows dealing with preventing multiple colliding tasks to be run on the\nsame resource. It also optionally provides Dynflow infrastructure for using it for managing the tasks.\n","Foreman plugin: foreman_ansible, 6.0.0, Daniel Lobato Garcia, Ansible integration with Foreman","Foreman plugin: foreman_remote_execution, 4.1.0, Foreman Remote Execution team, A plugin bringing remote execution to the Foreman, completing the config management functionality with remote management functionality.","Foreman plugin: katello, 3.17.0, N/A, Katello adds Content and Subscription Management to Foreman. For this it relies on Candlepin and Pulp."],"smart_proxies":[{"name":"centos7-katello-3-17.yatsu.example.com","status":"ok","duration_ms":"410","version":"2.2.1","features":{"pulp":"2.1.0","pulpcore":"2.1.0","puppetca":"2.2.1","puppet":"2.2.1","logs":"2.2.1"},"failed_features":{}}],"compute_resources":[],"database":{"active":true,"duration_ms":"0"}},"katello":{"version":"3.17.0","timeUTC":"2020-12-16 11:51:21 UTC","services":{"candlepin":{"status":"ok","duration_ms":"87"},"candlepin_auth":{"status":"ok","duration_ms":"56"},"foreman_tasks":{"status":"ok","duration_ms":"10"},"katello_events":{"status":"ok","message":"0 Processed, 0 Failed","duration_ms":"0"},"candlepin_events":{"status":"ok","message":"0 Processed, 0 Failed","duration_ms":"0"},"pulp3":{"status":"ok","duration_ms":"132"},"pulp":{"status":"ok","duration_ms":"224"},"pulp_auth":{"status":"ok","duration_ms":"129"}},"status":"ok"}}}

I'd prefer if the plugin information would be a hash with information.


Related issues 2 (1 open1 closed)

Related to Foreman - Tracker #27680: API bugs that need workarounds in foreman-ansible-modulesNew

Actions
Related to Hammer CLI - Feature #31570: support new structured plugin data in statuses apiClosedEvgeni GolovActions
Actions #1

Updated by Evgeni Golov about 4 years ago

  • Related to Tracker #27680: API bugs that need workarounds in foreman-ansible-modules added
Actions #2

Updated by The Foreman Bot about 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Evgeni Golov
  • Pull request https://github.com/theforeman/foreman/pull/8207 added
Actions #3

Updated by Evgeni Golov almost 4 years ago

  • Related to Feature #31570: support new structured plugin data in statuses api added
Actions #4

Updated by The Foreman Bot almost 4 years ago

  • Fixed in Releases 2.4.0 added
Actions #5

Updated by Evgeni Golov almost 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF