Details
-
Type:
Bug
-
Status: Open
-
Priority:
Low
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: registry
-
Labels:None
-
Environment:
server: pe-puppetserver-2017.2.0.23-1
module: registry 2.0.1
-
Template:
-
Team:Windows
-
Method Found:Needs Assessment
-
QA Risk Assessment:Needs Assessment
Description
When testing the purge_examples.pp we get errors:
Info: Using configured environment 'acceptance_temp'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for testserver
Info: Applying configuration version '1524481498'
Notice: /Stage[main]/registry_test::Test::Purge_example/Registry_key[HKLM\Software\Vendor\Puppet Labs\Examples\KeyPurge]/ensure: created
Notice: /Stage[main]/registry_test::Test::Purge_example/Registry_key[HKLM\Software\Vendor\Puppet Labs\Examples\KeyPurge\SubKey]/ensure: created
Notice: /Stage[main]/registry_test::Test::Purge_example/Registry_value[HKLM\Software\Vendor\Puppet Labs\Examples\KeyPurge\SubKey\Value1]/ensure: created
Notice: /Stage[main]/registry_test::Test::Purge_example/Registry_value[HKLM\Software\Vendor\Puppet Labs\Examples\KeyPurge\SubKey\Value2]/ensure: created
Notice: /Stage[main]/registry_test::Test::Purge_example/Registry_value[HKLM\Software\Vendor\Puppet Labs\Examples\KeyPurge\Value1]/ensure: created
Notice: /Stage[main]/registry_test::Test::Purge_example/Registry_value[HKLM\Software\Vendor\Puppet Labs\Examples\KeyPurge\Value2]/ensure: created
Notice: /Stage[main]/registry_test::Test::Purge_example/Registry_value[HKLM\Software\Vendor\Puppet Labs\Examples\KeyPurge\Value3]/ensure: created
Notice: /Stage[main]/registry_test::Test::Purge_example/Registry_value[HKLM\Software\Vendor\Puppet Labs\Examples\KeyPurge\Value4]/ensure: created
Notice: /Stage[main]/registry_test::Test::Purge_example/Registry_value[HKLM\Software\Vendor\Puppet Labs\Examples\KeyPurge\Value5]/ensure: created
Notice: /Stage[main]/registry_test::Test::Purge_example/Registry_value[HKLM\Software\Vendor\Puppet Labs\Examples\KeyPurge\Value6]/ensure: created
Notice: Applied catalog in 69.94 seconds
PS C:\users\Administrator\Documents> $env:FACTER_PURGE_EXAMPLE_MODE = 'purge'
PS C:\users\Administrator\Documents> puppet agent -t --no-noop
Info: Using configured environment 'acceptance_temp'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for testserver
Info: Applying configuration version '1524481498'
Error: /Stage[main]/registry_test::Test::Purge_example/Registry_key[HKLM\Software\Vendor\Puppet Labs\Examples\KeyPurge]: Failed to generate additional resources using 'eval_generate': Parameter path failed on Registry_value[hklm\Software\Vendor\Puppet Labs\Examples\KeyPurge\Value1]: Munging failed for value "hklm\\Software\\Vendor
Puppet Labs\\Examples\\KeyPurge
Value1" in class path: Cannot alias Registry_value[hklm\Software\Vendor\Puppet Labs\Examples\KeyPurge\Value1] to "hklm\\software\\vendor
puppet labs\\examples\\keypurge
value1"; resource ["Registry_value", "hklm\\software\\vendor\\puppet labs\\examples\\keypurge\\value1"] already declared at /etc/puppetlabs/code/environments/acceptance_temp/modules/registry_test/manifests/test/purge_example.pp:94
Notice: /Stage[main]/registry_test::Test::Purge_example/Registry_value[HKLM\Software\Vendor\Puppet Labs\Examples\KeyPurge\Value1]/data: data changed '1' to '0'
Notice: /Stage[main]/registry_test::Test::Purge_example/Registry_value[HKLM\Software\Vendor\Puppet Labs\Examples\KeyPurge\Value2]/data: data changed '2' to '0'
Notice: /Stage[main]/registry_test::Test::Purge_example/Registry_value[HKLM\Software\Vendor\Puppet Labs\Examples\KeyPurge\Value3]/data: data changed 'key3' to 'should not be purged'
Notice: Applied catalog in 68.95 seconds
PS C:\users\Administrator\Documents>
PS C:\users\Administrator\Documents>
PS C:\users\Administrator\Documents> puppet agent -t --no-noop
Info: Using configured environment 'acceptance_temp'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for testserver
Info: Applying configuration version '1524481498'
Error: /Stage[main]/registry_test::Test::Purge_example/Registry_key[HKLM\Software\Vendor\Puppet Labs\Examples\KeyPurge]: Failed to generate additional resources using 'eval_generate': Parameter path failed on Registry_value[hklm\Software\Vendor\Puppet Labs\Examples\KeyPurge\Value1]: Munging failed for value "hklm\\Software\\Vendor
Puppet Labs\\Examples\\KeyPurge
Value1" in class path: Cannot alias Registry_value[hklm\Software\Vendor\Puppet Labs\Examples\KeyPurge\Value1] to "hklm\\software\\vendor
puppet labs\\examples\\keypurge
value1"; resource ["Registry_value", "hklm\\software\\vendor\\puppet labs\\examples\\keypurge\\value1"] already declared at /etc/puppetlabs/code/environments/acceptance_temp/modules/registry_test/manifests/test/purge_example.pp:94
Notice: Applied catalog in 70.50 seconds
the old (1.1.4) version of this module works without errors.
the class is this: https://github.com/puppetlabs/puppetlabs-registry/blob/master/examples/purge_example.pp (with the class renamed to make it work, but the rest is the same).