Merge "Fix puppet class to wipe new PV"
This commit is contained in:
commit
c2554a69bd
@ -3,7 +3,7 @@ define platform::worker::storage::wipe_new_pv {
|
||||
$cmd = join(['/sbin/pvs --nosuffix --noheadings ',$name,' 2>/dev/null | grep nova-local || true'])
|
||||
$result = generate('/bin/sh', '-c', $cmd)
|
||||
if $result !~ /nova-local/ {
|
||||
exec { 'vgchange -an nova-local':
|
||||
exec { "vgchange -an nova-local - ${name}":
|
||||
command => 'vgchange -an nova-local || true'
|
||||
}
|
||||
-> exec { "Wipe New PV not in VG - ${name}":
|
||||
@ -12,6 +12,9 @@ define platform::worker::storage::wipe_new_pv {
|
||||
before => Lvm::Volume[instances_lv],
|
||||
require => Exec['remove device mapper mapping']
|
||||
}
|
||||
-> exec { "vgchange -ay nova-local - ${name}":
|
||||
command => 'vgchange -ay nova-local || true'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user