Bug 747216

Summary: Client version output
Product: [Community] PressGang CCMS Reporter: Joshua Wulf <jwulf>
Component: CSProcessorAssignee: Lee Newson <lnewson>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.xCC: jwulf, lcarlon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-22 17:28:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Joshua Wulf 2011-10-19 05:57:42 UTC
Can we get the client to output its version, and the webservice version, whenever it is run.


Here is an example of zanata client output:


[jwulf@gaura Zanata_Quickstart]$ zanata push
Loading zanata project config from: /home/jwulf/Work/Zanata/Zanata topicized/Zanata_Quickstart/zanata.xml
Loading zanata user config from: /home/jwulf/.config/zanata.ini
zanata server: http://zanata-excalibur.lab.eng.bne.redhat.com:8080/
zanata python client version: 1.3.1
error: Can not retrieve the server version, server may not support the version service
error: Please specify username and apikey in zanata.ini or with '--username' and '--apikey' options

The client outputs the client version, and returns the server version when it can get it.

This makes troubleshooting and debugging a lot easier.

At the moment there is no way to tell what version of the client someone is running.

Comment 1 Lee Newson 2011-10-19 23:12:22 UTC
Are you using the build from email sent containing skynet client build 7? (http://turkinator.eng.bne.redhat.com/client-build7/skynet.jar) As it displays the build on the first line.

This is the output from running the build in that email.

[lee@dhcp-1-77 Downloads]$ skynet push -cn test.txt
Skynet client build 7
ERROR: Cannot resolve the host address!


I've changed it a bit now to match more so the zanata output. The output is below:
[lee@dhcp-1-77 Downloads]$ skynet push -cn test.txt
Skynet client version: 7.0
Loading configuration from /home/lee/.config/skynet.ini
ERROR: Cannot retrieve the server version as the server address can't be resolved.
ERROR: Cannot resolve the server address!

And when the server is actually running:
[lee@dhcp-1-77 Downloads]$ skynet push -cn test.txt
Skynet client version: 7.0
Loading configuration from /home/lee/.config/skynet.ini
Web Service at http://localhost:8080/ version: 9.0