Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release-4.16] OCPBUGS-38021: Integration of the OpenStack CRs into t…
…he insights-operator (openshift#974) * Collect oscp CRs Control Plan of the Red Hat OpenStack starting from the version 18 (RHOSO 18) will be deployed using OpenShift operators as a set of OpenShift applications. Compute nodes will be deployed still as RHEL nodes and will be outside of the OpenShift cluster but all will be mangaged by the Dataplane-operator and only interface for OpenStack operators will be though the CRs: - OpenStackControlPlane CR for the control plane, - OpenStackDataplaneNodeSet and OpenStackDataplaneDeployment CRs for the compute nodes. This patch adds OpenStackControlPlane CR to the insights-operator so that whole configuration of the OpenStack control plane may be gathered by the insights-operator and send to analysis to the Insights server. Co-Authored-By: Yatin Karel <ykarel@redhat.com> Conflicts: docs/gathered-data.md pkg/gatherers/clusterconfig/clusterconfig_gatherer.go Related: #OSPRH-5904 (cherry picked from commit 999cbf5) * Add anonymization for data in the oscp CR Some fields in the collected OpenStackControlPlane CRs should be anonymized. This is for example field 'options' from the 'dns' service spec. Related: #OSPRH-5904 (cherry picked from commit d725c1f) * Add test module for the oscp CR gatherer (cherry picked from commit 1573f08) * Add way to drop some fields from the gathered oscp CR For now it will drop only 'metadata/annotations/kubectl.kubernetes.io/last-applied-configuration' but other fields can be added to that list too. (cherry picked from commit c697f3d) * Collect osdpns CRs Control Plan of the Red Hat OpenStack starting from the version 18 (RHOSO 18) will be deployed using OpenShift operators as a set of OpenShift applications. Compute nodes will be deployed still as RHEL nodes and will be outside of the OpenShift cluster but all will be mangaged by the Dataplane-operator and only interface for OpenStack operators will be though the CRs: - OpenStackControlPlane CR for the control plane, - OpenStackDataplaneNodeSet and OpenStackDataplaneDeployment CRs for the compute nodes. This patch adds OpenStackDataplaneNodeSet CR to the insights-operator so that whole configuration of the OpenStack control plane may be gathered by the insights-operator and send to analysis to the Insights server. Co-Authored-By: Yatin Karel <ykarel@redhat.com> Related: #OSPRH-5904 (cherry picked from commit 809ea80) * Collect osdpd CRs Control Plan of the Red Hat OpenStack starting from the version 18 (RHOSO 18) will be deployed using OpenShift operators as a set of OpenShift applications. Compute nodes will be deployed still as RHEL nodes and will be outside of the OpenShift cluster but all will be mangaged by the Dataplane-operator and only interface for OpenStack operators will be though the CRs: - OpenStackControlPlane CR for the control plane, - OpenStackDataplaneNodeSet and OpenStackDataplaneDeployment CRs for the compute nodes. This patch adds OpenStackDataplaneDeployment CR to the insights-operator so that whole configuration of the OpenStack control plane may be gathered by the insights-operator and send to analysis to the Insights server. Co-Authored-By: Yatin Karel <ykarel@redhat.com> Related: #OSPRH-5904 (cherry picked from commit 52659ff) * Add 'ansibleHost' field to be annonymized (cherry picked from commit 933ac23) * Rename names of the collected OpenStackDataPlane resources (cherry picked from commit 5a82b6b) * Update examples of the OpenStack CRs to their latest versions Related: #OSPRH-5904 (cherry picked from commit c6feae6) * Collect OpenStackVersion CRs Red Hat's openstack-operator in addition to the OpenStackControlPlane and OpenStackDataPlane CRs uses also additonal CR 'openstackversions' which reports version of the openstack(s) deployed in the OCP cluster. This patch adds support for gathering also this CRs from the cluster if they exists. Related: #OSPRH-5904 (cherry picked from commit d0d5cc7)
- Loading branch information