Skip to content

Conversation

@pierreprinetti
Copy link
Member

The Machine service, upon machine creation, looks in OpenStack for
networks and subnets matching the Machine Networks specificiation.

Before this change, if no matching network was found, the Instance spec
was sent to OpenStack with an empty Network segment.

With this change, the Machine service returns an error to the caller if
no matching networks are found in Openstack.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1746021

The Machine service, upon machine creation, looks in OpenStack for
networks and subnets matching the Machine Networks specificiation.

Before this change, if no matching network was found, the Instance spec
was sent to OpenStack with an empty Network segment.

With this change, the Machine service returns an error to the caller if
no matching networks are found in Openstack.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1746021
@openshift-ci-robot openshift-ci-robot added the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Sep 12, 2019
@openshift-ci-robot
Copy link

@pierreprinetti: This pull request references Bugzilla bug 1746021, which is invalid:

  • expected the bug to target the "4.2.0" release, but it targets "4.3.0" 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 1746021: Abort Instance if no valid network

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
Copy link
Member Author

/bugzilla refresh

@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Sep 12, 2019
@openshift-ci-robot
Copy link

@pierreprinetti: This pull request references Bugzilla bug 1746021, which is invalid:

  • expected the bug to target the "4.2.0" release, but it targets "4.3.0" 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:

/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.

@mandre
Copy link
Member

mandre commented Sep 12, 2019

The fix looks good me me. We should indeed stop sending requests that nova can't handle.

One question, though. Shouldn't this go in upstream k8s CAPO too?

@pierreprinetti
Copy link
Member Author

Shouldn't this go in upstream k8s CAPO too?

To my (very limited) knowledge, there is no upstream Machine counterpart. But I might be wrong?

@pierreprinetti
Copy link
Member Author

/bugzilla refresh

@openshift-ci-robot
Copy link

@pierreprinetti: This pull request references Bugzilla bug 1746021, which is invalid:

  • expected the bug to target the "4.2.0" release, but it targets "4.3.0" 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:

/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.

@pierreprinetti
Copy link
Member Author

/assign @Fedosin
...like the bot suggested :)

@pierreprinetti
Copy link
Member Author

/bugzilla refresh

@openshift-ci-robot openshift-ci-robot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Sep 12, 2019
@openshift-ci-robot
Copy link

@pierreprinetti: This pull request references Bugzilla bug 1746021, which is valid. The bug has been updated to refer to the pull request using the external bug tracker.

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.

@Fedosin
Copy link

Fedosin commented Sep 13, 2019

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 13, 2019
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Fedosin, pierreprinetti

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 Sep 13, 2019
@pierreprinetti
Copy link
Member Author

We need to push it in upstream as well

Thanks for the link! I've been unsuccessfully looking for that

@openshift-merge-robot openshift-merge-robot merged commit 0032e55 into openshift:master Sep 13, 2019
@openshift-ci-robot
Copy link

@pierreprinetti: All pull requests linked via external trackers have merged. Bugzilla bug 1746021 has been moved to the MODIFIED state.

In response to this:

Bug 1746021: Abort Instance if no valid network

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 pierreprinetti deleted the bz1746021.1 branch September 13, 2019 12:20
racheljpg pushed a commit to racheljpg/cluster-api-provider-openstack that referenced this pull request Dec 20, 2023
Allow for passing the machine username in the providerConfig. This is
mostly needed by the `clusterctl` command and we should probably find a
better way to get the kubeconfig data. Until then, let's not hardcode
the username in the implementation.

Closes openshift#66
pierreprinetti pushed a commit to shiftstack/cluster-api-provider-openstack that referenced this pull request Apr 22, 2024
Allow for passing the machine username in the providerConfig. This is
mostly needed by the `clusterctl` command and we should probably find a
better way to get the kubeconfig data. Until then, let's not hardcode
the username in the implementation.

Closes openshift#66
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. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants