overcloud deployment fails with "Duplicate declaration: Package[fence-agents-ipmilan]" when fencing is enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
puppet-pacemaker |
Fix Released
|
Undecided
|
Unassigned | ||
tripleo |
New
|
Undecided
|
Unassigned |
Bug Description
After fixing #1955559 (commit 9f2e6f10a488304
FATAL | Run init bundle puppet on the host for oslo_messaging_rpc | messaging-0
Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Duplicate declaration: Package[
It seems the problem is that we use ensure_resource to manage packages but there are a slight different between
pacemaker: :stonith: :fence_ ipmilan resource( 'package' , 'fence- agents- ipmilan' , { ensure => 'installed' })
~~~
216 ensure_
~~~
pacemaker::install resource( 'package' , $::pacemaker: :params: :package_ list, {
~~~
ensure_
ensure => present
})
~~~
We should use one of installed/present. Or an alternative option is to use ensure_packages which deal with values(installed vs present) different but effectively same.