Skip to content

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

@ccombs-trustamerica

Description

@ccombs-trustamerica

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions