Git Product home page Git Product logo

packagecloud's Introduction

packagecloud cookbook

Cookbook Version CI State License

This cookbook provides a resource for installing https://packagecloud.io repositories.

Usage

Resources

Credits

Computology, LLC.

License

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

packagecloud's People

Contributors

armandocanals avatar capotej avatar chewi avatar ctdk avatar cwebberops avatar damacus avatar guilhem avatar hartmantis avatar ice799 avatar iennae avatar itjedi42 avatar jamesgolick avatar jaym avatar jmaziarz avatar joemiller avatar kitchen-porter avatar renovate[bot] avatar spheromak avatar sysbot avatar tas50 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

packagecloud's Issues

Option to set-unset enable

Given this example:

packagecloud_repo "chef/stable" do
  type "rpm"
end

I'd like to be able to set enable false (like in yum_repository) so that it won't auto-update things (e.g. chef-client or chef-server) automatically.

How do you install Atom using packagecloud on Ubuntu 20.04?

Following the instructions here to install Atom via packagecloud I did:

packagecloud_repo "AtomEditor/atom" do
  type "deb" # or "rpm" or "gem"
end

Which leads to:

E: The repository 'https://packagecloud.io/AtomEditor/atom/ubuntu focal Release' does not have a Release file.

I figure it is simply because Ubuntu 20.04 does not have an Atom release candidate yet, so I tried to target the one from 18.04:

packagecloud_repo "AtomEditor/atom" do
  type "deb"
  force_dist '18.04'
end

But this leads to:

 Error executing action `add` on resource 'packagecloud_repo[AtomEditor/atom]'
#<Net::HTTPNotFound 404 Not Found readbody=true>

System Info:

chef_version=14.15.6
platform=ubuntu
platform_version=20.04
ruby=ruby 2.5.8p224 (2020-03-31 revision 67882) [x86_64-linux]
packagecloud version: 1.0.1

repomd.xml signature could not be verified

Problem

When trying to converge the run list with recipe[runit::default] on an Amazon Linux ec2 instance, I am encountering an issue related to verifying the repo signature (with repo_gpgcheck = 1).

[2016-12-21T16:45:43+00:00] DEBUG: Mixlib::ShellOut::ShellCommandFailed: packagecloud_repo[imeyer/runit] (runit::default line 36) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[yum-makecache-imeyer_runit] (/tmp/kitchen/cache/cookbooks/packagecloud/providers/repo.rb line 124) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
       ---- Begin output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
       STDOUT: 
       STDERR: Importing GPG key 0xD59097AB:
        Userid     : "packagecloud ops (production key) <[email protected]>"
        Fingerprint: 418a 7f2f b0e1 e6e7 eabf 6fe8 c2e7 3424 d590 97ab
        From       : https://packagecloud.io/imeyer/runit/gpgkey
       https://packagecloud.io/imeyer/runit/el/6/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for imeyer_runit
       Trying other mirror.

Investigation

This error gets output when one of the paths in yum.misc.valid_detached_sig results in False:

def valid_detached_sig(sig_file, signed_file, gpghome=None):
    """takes signature , file that was signed and an optional gpghomedir"""

    if gpgme is None:
        return False

    if gpghome:
        if not os.path.exists(gpghome):
            return False
        os.environ['GNUPGHOME'] = gpghome

    if hasattr(sig_file, 'read'):
        sig = sig_file
    else:
        sig = open(sig_file, 'r')
    if hasattr(signed_file, 'read'):
        signed_text = signed_file
    else:
        signed_text = open(signed_file, 'r')
    plaintext = None
    ctx = gpgme.Context()

    try:
        sigs = ctx.verify(sig, signed_text, plaintext)
    except gpgme.GpgmeError, e:
        return False
    else:
        if not sigs:
            return False
        # is there ever a case where we care about a sig beyond the first one?
        thissig = sigs[0]
        if not thissig:
            return False

        if thissig.validity in (gpgme.VALIDITY_FULL, gpgme.VALIDITY_MARGINAL,
                                gpgme.VALIDITY_ULTIMATE):
            return True

    return False

When attempting to minimize the problem, the function appears to succeed, i.e. the script below yields True.

#!/usr/bin/env python
from yum.misc import valid_detached_sig

valid_detached_sig('/var/cache/yum/x86_64/latest/imeyer_runit/repomd.xml.asc','/var/cache/yum/x86_64/latest/imeyer_runit/repomd.xml','/var/lib/yum/repos/x86_64/latest/imeyer_runit/gpgdir')

Environment

$ sudo cat /etc/os-release 
NAME="Amazon Linux AMI"
VERSION="2016.09"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2016.09"
PRETTY_NAME="Amazon Linux AMI 2016.09"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2016.09:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"

