← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1482744] Re: HealthcheckResult class source is dumped in glance logs on every dsvm test run

 

** Changed in: oslo.middleware
       Status: In Progress => Fix Committed

** Changed in: glance
       Status: Confirmed => Invalid

** Changed in: oslo.middleware
   Importance: Undecided => Low

** No longer affects: glance

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1482744

Title:
  HealthcheckResult class source is dumped in glance logs on every dsvm
  test run

Status in oslo.middleware:
  Fix Committed

Bug description:
  This class source is dumped in a devstack run in both g-api and g-reg
  logs:

  http://logs.openstack.org/00/209200/11/check/gate-neutron-lbaasv1
  -dsvm-api/e205cb7/logs/screen-g-api.txt.gz#_2015-08-07_18_47_55_313

  class HealthcheckResult(tuple):
      'HealthcheckResult(available, reason)'

      __slots__ = ()

      _fields = ('available', 'reason')

      def __new__(_cls, available, reason):
          'Create new instance of HealthcheckResult(available, reason)'
          return _tuple.__new__(_cls, (available, reason))

      @classmethod
      def _make(cls, iterable, new=tuple.__new__, len=len):
          'Make a new HealthcheckResult object from a sequence or iterable'
          result = new(cls, iterable)
          if len(result) != 2:
              raise TypeError('Expected 2 arguments, got %d' % len(result))
          return result

      def __repr__(self):
          'Return a nicely formatted representation string'
          return 'HealthcheckResult(available=%r, reason=%r)' % self

      def _asdict(self):
          'Return a new OrderedDict which maps field names to their values'
          return OrderedDict(zip(self._fields, self))

      def _replace(_self, **kwds):
          'Return a new HealthcheckResult object replacing specified fields with new values'
          result = _self._make(map(kwds.pop, ('available', 'reason'), _self))
          if kwds:
              raise ValueError('Got unexpected field names: %r' % kwds.keys())
          return result

      def __getnewargs__(self):
          'Return self as a plain tuple.  Used by copy and pickle.'
          return tuple(self)

      __dict__ = _property(_asdict)

      def __getstate__(self):
          'Exclude the OrderedDict from pickling'
          pass

      available = _property(_itemgetter(0), doc='Alias for field number
  0')

      reason = _property(_itemgetter(1), doc='Alias for field number 1')

To manage notifications about this bug go to:
https://bugs.launchpad.net/oslo.middleware/+bug/1482744/+subscriptions


References