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

[WIP] Testing 1981 #2016

Closed
wants to merge 1 commit into from
Closed

Conversation

mik-dass
Copy link
Contributor

just for reproducing #1981 and finding the reason

@mik-dass mik-dass added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. Required by Prow. label Aug 13, 2019
@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign mik-dass
You can assign the PR to them by writing /assign @mik-dass in a comment when ready.

The full list of commands accepted by this bot can be found 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

@mik-dass mik-dass changed the title Testing 1981 [WIP] Testing 1981 Aug 13, 2019
@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. Required by Prow. label Aug 13, 2019
@mik-dass mik-dass removed the request for review from dharmit August 13, 2019 12:55
@mik-dass
Copy link
Contributor Author

/test integration

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Aug 17, 2019
@amitkrout amitkrout removed their request for review August 20, 2019 10:00
@openshift-ci-robot openshift-ci-robot added size/S and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. size/XS labels Sep 11, 2019
@mik-dass
Copy link
Contributor Author

✗  Waiting for build to finish [30s]
[odo]  ✗  Failed to create component with name cmp-git. Please use `odo config view` to view settings used to create component. Error: unable to wait for build cmp-git-testing-1 to run: timed out waiting for the condition
[odo] unable get build log cmp-git-testing-1
[odo] github.com/openshift/odo/pkg/occlient.(*Client).FollowBuildLog
[odo] 	/go/src/github.com/openshift/odo/pkg/occlient/occlient.go:1855
[odo] github.com/openshift/odo/pkg/component.Build
[odo] 	/go/src/github.com/openshift/odo/pkg/component/component.go:794
[odo] github.com/openshift/odo/pkg/component.CreateComponent

/retest

@mik-dass
Copy link
Contributor Author

2019/09/12 06:43:10 Container test in pod integration failed, exit code 1, reason Error
2019/09/12 06:43:16 Ran for 5m55s
2019/09/12 06:43:16 Submitted failure event to sentry (id=f4d0bfb4d5474a339374aa06ed77a0cb)
error: could not run steps: step integration failed: template pod "integration" failed: the pod ci-op-vcxdxxjb/integration failed after 3m52s (failed containers: setup, test): ContainerFailed one or more containers exited
 Container setup exited with code 1, reason Error
---
Lease acquired, installing...
level=fatal msg="failed to fetch Terraform Variables: failed to fetch dependency of \"Terraform Variables\": failed to fetch dependency of \"Bootstrap Ignition Config\": failed to fetch dependency of \"Master Machines\": failed to generate asset \"Platform Credentials Check\": validate AWS credentials: checking install permissions: error gathering AWS credentials details: error querying username: RequestError: send request failed\ncaused by: Post https://iam.amazonaws.com/: dial tcp: i/o timeout"
---
Container test exited with code 1, reason Error
---
Another process exited

/retest

@mik-dass
Copy link
Contributor Author

 I0912 16:51:33.992831   10220 occlient.go:1685] Waiting for rshzka-app-2  build to finish
