Power management and storage domains error when running Ansible tasks!

Hello everyone, when I create a host via Ansible role "ovirt.infra" I get an error that power management is not enabled (red exclamation sign in the UI). My vars in the playbook look as follows. hosts: - name: delirium address: delirium.home cluster: Matrix public_key: true power_management_enabled: true Why is power management not enabled? What is it used for and how do I enable it with Ansible? I am trying to create a storage domain as follows. storages: vmdata: domain_function: data state: present data_center: Matrix localfs: path: /vmisos host: delirium.home vmisos: domain_function: data state: present data_center: Matrix localfs: path: /vmdata host: delirium.home However I get the following error. msg: Fault reason is "Incomplete parameters". Fault detail is "StorageDomain [storage] required for add". HTTP response code is 400. An exception occurred during task execution. To see the full traceback, use -vvv. The error was: Error: Fault reason is "Incomplete parameters". Fault detail is "StorageDomain [storage] required for add". HTTP response code is 400. failed: [delirium.home] (item={'key': 'vmisos', 'value': {'name': 'isos', 'domain_function': 'data', 'state': 'present', 'data_center': 'Matrix', 'localfs': {'path': '/vmdata'}, 'host': 'delirium.home'}}) => changed=false What is "storage" here? I don't see "storage" as parameter in https://docs.ansible.com/ansible/latest/modules/ovirt_storage_domain_module..... Kind regards skrzetuski

OK, so for the storage part: It looks like I was taking storage for storage domain and those seem to be two different things. Seems I can't create a storage domain with "ovirt.infra".

On Fri, Jan 3, 2020 at 5:29 PM <m.skrzetuski@gmail.com> wrote:
Hello everyone,
when I create a host via Ansible role "ovirt.infra" I get an error that power management is not enabled (red exclamation sign in the UI). My vars in the playbook look as follows.
hosts: - name: delirium address: delirium.home cluster: Matrix public_key: true power_management_enabled: true
Can you please attach engine.log
Why is power management not enabled? What is it used for and how do I enable it with Ansible?
Power management is used to automatically recover a failing host by rebooting it using its power-management card
I am trying to create a storage domain as follows.
storages: vmdata: domain_function: data state: present data_center: Matrix localfs: path: /vmisos host: delirium.home vmisos: domain_function: data state: present data_center: Matrix localfs: path: /vmdata host: delirium.home
However I get the following error.
msg: Fault reason is "Incomplete parameters". Fault detail is "StorageDomain [storage] required for add". HTTP response code is 400. An exception occurred during task execution. To see the full traceback, use -vvv. The error was: Error: Fault reason is "Incomplete parameters". Fault detail is "StorageDomain [storage] required for add". HTTP response code is 400. failed: [delirium.home] (item={'key': 'vmisos', 'value': {'name': 'isos', 'domain_function': 'data', 'state': 'present', 'data_center': 'Matrix', 'localfs': {'path': '/vmdata'}, 'host': 'delirium.home'}}) => changed=false
What is "storage" here? I don't see "storage" as parameter in https://docs.ansible.com/ansible/latest/modules/ovirt_storage_domain_module.... .
Kind regards skrzetuski _______________________________________________ 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/V43K5NVHZAU5HS...

I don't feel comfortable uploading the whole file with all the information inside it. I can see the following entries around power management. 2020-01-05 12:58:18,031+01 WARN [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-3) [26be9219] EVENT_ID: VDS_HOST_NOT_RESPONDING(9,027), Host <myhost> is not responding. Host cannot be fenced automatically because power management for the host is disabled. [...] 2020-01-05 12:58:24,435+01 WARN [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engineScheduled-Thread-25) [cff01c0] EVENT_ID: VDS_ALERT_FENCE_IS_NOT_CONFIGURED(9,000), Failed to verify Power Management configuration for Host <myhost>. When (in the web UI) I try to activate power management for the host I get an error: Cannot edit Host. Power Management is enabled for Host but no Agent type selected. Which agent is the error talking about? Do I have to run an agent somewhere?

