Hello,
does anybody know why the puppetlabs-lvm module is not working at Debian
Wheezy and Ubuntu Quantal?
I am getting the following error message:
root@pclient2:~# puppet agent --test
Ignoring --listen on onetime run
Info: Retrieving plugin
Info: Caching catalog for pclient2.credativ.lan
Info: Applying configuration version '1354633573'
Error: /Stage[main]//Node[default]/Lvm::Volume[swap]/Volume_group[vg0]:
Could not evaluate: undefined method `inject' for " PV,VG\n
/dev/vda5,vg0\n":String
/Stage[main]//Node[default]/Lvm::Volume[var]/Logical_volume[var]:
Dependency Volume_group[vg0] has failures: true
Warning:
/Stage[main]//Node[default]/Lvm::Volume[var]/Logical_volume[var]:
Skipping because of failed dependencies
/Stage[main]//Node[default]/Lvm::Volume[swap]/Logical_volume[swap]:
Dependency Volume_group[vg0] has failures: true
Warning:
/Stage[main]//Node[default]/Lvm::Volume[swap]/Logical_volume[swap]:
Skipping because of failed dependencies
/Stage[main]//Node[default]/Lvm::Volume[tmp]/Logical_volume[tmp]:
Dependency Volume_group[vg0] has failures: true
Warning:
/Stage[main]//Node[default]/Lvm::Volume[tmp]/Logical_volume[tmp]:
Skipping because of failed dependencies
/Stage[main]//Node[default]/Lvm::Volume[var]/Filesystem[/dev/vg0/var]:
Dependency Volume_group[vg0] has failures: true
Warning:
/Stage[main]//Node[default]/Lvm::Volume[var]/Filesystem[/dev/vg0/var]:
Skipping because of failed dependencies
/Stage[main]//Node[default]/Lvm::Volume[tmp]/Filesystem[/dev/vg0/tmp]:
Dependency Volume_group[vg0] has failures: true
Warning:
/Stage[main]//Node[default]/Lvm::Volume[tmp]/Filesystem[/dev/vg0/tmp]:
Skipping because of failed dependencies
/Stage[main]//Node[default]/Lvm::Volume[swap]/Filesystem[/dev/vg0/swap]:
Dependency Volume_group[vg0] has failures: true
Warning:
/Stage[main]//Node[default]/Lvm::Volume[swap]/Filesystem[/dev/vg0/swap]:
Skipping because of failed dependencies
/Stage[main]//Node[default]/Lvm::Volume[root]/Logical_volume[root]:
Dependency Volume_group[vg0] has failures: true
Warning:
/Stage[main]//Node[default]/Lvm::Volume[root]/Logical_volume[root]:
Skipping because of failed dependencies
/Stage[main]//Node[default]/Lvm::Volume[root]/Filesystem[/dev/vg0/root]:
Dependency Volume_group[vg0] has failures: true
Warning:
/Stage[main]//Node[default]/Lvm::Volume[root]/Filesystem[/dev/vg0/root]:
Skipping because of failed dependencies
Finished catalog run in 0.27 seconds
I can only assume that this has something to do with the mixed Ruby
1.8/1.9 dependencies of Puppet 3.0.1.
The following snippet is working at Debian Squeeze and Ubuntu Precise
without any problems:
node "default" {
lvm::volume { 'swap':
ensure => present,
vg => 'vg0',
pv => '/dev/vda5',
fstype => 'swap',
size => '1536M',
}
lvm::volume { 'root':
ensure => present,
vg => 'vg0',
pv => '/dev/vda5',
fstype => 'ext4',
size => '5G',
}
lvm::volume { 'var':
ensure => present,
vg => 'vg0',
pv => '/dev/vda5',
fstype => 'ext4',
size => '2G',
}
lvm::volume { 'tmp':
ensure => present,
vg => 'vg0',
pv => '/dev/vda5',
fstype => 'ext4',
size => '1G',
}
}
Best regards, Dennis