%PDF- %PDF-
Direktori : /lib/python3/dist-packages/sos/collector/clusters/__pycache__/ |
Current File : //lib/python3/dist-packages/sos/collector/clusters/__pycache__/ovirt.cpython-312.pyc |
� i��d� � �j � d dl Z d dlmZ d dlmZ dZ G d� de� Z G d� de� Z G d � d e� Zy)� N)�quote)�Clusterz(/etc/pki/ovirt-engine/keys/engine_id_rsac �Z � e Zd ZdZdZdZdZg d�Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � Zd� Zy)�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)zovirt-enginez3/usr/share/ovirt-engine/dbscripts/engine-psql.sh -c))�no-databaseFzDo not collect a database dump)�cluster� z'Only collect from hosts in this cluster)� datacenterr z*Only collect from hosts in this datacenter)�no-hypervisorsFzDo not collect from hypervisors)�spm-onlyFzOnly collect from SPM host(s)c �\ � | j �dt |� ��}| j |d�� 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. � T�� need_root)�db_execr �exec_primary_cmd)�self�query�cmds �>/usr/lib/python3/dist-packages/sos/collector/clusters/ovirt.py� _run_db_queryzovirt._run_db_query<