On Sun, Jan 5, 2020 at 2:14 PM <m.skrzetuski@gmail.com> wrote:
I don't feel comfortable uploading the whole file with all the information inside it. I can see the following entries around power management.
2020-01-05 12:58:18,031+01 WARN [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-3) [26be9219] EVENT_ID: VDS_HOST_NOT_RESPONDING(9,027), Host <myhost> is not responding. Host cannot be fenced automatically because power management for the host is disabled. [...] 2020-01-05 12:58:24,435+01 WARN [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engineScheduled-Thread-25) [cff01c0] EVENT_ID: VDS_ALERT_FENCE_IS_NOT_CONFIGURED(9,000), Failed to verify Power Management configuration for Host <myhost>.
When (in the web UI) I try to activate power management for the host I get an error: Cannot edit Host. Power Management is enabled for Host but no Agent type selected.
Which agent is the error talking about? Do I have to run an agent somewhere?
Please refer to [1] on how to set power management agent for your host [1] https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualizat...
_______________________________________________ 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/7A5KBUZALRXP7T...

I don't have power management devices on the Intel NUC. You probably missed the message where I posted this because of https://lists.ovirt.org/archives/list/users@ovirt.org/thread/4WRVQKDASO7YORT....

Hi, On Tue, Jan 14, 2020 at 7:51 PM <m.skrzetuski@gmail.com> wrote:
I don't have power management devices on the Intel NUC. You probably missed the message where I posted this because of https://lists.ovirt.org/archives/list/users@ovirt.org/thread/4WRVQKDASO7YORT... .
For production you will need hardware that supports power management (either the servers or external device, like UPS). In case you need just to test ovirt with power management, you can setup software power management on the hypervisor, where the ovirt nodes will be hosted as nested. I had luck with following approach: Assumption: Baremetal: the host where nested KVM is setup. Ovirt VMs: CentOS7-ovirt0, CentOS7-ovirt1 [root@baremetal ~]# yum install python-pip -y [root@baremetal ~]# yum install -y zeromq-devel [root@baremetal ~]# yum install -y gcc python-devel libvirt-devel [root@baremetal ~]# firewall-cmd --permanent --zone=public --add-port=623-624/udp [root@baremetal ~]# firewall-cmd --reload [root@baremetal ~]# vbmc add CentOS7-ovirt0 --username root --password yourpass --port 623 [root@baremetal ~]# vbmc add CentOS7-ovirt1 --username root --password yourpass --port 624 [root@baremetal ~]# vbmc list +----------------+--------+---------+------+ | Domain name | Status | Address | Port | +----------------+--------+---------+------+ | CentOS7-ovirt0 | down | :: | 623 | | CentOS7-ovirt1 | down | :: | 624 | +----------------+--------+---------+------+ [root@baremetal ~]# vbmc start CentOS7-ovirt0 2019-10-16 18:44:57,397.397 26596 INFO VirtualBMC [-] Started vBMC instance for domain CentOS7-ovirt0 [root@baremetal ~]# vbmc start CentOS7-ovirt1 2019-10-16 18:45:38,056.056 26596 INFO VirtualBMC [-] Started vBMC instance for domain CentOS7-ovirt1 [root@baremetal ~]# vbmc list +----------------+---------+---------+------+ | Domain name | Status | Address | Port | +----------------+---------+---------+------+ | CentOS7-ovirt0 | running | :: | 623 | | CentOS7-ovirt1 | running | :: | 624 | +----------------+---------+---------+------+ at node0 host (VM) check: ipmitool -I lanplus -U root -P yourpass -H <hardware host IP> power status (default port is 623) ipmitool -I lanplus -U root -P yourpass -H <hardware host IP> power status -p 624 at ovirt GUI you need lanplus=1,-p623 and lanplus=1,-p624 options for each host. _______________________________________________
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/SBA4MTQT62YFIG...
participants (3)
-
Alex K
-
Eli Mesika
-
m.skrzetuski@gmail.com