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 more logs in signup service #343

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

mfrancisc
Copy link
Contributor

@mfrancisc mfrancisc commented Sep 5, 2023

Add some more logs to confirm that relying on the signup.Status.Ready field can create issues when the Space is being updated.

This will help out investigating the following bugs/issues :

I0905 11:31:04.501991    3655 helpers.go:246] server response object: [{
  "metadata": {},
  "status": "Failure",
  "message": "an error on the server (\"unable to get target cluster: user is not provisioned (yet)\") has prevented the request from succeeding",
  "reason": "InternalError",
  "details": {
    "causes": [
      {
        "reason": "UnexpectedServerResponse",
        "message": "unable to get target cluster: user is not provisioned (yet)"
      }
    ]
  },
  "code": 500
}]
Error from server (InternalError): an error on the server ("unable to get target cluster: user is not provisioned (yet)") has prevented the request from succeeding

@sonarcloud
Copy link

sonarcloud bot commented Sep 5, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@openshift-ci openshift-ci bot added the approved label Sep 5, 2023
@alexeykazakov
Copy link
Contributor

Some flaky test?

    nstemplateset.go:17: verifying NSTemplateSet 'space-clusterole-tenant' and its resources
    host.go:976: waiting until NSTemplateTier 'appstudio' in namespace 'toolchain-host-05143622' matches criteria
    member.go:685: waiting for NSTemplateSet 'space-clusterole-tenant' to match criteria
    member.go:555: failed to find NSTemplateSet with matching criteria after 120.000000s:
        ----
        actual:
        metadata:
          creationTimestamp: "2023-09-05T15:05:18Z"
          deletionGracePeriodSeconds: 0
          deletionTimestamp: "2023-09-05T15:05:48Z"
          finalizers:
          - finalizer.toolchain.dev.openshift.com
          generation: 2
          name: space-clusterole-tenant
          namespace: toolchain-member2-05143622
          resourceVersion: "87049"
          uid: b7bac58f-43b7-41a4-b69c-9ee55a076938
        spec:
          clusterResources:
            templateRef: appstudio-clusterresources-e0e1f34-e0e1f34
          namespaces:
          - templateRef: appstudio-tenant-8e845ec-8e845ec
          tierName: appstudio
        status:
          conditions:
          - lastTransitionTime: "2023-09-05T15:05:48Z"
            reason: Terminating
            status: "False"
            type: Ready
          provisionedNamespaces:
          - name: space-clusterole-tenant-tenant
            type: default
        
        ----
        diffs:
        expected space roles to not be empty.
        
    nstemplateset.go:21: 
        	Error Trace:	/tmp/toolchain-e2e/testsupport/tiers/nstemplateset.go:21
        	            				/tmp/toolchain-e2e/testsupport/space/space.go:157
        	            				/tmp/toolchain-e2e/testsupport/space/space.go:116
        	            				/tmp/toolchain-e2e/test/e2e/space_autocompletion_test.go:200
        	Error:      	Received unexpected error:
        	            	timed out waiting for the condition
        	Test:       	TestAutomaticClusterAssignment/set_cluster-role_label_only_on_member2_cluster_and_expect_it_will_be_selected

@alexeykazakov
Copy link
Contributor

/retest

@codecov
Copy link

codecov bot commented Sep 5, 2023

Codecov Report

Patch coverage is 100.00% of modified lines.

Files Changed Coverage
pkg/proxy/service/cluster_service.go 100.00%
pkg/signup/service/signup_service.go 100.00%

📢 Thoughts on this report? Let us know!.

@openshift-ci
Copy link

openshift-ci bot commented Sep 6, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alexeykazakov, mfrancisc, xcoulon

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:
  • OWNERS [alexeykazakov,xcoulon]

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

@mfrancisc
Copy link
Contributor Author

Some flaky test?

@alexeykazakov yeah, that's strange. Let's keep an eye on it. Thanks for retesting!

@mfrancisc mfrancisc merged commit cfb9dfd into codeready-toolchain:master Sep 6, 2023
10 checks passed
@mfrancisc mfrancisc deleted the morelogs branch September 6, 2023 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants