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

🐛 delete port left over by err openstackmachine #1260

Merged
merged 1 commit into from
Jun 27, 2022

Conversation

ruifaling
Copy link
Contributor

@ruifaling ruifaling commented Jun 9, 2022

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1254

Special notes for your reviewer:

  1. Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

TODOs:

  • squashed commits
  • if necessary:
    • includes documentation
    • adds unit tests

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 9, 2022
@netlify
Copy link

netlify bot commented Jun 9, 2022

Deploy Preview for kubernetes-sigs-cluster-api-openstack ready!

Name Link
🔨 Latest commit 356469b
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-cluster-api-openstack/deploys/62b2c9633f8c3c0008bd923c
😎 Deploy Preview https://deploy-preview-1260--kubernetes-sigs-cluster-api-openstack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 9, 2022
@k8s-ci-robot
Copy link
Contributor

Hi @ruifaling. Thanks for your PR.

I'm waiting for a kubernetes-sigs 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.

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.

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jun 9, 2022
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 9, 2022
@ruifaling ruifaling mentioned this pull request Jun 9, 2022
3 tasks
@tobiasgiese
Copy link
Member

tobiasgiese commented Jun 11, 2022

/ok-to-test

Thanks for contributing @ruifaling 🙂
Could you please link #1254 in your PR description?

@k8s-ci-robot k8s-ci-robot 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 Jun 11, 2022
@tobiasgiese
Copy link
Member

/retitle 🐛 delete port left over by err openstackmachine

@k8s-ci-robot k8s-ci-robot changed the title 🐛 #1254 delete port left over by err openstackmachine 🐛 delete port left over by err openstackmachine Jun 11, 2022
@tobiasgiese
Copy link
Member

@ruifaling according to the pull-cluster-api-provider-openstack-test you should check the linter errors

pkg/cloud/services/networking/network.go:20: File is not `gofumpt`-ed (gofumpt)
	"fmt"
pkg/cloud/services/networking/network.go:22: File is not `gofumpt`-ed (gofumpt)
	"strings"
pkg/cloud/services/networking/network.go:21: File is not `goimports`-ed (goimports)
	capoerrors "sigs.k8s.io/cluster-api-provider-openstack/pkg/utils/errors"
pkg/cloud/services/networking/network.go:154:2: var-naming: var networkId should be networkID (revive)
	networkId := openStackCluster.Spec.Network.ID
	^
pkg/cloud/services/networking/network.go:172:60: ST1017: don't use Yoda conditions (stylecheck)
		if strings.Contains(port.Name, openStackCluster.Name) && "" == port.DeviceOwner {
		                                                         ^

@ruifaling
Copy link
Contributor Author

@ruifaling according to the pull-cluster-api-provider-openstack-test you should check the linter errors

pkg/cloud/services/networking/network.go:20: File is not `gofumpt`-ed (gofumpt)
	"fmt"
pkg/cloud/services/networking/network.go:22: File is not `gofumpt`-ed (gofumpt)
	"strings"
pkg/cloud/services/networking/network.go:21: File is not `goimports`-ed (goimports)
	capoerrors "sigs.k8s.io/cluster-api-provider-openstack/pkg/utils/errors"
pkg/cloud/services/networking/network.go:154:2: var-naming: var networkId should be networkID (revive)
	networkId := openStackCluster.Spec.Network.ID
	^
pkg/cloud/services/networking/network.go:172:60: ST1017: don't use Yoda conditions (stylecheck)
		if strings.Contains(port.Name, openStackCluster.Name) && "" == port.DeviceOwner {
		                                                         ^

I have fixed the pull-cluster-api-provider-openstack-test failed, and I am not very clear about the relationship between the pull-cluster-api-provider-openstack-e2e-test failures and my commit

@ruifaling
Copy link
Contributor Author

@tobiasgiese I have fixed it,please review it again

Copy link
Contributor

@seanschneeweiss seanschneeweiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much @ruifaling for the fix.

Can you move the code added to pkg/cloud/services/networking/network.go to the file pkg/cloud/services/networking/port.go?

controllers/openstackcluster_controller.go Outdated Show resolved Hide resolved
pkg/cloud/services/networking/network.go Outdated Show resolved Hide resolved
pkg/cloud/services/networking/network.go Outdated Show resolved Hide resolved
pkg/cloud/services/networking/network.go Outdated Show resolved Hide resolved
@ruifaling
Copy link
Contributor Author

@tobiasgiese @seanschneeweiss Are there any other errors I need to correct or Is there anything others need I to do?

@apricote
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 24, 2022
@ruifaling
Copy link
Contributor Author

need I remove the lable hold

@tobiasgiese
Copy link
Member

/approve
/hold cancel

sorry for the delay @ruifaling, missed your PR 🙂

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ruifaling, tobiasgiese

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:

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 27, 2022
@ruifaling
Copy link
Contributor Author

is thers something wrong with the e2e test?

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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", 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. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

delete port left over by error openstackmachine
5 participants