{"action":"closed","issue":{"url":"https://api.github.com/repos/chef/chef/issues/7126","repository_url":"https://api.github.com/repos/chef/chef","labels_url":"https://api.github.com/repos/chef/chef/issues/7126/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef/issues/7126/comments","events_url":"https://api.github.com/repos/chef/chef/issues/7126/events","html_url":"https://github.com/chef/chef/issues/7126","id":311714722,"number":7126,"title":"Chef14: yum_package \"FakeRepository instance has no attribute 'compare_providers_priority'\" issue","user":{"login":"jekriske-lilly","id":16085156,"avatar_url":"https://avatars3.githubusercontent.com/u/16085156?v=4","gravatar_id":"","url":"https://api.github.com/users/jekriske-lilly","html_url":"https://github.com/jekriske-lilly","followers_url":"https://api.github.com/users/jekriske-lilly/followers","following_url":"https://api.github.com/users/jekriske-lilly/following{/other_user}","gists_url":"https://api.github.com/users/jekriske-lilly/gists{/gist_id}","starred_url":"https://api.github.com/users/jekriske-lilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jekriske-lilly/subscriptions","organizations_url":"https://api.github.com/users/jekriske-lilly/orgs","repos_url":"https://api.github.com/users/jekriske-lilly/repos","events_url":"https://api.github.com/users/jekriske-lilly/events{/privacy}","received_events_url":"https://api.github.com/users/jekriske-lilly/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-04-05T18:10:58Z","updated_at":"2018-04-17T17:56:04Z","closed_at":"2018-04-17T17:56:04Z","author_association":"NONE","body":"<!--- \r\n!!!!!! NOTE: CHEF CLIENT BUGS ONLY !!!!!!\r\n\r\nThis issue tracker is for the code contained within this repo -- `chef-client`, base `knife` functionality (not\r\nplugins), `chef-apply`, `chef-solo`, `chef-client -z`, etc.\r\n\r\n* Requests for new or alternative functionality should be made to [feedback.chef.io](https://feedback.chef.io/forums/301644-chef-product-feedback/category/110832-chef-client)\r\n* [Chef Server issues](https://github.com/chef/chef-server/issues/new)\r\n* [ChefDK issues](https://github.com/chef/chef-dk/issues/new)\r\n* Cookbook Issues (see the https://github.com/chef-cookbooks repos or search [Supermarket](https://supermarket.chef.io) or GitHub/Google)\r\n\r\n-->\r\n\r\n## Description\r\nyum_package does not function correctly in RHEL 7.4 with Red Hat Satellite server.\r\n\r\n## Chef Version\r\n\r\n14.0.190\r\n\r\n## Platform Version\r\nRHEL 7.4\r\n\r\n## Replication Case\r\nCreate new RHEL 7.4 instance hooked into Red Hat Satellite. Run build essential cookbook.\r\n\r\n## Client Output\r\n\r\n\r\n```\r\nRecipe: build-essential::default\r\n  * build_essential[install_packages] action install[2018-04-05T13:59:39-04:00] INFO: Processing build_essential[install_packages] action install (build-essential::default line 22)\r\n\r\n    * yum_package[autoconf, bison, flex, gcc, gcc-c++, gettext, kernel-devel, make, m4, ncurses-devel, patch] action install[2018-04-05T13:59:39-04:00] INFO: Processing yum_package[autoconf, bison, flex, gcc, gcc-c++, gettext, kernel-devel, make, m4, ncurses-devel, patch] action install (/opt/chef/cache/cookbooks/build-essential/resources/build_essential.rb line 30)\r\n\r\n\r\n      ================================================================================\r\n      Error executing action `install` on resource 'yum_package[autoconf, bison, flex, gcc, gcc-c++, gettext, kernel-devel, make, m4, ncurses-devel, patch]'\r\n      ================================================================================\r\n\r\n      RuntimeError\r\n      ------------\r\n      yum-helper.py had stderr/stdout output:\r\n\r\n      BDB2053 Freeing read locks for locker 0x8b: 16290/140619465414464\r\n      BDB2053 Freeing read locks for locker 0x8d: 16290/140619465414464\r\n      Traceback (most recent call last):\r\n        File \"/opt/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.0.190/lib/chef/provider/package/yum/yum_helper.py\", line 190, in <module>\r\n          query(command)\r\n        File \"/opt/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.0.190/lib/chef/provider/package/yum/yum_helper.py\", line 145, in query\r\n          pkgs = base.bestPackagesFromList(pkgs,single_name=True)\r\n        File \"/usr/lib/python2.7/site-packages/yum/__init__.py\", line 4441, in bestPackagesFromList\r\n          multi = self._bestPackageFromList(multiLib, req=req)\r\n        File \"/usr/lib/python2.7/site-packages/yum/__init__.py\", line 4408, in _bestPackageFromList\r\n          bestlist = self._compare_providers(pkglist, reqpo=None, req=req)\r\n        File \"/usr/lib/python2.7/site-packages/yum/depsolve.py\", line 1590, in _compare_providers\r\n          pkgresults[po] += (100 - po.repo.compare_providers_priority) * 10\r\n      AttributeError: FakeRepository instance has no attribute 'compare_providers_priority'\r\n      Loaded plugins: langpacks, ovl, product-id, subscription-manager, versionlock\r\n\r\n      Resource Declaration:\r\n      ---------------------\r\n      # In /opt/chef/cache/cookbooks/build-essential/resources/build_essential.rb\r\n\r\n       30:     package %w( autoconf bison flex gcc gcc-c++ gettext kernel-devel make m4 ncurses-devel patch )\r\n       31:\r\n\r\n      Compiled Resource:\r\n      ------------------\r\n      # Declared in /opt/chef/cache/cookbooks/build-essential/resources/build_essential.rb:30:in `block in class_from_file'\r\n\r\n      yum_package(\"autoconf, bison, flex, gcc, gcc-c++, gettext, kernel-devel, make, m4, ncurses-devel, patch\") do\r\n        package_name [\"autoconf\", \"bison\", \"flex\", \"gcc\", \"gcc-c++\", \"gettext\", \"kernel-devel\", \"make\", \"m4\", \"ncurses-devel\", \"patch\"]\r\n        action [:install]\r\n        default_guard_interpreter :default\r\n        declared_type :package\r\n        cookbook_name \"build-essential\"\r\n      end\r\n\r\n      System Info:\r\n      ------------\r\n      chef_version=14.0.190\r\n      platform=redhat\r\n      platform_version=7.4\r\n      ruby=ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]\r\n      program_name=/usr/bin/chef-client\r\n      executable=/opt/chef/bin/chef-client\r\n\r\n[2018-04-05T13:59:46-04:00] INFO: Running queued delayed notifications before re-raising exception\r\n\r\n    ================================================================================\r\n    Error executing action `install` on resource 'build_essential[install_packages]'\r\n    ================================================================================\r\n```\r\n\r\n## Stacktrace\r\nsee above\r\n\r\nWorks fine with Chef 13.x"}}
{"actor":{"display_login":"lamont-granquist"}}