NotFound is raised when trying to access the stateful property of the container snapshot. pylxd 2.2.6
See original GitHub issueAfter upgrading to pylxd 2.2.6 while accessing the stateful property of the container snapshot object, NotFound error is thrown.
LXC version: 3.0.0
from pylxd import Client
client = Client()
container = client.containers.get('test')
snapshots = container.snapshots.all()
print(snapshots[0].name)
print(snapshots[0].stateful)
web_1 | Traceback (most recent call last):
web_1 | print(snapshots[0].stateful)
web_1 | File "/usr/local/lib/python2.7/dist-packages/pylxd/models/_model.py", line 125, in __getattribute__
web_1 | self.sync()
web_1 | File "/usr/local/lib/python2.7/dist-packages/pylxd/models/_model.py", line 154, in sync
web_1 | response = self.api.get()
web_1 | File "/usr/local/lib/python2.7/dist-packages/pylxd/client.py", line 125, in get
web_1 | self._assert_response(response, stream=kwargs.get('stream', False))
web_1 | File "/usr/local/lib/python2.7/dist-packages/pylxd/client.py", line 90, in _assert_response
web_1 | raise exceptions.NotFound(response)
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Release Canonical Ltd - pylxd documentation
If you want to capture the contents of RAM in the snapshot, you can use stateful=True. .. note:: Your LXD requires a relatively...
Read more >pylxd Documentation - Read the Docs
If you want to capture the contents of RAM in the snapshot, you can use stateful=True. Note: Your LXD requires a relatively recent...
Read more >Pylxd 'not authorized' exception when accessing remote - LXD
I have a container setup to access the host server's containers remotely, which is working without issues:
Read more >pylxd cannot start containers with LXD 2.0.11 - Launchpad Bugs
__name__ /usr/lib/python2.7/dist-packages/pylxd/model.py:113: UserWarning: Attempted to set unknown attribute "description" on instance of ...
Read more >LXD Containers backup, import, export, migrate ... - YouTube
In this video, I will show you how to copy or move an lxd container from one machine to another machine. I will...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Silentphantom62 ah, 3.0.0 is really hot off the presses (released March 30). It’s not supposed to have changed that much, from an API perspective, but I’m guessing something has changed. I’ll try and reproduce it.
@ajkavanagh Thanks!