[GH-ISSUE #304] New staff user cannot view instances #200

Closed
opened 2026-02-27 15:57:43 +03:00 by kerem · 5 comments
Owner

Originally created by @lord-kyron on GitHub (Apr 6, 2020).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/304

Hi @catborise ,
I am using your latest build on python3 on docker.
I've created new user and grated him staff rights. Then I created a VM for him and added him in the owners of the VM.
However, when I login after that with the new staff user I am getting this error:

libvirtError at /instances/
internal error: Unable to parse URI qemu+tcp://Compute object (1)/system

Request Method: | GET
-- | --
http://mydomain.com:80/instances/
2.2.10
libvirtError
internal error: Unable to parse URI qemu+tcp://Compute object (1)/system
/srv/webvirtcloud/vrtManager/connection.py in get_connection, line 300
/srv/webvirtcloud/venv/bin/python3
3.6.9
['/srv/webvirtcloud',  '/srv/webvirtcloud/venv/bin',  '/srv/webvirtcloud/venv/lib/python36.zip',  '/srv/webvirtcloud/venv/lib/python3.6',  '/srv/webvirtcloud/venv/lib/python3.6/lib-dynload',  '/usr/lib/python3.6',  '/srv/webvirtcloud/venv/lib/python3.6/site-packages']
Mon, 6 Apr 2020 09:17:01 +0000

This is not happening when there is no VM added to be owned by this user. I guess it is some kind of user rights problem. Can you help?

Originally created by @lord-kyron on GitHub (Apr 6, 2020). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/304 Hi @catborise , I am using your latest build on python3 on docker. I've created new user and grated him staff rights. Then I created a VM for him and added him in the owners of the VM. However, when I login after that with the new staff user I am getting this error: ``` libvirtError at /instances/ internal error: Unable to parse URI qemu+tcp://Compute object (1)/system Request Method: | GET -- | -- http://mydomain.com:80/instances/ 2.2.10 libvirtError internal error: Unable to parse URI qemu+tcp://Compute object (1)/system /srv/webvirtcloud/vrtManager/connection.py in get_connection, line 300 /srv/webvirtcloud/venv/bin/python3 3.6.9 ['/srv/webvirtcloud', '/srv/webvirtcloud/venv/bin', '/srv/webvirtcloud/venv/lib/python36.zip', '/srv/webvirtcloud/venv/lib/python3.6', '/srv/webvirtcloud/venv/lib/python3.6/lib-dynload', '/usr/lib/python3.6', '/srv/webvirtcloud/venv/lib/python3.6/site-packages'] Mon, 6 Apr 2020 09:17:01 +0000 ``` This is not happening when there is no VM added to be owned by this user. I guess it is some kind of user rights problem. Can you help?
kerem closed this issue 2026-02-27 15:57:43 +03:00
Author
Owner

@catborise commented on GitHub (Apr 6, 2020):

@lord-kyron it seems connection error i will check it. thanks

<!-- gh-comment-id:609679597 --> @catborise commented on GitHub (Apr 6, 2020): @lord-kyron it seems connection error i will check it. thanks
Author
Owner

@catborise commented on GitHub (Apr 6, 2020):

@lord-kyron problem is solved. you can checkout. thanks for feedback

<!-- gh-comment-id:609701249 --> @catborise commented on GitHub (Apr 6, 2020): @lord-kyron problem is solved. you can checkout. thanks for feedback
Author
Owner

@lord-kyron commented on GitHub (Apr 6, 2020):

@catborise - now I can see the VM , but this is showing on top:
image

<!-- gh-comment-id:609706859 --> @lord-kyron commented on GitHub (Apr 6, 2020): @catborise - now I can see the VM , but this is showing on top: ![image](https://user-images.githubusercontent.com/39150122/78548276-33f5b180-7809-11ea-96a6-7ad7f7109627.png)
Author
Owner

@catborise commented on GitHub (Apr 6, 2020):

@lord-kyron same problem... i missed it. it is resolved.

<!-- gh-comment-id:609731548 --> @catborise commented on GitHub (Apr 6, 2020): @lord-kyron same problem... i missed it. it is resolved.
Author
Owner

@lord-kyron commented on GitHub (Apr 6, 2020):

resolved indeed! Thanks!

<!-- gh-comment-id:609784224 --> @lord-kyron commented on GitHub (Apr 6, 2020): resolved indeed! 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#200
No description provided.