Chef Debug Log

       [2016-12-21T16:45:40+00:00] DEBUG: pygpgme: Unable to match package 'pygpgme' but matched 1 package, selected 'python26-pygpgme' version '0.3-9.12.amzn1'
       [2016-12-21T16:45:40+00:00] DEBUG: yum_package[pygpgme] checking yum info for python26-pygpgme
       [2016-12-21T16:45:40+00:00] DEBUG: yum_package[pygpgme] installed version: [nil] candidate version: 0.3-9.12.amzn1
       [2016-12-21T16:45:40+00:00] DEBUG: yum_package[pygpgme] python26-pygpgme not installed, installing 0.3-9.12.amzn1
       [2016-12-21T16:45:40+00:00] INFO: yum_package[pygpgme] installing python26-pygpgme-0.3-9.12.amzn1 from amzn-main repository
       [2016-12-21T16:45:40+00:00] DEBUG: yum_package[pygpgme]: yum command: "yum -d0 -e0 -y install python26-pygpgme-0.3-9.12.amzn1"
       [2016-12-21T16:45:42+00:00] INFO: yum_package[pygpgme] installed python26-pygpgme at 0.3-9.12.amzn1
       
             - install version 0.3-9.12.amzn1 of package python26-pygpgme
           * log[pygpgme_warning] action write[2016-12-21T16:45:42+00:00] INFO: Processing log[pygpgme_warning] action write (/tmp/kitchen/cache/cookbooks/packagecloud/providers/repo.rb line 88)
        (skipped due to not_if)
       [2016-12-21T16:45:42+00:00] DEBUG: Skipping log[pygpgme_warning] due to not_if command `rpm -qa | grep -qw pygpgme`
           * ruby_block[disable repo_gpgcheck if no pygpgme] action run[2016-12-21T16:45:42+00:00] INFO: Processing ruby_block[disable repo_gpgcheck if no pygpgme] action run (/tmp/kitchen/cache/cookbooks/packagecloud/providers/repo.rb line 97)
        (skipped due to not_if)
       [2016-12-21T16:45:43+00:00] DEBUG: Skipping ruby_block[disable repo_gpgcheck if no pygpgme] due to not_if command `rpm -qa | grep -qw pygpgme`
           * template[/etc/yum.repos.d/imeyer_runit.repo] action create[2016-12-21T16:45:43+00:00] INFO: Processing template[/etc/yum.repos.d/imeyer_runit.repo] action create (/tmp/kitchen/cache/cookbooks/packagecloud/providers/repo.rb line 107)
       [2016-12-21T16:45:43+00:00] DEBUG: Providers for generic template resource enabled on node include: [Chef::Provider::Template]
       [2016-12-21T16:45:43+00:00] DEBUG: Provider for action create on resource template[/etc/yum.repos.d/imeyer_runit.repo] is Chef::Provider::Template
       [2016-12-21T16:45:43+00:00] DEBUG: Not fetching cookbooks/packagecloud/templates/default/yum.erb, as the cache is up to date.
       [2016-12-21T16:45:43+00:00] DEBUG: Current checksum: 1efbb26f25cdd4ed47a35e7091b4c351; manifest checksum: 1efbb26f25cdd4ed47a35e7091b4c351)
       [2016-12-21T16:45:43+00:00] DEBUG: Touching /etc/yum.repos.d/imeyer_runit.repo to create it
       [2016-12-21T16:45:43+00:00] INFO: template[/etc/yum.repos.d/imeyer_runit.repo] created file /etc/yum.repos.d/imeyer_runit.repo
       
             - create new file /etc/yum.repos.d/imeyer_runit.repo[2016-12-21T16:45:43+00:00] DEBUG: calculating checksum of /etc/yum.repos.d/.chef-imeyer_runit20161221-2830-1v0eql6.repo to compare with 
       [2016-12-21T16:45:43+00:00] DEBUG: Running: diff -u /etc/yum.repos.d/imeyer_runit.repo /etc/yum.repos.d/.chef-imeyer_runit20161221-2830-1v0eql6.repo
       [2016-12-21T16:45:43+00:00] DEBUG: Reading modes from /etc/yum.repos.d/imeyer_runit.repo file
       [2016-12-21T16:45:43+00:00] DEBUG: Applying mode = 644, uid = 0, gid = 0 to /etc/yum.repos.d/.chef-imeyer_runit20161221-2830-1v0eql6.repo
       [2016-12-21T16:45:43+00:00] DEBUG: Moving temporary file /etc/yum.repos.d/.chef-imeyer_runit20161221-2830-1v0eql6.repo into place at /etc/yum.repos.d/imeyer_runit.repo
       [2016-12-21T16:45:43+00:00] INFO: template[/etc/yum.repos.d/imeyer_runit.repo] updated file contents /etc/yum.repos.d/imeyer_runit.repo
       
             - update content in file /etc/yum.repos.d/imeyer_runit.repo from none to c89480
             --- /etc/yum.repos.d/imeyer_runit.repo	2016-12-21 16:45:43.013823000 +0000
             +++ /etc/yum.repos.d/.chef-imeyer_runit20161221-2830-1v0eql6.repo	2016-12-21 16:45:43.009823000 +0000
             @@ -1 +1,11 @@
             +[imeyer_runit]
             +name=imeyer_runit
             +baseurl=https://packagecloud.io/imeyer/runit/el/6/$basearch
             +repo_gpgcheck=1
             +gpgcheck=0
             +enabled=1
             +gpgkey=https://packagecloud.io/imeyer/runit/gpgkey
             +sslverify=1
             +sslcacert=/etc/pki/tls/certs/ca-bundle.crt
             +metadata_expire=300[2016-12-21T16:45:43+00:00] DEBUG: Found current_mode == nil, so we are creating a new file, updating mode
       [2016-12-21T16:45:43+00:00] DEBUG: Found current_mode == nil, so we are creating a new file, updating mode
       [2016-12-21T16:45:43+00:00] DEBUG: Found target_uid == nil, so no owner was specified on resource, not managing owner
       [2016-12-21T16:45:43+00:00] DEBUG: Found target_gid == nil, so no group was specified on resource, not managing group
       [2016-12-21T16:45:43+00:00] DEBUG: Found target_uid == nil, so no owner was specified on resource, not managing owner
       [2016-12-21T16:45:43+00:00] DEBUG: Found target_gid == nil, so no group was specified on resource, not managing group
       [2016-12-21T16:45:43+00:00] DEBUG: Found current_mode == nil, so we are creating a new file, updating mode
       [2016-12-21T16:45:43+00:00] INFO: template[/etc/yum.repos.d/imeyer_runit.repo] mode changed to 644
       
             - change mode from '' to '0644'[2016-12-21T16:45:43+00:00] DEBUG: selinux utilities can not be found. Skipping selinux permission fixup.
       
       [2016-12-21T16:45:43+00:00] INFO: template[/etc/yum.repos.d/imeyer_runit.repo] sending run action to execute[yum-makecache-imeyer_runit] (immediate)
           * execute[yum-makecache-imeyer_runit] action run[2016-12-21T16:45:43+00:00] INFO: Processing execute[yum-makecache-imeyer_runit] action run (/tmp/kitchen/cache/cookbooks/packagecloud/providers/repo.rb line 124)
       [2016-12-21T16:45:43+00:00] DEBUG: Providers for generic execute resource enabled on node include: [Chef::Provider::Execute]
       [2016-12-21T16:45:43+00:00] DEBUG: Provider for action run on resource execute[yum-makecache-imeyer_runit] is Chef::Provider::Execute
       
             [execute] Importing GPG key 0xD59097AB:
                 Userid     : "packagecloud ops (production key) <[email protected]>"
                 Fingerprint: 418a 7f2f b0e1 e6e7 eabf 6fe8 c2e7 3424 d590 97ab
                 From       : https://packagecloud.io/imeyer/runit/gpgkey
                https://packagecloud.io/imeyer/runit/el/6/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for imeyer_runit
                Trying other mirror.
                
                
                 One of the configured repositories failed (imeyer_runit),
                 and yum doesn't have enough cached data to continue. At this point the only
                 safe thing yum can do is fail. There are a few ways to work "fix" this:
                
                     1. Contact the upstream for the repository and get them to fix the problem.
                
                     2. Reconfigure the baseurl/etc. for the repository, to point to a working
                        upstream. This is most often useful if you are using a newer
                        distribution release than is supported by the repository (and the
                        packages for the previous distribution release still work).
                
                     3. Disable the repository, so yum won't use it by default. Yum will then
                        just ignore the repository until you permanently enable it again or use
                        --enablerepo for temporary usage:
                
                            yum-config-manager --disable imeyer_runit
                
                     4. Configure the failing repository to be skipped, if it is unavailable.
                        Note that yum will try to contact the repo. when it runs most commands,
                        so will have to try and fail each time (and thus. yum will be be much
                        slower). If it is a very temporary problem though, this is often a nice
                        compromise:
                
                            yum-config-manager --save --setopt=imeyer_runit.skip_if_unavailable=true
                
                failure: repodata/repomd.xml from imeyer_runit: [Errno 256] No more mirrors to try.
             
             ================================================================================
             Error executing action `run` on resource 'execute[yum-makecache-imeyer_runit]'
             ================================================================================
             
             Mixlib::ShellOut::ShellCommandFailed
             ------------------------------------
             Expected process to exit with [0], but received '1'
             ---- Begin output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
             STDOUT: 
             STDERR: Importing GPG key 0xD59097AB:
       Userid     : "packagecloud ops (production key) <[email protected]>"
       Fingerprint: 418a 7f2f b0e1 e6e7 eabf 6fe8 c2e7 3424 d590 97ab
       From       : https://packagecloud.io/imeyer/runit/gpgkey
             https://packagecloud.io/imeyer/runit/el/6/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for imeyer_runit
             Trying other mirror.
             
             
       One of the configured repositories failed (imeyer_runit),
       and yum doesn't have enough cached data to continue. At this point the only
       safe thing yum can do is fail. There are a few ways to work "fix" this:
             
           1. Contact the upstream for the repository and get them to fix the problem.
             
           2. Reconfigure the baseurl/etc. for the repository, to point to a working
              upstream. This is most often useful if you are using a newer
              distribution release than is supported by the repository (and the
              packages for the previous distribution release still work).
             
           3. Disable the repository, so yum won't use it by default. Yum will then
              just ignore the repository until you permanently enable it again or use
              --enablerepo for temporary usage:
             
                  yum-config-manager --disable imeyer_runit
             
           4. Configure the failing repository to be skipped, if it is unavailable.
              Note that yum will try to contact the repo. when it runs most commands,
              so will have to try and fail each time (and thus. yum will be be much
              slower). If it is a very temporary problem though, this is often a nice
              compromise:
             
                  yum-config-manager --save --setopt=imeyer_runit.skip_if_unavailable=true
             
             failure: repodata/repomd.xml from imeyer_runit: [Errno 256] No more mirrors to try.
             ---- End output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
             Ran yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit returned 1
             
             Resource Declaration:
             ---------------------
             # In /tmp/kitchen/cache/cookbooks/packagecloud/providers/repo.rb
             
             124:   execute "yum-makecache-#{filename}" do
             125:     command "yum -q makecache -y --disablerepo=* --enablerepo=#{filename}"
             126:     action :nothing
             127:   end
             128: 
             
             Compiled Resource:
             ------------------
             # Declared in /tmp/kitchen/cache/cookbooks/packagecloud/providers/repo.rb:124:in `install_rpm'
             
             execute("yum-makecache-imeyer_runit") do
        action [:nothing]
        retries 0
        retry_delay 2
        default_guard_interpreter :execute
        command "yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit"
        backup 5
        returns 0
        declared_type :execute
        cookbook_name "runit"
             end
             
             Platform:
             ---------
             x86_64-linux
             
       [2016-12-21T16:45:43+00:00] INFO: Running queued delayed notifications before re-raising exception
           
           ================================================================================
           Error executing action `add` on resource 'packagecloud_repo[imeyer/runit]'
           ================================================================================
           
           Mixlib::ShellOut::ShellCommandFailed
           ------------------------------------
           execute[yum-makecache-imeyer_runit] (/tmp/kitchen/cache/cookbooks/packagecloud/providers/repo.rb line 124) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
           ---- Begin output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
           STDOUT: 
           STDERR: Importing GPG key 0xD59097AB:
            Userid     : "packagecloud ops (production key) <[email protected]>"
            Fingerprint: 418a 7f2f b0e1 e6e7 eabf 6fe8 c2e7 3424 d590 97ab
            From       : https://packagecloud.io/imeyer/runit/gpgkey
           https://packagecloud.io/imeyer/runit/el/6/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for imeyer_runit
           Trying other mirror.
           
           
            One of the configured repositories failed (imeyer_runit),
            and yum doesn't have enough cached data to continue. At this point the only
            safe thing yum can do is fail. There are a few ways to work "fix" this:
           
         1. Contact the upstream for the repository and get them to fix the problem.
           
         2. Reconfigure the baseurl/etc. for the repository, to point to a working
            upstream. This is most often useful if you are using a newer
            distribution release than is supported by the repository (and the
            packages for the previous distribution release still work).
           
         3. Disable the repository, so yum won't use it by default. Yum will then
            just ignore the repository until you permanently enable it again or use
            --enablerepo for temporary usage:
           
                yum-config-manager --disable imeyer_runit
           
         4. Configure the failing repository to be skipped, if it is unavailable.
            Note that yum will try to contact the repo. when it runs most commands,
            so will have to try and fail each time (and thus. yum will be be much
            slower). If it is a very temporary problem though, this is often a nice
            compromise:
           
                yum-config-manager --save --setopt=imeyer_runit.skip_if_unavailable=true
           
           failure: repodata/repomd.xml from imeyer_runit: [Errno 256] No more mirrors to try.
           ---- End output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
           Ran yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit returned 1
           
           Resource Declaration:
           ---------------------
           # In /tmp/kitchen/cache/cookbooks/runit/recipes/default.rb
           
            36:     packagecloud_repo 'imeyer/runit' do
            37:       force_os 'rhel' if node['platform'].eql?('oracle')
            38:     end
            39:   end
           
           Compiled Resource:
           ------------------
           # Declared in /tmp/kitchen/cache/cookbooks/runit/recipes/default.rb:36:in `from_file'
           
           packagecloud_repo("imeyer/runit") do
             action [:add]
             updated true
             updated_by_last_action true
             retries 0
             retry_delay 2
             default_guard_interpreter :default
             declared_type :packagecloud_repo
             cookbook_name "runit"
             recipe_name "default"
             type "rpm"
             base_url "https://packagecloud.io"
             repository "imeyer/runit"
             metadata_expire "300"
           end
           
           Platform:
           ---------
           x86_64-linux
           
       [2016-12-21T16:45:43+00:00] INFO: Running queued delayed notifications before re-raising exception
       [2016-12-21T16:45:43+00:00] DEBUG: Re-raising exception: Mixlib::ShellOut::ShellCommandFailed - packagecloud_repo[imeyer/runit] (runit::default line 36) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[yum-makecache-imeyer_runit] (/tmp/kitchen/cache/cookbooks/packagecloud/providers/repo.rb line 124) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
       ---- Begin output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
       STDOUT: 
       STDERR: Importing GPG key 0xD59097AB:
        Userid     : "packagecloud ops (production key) <[email protected]>"
        Fingerprint: 418a 7f2f b0e1 e6e7 eabf 6fe8 c2e7 3424 d590 97ab
        From       : https://packagecloud.io/imeyer/runit/gpgkey
       https://packagecloud.io/imeyer/runit/el/6/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for imeyer_runit
       Trying other mirror.
       
       
        One of the configured repositories failed (imeyer_runit),
        and yum doesn't have enough cached data to continue. At this point the only
        safe thing yum can do is fail. There are a few ways to work "fix" this:
       
            1. Contact the upstream for the repository and get them to fix the problem.
       
            2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).
       
            3. Disable the repository, so yum won't use it by default. Yum will then
        just ignore the repository until you permanently enable it again or use
        --enablerepo for temporary usage:
       
            yum-config-manager --disable imeyer_runit
       
            4. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:
       
            yum-config-manager --save --setopt=imeyer_runit.skip_if_unavailable=true
       
       failure: repodata/repomd.xml from imeyer_runit: [Errno 256] No more mirrors to try.
       ---- End output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
       Ran yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit returned 1
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.7/lib/mixlib/shellout.rb:289:in `invalid!'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.7/lib/mixlib/shellout.rb:276:in `error!'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/mixin/shell_out.rb:45:in `shell_out!'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider/execute.rb:62:in `block in action_run'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/mixin/why_run.rb:52:in `add_action'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider.rb:176:in `converge_by'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider/execute.rb:60:in `action_run'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider.rb:145:in `run_action'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource.rb:622:in `run_action'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:69:in `run_action'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:77:in `block in run_action'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:75:in `each'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:75:in `run_action'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `block (2 levels) in converge'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `each'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `block in converge'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/resource_list.rb:94:in `block in execute_each_resource'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/resource_list.rb:92:in `execute_each_resource'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:96:in `converge'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider.rb:362:in `compile_and_converge_action'
         (eval):2:in `action_add'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider.rb:145:in `run_action'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource.rb:622:in `run_action'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:69:in `run_action'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `block (2 levels) in converge'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `each'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `block in converge'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/resource_list.rb:94:in `block in execute_each_resource'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/resource_list.rb:92:in `execute_each_resource'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:96:in `converge'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:670:in `block in converge'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:665:in `catch'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:665:in `converge'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:704:in `converge_and_save'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:284:in `run'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:294:in `block in fork_chef_client'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:282:in `fork'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:282:in `fork_chef_client'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:247:in `block in run_chef_client'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/local_mode.rb:44:in `with_server_connectivity'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:235:in `run_chef_client'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:464:in `sleep_then_run_chef_client'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:451:in `block in interval_run_chef_client'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:450:in `loop'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:450:in `interval_run_chef_client'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:434:in `run_application'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:59:in `run'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/solo.rb:226:in `run'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/bin/chef-solo:25:in `<top (required)>'
         /opt/chef/bin/chef-solo:57:in `load'
         /opt/chef/bin/chef-solo:57:in `<main>'
       
       Running handlers:
       [2016-12-21T16:45:43+00:00] ERROR: Running exception handlers
       Running handlers complete
       [2016-12-21T16:45:43+00:00] ERROR: Exception handlers complete
       Chef Client failed. 2 resources updated in 10 seconds
       [2016-12-21T16:45:43+00:00] DEBUG: Server doesn't support resource history, skipping resource report.
       [2016-12-21T16:45:43+00:00] DEBUG: Audit Reports are disabled. Skipping sending reports.
       [2016-12-21T16:45:43+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
       [2016-12-21T16:45:43+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
       [2016-12-21T16:45:43+00:00] DEBUG: Mixlib::ShellOut::ShellCommandFailed: packagecloud_repo[imeyer/runit] (runit::default line 36) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[yum-makecache-imeyer_runit] (/tmp/kitchen/cache/cookbooks/packagecloud/providers/repo.rb line 124) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
       ---- Begin output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
       STDOUT: 
       STDERR: Importing GPG key 0xD59097AB:
        Userid     : "packagecloud ops (production key) <[email protected]>"
        Fingerprint: 418a 7f2f b0e1 e6e7 eabf 6fe8 c2e7 3424 d590 97ab
        From       : https://packagecloud.io/imeyer/runit/gpgkey
       https://packagecloud.io/imeyer/runit/el/6/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for imeyer_runit
       Trying other mirror.
       
       
        One of the configured repositories failed (imeyer_runit),
        and yum doesn't have enough cached data to continue. At this point the only
        safe thing yum can do is fail. There are a few ways to work "fix" this:
       
            1. Contact the upstream for the repository and get them to fix the problem.
       
            2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).
       
            3. Disable the repository, so yum won't use it by default. Yum will then
        just ignore the repository until you permanently enable it again or use
        --enablerepo for temporary usage:
       
            yum-config-manager --disable imeyer_runit
       
            4. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:
       
            yum-config-manager --save --setopt=imeyer_runit.skip_if_unavailable=true
       
       failure: repodata/repomd.xml from imeyer_runit: [Errno 256] No more mirrors to try.
       ---- End output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
       Ran yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit returned 1
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.7/lib/mixlib/shellout.rb:289:in `invalid!'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.7/lib/mixlib/shellout.rb:276:in `error!'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/mixin/shell_out.rb:45:in `shell_out!'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider/execute.rb:62:in `block in action_run'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/mixin/why_run.rb:52:in `add_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider.rb:176:in `converge_by'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider/execute.rb:60:in `action_run'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider.rb:145:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource.rb:622:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:69:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:77:in `block in run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:75:in `each'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:75:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `block (2 levels) in converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `each'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `block in converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/resource_list.rb:94:in `block in execute_each_resource'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/resource_list.rb:92:in `execute_each_resource'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:96:in `converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider.rb:362:in `compile_and_converge_action'
       (eval):2:in `action_add'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider.rb:145:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource.rb:622:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:69:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `block (2 levels) in converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `each'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `block in converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/resource_list.rb:94:in `block in execute_each_resource'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/resource_list.rb:92:in `execute_each_resource'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:96:in `converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:670:in `block in converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:665:in `catch'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:665:in `converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:704:in `converge_and_save'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:284:in `run'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:294:in `block in fork_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:282:in `fork'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:282:in `fork_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:247:in `block in run_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/local_mode.rb:44:in `with_server_connectivity'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:235:in `run_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:464:in `sleep_then_run_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:451:in `block in interval_run_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:450:in `loop'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:450:in `interval_run_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:434:in `run_application'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:59:in `run'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/solo.rb:226:in `run'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/bin/chef-solo:25:in `<top (required)>'
       /opt/chef/bin/chef-solo:57:in `load'
       /opt/chef/bin/chef-solo:57:in `<main>'
       
       >>>> Caused by Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
       ---- Begin output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
       STDOUT: 
       STDERR: Importing GPG key 0xD59097AB:
        Userid     : "packagecloud ops (production key) <[email protected]>"
        Fingerprint: 418a 7f2f b0e1 e6e7 eabf 6fe8 c2e7 3424 d590 97ab
        From       : https://packagecloud.io/imeyer/runit/gpgkey
       https://packagecloud.io/imeyer/runit/el/6/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for imeyer_runit
       Trying other mirror.
       
       
        One of the configured repositories failed (imeyer_runit),
        and yum doesn't have enough cached data to continue. At this point the only
        safe thing yum can do is fail. There are a few ways to work "fix" this:
       
            1. Contact the upstream for the repository and get them to fix the problem.
       
            2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).
       
            3. Disable the repository, so yum won't use it by default. Yum will then
        just ignore the repository until you permanently enable it again or use
        --enablerepo for temporary usage:
       
            yum-config-manager --disable imeyer_runit
       
            4. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:
       
            yum-config-manager --save --setopt=imeyer_runit.skip_if_unavailable=true
       
       failure: repodata/repomd.xml from imeyer_runit: [Errno 256] No more mirrors to try.
       ---- End output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
       Ran yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit returned 1
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.7/lib/mixlib/shellout.rb:289:in `invalid!'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.7/lib/mixlib/shellout.rb:276:in `error!'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/mixin/shell_out.rb:45:in `shell_out!'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider/execute.rb:62:in `block in action_run'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/mixin/why_run.rb:52:in `add_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider.rb:176:in `converge_by'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider/execute.rb:60:in `action_run'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider.rb:145:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource.rb:622:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:69:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:77:in `block in run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:75:in `each'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:75:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `block (2 levels) in converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `each'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `block in converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/resource_list.rb:94:in `block in execute_each_resource'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/resource_list.rb:92:in `execute_each_resource'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:96:in `converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider.rb:362:in `compile_and_converge_action'
       (eval):2:in `action_add'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider.rb:145:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource.rb:622:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:69:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `block (2 levels) in converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `each'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `block in converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/resource_list.rb:94:in `block in execute_each_resource'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/resource_list.rb:92:in `execute_each_resource'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:96:in `converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:670:in `block in converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:665:in `catch'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:665:in `converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:704:in `converge_and_save'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:284:in `run'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:294:in `block in fork_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:282:in `fork'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:282:in `fork_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:247:in `block in run_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/local_mode.rb:44:in `with_server_connectivity'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:235:in `run_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:464:in `sleep_then_run_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:451:in `block in interval_run_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:450:in `loop'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:450:in `interval_run_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:434:in `run_application'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:59:in `run'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/solo.rb:226:in `run'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/bin/chef-solo:25:in `<top (required)>'
       /opt/chef/bin/chef-solo:57:in `load'
       /opt/chef/bin/chef-solo:57:in `<main>'
       [2016-12-21T16:45:43+00:00] ERROR: packagecloud_repo[imeyer/runit] (runit::default line 36) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[yum-makecache-imeyer_runit] (/tmp/kitchen/cache/cookbooks/packagecloud/providers/repo.rb line 124) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
       ---- Begin output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
       STDOUT: 
       STDERR: Importing GPG key 0xD59097AB:
        Userid     : "packagecloud ops (production key) <[email protected]>"
        Fingerprint: 418a 7f2f b0e1 e6e7 eabf 6fe8 c2e7 3424 d590 97ab
        From       : https://packagecloud.io/imeyer/runit/gpgkey
       https://packagecloud.io/imeyer/runit/el/6/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for imeyer_runit
       Trying other mirror.
       
       
        One of the configured repositories failed (imeyer_runit),
        and yum doesn't have enough cached data to continue. At this point the only
        safe thing yum can do is fail. There are a few ways to work "fix" this:
       
            1. Contact the upstream for the repository and get them to fix the problem.
       
            2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).
       
            3. Disable the repository, so yum won't use it by default. Yum will then
        just ignore the repository until you permanently enable it again or use
        --enablerepo for temporary usage:
       
            yum-config-manager --disable imeyer_runit
       
            4. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:
       
            yum-config-manager --save --setopt=imeyer_runit.skip_if_unavailable=true
       
       failure: repodata/repomd.xml from imeyer_runit: [Errno 256] No more mirrors to try.
       ---- End output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
       Ran yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit returned 1
       [2016-12-21T16:45:43+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>>     Converge failed on instance <default-amazon>.  Please see .kitchen/logs/default-amazon.log for more details
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
       [2016-12-21T16:45:40+00:00] DEBUG: pygpgme: Unable to match package 'pygpgme' but matched 1 package, selected 'python26-pygpgme' version '0.3-9.12.amzn1'
       [2016-12-21T16:45:40+00:00] DEBUG: yum_package[pygpgme] checking yum info for python26-pygpgme
       [2016-12-21T16:45:40+00:00] DEBUG: yum_package[pygpgme] installed version: [nil] candidate version: 0.3-9.12.amzn1
       [2016-12-21T16:45:40+00:00] DEBUG: yum_package[pygpgme] python26-pygpgme not installed, installing 0.3-9.12.amzn1
       [2016-12-21T16:45:40+00:00] INFO: yum_package[pygpgme] installing python26-pygpgme-0.3-9.12.amzn1 from amzn-main repository
       [2016-12-21T16:45:40+00:00] DEBUG: yum_package[pygpgme]: yum command: "yum -d0 -e0 -y install python26-pygpgme-0.3-9.12.amzn1"
       [2016-12-21T16:45:42+00:00] INFO: yum_package[pygpgme] installed python26-pygpgme at 0.3-9.12.amzn1
       
             - install version 0.3-9.12.amzn1 of package python26-pygpgme
           * log[pygpgme_warning] action write[2016-12-21T16:45:42+00:00] INFO: Processing log[pygpgme_warning] action write (/tmp/kitchen/cache/cookbooks/packagecloud/providers/repo.rb line 88)
        (skipped due to not_if)
       [2016-12-21T16:45:42+00:00] DEBUG: Skipping log[pygpgme_warning] due to not_if command `rpm -qa | grep -qw pygpgme`
           * ruby_block[disable repo_gpgcheck if no pygpgme] action run[2016-12-21T16:45:42+00:00] INFO: Processing ruby_block[disable repo_gpgcheck if no pygpgme] action run (/tmp/kitchen/cache/cookbooks/packagecloud/providers/repo.rb line 97)
        (skipped due to not_if)
       [2016-12-21T16:45:43+00:00] DEBUG: Skipping ruby_block[disable repo_gpgcheck if no pygpgme] due to not_if command `rpm -qa | grep -qw pygpgme`
           * template[/etc/yum.repos.d/imeyer_runit.repo] action create[2016-12-21T16:45:43+00:00] INFO: Processing template[/etc/yum.repos.d/imeyer_runit.repo] action create (/tmp/kitchen/cache/cookbooks/packagecloud/providers/repo.rb line 107)
       [2016-12-21T16:45:43+00:00] DEBUG: Providers for generic template resource enabled on node include: [Chef::Provider::Template]
       [2016-12-21T16:45:43+00:00] DEBUG: Provider for action create on resource template[/etc/yum.repos.d/imeyer_runit.repo] is Chef::Provider::Template
       [2016-12-21T16:45:43+00:00] DEBUG: Not fetching cookbooks/packagecloud/templates/default/yum.erb, as the cache is up to date.
       [2016-12-21T16:45:43+00:00] DEBUG: Current checksum: 1efbb26f25cdd4ed47a35e7091b4c351; manifest checksum: 1efbb26f25cdd4ed47a35e7091b4c351)
       [2016-12-21T16:45:43+00:00] DEBUG: Touching /etc/yum.repos.d/imeyer_runit.repo to create it
       [2016-12-21T16:45:43+00:00] INFO: template[/etc/yum.repos.d/imeyer_runit.repo] created file /etc/yum.repos.d/imeyer_runit.repo
       
             - create new file /etc/yum.repos.d/imeyer_runit.repo[2016-12-21T16:45:43+00:00] DEBUG: calculating checksum of /etc/yum.repos.d/.chef-imeyer_runit20161221-2830-1v0eql6.repo to compare with 
       [2016-12-21T16:45:43+00:00] DEBUG: Running: diff -u /etc/yum.repos.d/imeyer_runit.repo /etc/yum.repos.d/.chef-imeyer_runit20161221-2830-1v0eql6.repo
       [2016-12-21T16:45:43+00:00] DEBUG: Reading modes from /etc/yum.repos.d/imeyer_runit.repo file
       [2016-12-21T16:45:43+00:00] DEBUG: Applying mode = 644, uid = 0, gid = 0 to /etc/yum.repos.d/.chef-imeyer_runit20161221-2830-1v0eql6.repo
       [2016-12-21T16:45:43+00:00] DEBUG: Moving temporary file /etc/yum.repos.d/.chef-imeyer_runit20161221-2830-1v0eql6.repo into place at /etc/yum.repos.d/imeyer_runit.repo
       [2016-12-21T16:45:43+00:00] INFO: template[/etc/yum.repos.d/imeyer_runit.repo] updated file contents /etc/yum.repos.d/imeyer_runit.repo
       
             - update content in file /etc/yum.repos.d/imeyer_runit.repo from none to c89480
             --- /etc/yum.repos.d/imeyer_runit.repo	2016-12-21 16:45:43.013823000 +0000
             +++ /etc/yum.repos.d/.chef-imeyer_runit20161221-2830-1v0eql6.repo	2016-12-21 16:45:43.009823000 +0000
             @@ -1 +1,11 @@
             +[imeyer_runit]
             +name=imeyer_runit
             +baseurl=https://packagecloud.io/imeyer/runit/el/6/$basearch
             +repo_gpgcheck=1
             +gpgcheck=0
             +enabled=1
             +gpgkey=https://packagecloud.io/imeyer/runit/gpgkey
             +sslverify=1
             +sslcacert=/etc/pki/tls/certs/ca-bundle.crt
             +metadata_expire=300[2016-12-21T16:45:43+00:00] DEBUG: Found current_mode == nil, so we are creating a new file, updating mode
       [2016-12-21T16:45:43+00:00] DEBUG: Found current_mode == nil, so we are creating a new file, updating mode
       [2016-12-21T16:45:43+00:00] DEBUG: Found target_uid == nil, so no owner was specified on resource, not managing owner
       [2016-12-21T16:45:43+00:00] DEBUG: Found target_gid == nil, so no group was specified on resource, not managing group
       [2016-12-21T16:45:43+00:00] DEBUG: Found target_uid == nil, so no owner was specified on resource, not managing owner
       [2016-12-21T16:45:43+00:00] DEBUG: Found target_gid == nil, so no group was specified on resource, not managing group
       [2016-12-21T16:45:43+00:00] DEBUG: Found current_mode == nil, so we are creating a new file, updating mode
       [2016-12-21T16:45:43+00:00] INFO: template[/etc/yum.repos.d/imeyer_runit.repo] mode changed to 644
       
             - change mode from '' to '0644'[2016-12-21T16:45:43+00:00] DEBUG: selinux utilities can not be found. Skipping selinux permission fixup.
       
       [2016-12-21T16:45:43+00:00] INFO: template[/etc/yum.repos.d/imeyer_runit.repo] sending run action to execute[yum-makecache-imeyer_runit] (immediate)
           * execute[yum-makecache-imeyer_runit] action run[2016-12-21T16:45:43+00:00] INFO: Processing execute[yum-makecache-imeyer_runit] action run (/tmp/kitchen/cache/cookbooks/packagecloud/providers/repo.rb line 124)
       [2016-12-21T16:45:43+00:00] DEBUG: Providers for generic execute resource enabled on node include: [Chef::Provider::Execute]
       [2016-12-21T16:45:43+00:00] DEBUG: Provider for action run on resource execute[yum-makecache-imeyer_runit] is Chef::Provider::Execute
       
             [execute] Importing GPG key 0xD59097AB:
                 Userid     : "packagecloud ops (production key) <[email protected]>"
                 Fingerprint: 418a 7f2f b0e1 e6e7 eabf 6fe8 c2e7 3424 d590 97ab
                 From       : https://packagecloud.io/imeyer/runit/gpgkey
                https://packagecloud.io/imeyer/runit/el/6/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for imeyer_runit
                Trying other mirror.
                
                
                 One of the configured repositories failed (imeyer_runit),
                 and yum doesn't have enough cached data to continue. At this point the only
                 safe thing yum can do is fail. There are a few ways to work "fix" this:
                
                     1. Contact the upstream for the repository and get them to fix the problem.
                
                     2. Reconfigure the baseurl/etc. for the repository, to point to a working
                        upstream. This is most often useful if you are using a newer
                        distribution release than is supported by the repository (and the
                        packages for the previous distribution release still work).
                
                     3. Disable the repository, so yum won't use it by default. Yum will then
                        just ignore the repository until you permanently enable it again or use
                        --enablerepo for temporary usage:
                
                            yum-config-manager --disable imeyer_runit
                
                     4. Configure the failing repository to be skipped, if it is unavailable.
                        Note that yum will try to contact the repo. when it runs most commands,
                        so will have to try and fail each time (and thus. yum will be be much
                        slower). If it is a very temporary problem though, this is often a nice
                        compromise:
                
                            yum-config-manager --save --setopt=imeyer_runit.skip_if_unavailable=true
                
                failure: repodata/repomd.xml from imeyer_runit: [Errno 256] No more mirrors to try.
             
             ================================================================================
             Error executing action `run` on resource 'execute[yum-makecache-imeyer_runit]'
             ================================================================================
             
             Mixlib::ShellOut::ShellCommandFailed
             ------------------------------------
             Expected process to exit with [0], but received '1'
             ---- Begin output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
             STDOUT: 
             STDERR: Importing GPG key 0xD59097AB:
       Userid     : "packagecloud ops (production key) <[email protected]>"
       Fingerprint: 418a 7f2f b0e1 e6e7 eabf 6fe8 c2e7 3424 d590 97ab
       From       : https://packagecloud.io/imeyer/runit/gpgkey
             https://packagecloud.io/imeyer/runit/el/6/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for imeyer_runit
             Trying other mirror.
             
             
       One of the configured repositories failed (imeyer_runit),
       and yum doesn't have enough cached data to continue. At this point the only
       safe thing yum can do is fail. There are a few ways to work "fix" this:
             
           1. Contact the upstream for the repository and get them to fix the problem.
             
           2. Reconfigure the baseurl/etc. for the repository, to point to a working
              upstream. This is most often useful if you are using a newer
              distribution release than is supported by the repository (and the
              packages for the previous distribution release still work).
             
           3. Disable the repository, so yum won't use it by default. Yum will then
              just ignore the repository until you permanently enable it again or use
              --enablerepo for temporary usage:
             
                  yum-config-manager --disable imeyer_runit
             
           4. Configure the failing repository to be skipped, if it is unavailable.
              Note that yum will try to contact the repo. when it runs most commands,
              so will have to try and fail each time (and thus. yum will be be much
              slower). If it is a very temporary problem though, this is often a nice
              compromise:
             
                  yum-config-manager --save --setopt=imeyer_runit.skip_if_unavailable=true
             
             failure: repodata/repomd.xml from imeyer_runit: [Errno 256] No more mirrors to try.
             ---- End output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
             Ran yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit returned 1
             
             Resource Declaration:
             ---------------------
             # In /tmp/kitchen/cache/cookbooks/packagecloud/providers/repo.rb
             
             124:   execute "yum-makecache-#{filename}" do
             125:     command "yum -q makecache -y --disablerepo=* --enablerepo=#{filename}"
             126:     action :nothing
             127:   end
             128: 
             
             Compiled Resource:
             ------------------
             # Declared in /tmp/kitchen/cache/cookbooks/packagecloud/providers/repo.rb:124:in `install_rpm'
             
             execute("yum-makecache-imeyer_runit") do
        action [:nothing]
        retries 0
        retry_delay 2
        default_guard_interpreter :execute
        command "yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit"
        backup 5
        returns 0
        declared_type :execute
        cookbook_name "runit"
             end
             
             Platform:
             ---------
             x86_64-linux
             
       [2016-12-21T16:45:43+00:00] INFO: Running queued delayed notifications before re-raising exception
           
           ================================================================================
           Error executing action `add` on resource 'packagecloud_repo[imeyer/runit]'
           ================================================================================
           
           Mixlib::ShellOut::ShellCommandFailed
           ------------------------------------
           execute[yum-makecache-imeyer_runit] (/tmp/kitchen/cache/cookbooks/packagecloud/providers/repo.rb line 124) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
           ---- Begin output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
           STDOUT: 
           STDERR: Importing GPG key 0xD59097AB:
            Userid     : "packagecloud ops (production key) <[email protected]>"
            Fingerprint: 418a 7f2f b0e1 e6e7 eabf 6fe8 c2e7 3424 d590 97ab
            From       : https://packagecloud.io/imeyer/runit/gpgkey
           https://packagecloud.io/imeyer/runit/el/6/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for imeyer_runit
           Trying other mirror.
           
           
            One of the configured repositories failed (imeyer_runit),
            and yum doesn't have enough cached data to continue. At this point the only
            safe thing yum can do is fail. There are a few ways to work "fix" this:
           
         1. Contact the upstream for the repository and get them to fix the problem.
           
         2. Reconfigure the baseurl/etc. for the repository, to point to a working
            upstream. This is most often useful if you are using a newer
            distribution release than is supported by the repository (and the
            packages for the previous distribution release still work).
           
         3. Disable the repository, so yum won't use it by default. Yum will then
            just ignore the repository until you permanently enable it again or use
            --enablerepo for temporary usage:
           
                yum-config-manager --disable imeyer_runit
           
         4. Configure the failing repository to be skipped, if it is unavailable.
            Note that yum will try to contact the repo. when it runs most commands,
            so will have to try and fail each time (and thus. yum will be be much
            slower). If it is a very temporary problem though, this is often a nice
            compromise:
           
                yum-config-manager --save --setopt=imeyer_runit.skip_if_unavailable=true
           
           failure: repodata/repomd.xml from imeyer_runit: [Errno 256] No more mirrors to try.
           ---- End output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
           Ran yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit returned 1
           
           Resource Declaration:
           ---------------------
           # In /tmp/kitchen/cache/cookbooks/runit/recipes/default.rb
           
            36:     packagecloud_repo 'imeyer/runit' do
            37:       force_os 'rhel' if node['platform'].eql?('oracle')
            38:     end
            39:   end
           
           Compiled Resource:
           ------------------
           # Declared in /tmp/kitchen/cache/cookbooks/runit/recipes/default.rb:36:in `from_file'
           
           packagecloud_repo("imeyer/runit") do
             action [:add]
             updated true
             updated_by_last_action true
             retries 0
             retry_delay 2
             default_guard_interpreter :default
             declared_type :packagecloud_repo
             cookbook_name "runit"
             recipe_name "default"
             type "rpm"
             base_url "https://packagecloud.io"
             repository "imeyer/runit"
             metadata_expire "300"
           end
           
           Platform:
           ---------
           x86_64-linux
           
       [2016-12-21T16:45:43+00:00] INFO: Running queued delayed notifications before re-raising exception
       [2016-12-21T16:45:43+00:00] DEBUG: Re-raising exception: Mixlib::ShellOut::ShellCommandFailed - packagecloud_repo[imeyer/runit] (runit::default line 36) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[yum-makecache-imeyer_runit] (/tmp/kitchen/cache/cookbooks/packagecloud/providers/repo.rb line 124) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
       ---- Begin output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
       STDOUT: 
       STDERR: Importing GPG key 0xD59097AB:
        Userid     : "packagecloud ops (production key) <[email protected]>"
        Fingerprint: 418a 7f2f b0e1 e6e7 eabf 6fe8 c2e7 3424 d590 97ab
        From       : https://packagecloud.io/imeyer/runit/gpgkey
       https://packagecloud.io/imeyer/runit/el/6/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for imeyer_runit
       Trying other mirror.
       
       
        One of the configured repositories failed (imeyer_runit),
        and yum doesn't have enough cached data to continue. At this point the only
        safe thing yum can do is fail. There are a few ways to work "fix" this:
       
            1. Contact the upstream for the repository and get them to fix the problem.
       
            2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).
       
            3. Disable the repository, so yum won't use it by default. Yum will then
        just ignore the repository until you permanently enable it again or use
        --enablerepo for temporary usage:
       
            yum-config-manager --disable imeyer_runit
       
            4. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:
       
            yum-config-manager --save --setopt=imeyer_runit.skip_if_unavailable=true
       
       failure: repodata/repomd.xml from imeyer_runit: [Errno 256] No more mirrors to try.
       ---- End output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
       Ran yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit returned 1
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.7/lib/mixlib/shellout.rb:289:in `invalid!'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.7/lib/mixlib/shellout.rb:276:in `error!'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/mixin/shell_out.rb:45:in `shell_out!'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider/execute.rb:62:in `block in action_run'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/mixin/why_run.rb:52:in `add_action'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider.rb:176:in `converge_by'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider/execute.rb:60:in `action_run'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider.rb:145:in `run_action'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource.rb:622:in `run_action'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:69:in `run_action'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:77:in `block in run_action'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:75:in `each'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:75:in `run_action'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `block (2 levels) in converge'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `each'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `block in converge'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/resource_list.rb:94:in `block in execute_each_resource'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/resource_list.rb:92:in `execute_each_resource'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:96:in `converge'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider.rb:362:in `compile_and_converge_action'
         (eval):2:in `action_add'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider.rb:145:in `run_action'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource.rb:622:in `run_action'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:69:in `run_action'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `block (2 levels) in converge'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `each'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `block in converge'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/resource_list.rb:94:in `block in execute_each_resource'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/resource_list.rb:92:in `execute_each_resource'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:96:in `converge'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:670:in `block in converge'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:665:in `catch'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:665:in `converge'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:704:in `converge_and_save'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:284:in `run'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:294:in `block in fork_chef_client'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:282:in `fork'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:282:in `fork_chef_client'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:247:in `block in run_chef_client'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/local_mode.rb:44:in `with_server_connectivity'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:235:in `run_chef_client'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:464:in `sleep_then_run_chef_client'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:451:in `block in interval_run_chef_client'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:450:in `loop'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:450:in `interval_run_chef_client'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:434:in `run_application'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:59:in `run'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/solo.rb:226:in `run'
         /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/bin/chef-solo:25:in `<top (required)>'
         /opt/chef/bin/chef-solo:57:in `load'
         /opt/chef/bin/chef-solo:57:in `<main>'
       
       Running handlers:
       [2016-12-21T16:45:43+00:00] ERROR: Running exception handlers
       Running handlers complete
       [2016-12-21T16:45:43+00:00] ERROR: Exception handlers complete
       Chef Client failed. 2 resources updated in 10 seconds
       [2016-12-21T16:45:43+00:00] DEBUG: Server doesn't support resource history, skipping resource report.
       [2016-12-21T16:45:43+00:00] DEBUG: Audit Reports are disabled. Skipping sending reports.
       [2016-12-21T16:45:43+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
       [2016-12-21T16:45:43+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
       [2016-12-21T16:45:43+00:00] DEBUG: Mixlib::ShellOut::ShellCommandFailed: packagecloud_repo[imeyer/runit] (runit::default line 36) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[yum-makecache-imeyer_runit] (/tmp/kitchen/cache/cookbooks/packagecloud/providers/repo.rb line 124) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
       ---- Begin output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
       STDOUT: 
       STDERR: Importing GPG key 0xD59097AB:
        Userid     : "packagecloud ops (production key) <[email protected]>"
        Fingerprint: 418a 7f2f b0e1 e6e7 eabf 6fe8 c2e7 3424 d590 97ab
        From       : https://packagecloud.io/imeyer/runit/gpgkey
       https://packagecloud.io/imeyer/runit/el/6/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for imeyer_runit
       Trying other mirror.
       
       
        One of the configured repositories failed (imeyer_runit),
        and yum doesn't have enough cached data to continue. At this point the only
        safe thing yum can do is fail. There are a few ways to work "fix" this:
       
            1. Contact the upstream for the repository and get them to fix the problem.
       
            2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).
       
            3. Disable the repository, so yum won't use it by default. Yum will then
        just ignore the repository until you permanently enable it again or use
        --enablerepo for temporary usage:
       
            yum-config-manager --disable imeyer_runit
       
            4. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:
       
            yum-config-manager --save --setopt=imeyer_runit.skip_if_unavailable=true
       
       failure: repodata/repomd.xml from imeyer_runit: [Errno 256] No more mirrors to try.
       ---- End output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
       Ran yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit returned 1
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.7/lib/mixlib/shellout.rb:289:in `invalid!'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.7/lib/mixlib/shellout.rb:276:in `error!'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/mixin/shell_out.rb:45:in `shell_out!'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider/execute.rb:62:in `block in action_run'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/mixin/why_run.rb:52:in `add_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider.rb:176:in `converge_by'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider/execute.rb:60:in `action_run'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider.rb:145:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource.rb:622:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:69:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:77:in `block in run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:75:in `each'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:75:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `block (2 levels) in converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `each'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `block in converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/resource_list.rb:94:in `block in execute_each_resource'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/resource_list.rb:92:in `execute_each_resource'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:96:in `converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider.rb:362:in `compile_and_converge_action'
       (eval):2:in `action_add'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider.rb:145:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource.rb:622:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:69:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `block (2 levels) in converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `each'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `block in converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/resource_list.rb:94:in `block in execute_each_resource'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/resource_list.rb:92:in `execute_each_resource'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:96:in `converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:670:in `block in converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:665:in `catch'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:665:in `converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:704:in `converge_and_save'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:284:in `run'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:294:in `block in fork_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:282:in `fork'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:282:in `fork_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:247:in `block in run_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/local_mode.rb:44:in `with_server_connectivity'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:235:in `run_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:464:in `sleep_then_run_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:451:in `block in interval_run_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:450:in `loop'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:450:in `interval_run_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:434:in `run_application'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:59:in `run'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/solo.rb:226:in `run'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/bin/chef-solo:25:in `<top (required)>'
       /opt/chef/bin/chef-solo:57:in `load'
       /opt/chef/bin/chef-solo:57:in `<main>'
       
       >>>> Caused by Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
       ---- Begin output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
       STDOUT: 
       STDERR: Importing GPG key 0xD59097AB:
        Userid     : "packagecloud ops (production key) <[email protected]>"
        Fingerprint: 418a 7f2f b0e1 e6e7 eabf 6fe8 c2e7 3424 d590 97ab
        From       : https://packagecloud.io/imeyer/runit/gpgkey
       https://packagecloud.io/imeyer/runit/el/6/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for imeyer_runit
       Trying other mirror.
       
       
        One of the configured repositories failed (imeyer_runit),
        and yum doesn't have enough cached data to continue. At this point the only
        safe thing yum can do is fail. There are a few ways to work "fix" this:
       
            1. Contact the upstream for the repository and get them to fix the problem.
       
            2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).
       
            3. Disable the repository, so yum won't use it by default. Yum will then
        just ignore the repository until you permanently enable it again or use
        --enablerepo for temporary usage:
       
            yum-config-manager --disable imeyer_runit
       
            4. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:
       
            yum-config-manager --save --setopt=imeyer_runit.skip_if_unavailable=true
       
       failure: repodata/repomd.xml from imeyer_runit: [Errno 256] No more mirrors to try.
       ---- End output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
       Ran yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit returned 1
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.7/lib/mixlib/shellout.rb:289:in `invalid!'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.7/lib/mixlib/shellout.rb:276:in `error!'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/mixin/shell_out.rb:45:in `shell_out!'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider/execute.rb:62:in `block in action_run'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/mixin/why_run.rb:52:in `add_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider.rb:176:in `converge_by'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider/execute.rb:60:in `action_run'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider.rb:145:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource.rb:622:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:69:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:77:in `block in run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:75:in `each'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:75:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `block (2 levels) in converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `each'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `block in converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/resource_list.rb:94:in `block in execute_each_resource'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/resource_list.rb:92:in `execute_each_resource'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:96:in `converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider.rb:362:in `compile_and_converge_action'
       (eval):2:in `action_add'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/provider.rb:145:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource.rb:622:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:69:in `run_action'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `block (2 levels) in converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `each'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:97:in `block in converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/resource_list.rb:94:in `block in execute_each_resource'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/resource_collection/resource_list.rb:92:in `execute_each_resource'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/runner.rb:96:in `converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:670:in `block in converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:665:in `catch'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:665:in `converge'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:704:in `converge_and_save'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/client.rb:284:in `run'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:294:in `block in fork_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:282:in `fork'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:282:in `fork_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:247:in `block in run_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/local_mode.rb:44:in `with_server_connectivity'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:235:in `run_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:464:in `sleep_then_run_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:451:in `block in interval_run_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:450:in `loop'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:450:in `interval_run_chef_client'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/client.rb:434:in `run_application'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application.rb:59:in `run'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/application/solo.rb:226:in `run'
       /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/bin/chef-solo:25:in `<top (required)>'
       /opt/chef/bin/chef-solo:57:in `load'
       /opt/chef/bin/chef-solo:57:in `<main>'
       [2016-12-21T16:45:43+00:00] ERROR: packagecloud_repo[imeyer/runit] (runit::default line 36) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[yum-makecache-imeyer_runit] (/tmp/kitchen/cache/cookbooks/packagecloud/providers/repo.rb line 124) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
       ---- Begin output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
       STDOUT: 
       STDERR: Importing GPG key 0xD59097AB:
        Userid     : "packagecloud ops (production key) <[email protected]>"
        Fingerprint: 418a 7f2f b0e1 e6e7 eabf 6fe8 c2e7 3424 d590 97ab
        From       : https://packagecloud.io/imeyer/runit/gpgkey
       https://packagecloud.io/imeyer/runit/el/6/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for imeyer_runit
       Trying other mirror.
       
       
        One of the configured repositories failed (imeyer_runit),
        and yum doesn't have enough cached data to continue. At this point the only
        safe thing yum can do is fail. There are a few ways to work "fix" this:
       
            1. Contact the upstream for the repository and get them to fix the problem.
       
            2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).
       
            3. Disable the repository, so yum won't use it by default. Yum will then
        just ignore the repository until you permanently enable it again or use
        --enablerepo for temporary usage:
       
            yum-config-manager --disable imeyer_runit
       
            4. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:
       
            yum-config-manager --save --setopt=imeyer_runit.skip_if_unavailable=true
       
       failure: repodata/repomd.xml from imeyer_runit: [Errno 256] No more mirrors to try.
       ---- End output of yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit ----
       Ran yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit returned 1
       [2016-12-21T16:45:43+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>>     Converge failed on instance <default-amazon>.  Please see .kitchen/logs/default-amazon.log for more details
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

Changelog not updated

The changelog hasn't been updated since the initial release which makes it really hard to see the changes when you subscribe to the cookbook on the Supermarket.

Packagecloud apt key rotation not applied

The packagecloud_repo repo only pulls the GPG key during deployment; and does not detect in any way that the key might have been rotated.

To properly solve this, the resource needs to keep the downloaded key, and be able to compare it back against the server copy for updates.

Opsworks error undefined method 'source_url'

we are using Opsworks running off Chef 11.10, Berkshelf 3.2.0
Recently we started getting following error when we run chef client
[2018-09-07T17:59:45+00:00] ERROR: Could not read /opt/aws/opsworks/current/merged-cookbooks/packagecloud into a Chef object: undefined method source_url' for #<Chef::Cookbook::Metadata:0x007f3af39e5518> [2018-09-07T17:59:45+00:00] ERROR: #<NoMethodError: undefined method to_hash' for nil:NilClass>

It looks like other cookbooks have same issues:
sous-chefs/aws#122

Can you please fix this issue...?
reference-mes/squid@f96ade8

metadata_expire change to Integer was a breaking change. String actually should be better

This change broke our existing usage: e379a98

Error we ran into:

================================================================================
Recipe Compile Error in /opt/pantheon/infrastructure/cookbooks/pantheon/recipes/default.rb
================================================================================

Chef::Exceptions::ValidationFailed
----------------------------------
Option metadata_expire must be a kind of Integer!  You passed "5m".

Cookbook Trace:
---------------
  /opt/pantheon/infrastructure/cookbooks/pantheon_package_repository/recipes/pantheon_repos.rb:11:in `block in from_file'
  /opt/pantheon/infrastructure/cookbooks/pantheon_package_repository/recipes/pantheon_repos.rb:8:in `from_file'
  /opt/pantheon/infrastructure/cookbooks/pantheon_package_repository/recipes/default.rb:17:in `block in from_file'
  /opt/pantheon/infrastructure/cookbooks/pantheon_package_repository/recipes/default.rb:12:in `each'
  /opt/pantheon/infrastructure/cookbooks/pantheon_package_repository/recipes/default.rb:12:in `from_file'
  /opt/pantheon/infrastructure/cookbooks/pantheon/recipes/default.rb:7:in `from_file'

Relevant File Content:
----------------------
/opt/pantheon/infrastructure/cookbooks/pantheon_package_repository/recipes/pantheon_repos.rb:

  4:  #
  5:  # Copyright (c) 2015 Pantheon Systems, Inc., All Rights Reserved.
  6:  #
  7:
  8:  packagecloud_repo 'pantheon/internal' do
  9:    type 'rpm'
 11>>   metadata_expire '5m'
 12:    priority 1

Since dnf and yum both allow for a string in the metadata_expire argument so that you can specify human-readable units, it seems like this cookbook should support the strings.

I am wondering if others involved w/ this cook agree with that or not? If so, the fix should be straightforward for v0.2.3. The default could be '300' (string) or 5m. The validation regex that is in place would still be valid too.

allow providing platform version via attributes

currently the provider uses lsb attributed to derive these values. for system where lsb is not installed, this breaks the provider silently,. for cases where lsb is not available allow setting the platform version through the lwrp or a default attribute .. like node.packagecloud.lsb_codename

packagecloud_repo should use proxy setting from /etc/yum.conf

One could argue that a bootstrappy thing like defining a yum repo on disk should not be causing a connection to the internet, but I get it... install RPM that defines the repo like EPEL, etc.

At any rate, this should be using the defined proxy found in /etc/yum.conf

Errno::ECONNREFUSED
-------------------
Connection refused - connect(2) for "packages.gitlab.com" port 443

Cookbook Trace:
---------------
/var/chef/cache/cookbooks/packagecloud/libraries/helper.rb:14:in `get'
/var/chef/cache/cookbooks/packagecloud/providers/repo.rb:80:in `install_rpm'
/var/chef/cache/cookbooks/packagecloud/providers/repo.rb:12:in `block in class_from_file'

Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/r701-host-mcran/recipes/gitlab-ci-runner.rb

  6: packagecloud_repo 'runner/gitlab-ci-multi-runner' do
  7:   type 'rpm'
  8:   base_url 'https://packages.gitlab.com/'
  9: end
 10:

packagecloud - ERROR: undefined method `[]' for nil:NilClass

I am trying to install runit (latest version) and it seem to use packagecloud. What am I doing wrong?

Here is the debug info:

==> broker01: 39: case node['platform_family']
==> broker01: 40: when 'rhel', 'fedora'
==> broker01: 41:
==> broker01: 42>> packagecloud_repo 'imeyer/runit' unless node['runit']['prefer_local_yum']
==> broker01: 43: package 'runit'
==> broker01: 44:
==> broker01: 45: if node['platform_version'].to_i == 7
==> broker01: 46: service 'runsvdir-start' do
==> broker01: 47: action [:start, :enable]
==> broker01: 48: end
==> broker01: 49: end
...
==> broker01: [2015-09-21T04:02:10+00:00] ERROR: undefined method `[]' for nil:NilClass

I also tried changing it to:
packagecloud_repo "imeyer/runit" do
type "deb" # or "rpm" or "gem"
end

I get a diff error
No resource or method named packagecloud_repo' forChef::Recipe "default"'

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • sous-chefs/.github 3.1.1
  • actions/checkout v4
  • actionshub/chef-install 3.0.0
  • actionshub/test-kitchen 3.0.0
.github/workflows/stale.yml
  • actions/stale v9

  • Check this box to trigger a request for Renovate to run again on this repository

Please watch out for breaking changes

0.0.18 introduced a breaking change for users that set base_url and gpg_key with the node attributes. Please watch out for these breaking changes and either note such by incrementing the major version #, or specifically call out the breaking change in the CHANGELOG and/or README.

Thanks for your consideration.

chefspec matcher name is inconsistent

ChefSpec matchers follow the pattern action_resource. According to which the repo resource should be asserted as:

expect(chef_run).to add_packagecloud_repo('foo/bar')

currently the matcher is named as create_packagecloud_repo.

Does not work with Oracle Linux (which is RedHat/CentOS compatible)

Bombs with this error:

RuntimeError
-----------------
#<Net::HTTPNotFound 404 Not Found ready-true>

After tracing into the code, the issue appears to be here in providers/repo.rb:
https://github.com/computology/packagecloud-cookbook/blob/master/providers/repo.rb#L62

On Oracle Linux 6.5, the following values are passed in to the URI get:

base_url_endpoint = http://packagecloud.io/install/repositories/computology/packagecloud-cookbook-test-public/rpm_base_url
install_endpoint_params = {:os=>"oracle", :dist=>"6.5", :name=>"default-oel65.vagrantup.com"}

vs. on CentOS it's:

install_endpoint_params = {:os=>"centos", :dist=>"6.5", :name=>"default-centos-65.vagrantup.com")

On the other end, the packagecloud repo should accept oracle as an :os and handle it like centos. I'm not sure if this is a packagecloud issue or a chef issue in populating the packages.

(I also suspect there will be similar issues with RedHat and Scientific Linux, if you haven't already tested these).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.