[odo] I0912 16:51:33.993036   10220 round_trippers.go:383] GET https://api.crw-osd4.t7n7.p1.openshiftapps.com:6443/apis/build.openshift.io/v1/namespaces/mqwbyljtwy/builds?fieldSelector=metadata.name%3Drshzka-app-2&watch=true
[odo] I0912 16:51:33.993058   10220 round_trippers.go:390] Request Headers:
[odo] I0912 16:51:33.993070   10220 round_trippers.go:393]     Accept: application/json, */*
[odo] I0912 16:51:33.993080   10220 round_trippers.go:393]     User-Agent: odo/v0.0.0 (linux/amd64) kubernetes/$Format
[odo] I0912 16:51:33.993091   10220 round_trippers.go:393]     Authorization: Bearer l6RdgULT7ux4ocKKDWn4FB1hiEClsQ1uq-Ad7iC8gfk
[odo] I0912 16:51:34.341682   10220 round_trippers.go:408] Response Status: 200 OK in 348 milliseconds
[odo] I0912 16:51:34.341740   10220 round_trippers.go:411] Response Headers:
[odo] I0912 16:51:34.341763   10220 round_trippers.go:414]     Content-Type: application/json
[odo] I0912 16:51:34.341786   10220 round_trippers.go:414]     Date: Thu, 12 Sep 2019 11:21:34 GMT
[odo] I0912 16:51:34.341803   10220 round_trippers.go:414]     Audit-Id: e787f3e9-b9f7-4815-b6fc-5517be56fe9c
[odo] I0912 16:51:34.341822   10220 round_trippers.go:414]     Cache-Control: no-store
[odo] I0912 16:51:34.341854   10220 round_trippers.go:414]     Cache-Control: no-store
[odo] I0912 16:51:34.343506   10220 occlient.go:1700] Status of rshzka-app-2 build is Complete
[odo] I0912 16:51:34.343557   10220 occlient.go:1703] Build rshzka-app-2 completed.
[odo] I0912 16:51:34.343777   10220 component.go:1186] Updating the DeploymentConfig rshzka-app image to rshzka-app:latest
[odo]  ✓  Waiting for build to finish [50s]
[odo]  •  Applying configuration  ...
[odo] I0912 16:51:34.351999   10220 request.go:897] Request Body: {"kind":"DeploymentConfig","apiVersion":"apps.openshift.io/v1","metadata":{"name":"rshzka-app","namespace":"mqwbyljtwy","selfLink":"/apis/apps.openshift.io/v1/namespaces/mqwbyljtwy/deploymentconfigs/rshzka-app","uid":"22435f4a-d54f-11e9-979e-0a580a810066","resourceVersion":"6834753","generation":2,"creationTimestamp":"2019-09-12T11:19:06Z","labels":{"app":"app","app.kubernetes.io/instance":"rshzka","app.kubernetes.io/name":"nodejs","app.kubernetes.io/part-of":"app","app.openshift.io/runtime-version":"latest"},"annotations":{"app.kubernetes.io/component-source-type":"git","app.openshift.io/vcs-uri":"https://github.com/openshift/nodejs-ex"}},"spec":{"strategy":{"type":"Recreate","resources":{}},"triggers":[{"type":"ConfigChange"},{"type":"ImageChange","imageChangeParams":{"containerNames":["rshzka-app"],"from":{"kind":"ImageStreamTag","name":"rshzka-app:latest"}}}],"replicas":1,"test":false,"selector":{"deploymentconfig":"rshzka-app"},"template":{"metadata":{"creationTimestamp":null,"labels":{"deploymentconfig" [truncated 886 chars]
[odo] I0912 16:51:34.352397   10220 round_trippers.go:383] PUT https://api.crw-osd4.t7n7.p1.openshiftapps.com:6443/apis/apps.openshift.io/v1/namespaces/mqwbyljtwy/deploymentconfigs/rshzka-app
[odo] I0912 16:51:34.352513   10220 round_trippers.go:390] Request Headers:
[odo] I0912 16:51:34.352556   10220 round_trippers.go:393]     Content-Type: application/json
[odo] I0912 16:51:34.352606   10220 round_trippers.go:393]     Authorization: Bearer l6RdgULT7ux4ocKKDWn4FB1hiEClsQ1uq-Ad7iC8gfk
[odo] I0912 16:51:34.352662   10220 round_trippers.go:393]     User-Agent: odo/v0.0.0 (linux/amd64) kubernetes/$Format
[odo] I0912 16:51:34.352693   10220 round_trippers.go:393]     Accept: application/json, */*
[odo] I0912 16:51:34.507517   10220 round_trippers.go:408] Response Status: 200 OK in 154 milliseconds
[odo] I0912 16:51:34.507547   10220 round_trippers.go:411] Response Headers:
[odo] I0912 16:51:34.507555   10220 round_trippers.go:414]     Audit-Id: 761a9233-0102-4085-a11f-b8000b2d0e4e
[odo] I0912 16:51:34.507561   10220 round_trippers.go:414]     Cache-Control: no-store
[odo] I0912 16:51:34.507567   10220 round_trippers.go:414]     Cache-Control: no-store
[odo] I0912 16:51:34.507572   10220 round_trippers.go:414]     Content-Type: application/json
[odo] I0912 16:51:34.507579   10220 round_trippers.go:414]     Date: Thu, 12 Sep 2019 11:21:34 GMT
[odo] I0912 16:51:34.507584   10220 round_trippers.go:414]     Content-Length: 2258
[odo] I0912 16:51:34.507630   10220 request.go:897] Response Body: {"kind":"DeploymentConfig","apiVersion":"apps.openshift.io/v1","metadata":{"name":"rshzka-app","namespace":"mqwbyljtwy","selfLink":"/apis/apps.openshift.io/v1/namespaces/mqwbyljtwy/deploymentconfigs/rshzka-app","uid":"22435f4a-d54f-11e9-979e-0a580a810066","resourceVersion":"6835278","generation":3,"creationTimestamp":"2019-09-12T11:19:06Z","labels":{"app":"app","app.kubernetes.io/instance":"rshzka","app.kubernetes.io/name":"nodejs","app.kubernetes.io/part-of":"app","app.openshift.io/runtime-version":"latest"},"annotations":{"app.kubernetes.io/component-source-type":"git","app.openshift.io/vcs-uri":"https://github.com/openshift/nodejs-ex"}},"spec":{"strategy":{"type":"Recreate","recreateParams":{"timeoutSeconds":600},"resources":{},"activeDeadlineSeconds":21600},"triggers":[{"type":"ConfigChange"},{"type":"ImageChange","imageChangeParams":{"containerNames":["rshzka-app"],"from":{"kind":"ImageStreamTag","namespace":"mqwbyljtwy","name":"rshzka-app:latest"}}}],"replicas":1,"test":false,"selector":{"deploymentconf [truncated 1234 chars]
[odo] I0912 16:51:34.507830   10220 occlient.go:3230] Deployment rshzka-app started.
[odo] I0912 16:51:34.507923   10220 request.go:897] Request Body: {"kind":"DeploymentRequest","apiVersion":"apps.openshift.io/v1","name":"rshzka-app","latest":true,"force":true}
[odo] I0912 16:51:34.507998   10220 round_trippers.go:383] POST https://api.crw-osd4.t7n7.p1.openshiftapps.com:6443/apis/apps.openshift.io/v1/namespaces/mqwbyljtwy/deploymentconfigs/rshzka-app/instantiate
[odo] I0912 16:51:34.508010   10220 round_trippers.go:390] Request Headers:
[odo] I0912 16:51:34.508017   10220 round_trippers.go:393]     Accept: application/json, */*
[odo] I0912 16:51:34.508024   10220 round_trippers.go:393]     Content-Type: application/json
[odo] I0912 16:51:34.508030   10220 round_trippers.go:393]     User-Agent: odo/v0.0.0 (linux/amd64) kubernetes/$Format
[odo] I0912 16:51:34.508037   10220 round_trippers.go:393]     Authorization: Bearer l6RdgULT7ux4ocKKDWn4FB1hiEClsQ1uq-Ad7iC8gfk
[odo] I0912 16:51:34.653528   10220 round_trippers.go:408] Response Status: 404 Not Found in 145 milliseconds
[odo] I0912 16:51:34.653574   10220 round_trippers.go:411] Response Headers:
[odo] I0912 16:51:34.653589   10220 round_trippers.go:414]     Content-Length: 228
[odo] I0912 16:51:34.653602   10220 round_trippers.go:414]     Audit-Id: 4c50f485-b16c-4b2f-9b75-1e342e23bde1
[odo] I0912 16:51:34.653612   10220 round_trippers.go:414]     Cache-Control: no-store
[odo] I0912 16:51:34.653622   10220 round_trippers.go:414]     Cache-Control: no-store
[odo] I0912 16:51:34.653635   10220 round_trippers.go:414]     Content-Type: application/json
[odo] I0912 16:51:34.653651   10220 round_trippers.go:414]     Date: Thu, 12 Sep 2019 11:21:34 GMT
[odo] I0912 16:51:34.653708   10220 request.go:897] Response Body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"replicationcontrollers \"rshzka-app-2\" not found","reason":"NotFound","details":{"name":"rshzka-app-2","kind":"replicationcontrollers"},"code":404}
[odo]  ✗  Applying configuration [310ms]
[odo] I0912 16:51:34.654036   10220 cmdutils.go:48] Error:
[odo] unable to update DeploymentConfig image for rshzka component: unable to update the current DeploymentConfig rshzka-app: unable to start deployment: unable to instantiate Deployment for rshzka-app: replicationcontrollers "rshzka-app-2" not found
[odo]  ✗  Failed To Update Config To Component Deployed

This is what I have found recently

@mik-dass
Copy link
Contributor Author

@kadel @amitkrout After some more debugging, it seems that the replication which is supposed to be created after the update call is not yet created when calling instantiate. Thus we get the 404 replication controller not found error.

@mik-dass
Copy link
Contributor Author

mik-dass commented Sep 19, 2019

@kadel @jeffmaury It seems that automatic: false set in https://github.com/openshift/odo/blob/bb301712ae6b67f922a2c4ae70ab5ab143b29db1/pkg/occlient/templates.go#L290 as part of the image triggers for git components doesn't work and thus a new replication controller and a new deployments was getting triggered. Also while testing locally on a 4.2 cluster, removing the config trigger didn't help either.

@openshift-ci-robot
Copy link
Collaborator

@mik-dass: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/v4.2-integration 7ed2a97 link /test v4.2-integration
ci/prow/v4.1-integration 7ed2a97 link /test v4.1-integration

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@mik-dass
Copy link
Contributor Author

mik-dass commented Oct 4, 2019

since #1981 is closed, closing this

@mik-dass mik-dass closed this Oct 4, 2019
@mik-dass mik-dass deleted the test_1981 branch October 4, 2019 13:47
@rm3l rm3l added the estimated-size/M (10-20) Rough sizing for Epics. About 1 sprint of work for one person label Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. Required by Prow. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. Required by Prow. estimated-size/M (10-20) Rough sizing for Epics. About 1 sprint of work for one person
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants