cinc-client does not pick up a Policyfile bundle in local mode
I generated a Policyfile bundle using the chef export
command. When copied to a node that has Chef Infra Client: 16.0.91, I can use chef-client -z
(local mode) inside the policyfile directory to converge that policy
When attempting to use cinc, however, I get an error that the node has an empty run list:
root@chef-server-testbed:~/policytest# cinc-client -z
[2020-06-01T19:29:43+00:00] WARN: No config file found or specified on command line. Using command line options instead.
Starting Cinc Client, version 15.11.3
[2020-06-01T19:29:43+00:00] ERROR: shard_seed: Failed to get dmi property serial_number: is dmidecode installed?
resolving cookbooks for run list: []
Synchronizing Cookbooks:
Installing Cookbook Gems:
Compiling Cookbooks...
[2020-06-01T19:29:44+00:00] WARN: Node chef-server-testbed.lxd has an empty run list.
Converging 0 resources
Running handlers:
Running handlers complete
Cinc Client finished, 0/0 resources updated in 01 seconds
With chef-client
, this works:
root@chef-server-testbed:~/policytest# chef-client -z
Starting Chef Infra Client, version 16.1.16
[2020-06-01T19:34:49+00:00] ERROR: shard_seed: Failed to get dmi property serial_number: is dmidecode installed?
Using policy 'policytest' at revision '18da25baa4f84dd21fba65d8f7561ca904006a3ea23466db4f071dbe4ff03d3b'
resolving cookbooks for run list: ["policytest::default@0.1.0 (5781df1)"]
Synchronizing Cookbooks:
- policytest (0.1.0)
Installing Cookbook Gems:
Compiling Cookbooks...
Converging 1 resources
Recipe: policytest::default
* file[/tmp/policytest] action create
- create new file /tmp/policytest
- update content in file /tmp/policytest from none to c88a0b
--- /tmp/policytest 2020-06-01 19:34:50.057062593 +0000
+++ /tmp/.chef-policytest20200601-7049-e8nic8 2020-06-01 19:34:50.057062593 +0000
@@ -1 +1,2 @@
+Success
Running handlers:
Running handlers complete
Chef Infra Client finished, 1/1 resources updated in 00 seconds
root@chef-server-testbed:~/policytest# cat /tmp/policytest
Success
Test Policyfile bundle is attached policytest-18da25baa4f84dd21fba65d8f7561ca904006a3ea23466db4f071dbe4ff03d3b.tgz
Edited by Josh Gitlin