Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation failed chef-client with test-kitchen on each platform of the kitchen.yml file #469

Open
Vincenzo-Fox opened this issue Jun 20, 2020 · 3 comments

Comments

@Vincenzo-Fox
Copy link

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:

  • name: ubuntu-20.04
  • name: centos-8
  • name: ubuntu-18.04
  • name: ubuntu-14.04
    suites:
  • name: default
    run_list:
    • recipe[wildfly::default]
      verifier:
      inspec_tests:
      • test/integration/default
        attributes:

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

@xmichelleyang
Copy link

I'm hitting the same error message, have you been able to find a work around to this issue?

@Vincenzo-Fox
Copy link
Author

unfortunately not. I had to migrate the work to ubuntu and use test-kitchen there. how did you configure the kitchen.yml file?

@xmichelleyang
Copy link

xmichelleyang commented Aug 5, 2020

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants