Bug 535613 (RHQ-2290) - need a way to know the version of the CLI
Summary: need a way to know the version of the CLI
Keywords:
Status: CLOSED NEXTRELEASE
Alias: RHQ-2290
Product: RHQ Project
Classification: Other
Component: CLI
Version: unspecified
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: John Mazzitelli
QA Contact:
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard:
Depends On:
Blocks: RHQ-343
TreeView+ depends on / blocked
 
Reported: 2009-08-04 04:38 UTC by John Mazzitelli
Modified: 2009-11-10 21:22 UTC (History)
0 users

Fixed In Version: 1.3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description John Mazzitelli 2009-08-04 04:38:00 UTC
The agent provides version information via the "version" prompt command - and the agent also dumps the short version information on the first line to stdout.

The CLI provides nothing like the above - so users have no way of knowing what version of the CLI they are using. Need to have the CLI dump some version info at startup and the CLI should provide a version commant to dump version information on request.

Comment 1 Jay Shaughnessy 2009-08-04 13:13:00 UTC
We probably also need to perform a version handshake when the CLI connects.  This may need to piggyback on the login call, perhaps Subject info could be added?

Comment 2 John Mazzitelli 2009-08-04 13:20:16 UTC
I would not worry about the handshake just yet - get the version information for the user first. The handshaking was required in the agent because the agent is an autonomous process with (usually) no human at the wheel so we needed a way for the agent to automatically get back on its feet if the server is upgraded (without requiring human intervention) - the agent handshake was required for agent auto-upgrade.

The CLI will not have an auto-upgrade feature, so the cli handshake is not as important as it is with the agent.

Having the CLI provide the user with a version will allow the user to perform their own "manual handshake" to see what version they have and at least tell support what version they have :) so they can verify compatibility.

Also, if a cli handshake does exist, would it fail to connect or could we just have it spit out a warning message, "WARNING: this CLI is an older version and may not operate correctly" but let it continue in case there are pieces that are still compatible with the server.

Comment 3 John Mazzitelli 2009-08-04 14:49:36 UTC
to test, make sure the CLI outputs a version string when it starts.

also confirm the --version option dumps build # and date along with name/version info

Comment 4 Red Hat Bugzilla 2009-11-10 21:01:35 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-2290



Note You need to log in before you can comment on or make changes to this bug.