FAQ
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

Search Discussions

  • Dennis Hoppe at Dec 7, 2012 at 3:41 pm
    Hello,

    Am 04.12.2012 16:26, schrieb Dennis Hoppe:
    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',
    }
    }
    with a little help of my colleague, i was able to solve this problem and
    submitted the following Pull Request:

    https://github.com/puppetlabs/puppetlabs-lvm/pull/17

    Best regards, Dennis

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedDec 5, '12 at 10:29a
activeDec 7, '12 at 3:41p
posts2
users1
websitepuppetlabs.com

1 user in discussion

Dennis Hoppe: 2 posts

People

Translate

site design / logo © 2022 Grokbase