Gump
  1. Gump
  2. GUMP-71

Gump Run GUID should use hostname and FQDN

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: Gump2-2.4
    • Fix Version/s: Gump3-alpha-3
    • Component/s: Python-based Gump
    • Labels:
      None

      Description

      The gump run is looks like this
      brutus:brutus-public:20040624 21:00:11

      it should look like
      brutus.apache.org:brutus-public:20040624 21:00:11

        Activity

        Nick Chalko created issue -
        Hide
        Adam Jack added a comment -

        I don't think we can do much more with the code, this becomes a configuration issue (I beleive):

        1. Generate a GUID (or close)
          import md5
          import socket
          m=md5.new()
          self.guid = socket.getfqdn() + ':' + workspace.getName() + ':' + default.datetime
          m.update(self.guid)
          self.hexguid=m.hexdigest().upper()
          log.debug('Run GUID [' + `self.guid` + '] using [' + `self.hexguid` + ']')

        From the manual:

        getfqdn( [name])

        Return a fully qualified domain name for name. If name is omitted or empty, it is interpreted as the local host. To find the fully qualified name, the hostname returned by gethostbyaddr() is checked, then aliases for the host, if available. The first name which includes a period is selected. In case no fully qualified domain name is available, the hostname is returned. New in version 2.0.

        Show
        Adam Jack added a comment - I don't think we can do much more with the code, this becomes a configuration issue (I beleive): Generate a GUID (or close) import md5 import socket m=md5.new() self.guid = socket.getfqdn() + ':' + workspace.getName() + ':' + default.datetime m.update(self.guid) self.hexguid=m.hexdigest().upper() log.debug('Run GUID [' + `self.guid` + '] using [' + `self.hexguid` + '] ') From the manual: getfqdn( [name] ) Return a fully qualified domain name for name. If name is omitted or empty, it is interpreted as the local host. To find the fully qualified name, the hostname returned by gethostbyaddr() is checked, then aliases for the host, if available. The first name which includes a period is selected. In case no fully qualified domain name is available, the hostname is returned. New in version 2.0.
        Leo Simons made changes -
        Field Original Value New Value
        Affects Version/s unspecified [ 10452 ]
        Leo Simons made changes -
        Affects Version/s unspecified [ 10452 ]
        Leo Simons made changes -
        Fix Version/s unspecified [ 10452 ]
        Leo Simons made changes -
        Fix Version/s Gump2 [ 11120 ]
        Fix Version/s unspecified [ 10452 ]
        Leo Simons made changes -
        Affects Version/s Gump2 [ 11120 ]
        Affects Version/s unspecified [ 10452 ]
        Hide
        Leo Simons added a comment -

        in gump3 you can set the hostname using an environment variable which should propagate into information like this (as the dynagump plugin already shows).

        Show
        Leo Simons added a comment - in gump3 you can set the hostname using an environment variable which should propagate into information like this (as the dynagump plugin already shows).
        Leo Simons made changes -
        Fix Version/s Gump3-alpha-3 [ 11140 ]
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s Gump2 [ 11120 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Nick Chalko
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development