AnsweredAssumed Answered

Chef-solo fails on Endpoint Log Hybrid

Question asked by Jeremy Kerwin on Dec 23, 2019
Latest reply on Dec 30, 2019 by Aaron Martin

When running the following command on my endpoint log hybrid. It fails with the subsequent errors.

 

chef-solo --no-color --logfile "/var/log/netwitness/config-management/chef-solo.log" --format doc --config /var/lib/netwitness/config-management/client.rb --json-attributes /etc/netwitness/config-management/node.json
* nw_rabbitmq_plugin[nw_admin:upgrade] action disable * nw_rabbitmq_plugin[nw_admin:upgrade] action disable
* execute[rabbitmq-plugins disable nw_admin] action run
* execute[rabbitmq-plugins disable nw_admin] action run
[execute] The following plugins have been disabled:
nw_admin

[execute] The following plugins have been disabled:
nw_admin

Applying plugin configuration to rabbit@047595fd-5b2d-4579-a622-70e52992baac...
Applying plugin configuration to rabbit@047595fd-5b2d-4579-a622-70e52992baac... stopped 1 plugin.
stopped 1 plugin.
- execute rabbitmq-plugins disable nw_admin - execute rabbitmq-plugins disable nw_admin
Recipe: nw-firewall::packages
* yum_package[iptables-services] action installRecipe: nw-firewall::packages
* yum_package[iptables-services] action install

================================================================================
Error executing action `install` on resource 'yum_package[iptables-services]'
================================================================================

Chef::Exceptions::Package
-------------------------
Version ["1.4.21-24.1.el7_5"] of ["iptables-services"] not found. Did you specify both version and release? (version-release, e.g. 1.84-10.fc6)

Resource Declaration:
---------------------
# In /var/lib/netwitness/config-management/cache/cookbooks/nw-firewall/recipes/packages.rb

11: package pkg['name'] do
12: version pkg['version']
13: action :install
14: end
15: end

Compiled Resource:
------------------
# Declared in /var/lib/netwitness/config-management/cache/cookbooks/nw-firewall/recipes/packages.rb:11:in `block in from_file'

yum_package("iptables-services") do
package_name "iptables-services"
action [:install]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :package
cookbook_name "nw-firewall"
recipe_name "packages"
version "1.4.21-24.1.el7_5"
flush_cache {:before=>false, :after=>false}
end

Platform:
---------
x86_64-linux

Chef Client failed. 5 resources updated in 19 seconds
Chef Client failed. 5 resources updated in 19 seconds


Installed Packages
iptables-services.x86_64 1.4.21-28.el7 @nw-rsa-base

Outcomes