[ovirt-users] Unable to start HostedEngine

2023-11-01 Thread Devin A. Bougie
After a failed attempt at migrating our HostedEngine to a new iSCSI storage 
domain, we're unable to restart the original HostedEngine.  

Please see below for some details, and let me know what more information I can 
provide.  "Lnxvirt07" was the Host used to attempt the migration.  Any help 
would be greatly appreciated.

Many thanks,
Devin

--
[root@lnxvirt01 ~]# tail -n 5 /var/log/ovirt-hosted-engine-ha/agent.log
MainThread::INFO::2023-11-01 
12:29:53,514::state_decorators::51::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(check)
 Global maintenance detected
MainThread::INFO::2023-11-01 
12:29:54,151::ovf_store::117::ovirt_hosted_engine_ha.lib.ovf.ovf_store.OVFStore::(scan)
 Found OVF_STORE: imgUUID:05ef954f-d06d-401c-85ec-5992e2afbe7d, 
volUUID:d2860f1d-19cf-4084-8a7e-d97880c32431
MainThread::INFO::2023-11-01 
12:29:54,530::ovf_store::117::ovirt_hosted_engine_ha.lib.ovf.ovf_store.OVFStore::(scan)
 Found OVF_STORE: imgUUID:a375a35b-7a87-4df4-8d29-a5ba371fee85, 
volUUID:ef8b3dae-bcae-4d58-bea8-cf1a34872267
MainThread::ERROR::2023-11-01 
12:29:54,813::config_ovf::65::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config.vm::(_get_vm_conf_content_from_ovf_store)
 Failed extracting VM OVF from the OVF_STORE volume, falling back to initial 
vm.conf
MainThread::INFO::2023-11-01 
12:29:54,843::hosted_engine::531::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_monitoring_loop)
 Current state GlobalMaintenance (score: 3400)

[root@lnxvirt01 ~]# hosted-engine --vm-start
Command VM.getStats with args {'vmID': 'e6370d8f-c083-4f28-83d0-a232d693e07a'} 
failed:
(code=1, message=Virtual machine does not exist: {'vmId': 
'e6370d8f-c083-4f28-83d0-a232d693e07a'})
Command VM.create with args {'vmID': 'e6370d8f-c083-4f28-83d0-a232d693e07a', 
'vmParams': {'vmId': 'e6370d8f-c083-4f28-83d0-a232d693e07a', 'memSize': 
'16384', 'display': 'vnc', 'vmName': 'HostedEngine', 'smp': '4', 'maxVCpus': 
'40', 'cpuType': 'Haswell-noTSX', 'emulatedMachine': 'pc', 'devices': 
[{'index': '2', 'iface': 'ide', 'address': {'controller': '0', 'target': '0', 
'unit': '0', 'bus': '1', 'type': 'drive'}, 'specParams': {}, 'readonly': 
'true', 'deviceId': 'b3e2f40a-e28d-493c-af50-c1193fb9dc97', 'path': '', 
'device': 'cdrom', 'shared': 'false', 'type': 'disk'}, {'index': '0', 'iface': 
'virtio', 'format': 'raw', 'poolID': '----', 
'volumeID': '6afa3b19-7a1a-4e5c-a681-eed756d316e9', 'imageID': 
'94628710-cf73-4589-bd84-e58f741a4d5f', 'specParams': {}, 'readonly': 'false', 
'domainID': '555ad71c-1a4e-42b3-af8c-db39d9b9df67', 'optional': 'false', 
'deviceId': '6afa3b19-7a1a-4e5c-a681-eed756d316e9', 'address': {'bus': '0x00', 
'slot': '0x06', 'domain': '0x', 'type': 'pci', 'function': '0x0'}, 
'device': 'disk', 'shared': 'exclusive', 'propagateErrors': 'off', 'type': 
'disk', 'bootOrder': '1'}, {'device': 'scsi', 'model': 'virtio-scsi', 'type': 
'controller'}, {'nicModel': 'pv', 'macAddr': '00:16:3e:3b:3f:14', 'linkActive': 
'true', 'network': 'ovirtmgmt', 'specParams': {}, 'deviceId': 
'002afd06-9649-4ac5-a5e8-1a4945c3c136', 'address': {'bus': '0x00', 'slot': 
'0x03', 'domain': '0x', 'type': 'pci', 'function': '0x0'}, 'device': 
'bridge', 'type': 'interface'}, {'device': 'console', 'type': 'console'}, 
{'device': 'vga', 'alias': 'video0', 'type': 'video'}, {'device': 'vnc', 
'type': 'graphics'}, {'device': 'virtio', 'specParams': {'source': 'urandom'}, 
'model': 'virtio', 'type': 'rng'}]}} failed:
(code=100, message=General Exception: ("'xml'",))
VM failed to launch

