-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Openstack: add port metadata #12122
Openstack: add port metadata #12122
Conversation
Hi @mitch000001. Thanks for your PR. I'm waiting for a kubernetes 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 |
The overall goal is to get rid of the specific port names and replace them with hashed ones. This in turn allows us to introduce rolling updates for Openstack in a later stage.
OpenStack limits the tag length to 60 characters.
/retest |
/test pull-kops-verify-bazel |
56f9b12
to
e1f3c5d
Compare
@mitch000001 when we are thinking to recreate ports in rolling update. We need also check that internal certificates will work after that (in k8s). Also another problem is that bastion host in that case will be changing floatingip all the time. So we need take care that old one is deleted correctly. I will check content of this pr tomorrow. Anyways I like the idea of detaching instances |
Well, that PR is only attaching useful information to the ports for later use. I haven't looked into the issues you mentioned but thanks for the heads-up 🙂 |
Consider using |
@johngmyers the problem with openstack is that all metadata does not allow / chars and also the maximum length is quite small. I do not know what is the case with ports, maybe works maybe not |
for me this looks valid. However, @mitch000001 could you check comment #12122 (comment) and test can we use those tags? It might be that we cannot |
So, I guess it could be possible to add that label. The problem is more that those things are really tags, so we'd use the artificial |
Having said my earlier comment the main problem with tags is that they have a length limit, I think it's 60 characters, so the proposed label could be slightly too long given that it contains both key and value. |
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.
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: zetaab 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 |
This adds some more tags to the Openstack ports.
Specifically the previous code added the cluster name as an unkeyed tag. Now the cluster name gets added with a named tag, following the server metadata:
The cluster name is tagged by adding
KubernetesCluster=cluster-name
as a tag. Also, the instance group name and the stripped port name (without instance group and cluster name).This is a preparation of enabling rolling update with surge (detaching instances) for Openstack. The goal is to be able to remove the port name which also embeds the order of the port within the instance group and to replace it with a hashed name, similar to how the servers are created.