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

Bug 1948546: Port create bugs #175

Merged

Conversation

iamemilio
Copy link

@iamemilio iamemilio commented Mar 31, 2021

There were a number of issues in the way we allowed users to create ports/interfaces for nodes through the machine API. This patch looks to clean them up to prevent race conditions or OpenStack errors that could cause a deployment to fail due to logical errors in cluster-api-provider-openstack.

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 31, 2021
@iamemilio iamemilio changed the title [WIP] Bug 1936511: Port create race conditions [WIP] Port create race conditions Mar 31, 2021
@openshift openshift deleted a comment from openshift-ci-robot Mar 31, 2021
@openshift openshift deleted a comment from openshift-ci-robot Mar 31, 2021
@iamemilio iamemilio changed the title [WIP] Port create race conditions Port create race conditions Mar 31, 2021
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 31, 2021
@iamemilio iamemilio changed the title Port create race conditions Bug 1943599: Port create race conditions Apr 1, 2021
@openshift-ci-robot openshift-ci-robot added bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Apr 1, 2021
@openshift-ci-robot
Copy link

@iamemilio: This pull request references Bugzilla bug 1943599, which is invalid:

  • expected the bug to target the "4.8.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

Bug 1943599: Port create race conditions

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.

@iamemilio
Copy link
Author

/bugzilla refresh

@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 Apr 1, 2021
@openshift-ci-robot
Copy link

@iamemilio: This pull request references Bugzilla bug 1943599, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

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

Requesting review from QA contact:
/cc @wjiangjay

In response to this:

/bugzilla refresh

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 removed the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Apr 1, 2021
@openshift-ci-robot
Copy link

@openshift-ci-robot: GitHub didn't allow me to request PR reviews from the following users: wjiangjay.

Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

@iamemilio: This pull request references Bugzilla bug 1943599, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

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

Requesting review from QA contact:
/cc @wjiangjay

In response to this:

/bugzilla refresh

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.

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.

@EmilienM
Copy link
Member

EmilienM commented Apr 1, 2021

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 1, 2021
@iamemilio
Copy link
Author

reporting this upstream as well: kubernetes-sigs#834

@iamemilio
Copy link
Author

iamemilio commented Apr 6, 2021

/hold until this discussion is settled upstream

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 6, 2021
@iamemilio iamemilio changed the title Bug 1943599: Port create race conditions Bug 1943599: Port create bugs Apr 12, 2021
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Apr 13, 2021
Emilio Garcia added 3 commits April 13, 2021 15:58
These fields need to be set by OpenStack, otherwise there is the
potential to create severe errors. They also require admin/owner
permission to set. They should not be exposed to end users at all.
There is duplicate logic on how ports for machine interfaces are
created. This converts all portCreate calls to use a single private
function to create ports and uses the same process for each of them.
Allowed address pairs and security groups are now removed from the port
when the port security is disabled. This ensures that no nova errors
occur since this is a hard requirement of diabling port security.
@iamemilio
Copy link
Author

/retest

2 similar comments
@iamemilio
Copy link
Author

/retest

@iamemilio
Copy link
Author

/retest

The yaml for the vnic type required an argument "binding:vnicType" when
it should have been "vnicType". The HostID had the same issue. We also
created a struct for the FixedIPs to ensure the api remains camel case.
@iamemilio
Copy link
Author

/hold cancel

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 14, 2021
@iamemilio iamemilio changed the title Bug 1943599: Port create bugs Bug 1948546: Port create bugs Apr 14, 2021
@openshift-ci-robot openshift-ci-robot removed the bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. label Apr 14, 2021
@openshift-ci-robot
Copy link

@iamemilio: This pull request references Bugzilla bug 1948546, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

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

No GitHub users were found matching the public email listed for the QA contact in Bugzilla (juriarte@redhat.com), skipping review request.

In response to this:

Bug 1948546: Port create bugs

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.

@iamemilio
Copy link
Author

/bugzilla refresh

@openshift-ci-robot openshift-ci-robot added the bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. label Apr 14, 2021
@openshift-ci-robot
Copy link

@iamemilio: This pull request references Bugzilla bug 1948546, which is valid.

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

No GitHub users were found matching the public email listed for the QA contact in Bugzilla (juriarte@redhat.com), skipping review request.

In response to this:

/bugzilla refresh

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.

@EmilienM
Copy link
Member

/lgtm
/approve

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 14, 2021
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: EmilienM

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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 14, 2021
@openshift-merge-robot openshift-merge-robot merged commit fc80c59 into openshift:master Apr 14, 2021
@openshift-ci-robot
Copy link

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

Bugzilla bug 1948546 has been moved to the MODIFIED state.

In response to this:

Bug 1948546: Port create bugs

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.

pierreprinetti pushed a commit to shiftstack/cluster-api-provider-openstack that referenced this pull request Apr 22, 2024
Not all the scenarios supported by CAPO require the manager to pull the
kubeconfig configs from the nodes. Rather than failing due to missing
ssh keys, we should just log the inability to pull the config file and
continue with the execution.

This is an interim solution until openshift#174 is resolved.

Related to openshift#175
pierreprinetti pushed a commit to shiftstack/cluster-api-provider-openstack that referenced this pull request Apr 22, 2024
* Remove GetKubeConfig from the machine actuator

`GetKubeConfig` is only needed in the deployer, therefore we can do away
with the code we have in the machine actuator. This helps with issues openshift#174
and openshift#175

* Don't mount sshkeys on the manager's pod

We've removed the last use for the sshkeys secret/mount in the manager's
POD, which means we can now remove this code and stop mounting these
keys.

Fixes openshift#175

* Remove KeyPair related functions from the machine service

We're not managing keypairs from the actuator anymore. The functions
that used to manage keypairs have been removed in this commit.
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/severity-high Referenced Bugzilla bug's severity is high 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. 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