Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Redhat is no longer a valid platform at https://download.docker.com/linux/ #1047

Open
ChrisG1971 opened this issue Dec 11, 2018 · 1 comment
Labels
Maintenance Maintenance issues such as failing builds

Comments

@ChrisG1971
Copy link

ChrisG1971 commented Dec 11, 2018

Cookbook version

4.8.0

Chef-client version

chef_version=13.6.4

Platform Details

RHEL7 running on AWS

Scenario:

Trying to install Docker

Steps to Reproduce:

Wrapper cookbook which I've tried both the Docker_installation_package and Docker Service. Neither of these options are passing platform_version properly. Looking closer at the installation_package option the URL path pulls the platform value which would be redhat. The URL . https://download.docker.com/linux/ does not contain redhat. Cookbook metadata states it supports redhat. If this is no longer the case please update the metadata.

Expected Result:

docker_Service shows that it allows a package_version to be passed, however this property does not appear to work for redhat.
docker_Installation_package is not working due to the issue with the URL path no longer containing redhat.

Actual Result:

   * yum_package[docker-ce] action install[2018-12-11T02:54:46+00:00] INFO: Processing yum_package[docker-ce] action install (/var/cache/chef/cookbooks/docker/libraries/docker_installation_package.rb line 42)


      ================================================================================
      Error executing action `install` on resource 'yum_package[docker-ce]'
      ================================================================================

      Chef::Exceptions::Package
      -------------------------
      Version ["18.06.1"] of ["docker-ce"] not found. Did you specify both version and release? (version-release, e.g. 1.84-10.fc6)

      Resource Declaration:
      ---------------------
      # In /var/cache/chef/cookbooks/docker/libraries/docker_installation_package.rb

       42:       package new_resource.package_name do
       43:         version new_resource.package_version unless amazon?
       44:         options new_resource.package_options
       45:         action :install
       46:       end
       47:     end

      Compiled Resource:
      ------------------
      # Declared in /var/cache/chef/cookbooks/docker/libraries/docker_installation_package.rb:42:in `block in <class:DockerInstallationPackage>'

      yum_package("docker-ce") do
        package_name "docker-ce"
        action [:install]
        default_guard_interpreter :default
        declared_type :package
        cookbook_name "wdpr_docker"
        version "18.06.1"
        options ["--force-yes", "-o", "Dpkg::Options::=--force-confold", "-o", "Dpkg::Options::=--force-all"]
      end

      System Info:
      ------------
      chef_version=13.6.4
      platform=redhat
      platform_version=7.6
      ruby=ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux]
      program_name=chef-client worker: ppid=31273;start=02:54:34;
      executable=/opt/chef/bin/chef-client
@welcomebot
Copy link

Hey There
It looks like this is the first issue you've filed against the chef-cookbooks project. I'm here to offer you a bit of extra help to make sure we can quickly get back to you.
Make sure you've filled out all the fields in our issue template. Make sure you've provided us with the version of chef-client you're running, your operating system and the version of the cookbook. If you're not using the most up to date version of the cookbook then please make sure to update first. Lots of things change between versions even if you're issue isn't listed in the changelog. Finally please give us a detailed description of the issue you're having. The more we know about what you're trying to do, what actually happens, and how you can reproduce the problem, the better.

If you're looking for more immediate troubleshooting help make sure to check out #general on the Chef Community Slack. There's plenty of folks there willing to lend a helping hand. Thanks for the first issue. We hope we can get back to you soon with a solution.

@damacus damacus added the Maintenance Maintenance issues such as failing builds label Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance Maintenance issues such as failing builds
Projects
None yet
Development

No branches or pull requests

5 participants