-
Notifications
You must be signed in to change notification settings - Fork 74
StackDriver metrics e2e test does not work in PROW #317
Comments
/assign |
Log from PROW --- FAIL: TestStorageStackDriverMetrics (144.18s) |
/cc @chizhg |
Can this be relevant? |
/assign @chaodaiG |
@chizhg: GitHub didn't allow me to assign the following users: chaodaiG. Note that only google members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
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. |
/cc @chaodaiG |
This test failed the same way on my local desktop as in Prow, this is my first time running e2e tests from knative-gcp on my machine. The only difference is I invoked the test same way as in Prow, which is our standard way of testing: Please check e2e-tests.sh and e2e-common.sh to see if there is any setup missing for running this test |
Initial post clearly shows that the test was running against an already existing cluster. Tests running on Prow (or through e2e-tests.sh) create a new, clean cluster by default. Definitely that sounds like the cluster used to run the tests in the initial post has some extra configuration(s) that are not present in the test clusters created by the E2E test framework. |
I've added some things regarding giving the service account editor permissions for monitoring... I've tried few other things in this WIP https://github.com/google/knative-gcp/pull/318/files, but still the same error.... I don't think it's a permission issue, as if I don't have the permissions, I would be getting a different error... Do you have access to the pantheon UI to see if we can see the metrics there? |
hmmm, this might be it... monitoring is not enabled perhaps?
|
Seems like the case: knative-gcp/test/e2e-common.sh Lines 76 to 78 in 2596d42
|
we probably should add |
yes! added it and running it in #320 |
hmmm still no luck... |
I switched to your branch in #320 and ran it again(with EDIT: The log above was from the failed run in Prow from PR #320 |
BTW, monitoring is already enabled on boskos project, so we do not need to enable it if running on Prow. |
One of the possibility is that our service account might not have enough permission for querying Stackdriver logs. @chizhg , any idea how to check this? |
I removed the permissions in my local cluster, and the error message is different. I added monitoring editor permissions to the service account in the sh scripts |
In #320 I don't have some of the changes of #318... Let me enable monitoring in #318, which is a simpler change, and check again |
Editor should have enough permissions to query Stackdriver logs, see https://cloud.google.com/logging/docs/access-control |
I just checked out your branch from #318, and noticed that the enabling monitoring line was added inside the block which only excecute when running locally, it passed on my machine and I have left a comment in #318, please update and try again |
giving it another try! thanks for the catch, it was my bad |
You should have project viewer access to the boskos project used by your test. |
@chizhg we will need your help with this... Would you be able to sync with @zargarpur sometime soonish? This blocks all our E2E tests for metrics |
Sure, I should have some time to help later this week. |
We should sync with serving folks , especially @yanweiguo, as he has been adding E2E tests on their side, and may have encountered this before |
/assign |
To follow up on this, I've tested out running some E2E tests for GCP Broker metrics in another PR and it was successfully able to assert that they exist, so I don't think this is a PROW issue (anymore at least) |
GOOGLE_APPLICATION_CREDENTIALS=<path_to_json> E2E_PROJECT_ID=<id> go test --tags=e2e ./test/e2e/... -run ^TestStorageStackDriverMetrics$ -count 1
ok github.com/google/knative-gcp/test/e2e 156.576s ? github.com/google/knative-gcp/test/e2e/metrics [no test files]
The text was updated successfully, but these errors were encountered: