Add validate_cmd
for keepalived.conf
#278
Annotations
4 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 'ubuntu2204-64-puppet8.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_122956682.JABI5V.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-1446-1inzoxw' returned 5: (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-1446-1inzoxw' returned 5: (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.85 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 'ubuntu2204-64-puppet8.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_122959552.vnkPkM.pp
Last 10 lines of output were:
Info: Applying configuration version '1722601801'
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-1513-rxhrk1' returned 5: (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-1513-rxhrk1' returned 5: (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.87 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"
|
|
This job failed
Loading