Public bug reported:

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')

** Affects: glance
     Importance: Low
         Status: Confirmed

-- 
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 Glance:
  Confirmed

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/glance/+bug/1482744/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to