Error after restoring hosted-engine

Hello, after restoring hosted-engine from a backup, i have several problems. Let's start with the first, other threads for others... I can't see hosted-engine vm in vm list. Looking at engine log, i see the following: 2022-07-05 16:51:26,330+02 WARN [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder] (EE-ManagedScheduledExecutorService-engineScheduledThreadPool-Thread-49) [4c8e10ac] null architecture type, replacing with x86_64, VM [HostedEngine] 2022-07-05 16:51:26,332+02 INFO [org.ovirt.engine.core.bll.HostedEngineImporter] (EE-ManagedThreadFactory-engine-Thread-4932) [4c8e10ac] Try to import the Hosted Engine VM 'VM [HostedEngine]' 2022-07-05 16:51:26,334+02 INFO [org.ovirt.engine.core.bll.exportimport.ImportVmCommand] (EE-ManagedThreadFactory-engine-Thread-4932) [752aa465] Lock Acquired to object 'EngineLock:{exclusiveLocks='[HostedEngine=VM_NAME, 4daba166-3da4-4220-8a56-5ddadf83015d=VM]', sharedLocks='[4daba166-3da4-4220-8a56-5ddadf83015d=REMOTE_VM]'}' 2022-07-05 16:51:26,335+02 ERROR [org.ovirt.engine.core.bll.exportimport.ImportVmCommand] (EE-ManagedThreadFactory-engine-Thread-4932) [752aa465] Error during ValidateFailure.: java.lang.NullPointerException at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.validator.VmValidator.isBiosTypeSupported(VmValidator.java:467) at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.exportimport.ImportVmCommandBase.validate(ImportVmCommandBase.java:158) at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.exportimport.ImportVmCommand.validate(ImportVmCommand.java:220) at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.CommandBase.internalValidateInTransaction(CommandBase.java:824) at org.ovirt.engine.core.utils//org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInSuppressed(TransactionSupport.java:140) at org.ovirt.engine.core.utils//org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInSuppressed(TransactionSupport.java:157) ........ ........ 2022-07-05 16:51:26,335+02 INFO [org.ovirt.engine.core.bll.exportimport.ImportVmCommand] (EE-ManagedThreadFactory-engine-Thread-4932) [752aa465] Lock freed to object 'EngineLock:{exclusiveLocks='[HostedEngine=VM_NAME, 4daba166-3da4-4220-8a56-5ddadf83015d=VM]', sharedLocks='[4daba166-3da4-4220-8a56-5ddadf83015d=REMOTE_VM]'}' 2022-07-05 16:51:26,335+02 ERROR [org.ovirt.engine.core.bll.HostedEngineImporter] (EE-ManagedThreadFactory-engine-Thread-4932) [752aa465] Failed importing the Hosted Engine VM Is there any way to solve this issue? Web management interface is working except for the fact that i can't add new nodes and forget a storage domain which is no more existent. Thank you, Roberto

