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

Error while evaluating a Resource Statement, Lvm::Logical_volume[db2installlv]: has no parameter named 'yes_flag' (file: /etc/puppetlabs/code/environments/ccombs/modules/lvm/manifests/volume_group.pp #351

Open
ccombs-trustamerica opened this issue Sep 20, 2024 · 0 comments
Labels

Comments

@ccombs-trustamerica
Copy link

ccombs-trustamerica commented Sep 20, 2024

Describe the Bug

Error while evaluating a Resource Statement, Lvm::Logical_volume[db2backupslv]: has no parameter named 'yes_flag' (file: /etc/puppetlabs/code/environments/ccombs/modules/lvm/manifests/volume_group.pp

Expected Behavior

yes_flag to work when passing logvol parameters in.

Steps to Reproduce

->class { 'lvm':
volume_groups => {
'db2vg' => {
physical_volumes => '/dev/sdb',
createonly => true,
logical_volumes => {
'db2backupslv' => {
'initial_size' => '50G',
'mountpath' => '/db2_backups',
'mountpath_require' => true,
'fs_type' => 'xfs',
'options' => 'defaults,nodev,noexec,nosuid',
'yes_flag' => true,
},
--Snipped--

Environment

  • Version puppetlabs-lvm 2.3
  • Platform RHEL 9.4

Additional Context

Tried using yes_flag to overcome an improperly removed xfs filesystem and logvol from this error:

Error: /Stage[main]/Lvm/Lvm::Volume_group[db2vg]/Lvm::Logical_volume[db2backupslv]/Logical_volume[db2backupslv]/ensure: change from 'absent' to 'present' failed: Execution of '/usr/sbin/lvcreate -n db2backupslv --size 50G db2vg' returned 5: WARNING: xfs signature detected on /dev/db2vg/db2backupslv at offset 0. Wipe it? [y/n]: [n]
Aborted wiping of xfs.
1 existing signature left on the device.
Failed to wipe signatures on logical volume db2vg/db2backupslv.

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

No branches or pull requests

1 participant