Sindbad~EG File Manager
3
�f� � @ sX d dl Z d dlmZ d dlmZ dZG dd� de�ZG dd� de�ZG d d
� d
e�ZdS )� N)�quote)�Clusterz(/etc/pki/ovirt-engine/keys/engine_id_rsac @ sr e Zd ZdZdZd$ZdZd%d&d'd(d)gZdd� Zdd� Z dd� Z
dd� Zdd� Zdd� Z
dd� Zdd � Zd!d"� Zd#S )*�ovirta�
This cluster profile is for the oVirt/RHV project which provides for a
virtualization cluster built ontop of KVM.
Nodes enumerated will be hypervisors within the envrionment, not virtual
machines running on those hypervisors. By default, ALL hypervisors within
the environment are returned. This may be influenced by the 'cluster' and
'datacenter' cluster options, which will limit enumeration to hypervisors
within the specific cluster and/or datacenter. The spm-only cluster option
may also be used to only collect from hypervisors currently holding the
SPM role.
Optionally, to only collect an archive from manager and the postgresql
database, use the no-hypervisors cluster option.
By default, a second archive from the manager will be collected that is
just the postgresql plugin configured in such a way that a dump of the
manager's database that can be explored and restored to other systems will
be collected.
The ovirt profile focuses on the upstream, community ovirt project.
The rhv profile is for Red Hat customers running RHV (formerly RHEV).
The rhhi_virt profile is for Red Hat customers running RHV in a
hyper-converged setup and enables gluster collections.
zCommunity oVirt�ovirt-enginez3/usr/share/ovirt-engine/dbscripts/engine-psql.sh -c�no-databaseF�Do not collect a database dump�cluster� �'Only collect from hosts in this cluster�
datacenter�*Only collect from hosts in this datacenter�no-hypervisors�Do not collect from hypervisors�spm-only�Only collect from SPM host(s)c C s d| j t|�f }| j|dd�S )z�
Wrapper for running DB queries on the manager. Any scrubbing of the
query should be done _before_ passing the query to this method.
z%s %sT)� need_root)�db_execr �exec_primary_cmd)�selfZquery�cmd� r �/usr/lib/python3.6/ovirt.py�
_run_db_query<