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

Use shorter directory names for beaker-hostgenerator #80

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Jan 27, 2024

When the Beaker setfile doesn't exist, Beaker calls beaker-hostgenerator and sets the :hosts_file_generated option. These directory names can become very long and in some cases exceed some limits when used with vagrant-libvirt.

This only uses the hostnames and discards all options passed. This can break some scenarios where a host is reused and a user may assume that passing in new options changes the host.

Currently a draft to test if it resolves the Call to virDomainCreateWithFlags failed: Invalid machine name error reported in voxpupuli/gha-puppet#49 (comment)

When the Beaker setfile doesn't exist, Beaker calls beaker-hostgenerator
and sets the :hosts_file_generated option. These directory names can
become very long and in some cases exceed some limits when used with
vagrant-libvirt.

This only uses the hostnames and discards all options passed. This can
break some scenarios where a host is reused and a user may assume that
passing in new options changes the host.
@traylenator
Copy link
Contributor

voxpupuli/puppet-swap_file#3 now using this patch.

@ekohl
Copy link
Member Author

ekohl commented Apr 4, 2024

Merging since the RuboCop failure is also present in master.

@ekohl ekohl merged commit 4e395c2 into voxpupuli:master Apr 4, 2024
5 of 6 checks passed
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.

None yet

2 participants