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

Grow volumes on hardened overcloud-full image #844

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

olliewalsh
Copy link
Contributor

No description provided.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 7, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 7, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: olliewalsh

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 openshift-ci bot added the approved label Jun 7, 2023
@olliewalsh olliewalsh force-pushed the hardened branch 2 times, most recently from 69ae5b8 to e7df9b6 Compare June 7, 2023 18:00
@olliewalsh olliewalsh force-pushed the hardened branch 4 times, most recently from a076269 to c021def Compare June 8, 2023 15:01
@olliewalsh olliewalsh force-pushed the hardened branch 10 times, most recently from 153d1c7 to e6c629f Compare June 15, 2023 21:35

// GetRoleGrowvolsArgs - return default growvols args for the given tripleo role name
func GetRoleGrowvolsArgs(role string) []string {
if role == "Controller" {
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be a regexp to match all the different default Controller* roles?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is copied from the playbook used in a traditional director deployment so I've kept is consistent

@@ -15,3 +15,6 @@ chpasswd:
bootcmd:
# fix BLS entries
- set -x; if [ -e /boot/loader/entries/ffffffffffffffffffffffffffffffff-* ]; then MACHINEID=$(cat /etc/machine-id) && rename "ffffffffffffffffffffffffffffffff" "$MACHINEID" /boot/loader/entries/ffffffffffffffffffffffffffffffff-* ; fi
runcmd:
# grow volumes on hardened image if command exists
- set -x; if [ -e /usr/local/sbin/growvols ]; then /usr/local/sbin/growvols --yes {{ range .GrowvolsArgs}}{{.|trim}} {{end}}; fi
Copy link
Contributor

Choose a reason for hiding this comment

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

from where is /usr/local/sbin/growvols coming? is it part of the overcloud image?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

only the overcloud images with lvm. Logic comes from https://github.com/openstack/tripleo-ansible/blob/stable/wallaby/tripleo_ansible/playbooks/cli-overcloud-node-growvols.yaml which is run on all nodes when deploying with python-tripleoclient

Copy link

@steveb steveb left a comment

Choose a reason for hiding this comment

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

/lgtm

Even if the underlying mechanism switches from cloud-init to ansible in the future, the exposed GrowvolsArgs interface won't change, so this is fine.

The only downside of cloud-init is if they provide custom invalid GrowvolsArgs, and they may not notice until the deployment fails with a full (tiny) disk. I don't think this will be a huge issue in practice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants