-
Notifications
You must be signed in to change notification settings - Fork 260
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
✨ getOrCreatePort: add support to configure QoS profile ID on ports #1008
Conversation
✔️ Deploy Preview for kubernetes-sigs-cluster-api-openstack ready! 🔨 Explore the source changes: 49f70c4 🔍 Inspect the deploy log: https://app.netlify.com/sites/kubernetes-sigs-cluster-api-openstack/deploys/615cbedb68868200070f2b28 😎 Browse the preview: https://deploy-preview-1008--kubernetes-sigs-cluster-api-openstack.netlify.app |
Hi @EmilienM. 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 Once the patch is verified, the new status will be reflected by the 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. |
/ok-to-test |
@EmilienM: Cannot trigger testing until a trusted user reviews the PR and leaves an 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. |
/ok-to-test |
/assign |
/approve |
/approve cancel oops, the failure is valid .. need some update |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: EmilienM 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@EmilienM Can you think of a way we could reasonably test this? Perhaps creating a QoS policy in an E2E test and creating a port to use it?
@EmilienM You need to run |
yes, this will imply the qos extension enabled in Neutron. I can look at that at some point, certainly. |
we can customize the devstack , it should be not that hard , some changes |
Looks like QoS is already in there. |
I'm looking at e2e testing today. |
/test pull-cluster-api-provider-openstack-e2e-test |
TODO: I need to finish the e2e test to confirm that we actually get the port with the right QoS Policy ID. Will do asap. |
@EmilienM re the e2e test, could it live with the other custom ports test instead? I was hoping that test might grow into a mega test of everything. |
That test failure 🤔
Is policy creation admin-only by any chance? That shouldn't be an insurmountable problem, but it might make it a bit different. |
Adding support to configure Neutron ports with a specific QoS profile ID: https://docs.openstack.org/api-ref/network/v2/?expanded=show-port-details-detail#id54 This feature is already supported by Gophercloud: https://github.com/gophercloud/gophercloud/blob/master/openstack/networking/v2/extensions/qos/policies/requests.go
policyID, err = shared.GetOpenStackQosPolicyID(e2eCtx, policyName) | ||
Expect(err).To(BeNil()) | ||
Expect(policyID).NotTo(BeNil(), "Neutron QoS policy does not exist: %s", policyName) | ||
os.Setenv("CLUSTER_QOS_POLICY_ID", policyID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm missing the bits later in this test to confirm that the port has been created with a specific Policy ID.
@mdbooth I might use your help on this one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@EmilienM you should be able to unpack the the port into a struct that extends the port struct with the qos policy extension. I know openstack supports returning the qos policy for ports, and this is the gophercloud way to do it. It would look something like this:
type qosPort struct {
ports.Port
policies.QoSPolicyExt
}
opts := ports.ListOpts{ foo }
portList := []qosPort{}
err := ports.List(client, opts).ExtractInto(&portList)
if err != nil {
...
}
Expect (portList[0].QoSPolicyExt.QoSPolicyID).To(Equal(<uuid>))
@EmilienM: PR needs rebase. 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. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closed this PR. 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. |
What this PR does / why we need it:
Adding support to configure Neutron ports with a specific QoS profile
ID:
https://docs.openstack.org/api-ref/network/v2/?expanded=show-port-details-detail#id54
This feature is already supported by Gophercloud:
https://github.com/gophercloud/gophercloud/blob/master/openstack/networking/v2/extensions/qos/policies/requests.go
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 #1007