cockpit-project / cockpit-machines

Cockpit UI for virtual machines
GNU Lesser General Public License v2.1
293 stars 74 forks source link

empty Operating System list #129

Closed MoscowStyle closed 3 years ago

MoscowStyle commented 3 years ago

Hi VM stopped being created why did it break? Centos 8

vm

martinpitt commented 3 years ago

What do you mean "break"? As the dialog says, you need to pick an Operating System.

MoscowStyle commented 3 years ago

Что значит «перерыв»? Как говорится в диалоговом окне, вам нужно выбрать операционную систему.

sorry for my bad english there is nothing in the choice of operating systems accidentally closed the topic can you open it?

vm

martinpitt commented 3 years ago

I see, thanks! that wasn't clear in your original report. @KKoukiou , missing libosinfo? does that ring a bell?

MoscowStyle commented 3 years ago

I see, thanks! that wasn't clear in your original report. @KKoukiou , missing libosinfo? does that ring a bell?

installed- libosinfo-1.8.0-1.el8.x86_64

KKoukiou commented 3 years ago

@MoscowStyle What version of osinfo-db do you have installed? rpm -qi osinfo-db

Also please check for errors in the browser console and paste here if you see something that looks suspicious.

MoscowStyle commented 3 years ago

@MoscowStyle Какую версию osinfo-db вы установили?rpm -qi osinfo-db

Также проверьте наличие ошибок в консоли браузера и вставьте сюда, если увидите что-то подозрительное.

vm vm2

KKoukiou commented 3 years ago

@MoscowStyle This looks ok as well. So there was a report sometime ago, which looked similar, but we never figured out what it actually caused, just that it was a python versoin issue.

See https://github.com/cockpit-project/cockpit/issues/15381#issuecomment-781983826

Do you want to try to ran that script as well locally, with python3 and see if you are getting any results? The output of the script is JSON, so pipe it to jq command to be human readable.

python3 this-script.py | jq

In addition you might want to check your browser console for errors.

MoscowStyle commented 3 years ago

added file with output there are no errors in the browser

call.txt

KKoukiou commented 3 years ago

@MoscowStyle I just tried out your output from the script, basically replaced the script's output on my system with that, and even after all the filtering we do in the operating systems list in the UI I still had some operating systems in the dialog field.

So the last thing that remains here, is really that this script fails to get called from inside cockpit on your system. It really looks very similar to the issue I pasted above.

Would you be interested to build cockpit from sources? In that case i can send you a patch with extra debug messages and we can dig it deeper from there on. (I am sorry that there is not an easy solution for you here)

MoscowStyle commented 3 years ago

@KKoukiou thanks for the help, I found the problem was incorrect permissions on the /home/$USER/.config/ folder fixed the rights to the folder and it worked!

KKoukiou commented 3 years ago

Can you elaborate more so that we can can help users with the same problem in the future? How does you config folder affect the operating system listing?

MoscowStyle commented 3 years ago

@KKoukiou In Centos8, there are several configuration files in the /home/$USER/.config/libvirt/ folder I had rights not from the owner to this folder after correcting the rights, everything worked. it was my mistake from the very beginning

KKoukiou commented 3 years ago

Super thanks for figuring this out and getting back to us.