Cinder::Type[iscsi]/Exec[cinder type-create iscsi]/returns: change from notrun to 0 failed: cinder type-create iscsi returned 1 instead of one of [0]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
puppet-cinder |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Install cinder, return "exec[cinder type-create iscsi]/returns: change from notrun to 0 failed: cinder type-create iscsi returned 1 instead of one of [0]".Then performed manually command "cinder type-create iscsi" ,return "ERROR: Conflict (HTTP 409) (Request-ID: req-0700f9e4-
I suggest update cinder\
exec {"cinder type-create ${volume_name}":
command => "cinder type-create ${volume_name}",
unless => "cinder type-list | grep -qP '\\b${volume_
environment => concat($cinder_env, $region_env),
require => Package[
path => ['/usr/bin', '/bin'],
}
to
exec {"cinder type-create ${volume_name}":
command => "cinder type-create ${volume_name}",
unless => "cinder type-list | grep -P '${volume_name}'",
environment => concat($cinder_env, $region_env),
require => Package[
path => ['/usr/bin', '/bin'],
}
Changed in puppet-cinder: | |
assignee: | nobody → liaonanhai (nanhai-liao) |
Fix proposed to branch: master /review. openstack. org/210944
Review: https:/