Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions docs/administration/upgrade/v6.0_changes.adoc

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Clee2691 be aware that I should expect to have this step incorporated to the Upgrade documentation [0] as a sorted (numbered step) as it's in the KCS [1]

[0] https://docs.redhat.com/en/documentation/red_hat_openshift_logging/6.4/html/upgrading_logging/upgrading-to-logging-6
[1] https://access.redhat.com/articles/7089860

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please raise this as a documentation bug/feature in the appropriate JIRA project

Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,54 @@ namespace before removing the **ClusterLogging** resource named '**instance**' i
oc patch -n openshift-logging Kibana kibana --type=merge -p '{"metadata": {"ownerReferences": [], "labels": {"pod-template-hash":null}}}'
----

=== Log File Metric Exporter
If you had a **LogFileMetricExporter** deployed in Logging 5, the existing `logfilesmetricexporter` DaemonSet must be deleted and recreated during the upgrade. Logging 6 updated the DaemonSet label selectors, and because Kubernetes does not allow changes to the `spec.selector` field of a DaemonSet, the operator cannot update it in place.

==== Before Upgrading
Delete the **LogFileMetricExporter** CR before upgrading the operator. After deleting the CR, verify that the `logfilesmetricexporter` DaemonSet has also been removed. If the DaemonSet remains, delete it manually before proceeding.

.Backup the existing CR
[source]
----
oc get logfilesmetricexporter instance -n openshift-logging -o yaml > logfilesmetricexporter-instance.yaml
----

.Delete the CR
[source]
----
oc delete logfilemetricexporters instance -n openshift-logging
----

.Verify the DaemonSet is absent

@r2d2rnd r2d2rnd Jul 28, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd change the steps for being:

  1. Verify the Daemonset is absent
  oc get daemonset logfilesmetricexporter -n openshift-logging
  1. Backup it
  oc get daemonset logfilesmetricexporter -n openshift-logging -o yaml > logfilemetricsexporter.yaml
  1. Delete it
oc delete daemonset logfilesmetricexporter -n openshift-logging 
  1. Recreate it....

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The point of doing the second command is IF the daemonset still exists, then delete it. If both these steps are combined then there is no need to verify first, just delete instead. I am inclined to leave it as is.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @Clee2691 ,

I'm not combinating any step, in fact, I'm adding the backup step, the 2 before deleting it

@Clee2691 Clee2691 Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@r2d2rnd Oh I was seeing the original comment. I see the edited one now.

Instead of backing up the daemonset, we should be backing up the LFME CR before deleting it. We want the CLO to reconcile the daemonset here.

[source]
----
oc get daemonset logfilesmetricexporter -n openshift-logging
----

.If the DaemonSet still exists, delete it:

[source]
----
oc delete daemonset logfilesmetricexporter -n openshift-logging
----

After the operator upgrade is complete, recreate the CR from the backup.

.Recreate the CR from the backup
[source]
----
oc apply -f logfilesmetricexporter-instance.yaml
----

==== After Upgrading
If the operator is already upgraded and reporting a reconciler error for the **LogFileMetricExporter**, delete the DaemonSet directly. The operator will recreate it automatically.

.Delete the DaemonSet
[source]
----
oc delete daemonset logfilesmetricexporter -n openshift-logging
Comment thread
coderabbitai[bot] marked this conversation as resolved.
----

=== Log Collection & Forwarding
Log collection and forwarding configuration is spec'd from a new link:../../reference/operator/api_observability_v1.adoc[API]
that is included in the API group **observability.openshift.io**. The following sections highlight the differences from the
Expand Down
Loading