barely started - cannot import name 'Callable' from 'collections'
by lejeczek
Hi guys.
I've barely started, trying to deploy my first oVirt and I get:
...
Please indicate the gateway IP address [10.3.1.254]:
[ INFO ] Checking available network interfaces:
[ ERROR ] b'[WARNING]: Skipping plugin
(/usr/share/ovirt-hosted-engine-\n'
[ ERROR ]
b'setup/he_ansible/callback_plugins/2_ovirt_logger.py),
cannot load: cannot\n'
[ ERROR ] b"import name 'Callable' from 'collections'\n"
[ ERROR ] b'(/usr/lib64/python3.11/collections/__init__.py)\n'
[ ERROR ] b"ERROR! Unexpected Exception, this is probably a
bug: cannot import name 'Callable' from 'collections'
(/usr/lib64/python3.11/collections/__init__.py)\n"
[ ERROR ] Failed to execute stage 'Environment
customization': Failed executing ansible-playbook
[ INFO ] Stage: Clean up
[ INFO ] Cleaning temporary resources
[ ERROR ] b'[WARNING]: Skipping plugin
(/usr/share/ovirt-hosted-engine-\n'
[ ERROR ]
b'setup/he_ansible/callback_plugins/2_ovirt_logger.py),
cannot load: cannot\n'
[ ERROR ] b"import name 'Callable' from 'collections'\n"
[ ERROR ] b'(/usr/lib64/python3.11/collections/__init__.py)\n'
[ ERROR ] b"ERROR! Unexpected Exception, this is probably a
bug: cannot import name 'Callable' from 'collections'
(/usr/lib64/python3.11/collections/__init__.py)\n"
[ ERROR ] Failed to execute stage 'Clean up': Failed
executing ansible-playbook
[ INFO ] Generating answer file
'/var/lib/ovirt-hosted-engine-setup/answers/answers-20230509193552.conf'
[ INFO ] Stage: Pre-termination
[ INFO ] Stage: Termination
[ ERROR ] Hosted Engine deployment failed
Log file is located at
/var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20230509193544-s72umf.log
centos 9 stream with
ovirt-engine-setup-base-4.5.3.1-1.el9.noarch
Any & every suggestion on what is braking here and how to
troubleshoot/fix it are much appreciated.
thanks, L.
1 year, 10 months
Please help connecting to serial console - <urlopen error [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:897)>
by morgan cox
Hi.
I have an Ovirt 4.4.10 system - its a standalone setup (not hosted engine) - ovirt-vmconsole-proxy-sshd is running on the engine.
Presently I just cannot connect via port 2222.
I have never been able to connect via serial console and require help connecting, pretty sure its due to not using the right key/cert ..
I have tried to follow something like this -> https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.3/...
i.e I created a serialconsole key - added to my user in Ovirt UI (as my user 'mcox')
however if I try
# ssh -t -i /home/mcox/.ssh/ -p 2222 ng2-ovirt-mgmt1 -l ovirt-vmconsole
I get
ovirt-vmconsole(a)10.168.69.200: Permission denied (publickey).
I get in ovirt-vmconsole-proxy-sshd logs
"May 10 15:54:37 ng2-ovirt-mgmt1 ovirt-vmconsole[301584]: 2023-05-10 15:54:37,221+0000 ovirt-vmconsole-list: ERROR main:265 Error: <urlopen error [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:897)>
May 10 15:54:37 ng2-ovirt-mgmt1 ovirt-vmconsole-proxy-keys[301580]: ERROR Key list execution failed rc=1
May 10 15:54:37 ng2-ovirt-mgmt1 sshd[301578]: AuthorizedKeysCommand /usr/libexec/ovirt-vmconsole-proxy-keys ovirt-vmconsole failed, status 1
May 10 15:54:37 ng2-ovirt-mgmt1 ovirt-vmconsole[301589]: 2023-05-10 15:54:37,543+0000 ovirt-vmconsole-list: ERROR main:265 Error: <urlopen error [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:897)>
May 10 15:54:37 ng2-ovirt-mgmt1 ovirt-vmconsole-proxy-keys[301585]: ERROR Key list execution failed rc=1
May 10 15:54:37 ng2-ovirt-mgmt1 sshd[301578]: AuthorizedKeysCommand /usr/libexec/ovirt-vmconsole-proxy-keys ovirt-vmconsole failed, status 1
May 10 15:54:37 ng2-ovirt-mgmt1 sshd[301578]: Connection closed by authenticating user ovirt-vmconsole 10.88.1.105 port 52858 [preauth]"
Am I using the right key ?
I have tried to troubleshoot this - if I use
# /usr/libexec/ovirt-vmconsole-proxy-keys list
ERROR: Internal error
If it helps here is : /usr/share/ovirt-vmconsole/ovirt-vmconsole-proxy/ovirt-vmconsole-proxy-sshd/sshd_config
------------
AllowAgentForwarding no
#AllowStreamLocalForwarding no
AllowTcpForwarding no
AllowUsers ovirt-vmconsole
AuthorizedKeysCommand /usr/libexec/ovirt-vmconsole-proxy-keys
AuthorizedKeysCommandUser ovirt-vmconsole
ChallengeResponseAuthentication no
ClientAliveCountMax 3
ClientAliveInterval 10
GSSAPIAuthentication no
HostCertificate /etc/pki/ovirt-vmconsole/proxy-ssh_host_rsa-cert.pub
HostKey /etc/pki/ovirt-vmconsole/proxy-ssh_host_rsa
HostbasedAuthentication no
KbdInteractiveAuthentication no
KerberosAuthentication no
PasswordAuthentication no
#PermitUserRC no
PidFile /dev/null
Port 2222
Protocol 2
PubkeyAuthentication yes
TrustedUserCAKeys /etc/pki/ovirt-vmconsole/ca.pub
X11Forwarding no
------------
1 year, 10 months
no snapshot function in VM portal
by Christoph Köhler
Hi!
On a fresh Version 4.5.4-1.el8: in the vm portal are no snapshot
operations possible - not for an user_vm_manager and not for a
super_user. We have imported VMs from 4.3 with exisiting snapshots.
These are listed for the users in the snapshot box but there is also no
operation possible for them.
Does anyone has a hint?
Greetings!
Chris
1 year, 10 months
Ovirt node disk broken
by marcel d'heureuse
Hi all,
On a single Server the node disk is broken and I have to replace it.
The glusterfs configuration is also gone but the glusterfs directorys are existing on a separate available disk.
Did I have a Chance to install the ovirt Node on a New disk and make the old glusterfs running and also the 7 vms included the hosted engine?
I can also deploy a New hosted engine but can I than import the existing gluster disk from the old Installation?
I have installed the node and also mount the gluster_bricks but to make the volumes available I have not found any command.
It is an ovirt 4.3.10 Installation.
Is there any chance to save some time. The data inside the vms are good to have.
Br
Marcel
1 year, 11 months
hosted setup failed with error on 'Initialize lockspace volume'
by destfinal@googlemail.com
Hi,
I am trying to perform a self hosted ovirt cluster. All goes well and towards the end the setup fails at the task
'Initialize lockspace volume'
with the following error message:
{
"attempts":5,
"changed":true,
"cmd":[
"hosted-engine",
"--reinitialize-lockspace",
"--force"
],
"delta":"0:00:00.108243",
"end":"2023-05-03 22:50:53.930482",
"msg":"non-zero return code",
"rc":1,
"start":"2023-05-03 22:50:53.822239",
"stderr":"Traceback (most recent call last):\n File \"/usr/lib64/python3.9/runpy.py\", line 197, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib64/python3.9/runpy.py\", line 87, in _run_code\n exec(code, run_globals)\n File \"/usr/lib/python3.9/site-packages/ovirt_hosted_engine_setup/reinitialize_lockspace.py\", line 30, in <module>\n ha_cli.reset_lockspace(force)\n File \"/usr/lib/python3.9/site-packages/ovirt_hosted_engine_ha/client/client.py\", line 286, in reset_lockspace\n stats = broker.get_stats_from_storage()\n File \"/usr/lib/python3.9/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py\", line 148, in get_stats_from_storage\n result = self._proxy.get_stats()\n File \"/usr/lib64/python3.9/xmlrpc/client.py\", line 1122, in __call__\n return self.__send(self.__name, args)\n File \"/usr/lib64/python3.9/xmlrpc/client.py\", line 1464, in __request\n response = self.__transport.request(\n File \"/usr/lib64/py
thon3.9/xmlrpc/client.py\", line 1166, in request\n return self.single_request(host, handler, request_body, verbose)\n File \"/usr/lib64/python3.9/xmlrpc/client.py\", line 1178, in single_request\n http_conn = self.send_request(host, handler, request_body, verbose)\n File \"/usr/lib64/python3.9/xmlrpc/client.py\", line 1291, in send_request\n self.send_content(connection, request_body)\n File \"/usr/lib64/python3.9/xmlrpc/client.py\", line 1321, in send_content\n connection.endheaders(request_body)\n File \"/usr/lib64/python3.9/http/client.py\", line 1280, in endheaders\n self._send_output(message_body, encode_chunked=encode_chunked)\n File \"/usr/lib64/python3.9/http/client.py\", line 1040, in _send_output\n self.send(msg)\n File \"/usr/lib64/python3.9/http/client.py\", line 980, in send\n self.connect()\n File \"/usr/lib/python3.9/site-packages/ovirt_hosted_engine_ha/lib/unixrpc.py\", line 76, in connect\n self.sock.connect(base64.b16decode(self.host
))\nFileNotFoundError: [Errno 2] No such file or directory",
"stderr_lines":[
"Traceback (most recent call last):",
" File \"/usr/lib64/python3.9/runpy.py\", line 197, in _run_module_as_main",
" return _run_code(code, main_globals, None,",
" File \"/usr/lib64/python3.9/runpy.py\", line 87, in _run_code",
" exec(code, run_globals)",
" File \"/usr/lib/python3.9/site-packages/ovirt_hosted_engine_setup/reinitialize_lockspace.py\", line 30, in <module>",
" ha_cli.reset_lockspace(force)",
" File \"/usr/lib/python3.9/site-packages/ovirt_hosted_engine_ha/client/client.py\", line 286, in reset_lockspace",
" stats = broker.get_stats_from_storage()",
" File \"/usr/lib/python3.9/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py\", line 148, in get_stats_from_storage",
" result = self._proxy.get_stats()",
" File \"/usr/lib64/python3.9/xmlrpc/client.py\", line 1122, in __call__",
" return self.__send(self.__name, args)",
" File \"/usr/lib64/python3.9/xmlrpc/client.py\", line 1464, in __request",
" response = self.__transport.request(",
" File \"/usr/lib64/python3.9/xmlrpc/client.py\", line 1166, in request",
" return self.single_request(host, handler, request_body, verbose)",
" File \"/usr/lib64/python3.9/xmlrpc/client.py\", line 1178, in single_request",
" http_conn = self.send_request(host, handler, request_body, verbose)",
" File \"/usr/lib64/python3.9/xmlrpc/client.py\", line 1291, in send_request",
" self.send_content(connection, request_body)",
" File \"/usr/lib64/python3.9/xmlrpc/client.py\", line 1321, in send_content",
" connection.endheaders(request_body)",
" File \"/usr/lib64/python3.9/http/client.py\", line 1280, in endheaders",
" self._send_output(message_body, encode_chunked=encode_chunked)",
" File \"/usr/lib64/python3.9/http/client.py\", line 1040, in _send_output",
" self.send(msg)",
" File \"/usr/lib64/python3.9/http/client.py\", line 980, in send",
" self.connect()",
" File \"/usr/lib/python3.9/site-packages/ovirt_hosted_engine_ha/lib/unixrpc.py\", line 76, in connect",
" self.sock.connect(base64.b16decode(self.host))",
"FileNotFoundError: [Errno 2] No such file or directory"
],
"stdout":"",
"stdout_lines":[
]
}
The underlying storage is NFS on top of Ceph (which is not listed in the ovirt documentation). Does this ring any bell to anybody?
Please let me know if you need more information in this regard or contents from any of the log files.
Thanks
1 year, 11 months
Unable to change the admin passsword on oVirt 4.5.2.5
by Ayansh Rocks
Hi All,
Any idea hot to change password of admin user on oVirt 4.5.2.5 ?
Below is not working -
[root@ovirt]# ovirt-aaa-jdbc-tool user password-reset admin
Picked up JAVA_TOOL_OPTIONS: -Dcom.redhat.fips=false
Password:
Reenter password:
updating user admin...
user updated successfully
[root@delhi-test-ovirtm-02 ~]#
Above shows successful but password not changed.
Thanks
1 year, 11 months
Illegal Disk after Removing Snapshot
by Nur Imam Febrianto
Hi,
Using ovirt 4.5.4 with all CentOS 8 Stream Host. Having an issue, whenever we tried to delete any snapshot of any vm, it will failed. Second try will get us succeed. But if the snapshot already deleted, and we shutdown the VM, we cannot turned it on again. It showing illegal disk error. Any idea about this issue ?
Thanks.
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows
1 year, 11 months
cannot update expired engine certificates?
by michael.d1.holt@lmco.com
ovirt 4.4.10.x, using self signed certificates with a self hosted engine. apache certs expired, renewed manually via guides provided by RHEL and oVirt using the pki_enroll_pkcs12.sh script. Engine certs are also expired and cannot update certs via gui and no option to renew the certs when running using engine-setup --offline. The error I am getting is a VDSM certificate error on the hosted engine in the engine.log file. I have attempted to manually run the pki_enroll_pkcs12.sh script with "engine" in the name and the subject of the previous engine.cer file with no luck. I copied the p12, key and cert from that attempt into the engine.cer, engine.p12 and engine_id_rsa files, but when booting the hosted engine VM, the first error in the engine.log is "VDC cannot find the engine certificate". This also breaks my access to the web interface for oVirt administration. When the expired engine certs are restored, I have GUI access but still see the VDSM errors on the ovirt-engine. That I hav
e web access with the expired engine certs indicate to me that the apache certificates are correct (but i could be wrong in that evaluation).
Basically i am looking for a way to either force the enroll pki option in the engine-setup --offline script or manually generate and update the engine.cer, engine.p12 (and if needed, but i couldn't determine where it was used) the engine_id_rsa key.
1 year, 11 months