Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Command 'status job=cutejob returns error' #9

Open
IvanBayan opened this issue Nov 22, 2017 · 2 comments
Open

Command 'status job=cutejob returns error' #9

IvanBayan opened this issue Nov 22, 2017 · 2 comments

Comments

@IvanBayan
Copy link

Looks like i found another bug, there is output from bconsole:

*status job=oracle_weekly_ow-backup03
Job "oracle_weekly_ow-backup03" is not running.

Python:

In [136]: console.call("status job=oracle_weekly_ow-backup03")
Out[136]: 
{u'error': {u'code': 1,
  u'data': {u'messages': {u'error': [u'Job "oracle_weekly_ow-backup03" is not running.\n']},
   u'result': {}},
  u'message': u'failed'},
 u'id': None,
 u'jsonrpc': u'2.0'}

Am i wrong and it's expected behavior?

PS
I found another strange behavior, bconsole:

*.status dir current
1000 OK .status

Python:

In [137]: console.call(".status dir current")
Out[137]: {}

Should i open another one issue for that?

@joergsteffens
Copy link
Member

Well, you already opened an additional issue.

In principle it is the same as stated in #8.

Not all commands support JSON output. You can access them by bareos.bsock.DirectorConsole, but not with bareos.bsock.DirectorConsoleJson.

Our reasoning has been, that the information provides by status dir can also, and even better retrieved by list job=oracle_weekly_ow-backup03.

Status information from daemons other then the Director are hard to retrieve, has the communication between daemon is not handled as JSON.

@IvanBayan
Copy link
Author

IvanBayan commented Nov 23, 2017

Sorry if i misunderstood you, but status dir and list job=... completely different commands.
I want to use status dir to check is director is running normally or not, same time i use list job=... to retrieve information about job.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants