Open Vincenzo-Fox opened 4 years ago
I'm hitting the same error message, have you been able to find a work around to this issue?
unfortunately not. I had to migrate the work to ubuntu and use test-kitchen there. how did you configure the kitchen.yml file?
I was following the getting-started tutorial on their home page so my kitchen.yml looks like this
---
driver:
name: vagrant
provisioner:
name: chef_zero
verifier:
name: inspec
platforms:
- name: ubuntu-20.04
suites:
- name: default
verifier:
inspec_tests:
- test/integration/default
attributes:
I'm trying to test a recipe on chef workastatio with test-kitchen but any platform that I use not installing chef-client fails giving the following error.
Installing chef installing with dpkg... (Reading database ... 42697 files and directories currently installed.) Preparing to unpack .../chef_16.2.44-1_amd64.deb ... Unpacking chef (16.2.44-1) ... dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt dpkg-deb: error: <decompress> subprocess returned error exit status 2 dpkg: error processing archive /tmp/install.sh.2096/chef_16.2.44-1_amd64.deb (--install): cannot copy extracted data for './opt/chef/embedded/include/openssl/ssl.h' to '/opt/chef/embedded/include/openssl/ssl.h.dpkg-new': unexpected end of file or stream Errors were encountered while processing: /tmp/install.sh.2096/chef_16.2.44-1_amd64.deb Installation failed Version:
Chef workstation on windows 10 (intel virtualization enabled): Chef Workstation version: 20.6.62 Chef Infra Client version: 16.1.16 Chef InSpec version: 4.19.0 Chef CLI version: 3.0.4 Test Kitchen version: 2.5.1 Cookstyle version: 6.7.3
Configuration file kitchen.yml:
driver: name: vagrant provisioner: name: chef_zero verifier: name: inspec platforms:
example VagrantFile: Vagrant.configure("2") do |c| c.berkshelf.enabled = false if Vagrant.has_plugin?("vagrant-berkshelf") c.vm.box = "bento/ubuntu-18.04" c.vm.hostname = "default-ubuntu-1804.vagrantup.com" c.vm.synced_folder ".", "/vagrant", disabled: true c.vm.synced_folder "C:/Users/Io/.kitchen/cache", "/tmp/omnibus/cache", create: true c.vm.provider :virtualbox do |p| p.name = "kitchen-wildfly-default-ubuntu-1804-64b6c45d-ca3a-406b-8151-c5d92b9a84d0" p.customize ["modifyvm", :id, "--audio", "none"] end end