As far as I know , hosts can be changed by:
1. Remove a host from oVirt.
2. Change the IP and reboot to verify functionality
3. Add the host to oVirt

For the engine is a little bit more difficult as there is an OVMF file that is on the shared storage and the ovirt-ha-broker & ovirt-ha-agent are reading and searching for IP/FQDN.

Maybe you can try the following (never tested, just improvising, USE ON YOUR OWN RISK!!!):
00. Prepare an Engine backup
0. Prepare an xml for virsh where HostedEngine is booting from an ISO (take the xml from vdsm.log and alter the boot order)
0. Prepare an xml for the vdsm-ovirtmgmt network. Mine is:
<network>
 <name>vdsm-ovirtmgmt</name>
 <uuid>c3964504-2b11-4605-8236-3ca87d5d54a7</uuid>
 <forward mode='bridge'/>
 <bridge name='ovirtmgmt'/>
</network>
0. set an alias for virsh:
alias virsh='virsh -c qemu:///system?authfile=/etc/ovirt-hosted-engine/virsh_auth.conf'

1. Set global maintenance
2. Change manually the IP in the engine
3. Wait at least several hours (default value for update of the OVMF is not working as we would like to)
4. Power off the Engine
5. Power on the engine while still in maintenance:
hosted-engine --vm-start
6. If the Engine comes alive and is treated as healthy - you can remove the maintenance and try again via powering off the engine from inside the VM.

Note: This will set 'score: 0' for the host that was holding the engine - to fix -> set the node to local maintenance and remove the maintenance.
P.S.: you can set a cronjob on reboot like this:
@reboot /usr/bin/sleep 600; /usr/bin/mv /root/ifcfg-<ethX> /etc/sysconfig/network-scripts && /usr/bin/systemctl restart network
So if you fail to login over ssh , it might revert your IP change :)



P.S.: if the engine doesn't come up you can:
1. Define the network via virsh and the network xml from step 0
2. Define the HostedEngine (you might have to first undefine it) with the xml that you took from vdsm.log and manipulated it to boot from DVD
3. Power the vm in paused state (use hosted-engine)
4. Get a password for the VNC
5. Connect via VNC
6. Use virsh to resume the HostedEngine
7. In rescue mode - revert the IP


Of course if the revert fails - you got the necessary data in step 0 to rescue the engine and as last resort you got an engine backup.

Good luck and don't forget to share your experience!

Best Regards,
Strahil Nikolov


В сряда, 13 ноември 2019 г., 16:53:37 ч. Гринуич+2, Jonathan Mathews <jm3185951@gmail.com> написа:


Hi Pavel

Thank you for the advise, it helped a lot.

Do you have recommendation on changing the IP addresses of the oVirt Engine, hosts and storage?

My customer did a SD-WAN setup and there are conflicting IP's, so I need to move the oVirt environment to a new IP range.

Thanks

On Tue, Nov 12, 2019 at 2:15 PM Pavel Bar <pbar@redhat.com> wrote:
Hi Jonathan,
Probably the easiest way is to remove the domain.

Can you try the following:
1) Go to "Storage" menu.
2) Go to "Domain" menu.
3) Click on the domain with the red status.
4) Destroy it (in your case the "Destroy" option should be enabled):
image.png

Hope it helps.

Pavel


On Wed, Nov 6, 2019 at 10:21 AM Jonathan Mathews <jm3185951@gmail.com> wrote:
Good Day

Is it possible to get some assistance?

I am really stuck with this.

On Wed, Oct 30, 2019 at 12:33 PM Jonathan Mathews <jm3185951@gmail.com> wrote:
Good Day

I have to change the IP addresses of the oVirt Engine, hosts and storage to a new IP range. Please, can you advise the best way to do this and if there is anything I would need to change in the database?

I have also run into an issue where someone has removed the ISO share/data on the storage, so I am unable to remove, activate, detach or even add a new ISO share.
Please, can you advise the best wat to resolve this?

Please see the below engine logs:

2019-10-30 11:39:13,918 ERROR [org.ovirt.engine.core.vdsbroker.irsbroker.DetachStorageDomainVDSCommand] (org.ovirt.thread.pool-8-thread-27) [58f6cfb8] Failed in 'DetachStorageDomainVDS' method
2019-10-30 11:39:13,942 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (org.ovirt.thread.pool-8-thread-27) [58f6cfb8] Correlation ID: null, Call Stack: null, Custom Event ID: -1, Message: VDSM command failed: Storage domain does not exist: (u'42b7d819-ce3a-4a18-a683-f4817c4bdb06',)
2019-10-30 11:39:13,943 ERROR [org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand] (org.ovirt.thread.pool-8-thread-27) [58f6cfb8] IrsBroker::Failed::DetachStorageDomainVDS: IRSGenericException: IRSErrorException: Failed to DetachStorageDomainVDS, error = Storage domain does not exist: (u'42b7d819-ce3a-4a18-a683-f4817c4bdb06',), code = 358
2019-10-30 11:39:13,951 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.DetachStorageDomainVDSCommand] (org.ovirt.thread.pool-8-thread-27) [58f6cfb8] FINISH, DetachStorageDomainVDSCommand, log id: 5547e2df
2019-10-30 11:39:13,951 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.SPMGetAllTasksInfoVDSCommand] (org.ovirt.thread.pool-8-thread-38) [58f6cfb8] -- executeIrsBrokerCommand: Attempting on storage pool '5849b030-626e-47cb-ad90-3ce782d831b3'
2019-10-30 11:39:13,951 ERROR [org.ovirt.engine.core.bll.storage.DetachStorageDomainFromPoolCommand] (org.ovirt.thread.pool-8-thread-27) [58f6cfb8] Command 'org.ovirt.engine.core.bll.storage.DetachStorageDomainFromPoolCommand' failed: EngineException: org.ovirt.engine.core.vdsbroker.irsbroker.IRSErrorException: IRSGenericException: IRSErrorException: Failed to DetachStorageDomainVDS, error = Storage domain does not exist: (u'42b7d819-ce3a-4a18-a683-f4817c4bdb06',), code = 358 (Failed with error StorageDomainDoesNotExist and code 358)
2019-10-30 11:39:13,952 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksInfoVDSCommand] (org.ovirt.thread.pool-8-thread-38) [58f6cfb8] START, HSMGetAllTasksInfoVDSCommand(HostName = host01, VdsIdVDSCommandParametersBase:{runAsync='true', hostId='291a3a19-7467-4783-a6f7-2b2dd0de9ad3'}), log id: 6cc238fb
2019-10-30 11:39:13,952 INFO  [org.ovirt.engine.core.bll.storage.DetachStorageDomainFromPoolCommand] (org.ovirt.thread.pool-8-thread-27) [58f6cfb8] Command [id=cec030b7-4a62-43a2-9ae8-de56a5d71ef8]: Compensating CHANGED_STATUS_ONLY of org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap; snapshot: EntityStatusSnapshot:{id='StoragePoolIsoMapId:{storagePoolId='5849b030-626e-47cb-ad90-3ce782d831b3', storageId='42b7d819-ce3a-4a18-a683-f4817c4bdb06'}', status='Inactive'}.
2019-10-30 11:39:13,975 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (org.ovirt.thread.pool-8-thread-27) [58f6cfb8] Correlation ID: 28ac658, Job ID: b31e0f44-2d82-47bf-90d9-f69e399d994f, Call Stack: null, Custom Event ID: -1, Message: Failed to detach Storage Domain iso to Data Center Default. (User: admin@internal)