[root@lnxvirt01 ~]# cat /etc/ovirt-hosted-engine/hosted-engine.conf 
fqdn=lnxvirt-engine.classe.cornell.edu
vm_disk_id=94628710-cf73-4589-bd84-e58f741a4d5f
vm_disk_vol_id=6afa3b19-7a1a-4e5c-a681-eed756d316e9
vmid=e6370d8f-c083-4f28-83d0-a232d693e07a
storage=192.168.56.50,192.168.56.51,192.168.56.52,192.168.56.53
nfs_version=
mnt_options=
conf=/var/run/ovirt-hosted-engine-ha/vm.conf
host_id=8
console=vnc
domainType=iscsi
spUUID=----
sdUUID=555ad71c-1a4e-42b3-af8c-db39d9b9df67
connectionUUID=e29cf818-5ee5-46e1-85c1-8aeefa33e95d
vdsm_use_ssl=true
gateway=192.168.55.1
bridge=ovirtmgmt
network_test=dns
tcp_t_address=
tcp_t_port=
metadata_volume_UUID=2bf987a2-ab81-454c-9fc7-dc7ec8945fd9
metadata_image_UUID=35429b63-16ca-417a-b87a-d232463bf6a3
lockspace_volume_UUID=b0d09780-2047-433c-812d-10ba0beff788
lockspace_image_UUID=8ccb878d-9938-43c8-908b-e1b416fe991c
conf_volume_UUID=0b40ac60-499e-4ff1-83d0-fc578f1af3dc
conf_image_UUID=551d4fe5-a9f7-4ba1-9951-87418362b434
# The following are used only for iSCSI storage
iqn=iqn.2002-10.com.infortrend:raid.uid58207.001
portal=1
user=
password=
port=3260,3260,3260,3260

[root@lnxvirt01 ~]# hosted-engine --vm-status
!! Cluster is in GLOBAL MAINTENANCE mode !!
--== Host lnxvirt06.classe.cornell.edu (id: 1) status ==--
Host ID: 1
Host timestamp : 3718817
Score  : 3400
Engine 

[ovirt-users] cannot reinstall hosts after moving self hosted engine to standalone VM and renaming ovirt UI FQDN

2023-11-01 Thread vishal . merrit
Getting error in engine.log on the engine VM:

2023-10-31 12:11:12,818Z ERROR 
[org.ovirt.engine.core.bll.hostdeploy.InstallVdsCommand] (default task-44) 
[9deb07c5-f87a-42fb-9c07-33f4d30b197d] Error during ValidateFailure.: 
java.lang.NullPointerException
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/5ABCKROAZ7KUEVF3LAJ37ZP7B2K54XSF/


[ovirt-users] Re: Cannot successfully import Windows vm to new ovirt deployment

2023-11-01 Thread Tomáš Golembiovský
Hi,

On Tue, Oct 31, 2023 at 09:22:25PM -, Michaal R via Users wrote:
> Hi, Tomas, checking in to see if you've been able to look at the info above. 
> Let me know if there's anything I can do.

sorry, not yet. Perhaps Arik would be able to tell from the top of his
head what could be the issue here.

Tomas

> 
> Thanks!
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct: 
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives: 
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/KWQLZCKRFGAEBQYWAEP6GECMS7ZBZFE3/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/J7TSEZTQ6BVUJ3HFVZTYCJDYF7WFPA5M/


[ovirt-users] 'NoneType' object has no attribute 'data_center'

2023-11-01 Thread marek

hi,

i'm using VM creation through ansible - ovirt 4.5


    - name: Creates a new Virtual Machine from template
  ovirt.ovirt.ovirt_vm:
    auth: "{{ ovirt_auth }}"
    state: present
    cpu_cores: 2
    memory: 4GiB
    name: "{{NAME}}"
    template: "{{ VM_TEMPLATE }}"
    comment: "{{comment}}"
    description: "{{description}}"

    cluster: "{{CLUSTER}}"
    type: server
    high_availability: yes
    operating_system: rhel_9x64
    graphical_console:
  protocol:
    - vnc
    cloud_init_persist: yes
    nics:
    - name: enp1s0
  profile_name: "{{VLAN1}}"
    - name: enp2s0
  profile_name: "{{VLAN2}}"

    cloud_init:
  dns_servers: '1.1.1.1'
  host_name: "{{NAME}}"
  user_name: root
  root_password: "{{ROOT_PASSWORD}}"
  authorized_ssh_keys: "ssh-ed25519 secret"
    cloud_init_nics:
    -  nic_name: enp1s0
   nic_boot_protocol: static
   nic_ip_address: "{{PRIVATE_IP}}"
   nic_netmask: 255.255.255.0
   nic_gateway: x.x.x.x
    -  nic_name: enp2s0
   nic_boot_protocol: static
   nic_ip_address: "{{PUBLIC_IP}}"
   nic_netmask: "{{PUBLIC_NETMASK}}"

it works before . double checked input

no upgrades/changes

any ideas where can be problem? any tips howto debug

Marek


The full traceback is:
Traceback (most recent call last):
  File 
"/tmp/ansible_ovirt.ovirt.ovirt_vm_payload_thzzyp5t/ansible_ovirt.ovirt.ovirt_vm_payload.zip/ansible_collections/ovirt/ovirt/plugins/modules/ovirt_vm.py", 
line 2694, in main
  File 
"/tmp/ansible_ovirt.ovirt.ovirt_vm_payload_thzzyp5t/ansible_ovirt.ovirt.ovirt_vm_payload.zip/ansible_collections/ovirt/ovirt/plugins/module_utils/ovirt.py", 
line 673, in create

    self.build_entity(),
  File 
"/tmp/ansible_ovirt.ovirt.ovirt_vm_payload_thzzyp5t/ansible_ovirt.ovirt.ovirt_vm_payload.zip/ansible_collections/ovirt/ovirt/plugins/modules/ovirt_vm.py", 
line 1525, in build_entity
  File 
"/tmp/ansible_ovirt.ovirt.ovirt_vm_payload_thzzyp5t/ansible_ovirt.ovirt.ovirt_vm_payload.zip/ansible_collections/ovirt/ovirt/plugins/modules/ovirt_vm.py", 
line 1418, in __get_template_with_version

AttributeError: 'NoneType' object has no attribute 'data_center'

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/C7LTYQ4IP7I5S4BXVM4I5ORC43IUTZ7Z/