Hi, On Tue, Jul 5, 2022 at 5:56 PM Roberto Bertucci <rob.bertucci@gmail.com> wrote:
Hello, after restoring hosted-engine from a backup, i have several problems. Let's start with the first, other threads for others...
I can't see hosted-engine vm in vm list.
This is one issue.
Looking at engine log, i see the following:
2022-07-05 16:51:26,330+02 WARN [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder] (EE-ManagedScheduledExecutorService-engineScheduledThreadPool-Thread-49) [4c8e10ac] null architecture type, replacing with x86_64, VM [HostedEngine] 2022-07-05 16:51:26,332+02 INFO [org.ovirt.engine.core.bll.HostedEngineImporter] (EE-ManagedThreadFactory-engine-Thread-4932) [4c8e10ac] Try to import the Hosted Engine VM 'VM [HostedEngine]' 2022-07-05 16:51:26,334+02 INFO [org.ovirt.engine.core.bll.exportimport.ImportVmCommand] (EE-ManagedThreadFactory-engine-Thread-4932) [752aa465] Lock Acquired to object 'EngineLock:{exclusiveLocks='[HostedEngine=VM_NAME, 4daba166-3da4-4220-8a56-5ddadf83015d=VM]', sharedLocks='[4daba166-3da4-4220-8a56-5ddadf83015d=REMOTE_VM]'}' 2022-07-05 16:51:26,335+02 ERROR [org.ovirt.engine.core.bll.exportimport.ImportVmCommand] (EE-ManagedThreadFactory-engine-Thread-4932) [752aa465] Error during ValidateFailure.: java.lang.NullPointerException at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.validator.VmValidator.isBiosTypeSupported(VmValidator.java:467) at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.exportimport.ImportVmCommandBase.validate(ImportVmCommandBase.java:158) at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.exportimport.ImportVmCommand.validate(ImportVmCommand.java:220) at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.CommandBase.internalValidateInTransaction(CommandBase.java:824) at org.ovirt.engine.core.utils//org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInSuppressed(TransactionSupport.java:140) at org.ovirt.engine.core.utils//org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInSuppressed(TransactionSupport.java:157) ........ ........ 2022-07-05 16:51:26,335+02 INFO [org.ovirt.engine.core.bll.exportimport.ImportVmCommand] (EE-ManagedThreadFactory-engine-Thread-4932) [752aa465] Lock freed to object 'EngineLock:{exclusiveLocks='[HostedEngine=VM_NAME, 4daba166-3da4-4220-8a56-5ddadf83015d=VM]', sharedLocks='[4daba166-3da4-4220-8a56-5ddadf83015d=REMOTE_VM]'}' 2022-07-05 16:51:26,335+02 ERROR [org.ovirt.engine.core.bll.HostedEngineImporter] (EE-ManagedThreadFactory-engine-Thread-4932) [752aa465] Failed importing the Hosted Engine VM
This is another.
Is there any way to solve this issue? Web management interface is working except for the fact that i can't add new nodes and forget a storage domain which is no more existent.
Please clarify first the flow you are/were going through. Was the original setup a hosted-engine? How did you restore? If using 'hosted-engine --deploy --restore-from-file', did you use a new storage domain? Did the first issue (can't see HE VM) happen right after finishing restore? Did you try anything else to fix this? In particular, did you try to import the old hosted_storage domain? If you followed some guide/document, please share a link to it. Thanks. Perhaps check/share also setup logs, from the host used for deploy/restore. Good luck and best regards, -- Didi

thank you Didi, let's focus on first problem: hosted engine. For other problems i will open other threads, just to give other users clearer threads. i restored the hosted engine just to move it to a new storage domain. I followed the step-by-step guide from redhat: https://access.redhat.com/solutions/2998291 I already did those steps successfully, but this time i noticed that --noansible option was no more available during provisioning step: hosted-engine --deploy --noansible become hosted-engine --deploy I tried first to use an iscsi target as new SD with no luck and then i used an NFS SD. Restore has been done after deploying, as documented in the link above. Installation job and setup job gave no errors, but now engine is not inside vm list. Any hint about what to search for? If things went too much though, i could do a brend new install of a host and therefore hosted engine and manage vm migration in some way (i.e. sharing SD, exporting and importing VMs) Thank you

On Wed, Jul 6, 2022 at 8:14 PM Roberto Bertucci <rob.bertucci@gmail.com> wrote:
thank you Didi, let's focus on first problem: hosted engine. For other problems i will open other threads, just to give other users clearer threads. i restored the hosted engine just to move it to a new storage domain.
I followed the step-by-step guide from redhat: https://access.redhat.com/solutions/2998291
This is an old article, relevant for versions <= 4.2. What version do you use?
I already did those steps successfully, but this time i noticed that --noansible option was no more available during provisioning step:
hosted-engine --deploy --noansible
become
hosted-engine --deploy
I tried first to use an iscsi target as new SD with no luck and then i used an NFS SD. Restore has been done after deploying, as documented in the link above.
In 4.2, this was possible - you were asked whether the deploy process should run engine-setup for you, and for following the above doc, you should have replied 'no', login to the engine vm, then restore, and then run engine-setup. In 4.3 and later this is not an option anymore - engine-setup is always ran, and on restore, deploy also runs the restore for you, and if you need to do/fix stuff manually in the middle, there are means for that [1]. I recommend upgrading to 4.5, anyway. 4.4 and older are EOL.
Installation job and setup job gave no errors, but now engine is not inside vm list.
Any hint about what to search for? If things went too much though, i could do a brend new install of a host and therefore hosted engine and manage vm migration in some way (i.e. sharing SD, exporting and importing VMs)
This is also an option and has its own pros and cons, which greatly depend on your specific needs/use case/etc. [1] https://github.com/oVirt/ovirt-ansible-collection/tree/master/roles/hosted_e... Best regards, -- Didi
participants (2)
-
Roberto Bertucci
-
Yedidyah Bar David