-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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: Availability zones for root volumes #4707
Conversation
/retest |
/test e2e-openstack |
3c0cd44
to
d1e3d0b
Compare
/retest |
1 similar comment
/retest |
/test e2e-openstack |
3 similar comments
/test e2e-openstack |
/test e2e-openstack |
/test e2e-openstack |
/assign @mandre |
/test openstack-manifests |
/test e2e-openstack |
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.
Just a small comment about validation that's going to fail if your compute and cinder AZs don't match, otherwise lgtm.
/retest |
1 similar comment
/retest |
/test e2e-openstack |
2 similar comments
/test e2e-openstack |
/test e2e-openstack |
/retest |
1 similar comment
/retest |
/test e2e-openstack |
/test e2e-aws-upgrade |
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.
Please improve on the commit messages. Between the commit messages being sparse and the PR description being empty, we are missing a lot of color around these changes.
@@ -46,6 +46,11 @@ func Machines(clusterID string, config *types.InstallConfig, pool *types.Machine | |||
return nil, err | |||
} | |||
|
|||
volumeAZs := []string{""} |
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.
Can we add the default []string{""}
value for RootVolume.Zones
to defaultOpenStackMachinePoolPlatform
so that we don't have to have this code here?
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 think we can't... RootVolume
is an optional parameter for machine pool, and it's not enabled by default (in other words it is nil
in defaultOpenStackMachinePoolPlatform
). If we add []string{""}
value for RootVolume.Zones
, it means that the default would be:
openstacktypes.MachinePool{
Zones: []string{""},
RootVolume: &openstacktypes.RootVolume{
Zones: []string{""},
},
}
And we always create the RootVolume even if it's not required.
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.
Instead, I added the default value in "github.com/openshift/installer/pkg/types/openstack/defaults" which imo is more appropriate.
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.
Ah, that makes sense about not being able to set it in defaultOpenStackMachinePoolPlatform
. It would be nice to be able to set the default value when the install config defaults are set then, but I won't hold up this PR for that.
c8bfb83
to
c14cf84
Compare
@@ -46,6 +46,11 @@ func Machines(clusterID string, config *types.InstallConfig, pool *types.Machine | |||
return nil, err | |||
} | |||
|
|||
volumeAZs := []string{""} |
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.
Ah, that makes sense about not being able to set it in defaultOpenStackMachinePoolPlatform
. It would be nice to be able to set the default value when the install config defaults are set then, but I won't hold up this PR for that.
65bba9a
to
40b23ab
Compare
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.
This looks good.
Please improve the commit messages. At a minimum, make it clear that the changes are for OpenStack.
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: staebler 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 commit adds a new optional list of strings parameter called Zones to OpenStack's Root Volume. When it's set, OpenShift will create instance root volumes in the specified availability zones.
This commit allows to generate OpenStack Machine and MachineSet assets considering Root Volume zones parameter from the install config.
This commit allows to generate Terraform manifests for masters considering Root Volume availability zones.
This commit adds specific manifests tests to check Machines and MachineSets manifests generating when Root Volume availability zones are set.
/test e2e-aws-upgrade |
/lgtm |
/hold cancel |
@Fedosin: The following tests failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
This PR allows users to specify custom availability zones for their root volumes.
Implements: https://issues.redhat.com/browse/OSASINFRA-2226
Enhancement proposal: openshift/enhancements#691