Print version on startup

Bug #1449092 reported by Stefan Paetow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Moonshot Trust-Router
Fix Released
Wishlist
Jennifer Richards

Bug Description

This is more a feature request from one of our users:

Please print the version of the binary when it starts up, i.e. trust_router:

trust_router v1.5.1 starting
tr_find_config: Config file found (trusts.cfg).
tr_find_config: Config file found (main.cfg).
:
:

And tidc:

TIDC Client v1.5.1:
Server = trustrouter.domain, rp_realm = this.realm, target_realm = that.realm, community = apc.community.realm, port = 12309
gss_connect: Connecting to host 'trustrouter.domain' on port 12309
:
:

And tids:

tids_listen: TID Server v1.5.1 listening on port 12309
Trust Path Query Server starting on host this.host.realm:12309.
:
:

Alternatively, for TIDC/TIDS, print the version number when just 'tidc' or 'tids' is executed:

TIDS v1.5.1 Usage: tids ...
TIDC v1.5.1 Usage: tidc ...

The logging to output (and by default to syslog) would be lovely... then at least we know what version we're running at the time of startup.

Thanks very much :-)

Revision history for this message
Margaret Cullen (mrw42) wrote : Re: [Bug 1449092] [NEW] Print version on startup

Hi Stefan,

This would be a useful improvement, and we'll put it on the maintenance wish list for an upcoming release.

Margaret

On Apr 27, 2015, at 11:15 AM, Stefan Paetow <email address hidden> wrote:

> Public bug reported:
>
> This is more a feature request from one of our users:
>
> Please print the version of the binary when it starts up, i.e.
> trust_router:
>
> trust_router v1.5.1 starting
> tr_find_config: Config file found (trusts.cfg).
> tr_find_config: Config file found (main.cfg).
> :
> :
>
> And tidc:
>
> TIDC Client v1.5.1:
> Server = trustrouter.domain, rp_realm = this.realm, target_realm = that.realm, community = apc.community.realm, port = 12309
> gss_connect: Connecting to host 'trustrouter.domain' on port 12309
> :
> :
>
> And tids:
>
> tids_listen: TID Server v1.5.1 listening on port 12309
> Trust Path Query Server starting on host this.host.realm:12309.
> :
> :
>
> Alternatively, for TIDC/TIDS, print the version number when just 'tidc'
> or 'tids' is executed:
>
> TIDS v1.5.1 Usage: tids ...
> TIDC v1.5.1 Usage: tidc ...
>
> The logging to output (and by default to syslog) would be lovely... then
> at least we know what version we're running at the time of startup.
>
> Thanks very much :-)
>
> ** Affects: moonshot-tr
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of Moonshot
> Drivers, which is subscribed to Moonshot Trust-Router.
> Matching subscriptions: trust_router_drrivers
> https://bugs.launchpad.net/bugs/1449092
>
> Title:
> Print version on startup
>
> Status in Trust Router:
> New
>
> Bug description:
> This is more a feature request from one of our users:
>
> Please print the version of the binary when it starts up, i.e.
> trust_router:
>
> trust_router v1.5.1 starting
> tr_find_config: Config file found (trusts.cfg).
> tr_find_config: Config file found (main.cfg).
> :
> :
>
> And tidc:
>
> TIDC Client v1.5.1:
> Server = trustrouter.domain, rp_realm = this.realm, target_realm = that.realm, community = apc.community.realm, port = 12309
> gss_connect: Connecting to host 'trustrouter.domain' on port 12309
> :
> :
>
> And tids:
>
> tids_listen: TID Server v1.5.1 listening on port 12309
> Trust Path Query Server starting on host this.host.realm:12309.
> :
> :
>
> Alternatively, for TIDC/TIDS, print the version number when just
> 'tidc' or 'tids' is executed:
>
> TIDS v1.5.1 Usage: tids ...
> TIDC v1.5.1 Usage: tidc ...
>
> The logging to output (and by default to syslog) would be lovely...
> then at least we know what version we're running at the time of
> startup.
>
> Thanks very much :-)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/moonshot-tr/+bug/1449092/+subscriptions

Revision history for this message
Sam Hartman (hartmans) wrote :

>>>>> "Margaret" == Margaret Wasserman <email address hidden> writes:

    Margaret> Hi Stefan, This would be a useful improvement, and we'll
    Margaret> put it on the maintenance wish list for an upcoming
    Margaret> release.

When implementing this, the build system will define macros for the
version as it knows it. It would also be kind of neat to during the
build see if git rev-parse --short HEAD succeeds. If so, include that
in the version string. It will succeed for builds from a git tree but
not say for Centos builds from the results of make dist.

Margaret Cullen (mrw42)
Changed in moonshot-tr:
importance: Undecided → Wishlist
status: New → Confirmed
assignee: nobody → Jennifer Richards (jennifer-k)
Revision history for this message
Jennifer Richards (jennifer-k) wrote :

Fixed by commit #196707b. Will be included in next relase.

Prints version at startup of trust_router, tids, and tidc. These also accept --version or -v to print this information and exit. The version number comes from the PACKAGE_VERSION symbol from the build system. I did not tackle pulling in git information.

Changed in moonshot-tr:
status: Confirmed → Fix Committed
Changed in moonshot-tr:
milestone: none → 3.0
Changed in moonshot-tr:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.