[GH-ISSUE #193] Error when create instance: AttributeError at /compute/1/create/ #128

Open
opened 2026-02-27 15:57:26 +03:00 by kerem · 4 comments
Owner

Originally created by @ananiasfilho on GitHub (Sep 28, 2018).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/193

Im on Ubuntu 14.04 LTS
I have installed it without issues. But, after connect to host and try create a new instance, i got this error

AttributeError at /compute/1/create/

When i try create a new instance its show this error.


Request Method: | GET
-- | --
http://192.168.100.1:8000/compute/1/create/
1.11.15
AttributeError
'virConnect' object has no attribute 'getDomainCapabilities'
/srv/webvirtcloud/vrtManager/connection.py in get_dom_cap_xml, line 361
/srv/webvirtcloud/venv/bin/python
2.7.6
['/srv/webvirtcloud',  '/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',  '/srv/webvirtcloud/venv/lib/python2.7/site-packages']


Originally created by @ananiasfilho on GitHub (Sep 28, 2018). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/193 Im on Ubuntu 14.04 LTS I have installed it without issues. But, after connect to host and try create a new instance, i got this error _AttributeError at /compute/1/create/_ When i try create a new instance its show this error. ``` Request Method: | GET -- | -- http://192.168.100.1:8000/compute/1/create/ 1.11.15 AttributeError 'virConnect' object has no attribute 'getDomainCapabilities' /srv/webvirtcloud/vrtManager/connection.py in get_dom_cap_xml, line 361 /srv/webvirtcloud/venv/bin/python 2.7.6 ['/srv/webvirtcloud', '/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', '/srv/webvirtcloud/venv/lib/python2.7/site-packages'] ```
Author
Owner

@catborise commented on GitHub (Oct 1, 2018):

ubuntu 14.04 uses too old version libvirt. try to upgrade libvirt or update operating system.

<!-- gh-comment-id:425800791 --> @catborise commented on GitHub (Oct 1, 2018): ubuntu 14.04 uses too old version libvirt. try to upgrade libvirt or update operating system.
Author
Owner

@shahonseven commented on GitHub (Dec 21, 2018):

I have the same error on CentOS 7.6

<!-- gh-comment-id:449202632 --> @shahonseven commented on GitHub (Dec 21, 2018): I have the same error on CentOS 7.6
Author
Owner

@catborise commented on GitHub (Dec 21, 2018):

What is the version of libvirt? You can get with virsh version
You can install qemu-kvm-ev an update libvirt.

Add libvirt repo and qemu-kvm-ev
http://mirror.centos.org/centos/7/virt/x86_64/

<!-- gh-comment-id:449474596 --> @catborise commented on GitHub (Dec 21, 2018): What is the version of libvirt? You can get with virsh version You can install qemu-kvm-ev an update libvirt. Add libvirt repo and qemu-kvm-ev http://mirror.centos.org/centos/7/virt/x86_64/
Author
Owner

@ananiasfilho commented on GitHub (Dec 21, 2018):

The problem is libvirt version. need update to ubuntu 16.04 - no updates on ubuntu 14.04 and Centos 7 need use EPEL repository.

<!-- gh-comment-id:449475868 --> @ananiasfilho commented on GitHub (Dec 21, 2018): The problem is libvirt version. need update to ubuntu 16.04 - no updates on ubuntu 14.04 and Centos 7 need use EPEL repository.
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#128
No description provided.