(SUP-4955) Wildcard Operator Added for file license ingestion #206
Annotations
10 errors and 1 warning
spec/acceptance/agent_status_check_spec.rb#L6
check agent_status_check fact is not on infra components agent_status_check should be empty
On host `34.82.238.135'
Failure/Error: expect(host_inventory['facter']['agent_status_check']).to be_nil
NoMethodError:
undefined method `[]' for nil:NilClass
sudo -p 'Password: ' /bin/sh -c facter\ --puppet\ --yaml
[2024-07-05 11:01:10.719111 ] ERROR Facter - Error while resolving custom fact fact='pe_status_check', resolution='<anonymous>': undefined local variable or method `validty' for #<Facter::Core::Aggregate:0x00005e5a2f9e9f20>
Did you mean? validity
aio_agent_build: 7.30.0
aio_agent_version: 7.30.0
augeas:
version: 1.14.1
cloud:
provider: gce
disks:
sda:
model: "PersistentDisk"
serial: "persistent-disk-0"
size: 10.00 GiB
size_bytes: 10737418240
type: hdd
vendor: Google
dmi:
bios:
release_date: "06/07/2024"
vendor: Google
version: Google
board:
asset_tag: 9E05C7D6-EE23-EC2F-BAFB-3BBA06D99E27
manufacturer: Google
product: "Google Compute Engine"
serial_number: Board-GoogleCloud-9E05C7D6EE23EC2FBAFB3BBA06D99E27
chassis:
type: Other
manufacturer: Google
product:
name: "Google Compute Engine"
serial_number: GoogleCloud-9E05C7D6EE23EC2FBAFB3BBA06D99E27
uuid: 9e05c7d6-ee23-ec2f-bafb-3bba06d99e27
facterversion: 4.7.0
filesystems: ext2,ext3,ext4,squashfs,vfat
fips_enabled: false
gce:
instance:
attributes:
startup-script: |
#!/bin/bash
set -ev
# Create the test user and add it to sudoers
sudo useradd -m "litmushtkbvnfz"
sudo echo "litmushtkbvnfz:L1tmusfa4u6nq" | chpasswd
# Add litmushtkbvnfz user to sudoers for agent install and fix path in default secure path
sudo echo 'litmushtkbvnfz ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers
# Add puppetlabs' bin directory to the allowed PATH contents for sudo
# See provision::fix_secure_path task for original implementation
pupt_path=/opt/puppetlabs/bin
sudo sed -i -r -e "/^\s*Defaults\s*secure_path\s*/ s#=+\"([^\"]+)\".*#=\"\1:${pupt_path}\"#" /etc/sudoers
sudo sed -i -r -e "/^\s*Defaults\s+secure_path/ s#=([^\"].*)#=\1:${pupt_path}#" /etc/sudoers
# allow password authentication on SSH
sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
# CAT-1746 : Fixing the PasswordAuthentication for Ubuntu ARM
# The reason for this fix is because the PasswordAuthentication got moved to a separate file in Ubuntu ARM under /etc/ssh/sshd_config.d/
# which leading to the password authentication not working as expected.
# The below fix will search for the file which has the PasswordAuthentication and update the value to yes.
config_file=$(grep -rl 'PasswordAuthentication' /etc/ssh/sshd_config.d/ || true)
if [ ! -z $config_file ]
then
sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' $config_file
fi
sudo service sshd restart
stop-state: "UNSPECIFIED"
cpuPlatform: "Intel Broadwell"
description: ""
disks:
- deviceName: "persistent-disk-0"
index: 0
interface: SCSI
mode: READ_WRITE
type: "PERSISTENT"
guestAttributes: {}
hostname: "litmus-5cf309a9a9b273a0.c.ia-content.internal"
id: 1056219571702886826
image: "ubuntu-2204-jammy-v20240701"
licenses:
- id: '5511465778777431107'
machineType: "n1-standard-2"
maintenanceEvent: "NONE"
name: litmus-5cf309a9a9b273a0
networkInterfaces:
- accessConfigs:
- externalIp: 34.82.238.135
type: "ONE_TO_ONE_NAT"
dnsServers:
- 169.254.169.254
forwardedIps: []
gateway: 10.138.0.1
ip: 10.138.0.22
ipAliases: []
mac: "42:01:0a:8a:00:16"
mtu: 1460
network: default
subnetmask: 255.255.240.0
targetInstanceIps: []
partnerAttributes: {}
preempted: "FALSE"
remainingCpuTime: "-1"
scheduling:
automaticRestart: "TRUE"
onHostMaintenanc
|
spec/acceptance/pe_status_check_spec.rb#L20
pe_status_check class activates module default parameters check no pe_status_check fact is false if idempotent all facts should be true
On host `34.82.238.135'
Failure/Error: expect(host_inventory['facter']['pe_status_check'].size).to eq(41)
NoMethodError:
undefined method `[]' for nil:NilClass
sudo -p 'Password: ' /bin/sh -c facter\ --puppet\ --yaml
[2024-07-05 11:01:55.372105 ] ERROR Facter - Error while resolving custom fact fact='pe_status_check', resolution='<anonymous>': undefined local variable or method `validty' for #<Facter::Core::Aggregate:0x000060524cf69b78>
Did you mean? validity
aio_agent_build: 7.30.0
aio_agent_version: 7.30.0
augeas:
version: 1.14.1
cloud:
provider: gce
disks:
sda:
model: "PersistentDisk"
serial: "persistent-disk-0"
size: 10.00 GiB
size_bytes: 10737418240
type: hdd
vendor: Google
dmi:
bios:
release_date: "06/07/2024"
vendor: Google
version: Google
board:
asset_tag: 9E05C7D6-EE23-EC2F-BAFB-3BBA06D99E27
manufacturer: Google
product: "Google Compute Engine"
serial_number: Board-GoogleCloud-9E05C7D6EE23EC2FBAFB3BBA06D99E27
chassis:
type: Other
manufacturer: Google
product:
name: "Google Compute Engine"
serial_number: GoogleCloud-9E05C7D6EE23EC2FBAFB3BBA06D99E27
uuid: 9e05c7d6-ee23-ec2f-bafb-3bba06d99e27
facterversion: 4.7.0
filesystems: ext2,ext3,ext4,squashfs,vfat
fips_enabled: false
gce:
instance:
attributes:
startup-script: |
#!/bin/bash
set -ev
# Create the test user and add it to sudoers
sudo useradd -m "litmushtkbvnfz"
sudo echo "litmushtkbvnfz:L1tmusfa4u6nq" | chpasswd
# Add litmushtkbvnfz user to sudoers for agent install and fix path in default secure path
sudo echo 'litmushtkbvnfz ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers
# Add puppetlabs' bin directory to the allowed PATH contents for sudo
# See provision::fix_secure_path task for original implementation
pupt_path=/opt/puppetlabs/bin
sudo sed -i -r -e "/^\s*Defaults\s*secure_path\s*/ s#=+\"([^\"]+)\".*#=\"\1:${pupt_path}\"#" /etc/sudoers
sudo sed -i -r -e "/^\s*Defaults\s+secure_path/ s#=([^\"].*)#=\1:${pupt_path}#" /etc/sudoers
# allow password authentication on SSH
sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
# CAT-1746 : Fixing the PasswordAuthentication for Ubuntu ARM
# The reason for this fix is because the PasswordAuthentication got moved to a separate file in Ubuntu ARM under /etc/ssh/sshd_config.d/
# which leading to the password authentication not working as expected.
# The below fix will search for the file which has the PasswordAuthentication and update the value to yes.
config_file=$(grep -rl 'PasswordAuthentication' /etc/ssh/sshd_config.d/ || true)
if [ ! -z $config_file ]
then
sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' $config_file
fi
sudo service sshd restart
stop-state: "UNSPECIFIED"
cpuPlatform: "Intel Broadwell"
description: ""
disks:
- deviceName: "persistent-disk-0"
index: 0
interface: SCSI
mode: READ_WRITE
type: "PERSISTENT"
guestAttributes: {}
hostname: "litmus-5cf309a9a9b273a0.c.ia-content.internal"
id: 1056219571702886826
image: "ubuntu-2204-jammy-v20240701"
licenses:
- id: '5511465778777431107'
machineType: "n1-standard-2"
maintenanceEvent: "NONE"
name: litmus-5cf309a9a9b273a0
networkInterfaces:
- accessConfigs:
- externalIp: 34.82.238.135
type: "ONE_TO_ONE_NAT"
dnsServers:
- 169.254.169.254
forwardedIps: []
gateway: 10.138.0.1
ip: 10.138.0.22
ipAliases: []
mac: "42:01:0a:8a:00:16"
mtu: 1460
network: default
subnetmask: 255.255.240.0
targetInstanceIps: []
partnerAttributes: {}
preempted: "FALSE"
remainingCpuTime: "-1"
scheduling:
a
|
spec/acceptance/pe_status_check_spec.rb#L30
pe_status_check class activates module default parameters check notifications work as expected if S0001 reports false notify with message
On host `34.82.238.135'
Failure/Error: result = run_shell('facter -p pe_status_check.S0001')
RuntimeError:
shell failed
`facter -p pe_status_check.S0001`
======
[{"target"=>"34.82.238.135", "action"=>"command", "object"=>"facter -p pe_status_check.S0001", "status"=>"failure", "value"=>{"stdout"=>"\n", "stderr"=>"[2024-07-05 11:02:11.558257 ] ERROR Facter - \e[31mError while resolving custom fact fact='pe_status_check', resolution='<anonymous>': undefined local variable or method `validty' for #<Facter::Core::Aggregate:0x00005a5337596480>\nDid you mean? validity\e[0m \n", "merged_output"=>"[2024-07-05 11:02:11.558257 ] ERROR Facter - \e[31mError while resolving custom fact fact='pe_status_check', resolution='<anonymous>': undefined local variable or method `validty' for #<Facter::Core::Aggregate:0x00005a5337596480>\nDid you mean? validity\e[0m \n\n", "exit_code"=>1, "_error"=>{"kind"=>"puppetlabs.tasks/command-error", "issue_code"=>"COMMAND_ERROR", "msg"=>"The command failed with exit code 1", "details"=>{"exit_code"=>1}}}}]
|
spec/acceptance/pe_status_check_spec.rb#L53
pe_status_check class activates module default parameters check all facts report false in the proper conditions if S0002 conditions for false are met
On host `34.82.238.135'
Failure/Error: result = run_shell('facter -p pe_status_check.S0002')
RuntimeError:
shell failed
`facter -p pe_status_check.S0002`
======
[{"target"=>"34.82.238.135", "action"=>"command", "object"=>"facter -p pe_status_check.S0002", "status"=>"failure", "value"=>{"stdout"=>"\n", "stderr"=>"[2024-07-05 11:03:02.106239 ] ERROR Facter - \e[31mError while resolving custom fact fact='pe_status_check', resolution='<anonymous>': undefined local variable or method `validty' for #<Facter::Core::Aggregate:0x000055b3cddc29f0>\nDid you mean? validity\e[0m \n", "merged_output"=>"[2024-07-05 11:03:02.106239 ] ERROR Facter - \e[31mError while resolving custom fact fact='pe_status_check', resolution='<anonymous>': undefined local variable or method `validty' for #<Facter::Core::Aggregate:0x000055b3cddc29f0>\nDid you mean? validity\e[0m \n\n", "exit_code"=>1, "_error"=>{"kind"=>"puppetlabs.tasks/command-error", "issue_code"=>"COMMAND_ERROR", "msg"=>"The command failed with exit code 1", "details"=>{"exit_code"=>1}}}}]
|
spec/acceptance/pe_status_check_spec.rb#L59
pe_status_check class activates module default parameters check all facts report false in the proper conditions if S0003 conditions for false are met
On host `34.82.238.135'
Failure/Error: result = run_shell('facter -p pe_status_check.S0003')
RuntimeError:
shell failed
`facter -p pe_status_check.S0003`
======
[{"target"=>"34.82.238.135", "action"=>"command", "object"=>"facter -p pe_status_check.S0003", "status"=>"failure", "value"=>{"stdout"=>"\n", "stderr"=>"[2024-07-05 11:03:17.256649 ] ERROR Facter - \e[31mError while resolving custom fact fact='pe_status_check', resolution='<anonymous>': undefined local variable or method `validty' for #<Facter::Core::Aggregate:0x00005b8f2cab2540>\nDid you mean? validity\e[0m \n", "merged_output"=>"[2024-07-05 11:03:17.256649 ] ERROR Facter - \e[31mError while resolving custom fact fact='pe_status_check', resolution='<anonymous>': undefined local variable or method `validty' for #<Facter::Core::Aggregate:0x00005b8f2cab2540>\nDid you mean? validity\e[0m \n\n", "exit_code"=>1, "_error"=>{"kind"=>"puppetlabs.tasks/command-error", "issue_code"=>"COMMAND_ERROR", "msg"=>"The command failed with exit code 1", "details"=>{"exit_code"=>1}}}}]
|
spec/acceptance/pe_status_check_spec.rb#L65
pe_status_check class activates module default parameters check all facts report false in the proper conditions if S0004 conditions for false are met
On host `34.82.238.135'
Failure/Error: result = run_shell('facter -p pe_status_check.S0004')
RuntimeError:
shell failed
`facter -p pe_status_check.S0004`
======
[{"target"=>"34.82.238.135", "action"=>"command", "object"=>"facter -p pe_status_check.S0004", "status"=>"failure", "value"=>{"stdout"=>"\n", "stderr"=>"[2024-07-05 11:03:32.971556 ] ERROR Facter - \e[31mError while resolving custom fact fact='pe_status_check', resolution='<anonymous>': undefined local variable or method `validty' for #<Facter::Core::Aggregate:0x00005819c676db98>\nDid you mean? validity\e[0m \n", "merged_output"=>"[2024-07-05 11:03:32.971556 ] ERROR Facter - \e[31mError while resolving custom fact fact='pe_status_check', resolution='<anonymous>': undefined local variable or method `validty' for #<Facter::Core::Aggregate:0x00005819c676db98>\nDid you mean? validity\e[0m \n\n", "exit_code"=>1, "_error"=>{"kind"=>"puppetlabs.tasks/command-error", "issue_code"=>"COMMAND_ERROR", "msg"=>"The command failed with exit code 1", "details"=>{"exit_code"=>1}}}}]
|
spec/acceptance/pe_status_check_spec.rb#L72
pe_status_check class activates module default parameters check all facts report false in the proper conditions if S0006 conditions for false are met
On host `34.82.238.135'
Failure/Error: result = run_shell('facter -p pe_status_check.S0006')
RuntimeError:
shell failed
`facter -p pe_status_check.S0006`
======
[{"target"=>"34.82.238.135", "action"=>"command", "object"=>"facter -p pe_status_check.S0006", "status"=>"failure", "value"=>{"stdout"=>"\n", "stderr"=>"[2024-07-05 11:03:47.937773 ] ERROR Facter - \e[31mError while resolving custom fact fact='pe_status_check', resolution='<anonymous>': undefined local variable or method `validty' for #<Facter::Core::Aggregate:0x000061f54ab85e88>\nDid you mean? validity\e[0m \n", "merged_output"=>"[2024-07-05 11:03:47.937773 ] ERROR Facter - \e[31mError while resolving custom fact fact='pe_status_check', resolution='<anonymous>': undefined local variable or method `validty' for #<Facter::Core::Aggregate:0x000061f54ab85e88>\nDid you mean? validity\e[0m \n\n", "exit_code"=>1, "_error"=>{"kind"=>"puppetlabs.tasks/command-error", "issue_code"=>"COMMAND_ERROR", "msg"=>"The command failed with exit code 1", "details"=>{"exit_code"=>1}}}}]
|
spec/acceptance/pe_status_check_spec.rb#L99
pe_status_check class activates module default parameters check all facts report false in the proper conditions if S0009 conditions for false are met
On host `34.82.238.135'
Failure/Error: result = run_shell('facter -p pe_status_check.S0009')
RuntimeError:
shell failed
`facter -p pe_status_check.S0009`
======
[{"target"=>"34.82.238.135", "action"=>"command", "object"=>"facter -p pe_status_check.S0009", "status"=>"failure", "value"=>{"stdout"=>"\n", "stderr"=>"[2024-07-05 11:04:03.785749 ] ERROR Facter - \e[31mError while resolving custom fact fact='pe_status_check', resolution='<anonymous>': undefined local variable or method `validty' for #<Facter::Core::Aggregate:0x00005572e17d2360>\nDid you mean? validity\e[0m \n", "merged_output"=>"[2024-07-05 11:04:03.785749 ] ERROR Facter - \e[31mError while resolving custom fact fact='pe_status_check', resolution='<anonymous>': undefined local variable or method `validty' for #<Facter::Core::Aggregate:0x00005572e17d2360>\nDid you mean? validity\e[0m \n\n", "exit_code"=>1, "_error"=>{"kind"=>"puppetlabs.tasks/command-error", "issue_code"=>"COMMAND_ERROR", "msg"=>"The command failed with exit code 1", "details"=>{"exit_code"=>1}}}}]
|
spec/acceptance/pe_status_check_spec.rb#L106
pe_status_check class activates module default parameters check all facts report false in the proper conditions if S0010 conditions for false are met
On host `34.82.238.135'
Failure/Error: result = run_shell('facter -p pe_status_check.S0010')
RuntimeError:
shell failed
`facter -p pe_status_check.S0010`
======
[{"target"=>"34.82.238.135", "action"=>"command", "object"=>"facter -p pe_status_check.S0010", "status"=>"failure", "value"=>{"stdout"=>"\n", "stderr"=>"[2024-07-05 11:04:19.546413 ] ERROR Facter - \e[31mError while resolving custom fact fact='pe_status_check', resolution='<anonymous>': undefined local variable or method `validty' for #<Facter::Core::Aggregate:0x00006028b3575968>\nDid you mean? validity\e[0m \n", "merged_output"=>"[2024-07-05 11:04:19.546413 ] ERROR Facter - \e[31mError while resolving custom fact fact='pe_status_check', resolution='<anonymous>': undefined local variable or method `validty' for #<Facter::Core::Aggregate:0x00006028b3575968>\nDid you mean? validity\e[0m \n\n", "exit_code"=>1, "_error"=>{"kind"=>"puppetlabs.tasks/command-error", "issue_code"=>"COMMAND_ERROR", "msg"=>"The command failed with exit code 1", "details"=>{"exit_code"=>1}}}}]
|
spec/acceptance/pe_status_check_spec.rb#L113
pe_status_check class activates module default parameters check all facts report false in the proper conditions if S0011 conditions for false are met
On host `34.82.238.135'
Failure/Error: result = run_shell('facter -p pe_status_check.S0011')
RuntimeError:
shell failed
`facter -p pe_status_check.S0011`
======
[{"target"=>"34.82.238.135", "action"=>"command", "object"=>"facter -p pe_status_check.S0011", "status"=>"failure", "value"=>{"stdout"=>"\n", "stderr"=>"[2024-07-05 11:04:35.308967 ] ERROR Facter - \e[31mError while resolving custom fact fact='pe_status_check', resolution='<anonymous>': undefined local variable or method `validty' for #<Facter::Core::Aggregate:0x00005bd7de859cf8>\nDid you mean? validity\e[0m \n", "merged_output"=>"[2024-07-05 11:04:35.308967 ] ERROR Facter - \e[31mError while resolving custom fact fact='pe_status_check', resolution='<anonymous>': undefined local variable or method `validty' for #<Facter::Core::Aggregate:0x00005bd7de859cf8>\nDid you mean? validity\e[0m \n\n", "exit_code"=>1, "_error"=>{"kind"=>"puppetlabs.tasks/command-error", "issue_code"=>"COMMAND_ERROR", "msg"=>"The command failed with exit code 1", "details"=>{"exit_code"=>1}}}}]
|
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
The logs for this run have expired and are no longer available.
Loading