You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lothiraldan opened this issue
Dec 16, 2014
· 5 comments
Assignees
Labels
Bugbroken, incorrect, or confusing behaviorP3Priority 3PlatformRelates to OS, containers, platform-based utilities like FS, system based appsReturnersseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work aroundstale
So my bet here is that the different master job caches, the data is stored and retrieved differently. So I think it's actually a bug in the returners themselves, not the runner retrieving the data.
Yeah I don't think the runner is bugged, it basically return the output given by the master job cache. And the API just return the output of the job runner.
I doesn't cause a problem until you start using the API, it's impossible to provide a tool using the salt-api if the format change depending on the master job cache used.
I agree with what you're saying, though we may want to consider just making either a utility function or a wrapper so that returner authors don't have to reimplement the same return structure by hand each time.
There is no progress with this issue?
That issue is prevent to integrate the saltstack with 3th services, is very important to find the way for identical format return/save for returners (job_cache), may be start from (ext | master)_job_cache which introduced in 2014.7.
Thanks.
basepi
added
the
Platform
Relates to OS, containers, platform-based utilities like FS, system based apps
label
Jul 28, 2015
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
Bugbroken, incorrect, or confusing behaviorP3Priority 3PlatformRelates to OS, containers, platform-based utilities like FS, system based appsReturnersseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work aroundstale
I'm playing with salt-api and custom returner / master job cache and I have noticed that the runner jobs.list_jobs output's format is inconsistent.
With the default return cache (https://github.com/saltstack/salt/blob/develop/salt/returners/local_cache.py this one I think), the return format is this one:
With the mongo_future_return returner (https://github.com/saltstack/salt/blob/develop/salt/returners/mongo_future_return.py#L198), the output is this one:
I've checked some other returners, some return list (https://github.com/saltstack/salt/blob/develop/salt/returners/memcache_return.py) and some others return dict (https://github.com/saltstack/salt/blob/develop/salt/returners/postgres_local_cache.py#L316).
What is the right format? I'm working on saltpad (https://github.com/tinyclues/saltpad) and prefer to not support multiple format.
The text was updated successfully, but these errors were encountered: