question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NotFound is raised when trying to access the stateful property of the container snapshot. pylxd 2.2.6

See original GitHub issue

After 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:closed
  • Created 5 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ajkavanaghcommented, Apr 6, 2018

@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.

0reactions
Silentphantom62commented, Apr 17, 2018

@ajkavanagh Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found