rhev_data_center - datasource
- class insights.parsers.rhev_data_center.RhevDataCenter(context, extra_bad_lines=None)¶
Walk through the /rhev/data-center directory of RHEV host and return the full path of files not having correct file ownership i.e vdsm:kvm. See the rhev_data_center Datasource for more info.
A list of the parsed output returned by rhev_data_center Datasource.
Volumes attached to the RHEV VMs in the Data Center having incorrect file ownership.
SkipComponent -- If no files are found with incorrect ownership.
The following are available in
name- file owner
group- file group
path- full path of a file
>>> assert len(rhev_dc.data) == 4 >>> assert len(rhev_dc.incorrect_volume_ownership) == 1 >>> assert rhev_dc.incorrect_volume_ownership['path'] == '/rhev/data-center/mnt/host1.example.com:_nfsshare_data/a384bf5d-db92-421e-926d-bfb99a6b4b28/images/b7d6cc07-d1f1-44b3-b3c0-7067ec7056a3/4d6e5dea-995f-4a4e-b487-0f70361f6137' >>> assert rhev_dc.incorrect_volume_ownership['name'] == 'root' >>> assert rhev_dc.incorrect_volume_ownership['group'] == 'root'
This method must be implemented by classes based on this class.