Skip to content

OCPBUGS-4827: Add missing AWS permission for ListTagsForResources#868

Merged
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
montaguethomas:patch-1
Feb 2, 2023
Merged

OCPBUGS-4827: Add missing AWS permission for ListTagsForResources#868
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
montaguethomas:patch-1

Conversation

@montaguethomas
Copy link
Contributor

The defined CredentialsRequest is missing a required permission for the AWS "Provider.lookupZoneIDWithoutResourceTagging" method.

input := &route53.ListTagsForResourcesInput{
ResourceIds: make([]*string, len(resp.HostedZones)),
ResourceType: aws.String("hostedzone"),
}
for i, zone := range resp.HostedZones {
zoneID, err := zoneIDFromResource(aws.StringValue(zone.Id))
if err != nil {
innerError = err
return false
}
input.ResourceIds[i] = &zoneID
}
output, err := m.route53.ListTagsForResources(input)

@openshift-ci openshift-ci bot requested review from Miciah and candita December 13, 2022 13:52
@openshift-ci openshift-ci bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Dec 13, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 13, 2022

Hi @montaguethomas. Thanks for your PR.

I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@Miciah
Copy link
Contributor

Miciah commented Dec 13, 2022

/retitle OCPBUGS-4827 Add missing AWS permission for ListTagsForResources

@openshift-ci openshift-ci bot changed the title Add missing aws permission. OCPBUGS-4827 Add missing AWS permission for ListTagsForResources Dec 13, 2022
@Miciah
Copy link
Contributor

Miciah commented Dec 13, 2022

/ok-to-test

@openshift-ci openshift-ci bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Dec 13, 2022
@Miciah
Copy link
Contributor

Miciah commented Dec 13, 2022

@montaguethomas, thanks for the PR! Ayush filed OCPBUGS-4827 for the issue, and I have linked the PR to the bug. Would you mind updating the commit message to add a reference to the bug report?

@Miciah Miciah changed the title OCPBUGS-4827 Add missing AWS permission for ListTagsForResources OCPBUGS-4827: Add missing AWS permission for ListTagsForResources Dec 13, 2022
@openshift-ci-robot openshift-ci-robot added jira/severity-moderate Referenced Jira bug's severity is moderate 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. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Dec 13, 2022
@openshift-ci-robot
Copy link
Contributor

@montaguethomas: This pull request references Jira Issue OCPBUGS-4827, 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)

Requesting review from QA contact:
/cc @lihongan

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

Details

In response to this:

The defined CredentialsRequest is missing a required permission for the AWS "Provider.lookupZoneIDWithoutResourceTagging" method.

input := &route53.ListTagsForResourcesInput{
ResourceIds: make([]*string, len(resp.HostedZones)),
ResourceType: aws.String("hostedzone"),
}
for i, zone := range resp.HostedZones {
zoneID, err := zoneIDFromResource(aws.StringValue(zone.Id))
if err != nil {
innerError = err
return false
}
input.ResourceIds[i] = &zoneID
}
output, err := m.route53.ListTagsForResources(input)

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 openshift-ci bot requested a review from lihongan December 13, 2022 21:22
@Miciah
Copy link
Contributor

Miciah commented Dec 13, 2022

Also, you need to run make generate to update pkg/manifests/bindata.go (see the ci/prow/verify job failure).

@montaguethomas
Copy link
Contributor Author

@Miciah sure thing. done.

@montaguethomas
Copy link
Contributor Author

/retest

@frobware
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 14, 2022
@montaguethomas
Copy link
Contributor Author

/retest

@candita
Copy link
Contributor

candita commented Dec 14, 2022

/assign @Miciah

@Miciah
Copy link
Contributor

Miciah commented Jan 3, 2023

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 3, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Miciah

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 Jan 3, 2023
@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 560b2d3 and 2 for PR HEAD 30f18df in total

@frobware
Copy link
Contributor

frobware commented Jan 4, 2023

{  openshift cluster install failed with infrastructure setup} | {  openshift cluster install failed with infrastructure setup}
-- | --
{  openshift cluster install failed with infrastructure setup}

/retest

@montaguethomas
Copy link
Contributor Author

/retest

1 similar comment
@montaguethomas
Copy link
Contributor Author

/retest

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 8d2294d and 1 for PR HEAD 30f18df in total

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 13, 2023
@Miciah
Copy link
Contributor

Miciah commented Jan 22, 2023

@montaguethomas, another recently merged PR has caused a merge conflict for this PR. Do you mind rebasing your PR? Resolving the conflict should just be a matter of regenerating pkg/manifests/bindata.go by rerunning make generate during the rebase. Let me know if that's unclear or if you would like me to rebase the PR for you.

The defined CredentialsRequest is missing a required permission for the AWS "Provider.lookupZoneIDWithoutResourceTagging" method.
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jan 23, 2023
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 23, 2023
@montaguethomas
Copy link
Contributor Author

@Miciah rebased branch and ran generate again.

@montaguethomas
Copy link
Contributor Author

/retest-required

1 similar comment
@montaguethomas
Copy link
Contributor Author

/retest-required

@montaguethomas
Copy link
Contributor Author

/retest

@montaguethomas
Copy link
Contributor Author

@Miciah @frobware looks like all tests are finally passing and no merge conflict.

@Miciah
Copy link
Contributor

Miciah commented Feb 2, 2023

Thanks!
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 2, 2023
@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD e84f7f6 and 2 for PR HEAD 41879a1 in total

@montaguethomas
Copy link
Contributor Author

/retest-required

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 2, 2023

@montaguethomas: The following test 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-gcp-ovn-serial 30f18df link true /test e2e-gcp-ovn-serial

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.

@montaguethomas
Copy link
Contributor Author

/retest-required

@montaguethomas
Copy link
Contributor Author

Calling out that ci/prow/e2e-gcp-ovn-serial test doesn't exist as a check on this project.

@openshift-merge-robot openshift-merge-robot merged commit e6e9808 into openshift:master Feb 2, 2023
@openshift-ci-robot
Copy link
Contributor

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

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

Details

In response to this:

The defined CredentialsRequest is missing a required permission for the AWS "Provider.lookupZoneIDWithoutResourceTagging" method.

input := &route53.ListTagsForResourcesInput{
ResourceIds: make([]*string, len(resp.HostedZones)),
ResourceType: aws.String("hostedzone"),
}
for i, zone := range resp.HostedZones {
zoneID, err := zoneIDFromResource(aws.StringValue(zone.Id))
if err != nil {
innerError = err
return false
}
input.ResourceIds[i] = &zoneID
}
output, err := m.route53.ListTagsForResources(input)

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.

@montaguethomas montaguethomas deleted the patch-1 branch February 2, 2023 19:47
@Miciah
Copy link
Contributor

Miciah commented Jun 27, 2023

/cherry-pick release-4.12

@openshift-cherrypick-robot

@Miciah: #868 failed to apply on top of branch "release-4.12":

Applying: OCPBUGS-4827 Add missing AWS permission for ListTagsForResources
Using index info to reconstruct a base tree...
M	pkg/manifests/bindata.go
Falling back to patching base and 3-way merge...
Auto-merging pkg/manifests/bindata.go
CONFLICT (content): Merge conflict in pkg/manifests/bindata.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 OCPBUGS-4827 Add missing AWS permission for ListTagsForResources
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

Details

In response to this:

/cherry-pick release-4.12

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/severity-moderate Referenced Jira bug's severity is moderate 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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants