8000 Proxmox api change? · Issue #57 · swayf/proxmoxer · GitHub
[go: up one dir, main page]

Skip to content

Proxmox api change? #57

Open
Open

Description

@ibr

After updating proxmox to 5.2-8 all of my proxmoxer-python scripts are not working anymore:
Example with python3
2018-09-13 10:46:12,698 INFO:proxmoxer.core: GET /nodes/moritz/storage/backup/content 2018-09-13 10:46:12,699 DEBUG:paramiko.transport: [chan 0] Max packet in: 32768 bytes 2018-09-13 10:46:14,363 DEBUG:proxmoxer.core: Status code: 500, output: ┌─────────┬────────────┬───────────────────────────────────────────────────────────────────────────────────────────┬────────┬──────┬──────┐ │ format │ size │ volid │ parent │ used │ vmid │ ├─────────┼────────────┼───────────────────────────────────────────────────────────────────────────────────────────┼────────┼──────┼──────┤
the same with pyton2
2018-09-13 11:25:06,789 INFO:proxmoxer.core: GET /nodes/moritz/storage/backup/content 2018-09-13 11:25:06,789 DEBUG:paramiko.transport: [chan 0] Max packet in: 32768 bytes ... 2018-09-13 11:25:08,309 DEBUG:paramiko.transport: [chan 0] EOF received (0) Traceback (most recent call last): File "/usr/local/bin/vm_kontrolle_backup.py", line 17, in <module> backup = node.storage('backup').content.get() File "/usr/local/lib/python2.7/dist-packages/proxmoxer/core.py", line 84, in get return self(args)._request("GET", params=params) File "/usr/local/lib/python2.7/dist-packages/proxmoxer/core.py", line 74, in _request resp = self._store["session"].request(method, url, data=data or None, params=params) File "/usr/local/lib/python2.7/dist-packages/proxmoxer/backends/base_ssh.py", line 46, in request stdout, stderr = self._exec(full_cmd) File "/usr/local/lib/python2.7/dist-packages/proxmoxer/backends/ssh_paramiko.py", line 59, in _exec stdout = session.makefile('rb', -1).read().decode() 2018-09-13 11:25:08,310 DEBUG:paramiko.transport: [chan 0] EOF sent (0) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
I've also tried older versions of proxmoxer

Activity

  1. gustavovalverde commented on Oct 28, 2018

    @gustavovalverde

    Having the same issue using paramiko as backend. Were you able to workaround this one @ibr?

  2. gustavovalverde commented on Oct 28, 2018

    @gustavovalverde
  3. ibr commented on Nov 14, 2018

    @ibr
    Author

    Yes, this works for me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0