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 1754070: Add boot from volume support #69

Merged
merged 2 commits into from
Sep 25, 2019

Conversation

Fedosin
Copy link

@Fedosin Fedosin commented Sep 24, 2019

No description provided.

@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 24, 2019
// VolumeSize: config.RootVolume.Size,
VolumeSize: 25,
// DeviceType: config.RootVolume.DeviceType,
DeviceType: "performance",
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

VolumeType was added in Stein, so we can't rely on it if we want to support OSP13 😢

https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#id60

@openshift-ci-robot openshift-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 24, 2019
@Fedosin
Copy link
Author

Fedosin commented Sep 24, 2019

No idea why dep removed vendor/github.com/openshift/kubernetes-drain

mfedosin@winter ~/go/src/sigs.k8s.io/cluster-api-provider-openstack $ git s
mfedosin@winter ~/go/src/sigs.k8s.io/cluster-api-provider-openstack $ dep ensure -update github.com/gophercloud/gophercloud
mfedosin@winter ~/go/src/sigs.k8s.io/cluster-api-provider-openstack $ git s
M Gopkg.lock
M vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/bootfromvolume/requests.go
M vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/tokens/requests.go
M vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/tokens/results.go
M vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/security/groups/results.go
M vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/networks/results.go
D vendor/github.com/openshift/kubernetes-drain/LICENSE
D vendor/github.com/openshift/kubernetes-drain/drain.go

DeleteOnTermination: true,
DestinationType: bootfromvolume.DestinationVolume,
VolumeSize: config.RootVolume.Size,
DeviceType: config.RootVolume.DeviceType,
}
blocks = append(blocks, block)

createOpts = bootfromvolume.CreateOptsExt{
Copy link
Member

@pierreprinetti pierreprinetti Sep 24, 2019

Choose a reason for hiding this comment

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

Can you please take this opportunity to move here the declaration of createOpts? I find it confusing to have it so far away (line 426).

Copy link
Author

Choose a reason for hiding this comment

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

Ack

@Fedosin Fedosin force-pushed the boot_from_volume branch 5 times, most recently from e10ad65 to 87e0440 Compare September 25, 2019 13:06
@@ -608,22 +617,45 @@ func (is *InstanceService) InstanceCreate(clusterName string, name string, clust
if config.RootVolume != nil && config.RootVolume.Size != 0 {
var blocks []bootfromvolume.BlockDevice

imageID, err := getImageID(is, config.RootVolume.SourceUUID)
if err != nil {
return nil, fmt.Errorf("Create new server err: %v", err)
Copy link
Member

Choose a reason for hiding this comment

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

This error message could be a bit more specific.

@iamemilio iamemilio changed the title Add boot from volume support Bug 1754115: Add boot from volume support Sep 25, 2019
@openshift-ci-robot
Copy link

@Fedosin: This pull request references Bugzilla bug 1754115, which is invalid:

  • expected the bug to target the "4.3.0" release, but it targets "4.2.0" instead
  • expected dependent Bugzilla bug 1754070 to be in one of the following states: VERIFIED, RELEASE_PENDING, CLOSED (ERRATA), but it is ASSIGNED 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 1754115: Add boot from volume support

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 added the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Sep 25, 2019
@iamemilio iamemilio changed the title Bug 1754115: Add boot from volume support Bug 1754070: Add boot from volume support Sep 25, 2019
@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 Sep 25, 2019
@openshift-ci-robot
Copy link

@Fedosin: This pull request references Bugzilla bug 1754070, 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.

In response to this:

Bug 1754070: Add boot from volume support

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 Sep 25, 2019
@iamemilio
Copy link

/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

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

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-merge-robot openshift-merge-robot merged commit 945cf04 into openshift:master Sep 25, 2019
@openshift-ci-robot
Copy link

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

In response to this:

Bug 1754070: Add boot from volume support

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 Mar 27, 2020
We were creating our own copy of AuthOptions rather than relying on the
utilities provided by clientconfig. Our copy didn't have all the info
required by gophercloud to authenticate.

Closes openshift#69
racheljpg pushed a commit to racheljpg/cluster-api-provider-openstack that referenced this pull request Dec 20, 2023
We were creating our own copy of AuthOptions rather than relying on the
utilities provided by clientconfig. Our copy didn't have all the info
required by gophercloud to authenticate.

Closes openshift#69
pierreprinetti pushed a commit to shiftstack/cluster-api-provider-openstack that referenced this pull request Apr 22, 2024
We were creating our own copy of AuthOptions rather than relying on the
utilities provided by clientconfig. Our copy didn't have all the info
required by gophercloud to authenticate.

Closes openshift#69
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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants