[GH-ISSUE #227] Error when adding disk #152

Open
opened 2026-02-27 15:57:32 +03:00 by kerem · 1 comment
Owner

Originally created by @ssbaksa on GitHub (Mar 18, 2019).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/227

Hi Catborise,

In your latest when I try to add second disk to already installed macine I get this:
Add Instance volume

TypeError at /instances/2/Backup-test/

an integer is required

Request Method: POST
Request URL: http://172.17.252.162:80/instances/2/Backup-test/
Django Version: 1.11.17
Exception Type: TypeError
Exception Value:

an integer is required

Exception Location: /srv/webvirtcloud/venv/local/lib/python2.7/site-packages/libvirt.py in createXML, line 3215
Python Executable: /srv/webvirtcloud/venv/bin/python2
Python Version: 2.7.12
Python Path:

['/srv/webvirtcloud',
'/srv/webvirtcloud/venv/bin',
'/srv/webvirtcloud/venv/lib/python2.7',
'/srv/webvirtcloud/venv/lib/python2.7/plat-x86_64-linux-gnu',
'/srv/webvirtcloud/venv/lib/python2.7/lib-tk',
'/srv/webvirtcloud/venv/lib/python2.7/lib-old',
'/srv/webvirtcloud/venv/lib/python2.7/lib-dynload',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/srv/webvirtcloud/venv/local/lib/python2.7/site-packages']

Server time: Mon, 18 Mar 2019 10:03:37 +0000

Originally created by @ssbaksa on GitHub (Mar 18, 2019). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/227 Hi Catborise, In your latest when I try to add second disk to already installed macine I get this: ![Add Instance volume](https://user-images.githubusercontent.com/19958704/54522929-a7aeed00-496e-11e9-84c8-507c29d7d21f.JPG) TypeError at /instances/2/Backup-test/ an integer is required Request Method: POST Request URL: http://172.17.252.162:80/instances/2/Backup-test/ Django Version: 1.11.17 Exception Type: TypeError Exception Value: an integer is required Exception Location: /srv/webvirtcloud/venv/local/lib/python2.7/site-packages/libvirt.py in createXML, line 3215 Python Executable: /srv/webvirtcloud/venv/bin/python2 Python Version: 2.7.12 Python Path: ['/srv/webvirtcloud', '/srv/webvirtcloud/venv/bin', '/srv/webvirtcloud/venv/lib/python2.7', '/srv/webvirtcloud/venv/lib/python2.7/plat-x86_64-linux-gnu', '/srv/webvirtcloud/venv/lib/python2.7/lib-tk', '/srv/webvirtcloud/venv/lib/python2.7/lib-old', '/srv/webvirtcloud/venv/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/srv/webvirtcloud/venv/local/lib/python2.7/site-packages'] Server time: Mon, 18 Mar 2019 10:03:37 +0000
Author
Owner

@catborise commented on GitHub (Mar 18, 2019):

hi, @ssbaksa it roots from metadata check.
along time ago it works with true false flags, not it changes.
i will fix it.

thanks

<!-- gh-comment-id:473908554 --> @catborise commented on GitHub (Mar 18, 2019): hi, @ssbaksa it roots from metadata check. along time ago it works with true false flags, not it changes. i will fix it. thanks
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#152
No description provided.