ovirt engine restore: Failed to construct component instance
by Rafhael Almeida
Please your help, I restore a engine db correctly in a Fresh Installation on my same server:
engine-backup --mode=restore --file=ovirt.2022-04-29_12h00.tar.gz --log=ovirt_log.2022-04-29_12h00.out --restore-permissions --provision-all-databases
after
engine-setup
(I dont' see any warning o error, everything is correct)
but when try to accces in my private domain, to access to ovirt-engine, don't work, I see in the files:
/etc/ovirt-engine/engine.conf.d/10-setup-cinderlib-database.conf
/etc/ovirt-engine/engine.conf.d/10-setup-database.conf
/etc/ovirt-engine/engine.conf.d/10-setup-dwh-database.conf
another password, in my last engine db, I have another passw to connect to db
when i restart the service
systemctl restart ovirt-engine
y see this logs:
*------------my server.log ----------------*
Service status report
WFLYCTL0186: Services which failed to start: service jboss.deployment.subunit."engine.ear"."bll.jar".component.Backend.START: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
WFLYCTL0448: 2 additional services are down due to their dependencies being missing or failed
2022-05-04 16:09:25,234-05 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
2022-05-04 16:09:25,238-05 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 23.0.2.Final (WildFly Core 15.0.1.Final) started (with errors) in 15182ms - Started 1668 of 1888 services (6 services failed or missing dependencies, 393 services are lazy, passive or on-demand)
2022-05-04 16:09:25,240-05 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:8706/management
2022-05-04 16:09:25,241-05 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:8706
*--------------------------------------------------*
pd. my logs: https://filedn.com/lYVRQ0f0QUTQVmMCo3Bk7DY/server.log
my ideas ran out, Please your help !!
2 years, 6 months
Re: Ovirt 4.5.0.1 self-hosted deployment fails - jboss errors
by hans@jiflin.nl
Hi,
did you resolve this? I am trying to setup a new environment also and can't get past the errors anymore...
> Hello,
>
> I’m trying to deploy a self-hosted engine on Ovirt node v4.5.0.1, but the deployment fails
> in the final stages with the following errors in “Server.log” file.
>
>
> I hope that you have an Idea about that. I ran the installer 3 times (cockpit installer.
>
> Thank you,
2 years, 6 months
Rebuilding Gluster Storage through GUI?
by Abe E
Is it possible to reconfigure my broken arbiter gluster from the GUI? Something broke it all in my 4.4 to 4.5 Upgrade after reboot and I just don't have the time to keep TSing through it versus attempting to rebuild it.
Has anyone ever tried re-installing the node itself and using the ovirt gui to run in theory a single gluster install to add it to the main DC? This would save alot of configs through the CLI for rebuiling the bricks for this node.
2 years, 6 months
Unable to remove host from ovirt engine
by Joseph Gelinas
Recently our host and ovirt engine certificates expired and with some ideas from Strahil we were able to get 2 of the 3 ovirt hosts updated with usable certificates and move all of our VMs to those two nodes.
https://lists.ovirt.org/archives/list/users@ovirt.org/thread/QCFPKQ3OKPOU...
Not having any luck with the last host we figured we'd just try to remove it from ovirt engine and re-add it. While it seems `hosted-engine --vm-status` on one node no longer shows the removed host, the other good host and the web interface still show ovirt-1 in the mix. What is the best way to remove a NonRespnsive host from ovirt and re-add it?
[root@ovirt-1 ~]# hosted-engine --vm-status
The hosted engine configuration has not been retrieved from shared storage. Please ensure that ovirt-ha-agent is running and the storage server is reachable.
[root@ovirt-2 ~]# hosted-engine --vm-status
!! Cluster is in GLOBAL MAINTENANCE mode !!
--== Host ovirt-3.xxxxx.com (id: 2) status ==--
Host ID : 2
Host timestamp : 12515451
Score : 3274
Engine status : {"vm": "down", "health": "bad", "detail": "unknown", "reason": "vm not running on this host"}
Hostname : ovirt-3.xxxxx.com
Local maintenance : False
stopped : False
crc32 : 9cf92792
conf_on_shared_storage : True
local_conf_timestamp : 12515451
Status up-to-date : True
Extra metadata (valid at timestamp):
metadata_parse_version=1
metadata_feature_version=1
timestamp=12515451 (Mon Apr 25 14:08:51 2022)
host-id=2
score=3274
vm_conf_refresh_time=12515451 (Mon Apr 25 14:08:51 2022)
conf_on_shared_storage=True
maintenance=False
state=GlobalMaintenance
stopped=False
--== Host ovirt-2.xxxxx.com (id: 3) status ==--
Host ID : 3
Host timestamp : 12513269
Score : 3400
Engine status : {"vm": "up", "health": "good", "detail": "Up"}
Hostname : ovirt-2.xxxxx.com
Local maintenance : False
stopped : False
crc32 : 4a89d706
conf_on_shared_storage : True
local_conf_timestamp : 12513269
Status up-to-date : True
Extra metadata (valid at timestamp):
metadata_parse_version=1
metadata_feature_version=1
timestamp=12513269 (Mon Apr 25 14:09:00 2022)
host-id=3
score=3400
vm_conf_refresh_time=12513269 (Mon Apr 25 14:09:00 2022)
conf_on_shared_storage=True
maintenance=False
state=GlobalMaintenance
stopped=False
!! Cluster is in GLOBAL MAINTENANCE mode !!
[root@ovirt-3 ~]# hosted-engine --vm-status
!! Cluster is in GLOBAL MAINTENANCE mode !!
--== Host ovirt-1.xxxxx.com (id: 1) status ==--
Host ID : 1
Host timestamp : 6750990
Score : 0
Engine status : unknown stale-data
Hostname : ovirt-1.xxxxx.com
Local maintenance : False
stopped : True
crc32 : 5290657b
conf_on_shared_storage : True
local_conf_timestamp : 6750950
Status up-to-date : False
Extra metadata (valid at timestamp):
metadata_parse_version=1
metadata_feature_version=1
timestamp=6750990 (Thu Feb 17 22:17:53 2022)
host-id=1
score=0
vm_conf_refresh_time=6750950 (Thu Feb 17 22:17:12 2022)
conf_on_shared_storage=True
maintenance=False
state=AgentStopped
stopped=True
--== Host ovirt-3.xxxxx.com (id: 2) status ==--
Host ID : 2
Host timestamp : 12515501
Score : 3279
Engine status : {"vm": "down", "health": "bad", "detail": "unknown", "reason": "vm not running on this host"}
Hostname : ovirt-3.xxxxx.com
Local maintenance : False
stopped : False
crc32 : 0845cd93
conf_on_shared_storage : True
local_conf_timestamp : 12515501
Status up-to-date : True
Extra metadata (valid at timestamp):
metadata_parse_version=1
metadata_feature_version=1
timestamp=12515501 (Mon Apr 25 14:09:42 2022)
host-id=2
score=3279
vm_conf_refresh_time=12515501 (Mon Apr 25 14:09:42 2022)
conf_on_shared_storage=True
maintenance=False
state=GlobalMaintenance
stopped=False
--== Host ovirt-2.xxxxx.com (id: 3) status ==--
Host ID : 3
Host timestamp : 12513309
Score : 3400
Engine status : {"vm": "up", "health": "good", "detail": "Up"}
Hostname : ovirt-2.xxxxx.com
Local maintenance : False
stopped : False
crc32 : 237726e0
conf_on_shared_storage : True
local_conf_timestamp : 12513309
Status up-to-date : True
Extra metadata (valid at timestamp):
metadata_parse_version=1
metadata_feature_version=1
timestamp=12513309 (Mon Apr 25 14:09:39 2022)
host-id=3
score=3400
vm_conf_refresh_time=12513309 (Mon Apr 25 14:09:39 2022)
conf_on_shared_storage=True
maintenance=False
state=GlobalMaintenance
stopped=False
!! Cluster is in GLOBAL MAINTENANCE mode !!
2 years, 6 months
Self-hosted engine 4.5.0 deployment fails
by Mohamed Roushdy
Hello,
I’m deploying on Ovirt nodes v4.5.0.1, but it fails to deploy the self-hosted engine with the following errors in the web installer:
[ INFO ] skipping: [localhost]
[ INFO ] TASK [ovirt.ovirt.engine_setup : Check if Engine health page is up]
[ ERROR ] fatal: [localhost -> 192.168.222.197]: FAILED! => {"attempts": 30, "changed": false, "connection": "close", "content_encoding": "identity", "content_length": "86", "content_type": "text/html; charset=UTF-8", "date": "Tue, 03 May 2022 15:57:20 GMT", "elapsed": 0, "msg": "Status code was 500 and not [200]: HTTP Error 500: Internal Server Error", "redirected": false, "server": "Apache/2.4.37 (centos) OpenSSL/1.1.1k mod_auth_gssapi/1.6.1", "status": 500, "url": http://localhost/ovirt-engine/services/health}
[ INFO ] TASK [ovirt.ovirt.engine_setup : Clean temporary files]
[ INFO ] changed: [localhost -> 192.168.222.197]
[ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Sync on engine machine]
[ INFO ] changed: [localhost -> 192.168.222.197]
[ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Set destination directory path]
[ INFO ] ok: [localhost -> localhost]
[ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Create destination directory]
[ INFO ] changed: [localhost -> localhost]
[ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : include_tasks]
[ INFO ] ok: [localhost]
[ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Find the local appliance image]
[ INFO ] ok: [localhost -> localhost]
[ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Set local_vm_disk_path]
[ INFO ] ok: [localhost -> localhost]
[ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Give the vm time to flush dirty buffers]
[ INFO ] ok: [localhost -> localhost]
[ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Copy engine logs]
[ INFO ] changed: [localhost]
[ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Change ownership of copied engine logs]
[ INFO ] changed: [localhost -> localhost]
[ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Notify the user about a failure]
[ ERROR ] fatal: [localhost]: FAILED! => {"changed": false, "msg": "There was a failure deploying the engine on the local engine VM. The system may not be provisioned according to the playbook results: please check the logs for the issue, fix accordingly or re-deploy from scratch.\n"}
Any idea if this is a bug or something? I tried to deploy for eight times with different configuration
Thank y9ou,
2 years, 6 months
Unable to install oVirt and Gluster Hyperconverged
by mha@asom-net.dk
Hi
I'm settings up a new lab at work.
I'm following the guides here
https://www.ovirt.org/dropped/gluster-hyperconverged/chap-Deploying_Hyper...
But when I want to deploy it just stops before it even starts.
This is all I have in the log
ansible-playbook [core 2.12.3]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.8/site-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /root/../usr/bin/ansible-playbook
python version = 3.8.12 (default, Sep 21 2021, 00:10:52) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)]
jinja version = 2.10.3
libyaml = True
Using /etc/ansible/ansible.cfg as config file
redirecting (type: modules) ansible.builtin.firewalld to ansible.posix.firewalld
redirecting (type: modules) ansible.builtin.firewalld to ansible.posix.firewalld
statically imported: /etc/ansible/roles/gluster.infra/roles/backend_setup/tasks/lvm_exclude_filter.yml
statically imported: /etc/ansible/roles/gluster.infra/roles/backend_setup/tasks/blacklist_mpath_devices.yml
statically imported: /etc/ansible/roles/gluster.infra/roles/backend_setup/tasks/lvm_config.yml
statically imported: /etc/ansible/roles/gluster.infra/roles/backend_setup/tasks/vdo_create.yml
redirecting (type: modules) ansible.builtin.vdo to community.general.vdo
Please check /var/log/cockpit/ovirt-dashboard/gluster-deployment.log for more informations.
Fresh installation of ovirt 4.5
[root@asom-lab-server1 ~]# nodectl info
bootloader:
default: ovirt-node-ng-4.5.0.1-0.20220426.0 (4.18.0-383.el8.x86_64)
entries:
ovirt-node-ng-4.5.0.1-0.20220426.0 (4.18.0-383.el8.x86_64):
index: 0
kernel: /boot//ovirt-node-ng-4.5.0.1-0.20220426.0+1/vmlinuz-4.18.0-383.el8.x86_64
args: crashkernel=auto resume=/dev/mapper/onn-swap rd.lvm.lv=onn/ovirt-node-ng-4.5.0.1-0.20220426.0+1 rd.lvm.lv=onn/swap rhgb quiet boot=UUID=b5b67256-7f97-4e88-bbab-fd3adc27027e rootflags=discard img.bootid=ovirt-node-ng-4.5.0.1-0.20220426.0+1
root: /dev/onn/ovirt-node-ng-4.5.0.1-0.20220426.0+1
initrd: /boot//ovirt-node-ng-4.5.0.1-0.20220426.0+1/initramfs-4.18.0-383.el8.x86_64.img
title: ovirt-node-ng-4.5.0.1-0.20220426.0 (4.18.0-383.el8.x86_64)
blsid: ovirt-node-ng-4.5.0.1-0.20220426.0+1-4.18.0-383.el8.x86_64
layers:
ovirt-node-ng-4.5.0.1-0.20220426.0:
ovirt-node-ng-4.5.0.1-0.20220426.0+1
current_layer: ovirt-node-ng-4.5.0.1-0.20220426.0+1
2 years, 6 months
Ovirt 4.5.0.1 self-hosted deployment fails - jboss errors
by Mohamed Roushdy
Hello,
I’m trying to deploy a self-hosted engine on Ovirt node v4.5.0.1, but the deployment fails in the final stages with the following errors in “Server.log” file.
2022-05-02 13:59:58,898+02 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "
engine.ear")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.subunit.\"engine.ear\".\"bll.jar\".component.Backend.START" => "java.lang.IllegalStat
eException: WFLYEE0042: Failed to construct component instance
Caused by: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
Caused by: javax.ejb.EJBException: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke protected void org.ovirt.engine.core.bll.TagsDirector.init() on org
.ovirt.engine.core.bll.TagsDirector@297201d0<mailto:.ovirt.engine.core.bll.TagsDirector@297201d0>
Caused by: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke protected void org.ovirt.engine.core.bll.TagsDirector.init() on org.ovirt.engine.core.bll.T
agsDirector@297201d0
Caused by: java.lang.reflect.InvocationTargetException
Caused by: org.springframework.dao.InvalidDataAccessApiUsageException: Unable to determine the correct call signature - no procedure/function/signature for 'gettagsbyparent_
id'"}}
2022-05-02 13:59:58,927+02 INFO [org.jboss.as.server] (ServerService Thread Pool -- 27) WFLYSRV0010: Deployed "ovirt-web-ui.war" (runtime-name : "ovirt-web-ui.war")
2022-05-02 13:59:58,927+02 INFO [org.jboss.as.server] (ServerService Thread Pool -- 27) WFLYSRV0010: Deployed "apidoc.war" (runtime-name : "apidoc.war")
2022-05-02 13:59:58,927+02 INFO [org.jboss.as.server] (ServerService Thread Pool -- 27) WFLYSRV0010: Deployed "restapi.war" (runtime-name : "restapi.war")
2022-05-02 13:59:58,927+02 INFO [org.jboss.as.server] (ServerService Thread Pool -- 27) WFLYSRV0010: Deployed "engine.ear" (runtime-name : "engine.ear")
2022-05-02 13:59:58,971+02 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service jboss.deployment.subunit."engine.ear"."bll.jar".component.Backend.START: java.lang.IllegalStateException: WFLYEE0042:
Failed to construct component instance
WFLYCTL0448: 2 additional services are down due to their dependencies being missing or failed
2022-05-02 13:59:59,092+02 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
2022-05-02 13:59:59,103+02 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 24.0.1.Final (WildFly Core 16.0.1.Final) started (with errors) in 30903ms - St
arted 1670 of 1890 services (6 services failed or missing dependencies, 393 services are lazy, passive or on-demand)
2022-05-02 13:59:59,109+02 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:8706/management
2022-05-02 13:59:59,110+02 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:8706
I hope that you have an Idea about that. I ran the installer 3 times (cockpit installer.
Thank you,
2 years, 6 months