2019-10-30 11:42:46,711 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.SPMGetAllTasksInfoVDSCommand] (org.ovirt.thread.pool-8-thread-25) [31e89bba] START, SPMGetAllTasksInfoVDSCommand( IrsBaseVDSCommandParameters:{runAsync='true', storagePoolId='5849b030-626e-47cb-ad90-3ce782d831b3', ignoreFailoverLimit='false'}), log id: 59192768
2019-10-30 11:42:48,825 ERROR [org.ovirt.engine.core.vdsbroker.irsbroker.ActivateStorageDomainVDSCommand] (org.ovirt.thread.pool-8-thread-34) [31e89bba] Failed in 'ActivateStorageDomainVDS' method
2019-10-30 11:42:48,855 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (org.ovirt.thread.pool-8-thread-34) [31e89bba] Correlation ID: null, Call Stack: null, Custom Event ID: -1, Message: VDSM command failed: Storage domain does not exist: (u'42b7d819-ce3a-4a18-a683-f4817c4bdb06',)
2019-10-30 11:42:48,856 ERROR [org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand] (org.ovirt.thread.pool-8-thread-34) [31e89bba] IrsBroker::Failed::ActivateStorageDomainVDS: IRSGenericException: IRSErrorException: Failed to ActivateStorageDomainVDS, error = Storage domain does not exist: (u'42b7d819-ce3a-4a18-a683-f4817c4bdb06',), code = 358
2019-10-30 11:42:48,864 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.ActivateStorageDomainVDSCommand] (org.ovirt.thread.pool-8-thread-34) [31e89bba] FINISH, ActivateStorageDomainVDSCommand, log id: 518fdcf
2019-10-30 11:42:48,865 ERROR [org.ovirt.engine.core.bll.storage.ActivateStorageDomainCommand] (org.ovirt.thread.pool-8-thread-34) [31e89bba] Command 'org.ovirt.engine.core.bll.storage.ActivateStorageDomainCommand' failed: EngineException: org.ovirt.engine.core.vdsbroker.irsbroker.IRSErrorException: IRSGenericException: IRSErrorException: Failed to ActivateStorageDomainVDS, error = Storage domain does not exist: (u'42b7d819-ce3a-4a18-a683-f4817c4bdb06',), code = 358 (Failed with error StorageDomainDoesNotExist and code 358)
2019-10-30 11:42:48,865 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.SPMGetAllTasksInfoVDSCommand] (org.ovirt.thread.pool-8-thread-25) [31e89bba] -- executeIrsBrokerCommand: Attempting on storage pool '5849b030-626e-47cb-ad90-3ce782d831b3'
2019-10-30 11:42:48,865 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksInfoVDSCommand] (org.ovirt.thread.pool-8-thread-25) [31e89bba] START, HSMGetAllTasksInfoVDSCommand(HostName = host02, VdsIdVDSCommandParametersBase:{runAsync='true', hostId='3673a0e1-721d-40ba-a179-b1f13a9aec43'}), log id: 47ef923b
2019-10-30 11:42:48,866 INFO  [org.ovirt.engine.core.bll.storage.ActivateStorageDomainCommand] (org.ovirt.thread.pool-8-thread-34) [31e89bba] Command [id=68bf0e1e-6a0b-41cb-9cad-9eb2bf87c5ee]: Compensating CHANGED_STATUS_ONLY of org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap; snapshot: EntityStatusSnapshot:{id='StoragePoolIsoMapId:{storagePoolId='5849b030-626e-47cb-ad90-3ce782d831b3', storageId='42b7d819-ce3a-4a18-a683-f4817c4bdb06'}', status='Inactive'}.
2019-10-30 11:42:48,888 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (org.ovirt.thread.pool-8-thread-34) [31e89bba] Correlation ID: 5b208434, Job ID: dff5f615-9dc4-4d79-a37e-5c6e99a2cc6b, Call Stack: null, Custom Event ID: -1, Message: Failed to activate Storage Domain iso (Data Center Default) by admin@internal

Thanks
Jonathan
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/H7ULADFFNAYJC67VSQAY3QGBRLJ6RJYU/
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/FIAPRZOFPMZOJSPFUQLRCTJQJ42TUYAW/