I ran into this problem as well trying to set the metadata on a snapshot. I'm using python-cinderclient 1.0.8 on CentOS 6. The metadata does get set despite the error.
>>> print snapshot.id
51c007cc-404d-406a-96ec-95fbbab1de17
>>> cinder.volume_snapshots.set_metadata(snapshot = snapshot, metadata = {"owner": "bla"})
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/site-packages/cinderclient/v1/volume_snapshots.py", line 34, in __repr__
return "<Snapshot: %s>" % self.id
File "/usr/lib/python2.6/site-packages/cinderclient/base.py", line 268, in __getattr__
self.get()
File "/usr/lib/python2.6/site-packages/cinderclient/base.py", line 287, in get
new = self.manager.get(self.id)
File "/usr/lib/python2.6/site-packages/cinderclient/base.py", line 271, in __getattr__
raise AttributeError(k)
AttributeError: id
I ran into this problem as well trying to set the metadata on a snapshot. I'm using python-cinderclient 1.0.8 on CentOS 6. The metadata does get set despite the error.
>>> print snapshot.id 404d-406a- 96ec-95fbbab1de 17 volume_ snapshots. set_metadata( snapshot = snapshot, metadata = {"owner": "bla"}) python2. 6/site- packages/ cinderclient/ v1/volume_ snapshots. py", line 34, in __repr__ python2. 6/site- packages/ cinderclient/ base.py" , line 268, in __getattr__ python2. 6/site- packages/ cinderclient/ base.py" , line 287, in get get(self. id) python2. 6/site- packages/ cinderclient/ base.py" , line 271, in __getattr__
51c007cc-
>>> cinder.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
return "<Snapshot: %s>" % self.id
File "/usr/lib/
self.get()
File "/usr/lib/
new = self.manager.
File "/usr/lib/
raise AttributeError(k)
AttributeError: id