← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1542430] [NEW] [artifacts] Setting mutable=False for BLOBs lead to exception

 

Public bug reported:

2016-02-05 20:42:01.198 48899 ERROR glance.common.artifacts.loader     stored_object = definitions.BinaryObject(mutable=False)
2016-02-05 20:42:01.198 48899 ERROR glance.common.artifacts.loader   File "/Users/teferi/murano/glance/glance/common/artifacts/definitions.py", line 520, in __init__
2016-02-05 20:42:01.198 48899 ERROR glance.common.artifacts.loader     mutable=False, **kwargs)
2016-02-05 20:42:01.198 48899 ERROR glance.common.artifacts.loader TypeError: __init__() got multiple values for keyword argument 'mutable'

Seems that definitions.BinaryObject should always be mutable=False, but
the error message is misleading. I suggest that this should be a
warning, not an error. mutable=False can be ignored with an error and
mutable=True can lead to an Error, that explains, that it's impossible
to set mutable for BLOB

** Affects: glance
     Importance: Undecided
         Status: New


** Tags: artifacts

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

Title:
  [artifacts] Setting mutable=False for BLOBs lead to exception

Status in Glance:
  New

Bug description:
  2016-02-05 20:42:01.198 48899 ERROR glance.common.artifacts.loader     stored_object = definitions.BinaryObject(mutable=False)
  2016-02-05 20:42:01.198 48899 ERROR glance.common.artifacts.loader   File "/Users/teferi/murano/glance/glance/common/artifacts/definitions.py", line 520, in __init__
  2016-02-05 20:42:01.198 48899 ERROR glance.common.artifacts.loader     mutable=False, **kwargs)
  2016-02-05 20:42:01.198 48899 ERROR glance.common.artifacts.loader TypeError: __init__() got multiple values for keyword argument 'mutable'

  Seems that definitions.BinaryObject should always be mutable=False,
  but the error message is misleading. I suggest that this should be a
  warning, not an error. mutable=False can be ignored with an error and
  mutable=True can lead to an Error, that explains, that it's impossible
  to set mutable for BLOB

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1542430/+subscriptions


Follow ups