Skip to content

Conversation

@r4f4
Copy link
Contributor

@r4f4 r4f4 commented Nov 22, 2022

Use the new MS Graph API instead.

Please note that Applications.ReadWrite.OwnedBy permissions must be granted in Azure for MSGraph.

azure-deprecation/dashboard#60

https://issues.redhat.com/browse/CORS-1897

@r4f4
Copy link
Contributor Author

r4f4 commented Nov 22, 2022

Depends on #6003

This is an alternative to #5714. In this PR, only the new MSGraph calls are tried with no fallback to the deprecated AD Graph APIs (which are removed here).

@r4f4
Copy link
Contributor Author

r4f4 commented Nov 22, 2022

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 22, 2022
@openshift-ci openshift-ci bot requested review from jhixson74 and m1kola November 22, 2022 22:34
@r4f4
Copy link
Contributor Author

r4f4 commented Nov 22, 2022

Error strings from msgraph sdk are not very helpful. They just say error status code received from the API. So we might want to unwrap the ODataError before logging it.

microsoftgraph/msgraph-sdk-go#218

@patrickdillon
Copy link
Contributor

/retest
/approve
LGTM but let's see what the tests say and obviously we need to wait for #6003

But I think we should do this over #5714

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 30, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: patrickdillon

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

The pull request process is described here

Details 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 openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 30, 2022
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 5, 2022
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 6, 2022
@r4f4
Copy link
Contributor Author

r4f4 commented Dec 6, 2022

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 6, 2022
@r4f4
Copy link
Contributor Author

r4f4 commented Dec 6, 2022

/retitle OCPBUGS-4549: azure: replace deprecated AD Graph API

1 similar comment
@r4f4
Copy link
Contributor Author

r4f4 commented Dec 6, 2022

/retitle OCPBUGS-4549: azure: replace deprecated AD Graph API

@openshift-ci openshift-ci bot changed the title azure: replace deprecated AD Graph API OCPBUGS-4549: azure: replace deprecated AD Graph API Dec 6, 2022
@openshift-ci-robot openshift-ci-robot added the jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. label Dec 6, 2022
@openshift-ci-robot
Copy link
Contributor

@r4f4: This pull request references Jira Issue OCPBUGS-4549, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.13.0) matches configured target version for branch (4.13.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)

No GitHub users were found matching the public email listed for the QA contact in Jira ([email protected]), skipping review request.

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

Use the new MS Graph API instead.

Please note that Applications.ReadWrite.OwnedBy permissions must be granted in Azure for MSGraph.

azure-deprecation/dashboard#60

https://issues.redhat.com/browse/CORS-1897

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.

@openshift-ci-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Dec 6, 2022
@r4f4
Copy link
Contributor Author

r4f4 commented Dec 6, 2022

/test golint

@patrickdillon
Copy link
Contributor

ug, was coming to LGTM but we already hit another conflict :(

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 7, 2022
r4f4 added 2 commits December 7, 2022 21:49
Use the new MS Graph API instead.

Please note that `Applications.ReadWrite.OwnedBy` permissions must be
granted in Azure for MSGraph.

azure-deprecation/dashboard#60

https://issues.redhat.com/browse/CORS-1897
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 7, 2022
Errors returned by the new Azure SDK are not very helpful. So before
returning any error back to the user, we try to extract a more friendly
"code: message" format from them.

Please note that we do that at the very end so that unwraping and
checking for other non-ODataError types is still possible during the
function call chain.

microsoftgraph/msgraph-sdk-go#218
@patrickdillon
Copy link
Contributor

/lgtm

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 01adff5 and 1 for PR HEAD 20a288b in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 254a2b7 and 0 for PR HEAD 20a288b in total

@openshift-ci-robot
Copy link
Contributor

/hold

Revision 20a288b was retested 3 times: holding

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 8, 2022
@r4f4
Copy link
Contributor Author

r4f4 commented Dec 9, 2022

/override ci/prow/golint
It's timing out. It should be better when #6601 merges. I ran it locally and there were no problems reported.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 9, 2022

@r4f4: Overrode contexts on behalf of r4f4: ci/prow/golint

Details

In response to this:

/override ci/prow/golint
It's timing out. It should be better when #6601 merges. I ran it locally and there were no problems reported.

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.

@r4f4
Copy link
Contributor Author

r4f4 commented Dec 9, 2022

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 9, 2022
@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 40cf6fe and 2 for PR HEAD 20a288b in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 6de3bb4 and 1 for PR HEAD 20a288b in total

@r4f4
Copy link
Contributor Author

r4f4 commented Dec 9, 2022

/override ci/prow/e2e-gcp-ovn
Not affected by the changes in this PR

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 9, 2022

@r4f4: Overrode contexts on behalf of r4f4: ci/prow/e2e-gcp-ovn

Details

In response to this:

/override ci/prow/e2e-gcp-ovn
Not affected by the changes in this 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.

@patrickdillon
Copy link
Contributor

/skip

@r4f4
Copy link
Contributor Author

r4f4 commented Dec 9, 2022

/override ci/prow/e2e-gcp-ovn
Not affected by the PR

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 9, 2022

@r4f4: Overrode contexts on behalf of r4f4: ci/prow/e2e-gcp-ovn

Details

In response to this:

/override ci/prow/e2e-gcp-ovn
Not affected by the 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.

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 3c693eb and 0 for PR HEAD 20a288b in total

@openshift-ci-robot
Copy link
Contributor

/hold

Revision 20a288b was retested 3 times: holding

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 10, 2022
@r4f4
Copy link
Contributor Author

r4f4 commented Dec 10, 2022

/override ci/prow/golint
/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 10, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 10, 2022

@r4f4: Overrode contexts on behalf of r4f4: ci/prow/golint

Details

In response to this:

/override ci/prow/golint
/hold cancel

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.

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 3c693eb and 2 for PR HEAD 20a288b in total

@r4f4
Copy link
Contributor Author

r4f4 commented Dec 10, 2022

/override ci/prow/e2e-gcp-ovn
Not affected and timing out

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 10, 2022

@r4f4: Overrode contexts on behalf of r4f4: ci/prow/e2e-gcp-ovn

Details

In response to this:

/override ci/prow/e2e-gcp-ovn
Not affected and timing out

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.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 10, 2022

@r4f4: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-azurestack 20a288b link false /test e2e-azurestack
ci/prow/e2e-aws-ovn-disruptive 20a288b link false /test e2e-aws-ovn-disruptive
ci/prow/okd-scos-e2e-aws-ovn 20a288b link false /test okd-scos-e2e-aws-ovn
ci/prow/okd-e2e-aws-ovn-upgrade 20a288b link false /test okd-e2e-aws-ovn-upgrade
ci/prow/e2e-libvirt 20a288b link false /test e2e-libvirt
ci/prow/e2e-azure-ovn-shared-vpc 20a288b link false /test e2e-azure-ovn-shared-vpc
ci/prow/golint 20a288b link true /test golint

Full PR test history. Your PR dashboard.

Details

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.

@openshift-merge-robot openshift-merge-robot merged commit 780b29a into openshift:master Dec 10, 2022
@openshift-ci-robot
Copy link
Contributor

@r4f4: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-4549 has been moved to the MODIFIED state.

Details

In response to this:

Use the new MS Graph API instead.

Please note that Applications.ReadWrite.OwnedBy permissions must be granted in Azure for MSGraph.

azure-deprecation/dashboard#60

https://issues.redhat.com/browse/CORS-1897

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.

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. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants