Add validate_cmd
for keepalived.conf
#277
Annotations
5 errors
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L4
keepalived class with unmanaged external config behaves like an idempotent resource applies with no errors
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'rocky8-64-puppet8.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_120915284.3THqEU.pp
Last 10 lines of output were:
Info: /Stage[main]/Keepalived::Config/Concat[/etc/keepalived/keepalived.conf]/File[/etc/keepalived/keepalived.conf]: Filebucketed /etc/keepalived/keepalived.conf to puppet with sum 855f5706e92996eb137827a3c6cdf314c2cec14f356ac1a5d0da766c95d77726
Error: Execution of '/usr/sbin/keepalived -l -t -f /etc/keepalived/keepalived.conf20240802-1313-1065p6s' returned 4: (VI_50) No VIP specified; at least one is sensible
(VI_50) No VIP specified; at least one is sensible
Error: /Stage[main]/Keepalived::Config/Concat[/etc/keepalived/keepalived.conf]/File[/etc/keepalived/keepalived.conf]/content: change from '{sha256}855f5706e92996eb137827a3c6cdf314c2cec14f356ac1a5d0da766c95d77726' to '{sha256}bfc75800a87c80c3b8cfc73a6300d9d5d18d797abe761df12d589cf8b84d96a2' failed: Execution of '/usr/sbin/keepalived -l -t -f /etc/keepalived/keepalived.conf20240802-1313-1065p6s' returned 4: (VI_50) No VIP specified; at least one is sensible
(VI_50) No VIP specified; at least one is sensible
Info: Class[Keepalived::Service]: Unscheduling all events on Class[Keepalived::Service]
�[mNotice: /Stage[main]/Keepalived::Service/Service[keepalived]: Dependency File[/etc/keepalived/keepalived.conf] has failures: true
Warning: /Stage[main]/Keepalived::Service/Service[keepalived]: Skipping because of failed dependencies
Info: Stage[main]: Unscheduling all events on Stage[main]
�[mNotice: Applied catalog in 0.08 seconds
Shared Example Group: "an idempotent resource" called from ./spec/acceptance/keepalived_spec.rb:82
|
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L8
keepalived class with unmanaged external config behaves like an idempotent resource applies a second time without changes
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'rocky8-64-puppet8.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_120917479.jmY2C4.pp
Last 10 lines of output were:
Info: Applying configuration version '1722600559'
Info: Computing checksum on file /etc/keepalived/keepalived.conf
Info: /Stage[main]/Keepalived::Config/Concat[/etc/keepalived/keepalived.conf]/File[/etc/keepalived/keepalived.conf]: Filebucketed /etc/keepalived/keepalived.conf to puppet with sum 855f5706e92996eb137827a3c6cdf314c2cec14f356ac1a5d0da766c95d77726
Error: Execution of '/usr/sbin/keepalived -l -t -f /etc/keepalived/keepalived.conf20240802-1434-1th39us' returned 4: (VI_50) No VIP specified; at least one is sensible
(VI_50) No VIP specified; at least one is sensible
Error: /Stage[main]/Keepalived::Config/Concat[/etc/keepalived/keepalived.conf]/File[/etc/keepalived/keepalived.conf]/content: change from '{sha256}855f5706e92996eb137827a3c6cdf314c2cec14f356ac1a5d0da766c95d77726' to '{sha256}bfc75800a87c80c3b8cfc73a6300d9d5d18d797abe761df12d589cf8b84d96a2' failed: Execution of '/usr/sbin/keepalived -l -t -f /etc/keepalived/keepalived.conf20240802-1434-1th39us' returned 4: (VI_50) No VIP specified; at least one is sensible
(VI_50) No VIP specified; at least one is sensible
�[mNotice: /Stage[main]/Keepalived::Service/Service[keepalived]: Dependency File[/etc/keepalived/keepalived.conf] has failures: true
Warning: /Stage[main]/Keepalived::Service/Service[keepalived]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.08 seconds
Shared Example Group: "an idempotent resource" called from ./spec/acceptance/keepalived_spec.rb:82
|
spec/acceptance/keepalived_spec.rb#L104
keepalived class with unmanaged external config File "/etc/keepalived/keepalived.conf" content is expected to contain "include /etc/keepalived/myconfig.conf"
Failure/Error: its(:content) { is_expected.to contain('include /etc/keepalived/myconfig.conf') }
expected "# Managed by Puppet\nglobal_defs {\n notification_email {\n [email protected]\n }\n snmp_sock...pe PASS\n auth_pass secret\n }\n\n virtual_ipaddress {\n 10.0.0.1/16 dev eth0\n }\n}\n\n\n" to contain "include /etc/keepalived/myconfig.conf"
|
spec/acceptance/keepalived_spec.rb#L154
keepalived class with broken config fails validate command
Failure/Error: apply_result = apply_manifest(pp, expect_failures: true)
Beaker::Host::CommandFailure:
Host 'rocky8-64-puppet8.example.com' exited with 2 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_120922901.3WvCY8.pp
Last 10 lines of output were:
Warning: Facter: Container runtime, 'docker', is unsupported, setting to, 'container_other'
�[mNotice: Compiled catalog for rocky8-64-puppet8.example.com in environment production in 0.10 seconds
Info: Using environment 'production'
Info: Applying configuration version '1722600564'
Info: Computing checksum on file /etc/keepalived/keepalived.conf
Info: /Stage[main]/Keepalived::Config/Concat[/etc/keepalived/keepalived.conf]/File[/etc/keepalived/keepalived.conf]: Filebucketed /etc/keepalived/keepalived.conf to puppet with sum 47d4e40550fa54f216993b7311db6ec62cf5364ee6a8d5ba4a4306c001307330
�[mNotice: /Stage[main]/Keepalived::Config/Concat[/etc/keepalived/keepalived.conf]/File[/etc/keepalived/keepalived.conf]/content: content changed '{sha256}47d4e40550fa54f216993b7311db6ec62cf5364ee6a8d5ba4a4306c001307330' to '{sha256}6502d3e382f566438c9f8ddc1c2f7a3011c6e912af710448920b03fee64b4b63'
Info: Concat[/etc/keepalived/keepalived.conf]: Scheduling refresh of Service[keepalived]
�[mNotice: /Stage[main]/Keepalived::Service/Service[keepalived]: Triggered 'refresh' from 1 event
�[mNotice: Applied catalog in 1.15 seconds
|
|
This job failed
Loading