Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add upgrade case to test clusterlogforwarder #1935

Merged
merged 3 commits into from
Apr 15, 2021
Merged

add upgrade case to test clusterlogforwarder #1935

merged 3 commits into from
Apr 15, 2021

Conversation

QiaolingTang
Copy link
Contributor

@QiaolingTang QiaolingTang commented Mar 29, 2021

Copy link
Contributor

@anpingli anpingli left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added lgtm Indicates that a PR is ready to be merged. and removed lgtm Indicates that a PR is ready to be merged. labels Mar 29, 2021
@QiaolingTang
Copy link
Contributor Author

New logs:
upgrade-prepare: https://url.corp.redhat.com/3703f34
upgrade-check: https://url.corp.redhat.com/4765d59

@anpingli , sorry, I updated this PR, could you please review it again? Thanks.

# check pvc count
unless BushSlicer::PersistentVolumeClaim.list(user: user, project: project).count == cluster_logging('instance').logstore_node_count
raise "The PVC count doesn't match the ES node count"
if cluster_logging('instance').log_store_spec != nil
Copy link
Contributor

Choose a reason for hiding this comment

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

What will happen when patch result in subscription.operators.coreos.com/cluster-logging unchanged?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If the patch command fails, then the scenario will be failed. https://github.com/openshift/verification-tests/pull/1935/files#diff-25b7b9fb37c470ca782e7381a157ec7648e98a1a80f61f2cce948bba99bf676cR649 .

The upgrade only happens when the channel or/and catalog source changed, if there is no change, then the step I upgrade the operator with won't be executed: https://github.com/openshift/verification-tests/pull/1935/files#diff-25b7b9fb37c470ca782e7381a157ec7648e98a1a80f61f2cce948bba99bf676cR724.

I didn't process the condition when the catalog source changed, I'll modify it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The steps in upgrade-check scenario are:

  1. check if logging could work as expected after cluster is upgraded
  2. check if logging should to be upgraded, if yes, upgrade logging and ensure EFK pods can be upgraded
  3. check if logging could work as expected
    There are some duplication in step 1 and step 3 if step 2 is not executed, but I think this condition won't happen frequently.

@QiaolingTang
Copy link
Contributor Author

/hold

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 31, 2021
@QiaolingTang
Copy link
Contributor Author

Logs:
OCP-29743:
upgrade-prepare: https://url.corp.redhat.com/d042d73
upgrade-check: https://url.corp.redhat.com/8cea59a

/hold cancel

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 31, 2021
@QiaolingTang
Copy link
Contributor Author

@anpingli could you please help to review this PR again?

Copy link
Contributor

@anpingli anpingli left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 12, 2021
@QiaolingTang
Copy link
Contributor Author

/assign @pruan-rht @liangxia

@@ -124,19 +124,19 @@ def wait_until_kibana_is_ready(user: nil, quiet: false, timeout: 10*60)
end
end

private def collection_spec(user: nil, quiet: false, cached: false)
def collection_spec(user: nil, quiet: false, cached: false)
Copy link
Member

Choose a reason for hiding this comment

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

@QiaolingTang any reason you changed these methods from private?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pruan-rht In clusterlogging, the collection_spec, log_store_spec, curation_spec and visualization_spec are optional. In some scenarios we may not define all of them when creating clusterlogging/instance. I want to use these methods to check if these specs are defined or not. An example: https://github.com/openshift/verification-tests/pull/1935/files#diff-25b7b9fb37c470ca782e7381a157ec7648e98a1a80f61f2cce948bba99bf676cR667

Copy link
Member

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: anpingli, pruan-rht, QiaolingTang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 15, 2021
@openshift-merge-robot openshift-merge-robot merged commit 05ddaaa into openshift:master Apr 15, 2021
@QiaolingTang QiaolingTang deleted the logging_upgrade branch April 15, 2021 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants