Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Error executing action run on resource 'execute[subscription-manager repos --enable rhel-variant-rhscl-6-rpms]' #75

Open
lmilbaum opened this issue Sep 11, 2016 · 29 comments

Comments

@lmilbaum
Copy link

Since yesterday, I hit this error on AWS ec2 instance

poise_languages_scl[python27] action install
* execute[subscription-manager repos --enable rhel-variant-rhscl-6-rpms] action run

     ================================================================================
     Error executing action `run` on resource 'execute[subscription-manager repos --enable rhel-variant-rhscl-6-rpms]'
     ================================================================================

     Mixlib::ShellOut::ShellCommandFailed
     ------------------------------------
     Expected process to exit with [0], but received '1'
     ---- Begin output of subscription-manager repos --enable rhel-variant-rhscl-6-rpms ----
     STDOUT: Error: rhel-variant-rhscl-6-rpms is not a valid repo ID. Use --list option to see valid repos.
     STDERR: 
     ---- End output of subscription-manager repos --enable rhel-variant-rhscl-6-rpms ----
     Ran subscription-manager repos --enable rhel-variant-rhscl-6-rpms returned 1
@coderanger
Copy link
Member

coderanger commented Sep 12, 2016

This was fixed in poise-languages 2.0.2

@lmilbaum
Copy link
Author

The error persists with poise-languages 2.0.2

@coderanger
Copy link
Member

The only way that would happen is if you had manually set things to use the :scl provider.

@lmilbaum
Copy link
Author

Couldn't find any reference to scl in my repo

@coderanger
Copy link
Member

Then you either didn't deploy the newer poise-languages or are setting the provider elsewhere.

@lmilbaum
Copy link
Author

Is there an attribute on the node I can look for to verify that?

@lmilbaum
Copy link
Author

UCR-server:
run_list:
role[UCR-server]
recipe[depi_integrations::ucr-ucd]
recipe[depi_integrations::ucr-rqm]
recipe[depi_integrations::ucr-rtc]
recipe[JKEBanking::ucr]
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Starting Chef Client, version 12.13.37
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com resolving cookbooks for run list: ["UCR::server", "depi_integrations::ucr-ucd", "depi_integrations::ucr-rqm", "depi_integrations::ucr-rtc", "JKEBanking::ucr"]
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Synchronizing Cookbooks:
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - UCR (0.0.1)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - poise-archive (1.3.0)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - IM (0.0.1)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - depi_integrations (0.1.0)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - GIT (0.1.0)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - poise (2.7.1)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - seven_zip (2.0.2)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - build-essential (6.0.5)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - git (5.0.0)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - mingw (1.2.4)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - windows (2.0.2)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - compat_resource (12.14.2)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - yum (4.0.0)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - yum-epel (1.0.1)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - dmg (2.4.0)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - apache2 (3.2.2)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - nodejs (2.4.4)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - ark (1.2.0)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - apt (4.0.2)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - homebrew (2.1.2)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - perlbrew (0.3.0)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - poise-python (1.5.1)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - poise-languages (2.0.2)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - ssh_keygen (1.1.0)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - JKEBanking (0.1.0)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - java (1.42.0)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Installing Cookbook Gems:
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Compiling Cookbooks...
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com [2016-09-12T02:33:46-04:00] WARN: Chef::Provider::AptRepository already exists! Cannot create deprecation class for LWRP provider apt_repository from cookbook apt
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com [2016-09-12T02:33:46-04:00] WARN: AptRepository already exists! Deprecation class overwrites Custom resource apt_repository from cookbook apt
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Converging 44 resources
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Recipe: IM::default
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * poise_archive[Extract IM zip] action unpack (skipped due to not_if)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * file[/var/chef/cache/IBMIM/installc] action create (up to date)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * execute[install IM] action run (skipped due to not_if)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * execute[upgrade IM] action nothing (skipped due to action :nothing)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Recipe: UCR::server
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * poise_archive[Extracting UCR zip] action unpack
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * remote_file[/var/chef/cache/RXh0cmFjdGluZyBVQ1Igemlw_IBM_URBANCODE_RELEASE_6.2.1_FOR_E.zip] action create (up to date)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com (up to date)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * poise_archive[Extracting UCR Linux zip] action nothing (skipped due to action :nothing)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * poise_archive[Extracting UCR update zip] action nothing (skipped due to action :nothing)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * execute[install release] action nothing (skipped due to action :nothing)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * execute[install update] action nothing (skipped due to action :nothing)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * execute[UCR server startup] action nothing (skipped due to action :nothing)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * execute[Sleep till UCR server is up] action nothing (skipped due to action :nothing)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Recipe: depi_integrations::ucr-ucd
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * execute[UCR server shutdown] action run
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - execute /opt/IBM/UCRelease/server/server.shutdown
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * directory[/opt/IBM/UCRelease/ucrelease/plugins/stage] action create (up to date)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * remote_file[/opt/IBM/UCRelease/ucrelease/plugins/stage/ucr-plugin-deploy-1.757442.zip] action create
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - create new file /opt/IBM/UCRelease/ucrelease/plugins/stage/ucr-plugin-deploy-1.757442.zip
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - update content in file /opt/IBM/UCRelease/ucrelease/plugins/stage/ucr-plugin-deploy-1.757442.zip from none to 742df6
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com (file sizes exceed 10000000 bytes, diff output suppressed)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - restore selinux security context
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * execute[UCR server startup] action run
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - execute ulimit -n 65535;ulimit -u 65535;/opt/IBM/UCRelease/server/server.startup
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Recipe: UCR::server
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * execute[Sleep till UCR server is up] action run
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - execute sleep 1m
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Recipe: depi_integrations::ucr-ucd
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * execute[integration: sleep till UCR server is up] action run
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - execute sleep 1m
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * execute[integration: sleep till UCR server is up] action nothing (skipped due to action :nothing)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Recipe: depi_integrations::ucr-rqm
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * poise_archive[Download and Extract RQM Url Utlitiy zip] action unpack
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * remote_file[/var/chef/cache/RG93bmxvYWQgYW5kIEV4dHJhY3QgUlFNIFVybCBVdGxpdGl5IHppcA_RQM-Extras-RQMUrlUtil-6.0.2.zip] action create (up to date)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com (up to date)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Recipe: depi_integrations::ucr-rtc
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * execute[UCR server shutdown] action run
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - execute /opt/IBM/UCRelease/server/server.shutdown
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * directory[/opt/IBM/UCRelease/ucrelease/plugins/stage] action create (up to date)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * remote_file[/opt/IBM/UCRelease/ucrelease/plugins/stage/ucr-plugin-rtc-3.801190.zip] action create
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - create new file /opt/IBM/UCRelease/ucrelease/plugins/stage/ucr-plugin-rtc-3.801190.zip
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - update content in file /opt/IBM/UCRelease/ucrelease/plugins/stage/ucr-plugin-rtc-3.801190.zip from none to f38c7a
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com (file sizes exceed 10000000 bytes, diff output suppressed)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - restore selinux security context
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * execute[UCR server startup] action run
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - execute ulimit -n 65535;ulimit -u 65535;/opt/IBM/UCRelease/server/server.startup
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Recipe: UCR::server
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * execute[Sleep till UCR server is up] action run
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - execute sleep 1m
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Recipe: depi_integrations::ucr-ucd
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * execute[integration: sleep till UCR server is up] action run
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - execute sleep 1m
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Recipe: depi_integrations::ucr-rtc
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * execute[sleep till UCR server is up] action run
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - execute sleep 1m
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * template[/var/chef/cache/rtc.json] action create (up to date)
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * execute[set Preferences] action run
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com - execute curl -s -X POST -u admin:admin "https://ec2-52-211-12-76.eu-west-1.compute.amazonaws.com:8443/integrationProvider/" -d @/var/chef/cache/rtc.json --insecure
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Recipe: poise-python::default
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * python_runtime[2] action install
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * poise_languages_scl[python27] action install
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com * execute[subscription-manager repos --enable rhel-variant-rhscl-6-rpms] action run
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ================================================================================
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Error executing action run on resource 'execute[subscription-manager repos --enable rhel-variant-rhscl-6-rpms]'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ================================================================================
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Mixlib::ShellOut::ShellCommandFailed
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ------------------------------------
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Expected process to exit with [0], but received '1'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ---- Begin output of subscription-manager repos --enable rhel-variant-rhscl-6-rpms ----
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com STDOUT: Error: rhel-variant-rhscl-6-rpms is not a valid repo ID. Use --list option to see valid repos.
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com STDERR:
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ---- End output of subscription-manager repos --enable rhel-variant-rhscl-6-rpms ----
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Ran subscription-manager repos --enable rhel-variant-rhscl-6-rpms returned 1
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Cookbook Trace:
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ---------------
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in run_action' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:inblock (2 levels) in converge'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in each' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:inblock in converge'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in converge' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/notifying_block.rb:69:innotifying_block'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/poise-languages/files/halite_gem/poise_languages/scl/resource.rb:71:in action_install' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:inrun_action'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in block (2 levels) in converge' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:ineach'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in block in converge' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:inconverge'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/notifying_block.rb:69:in notifying_block' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/poise-python/files/halite_gem/poise_python/python_providers/base.rb:45:inaction_install'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in run_action' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:inblock (2 levels) in converge'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in each' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:inblock in converge'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in converge' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Resource Declaration: ec2-52-211-12-76.eu-west-1.compute.amazonaws.com --------------------- ec2-52-211-12-76.eu-west-1.compute.amazonaws.com # In /var/chef/cache/cookbooks/poise-languages/files/halite_gem/poise_languages/scl/resource.rb ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ec2-52-211-12-76.eu-west-1.compute.amazonaws.com 110: execute "subscription-manager repos --enable #{repo_name}" do ec2-52-211-12-76.eu-west-1.compute.amazonaws.com 111: not_if { shell_out!('subscription-manager repos --list').stdout.include?(repo_name) } ec2-52-211-12-76.eu-west-1.compute.amazonaws.com 112: end ec2-52-211-12-76.eu-west-1.compute.amazonaws.com 113: else ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Compiled Resource: ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ------------------ ec2-52-211-12-76.eu-west-1.compute.amazonaws.com # Declared in /var/chef/cache/cookbooks/poise-languages/files/halite_gem/poise_languages/scl/resource.rb:110:ininstall_scl_repo'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com execute("subscription-manager repos --enable rhel-variant-rhscl-6-rpms") do
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com action [:run]
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com retries 0
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com retry_delay 2
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com default_guard_interpreter :execute
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com command "subscription-manager repos --enable rhel-variant-rhscl-6-rpms"
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com backup 5
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com returns 0
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com declared_type :execute
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com cookbook_name "poise-python"
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com not_if { #code block }
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com end
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Platform:
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ---------
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com x86_64-linux
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ================================================================================
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Error executing action install on resource 'poise_languages_scl[python27]'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ================================================================================
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Mixlib::ShellOut::ShellCommandFailed
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ------------------------------------
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com execute[subscription-manager repos --enable rhel-variant-rhscl-6-rpms](/var/chef/cache/cookbooks/poise-languages/files/halite_gem/poise_languages/scl/resource.rb line 110) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ---- Begin output of subscription-manager repos --enable rhel-variant-rhscl-6-rpms ----
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com STDOUT: Error: rhel-variant-rhscl-6-rpms is not a valid repo ID. Use --list option to see valid repos.
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com STDERR:
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ---- End output of subscription-manager repos --enable rhel-variant-rhscl-6-rpms ----
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Ran subscription-manager repos --enable rhel-variant-rhscl-6-rpms returned 1
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Cookbook Trace:
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ---------------
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in run_action' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:inblock (2 levels) in converge'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in each' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:inblock in converge'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in converge' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/notifying_block.rb:69:innotifying_block'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/poise-languages/files/halite_gem/poise_languages/scl/resource.rb:71:in action_install' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:inrun_action'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in block (2 levels) in converge' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:ineach'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in block in converge' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:inconverge'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/notifying_block.rb:69:in notifying_block' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/poise-python/files/halite_gem/poise_python/python_providers/base.rb:45:inaction_install'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in run_action' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:inblock (2 levels) in converge'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in each' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:inblock in converge'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in converge' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Resource Declaration: ec2-52-211-12-76.eu-west-1.compute.amazonaws.com --------------------- ec2-52-211-12-76.eu-west-1.compute.amazonaws.com # In /var/chef/cache/cookbooks/poise-languages/files/halite_gem/poise_languages/scl/mixin.rb ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ec2-52-211-12-76.eu-west-1.compute.amazonaws.com 27: poise_languages_scl options[:package_name] || pkg[:name] do ec2-52-211-12-76.eu-west-1.compute.amazonaws.com 28: action :upgrade if options[:package_upgrade] ec2-52-211-12-76.eu-west-1.compute.amazonaws.com 29: dev_package options[:dev_package] == true ? pkg[:devel_name] : options[:dev_package] ec2-52-211-12-76.eu-west-1.compute.amazonaws.com 30: parent new_resource ec2-52-211-12-76.eu-west-1.compute.amazonaws.com 31: version options[:package_version] ec2-52-211-12-76.eu-west-1.compute.amazonaws.com 32: end ec2-52-211-12-76.eu-west-1.compute.amazonaws.com 33: end ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Compiled Resource: ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ------------------ ec2-52-211-12-76.eu-west-1.compute.amazonaws.com # Declared in /var/chef/cache/cookbooks/poise-languages/files/halite_gem/poise_languages/scl/mixin.rb:27:ininstall_scl_package'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com poise_languages_scl("python27") do
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com action [:install]
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com retries 0
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com retry_delay 2
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com default_guard_interpreter :default
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com declared_type :poise_languages_scl
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com cookbook_name "poise-python"
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com dev_package "python27-python-devel"
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com parent # Declared in /var/chef/cache/cookbooks/poise-python/recipes/default.rb:20:in from_file' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ec2-52-211-12-76.eu-west-1.compute.amazonaws.com python_runtime("2") do ec2-52-211-12-76.eu-west-1.compute.amazonaws.com action [:install] ec2-52-211-12-76.eu-west-1.compute.amazonaws.com retries 0 ec2-52-211-12-76.eu-west-1.compute.amazonaws.com retry_delay 2 ec2-52-211-12-76.eu-west-1.compute.amazonaws.com default_guard_interpreter :default ec2-52-211-12-76.eu-west-1.compute.amazonaws.com declared_type :python_runtime ec2-52-211-12-76.eu-west-1.compute.amazonaws.com cookbook_name "poise-python" ec2-52-211-12-76.eu-west-1.compute.amazonaws.com recipe_name "default" ec2-52-211-12-76.eu-west-1.compute.amazonaws.com get_pip_url "https://bootstrap.pypa.io/get-pip.py" ec2-52-211-12-76.eu-west-1.compute.amazonaws.com pip_version true ec2-52-211-12-76.eu-west-1.compute.amazonaws.com setuptools_version true ec2-52-211-12-76.eu-west-1.compute.amazonaws.com version "2" ec2-52-211-12-76.eu-west-1.compute.amazonaws.com virtualenv_version true ec2-52-211-12-76.eu-west-1.compute.amazonaws.com wheel_version true ec2-52-211-12-76.eu-west-1.compute.amazonaws.com end ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ec2-52-211-12-76.eu-west-1.compute.amazonaws.com package_name "python27" ec2-52-211-12-76.eu-west-1.compute.amazonaws.com end ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Platform: ec2-52-211-12-76.eu-west-1.compute.amazonaws.com --------- ec2-52-211-12-76.eu-west-1.compute.amazonaws.com x86_64-linux ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ================================================================================ ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Error executing actioninstallon resource 'python_runtime[2]' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ================================================================================ ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Mixlib::ShellOut::ShellCommandFailed ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ------------------------------------ ec2-52-211-12-76.eu-west-1.compute.amazonaws.com poise_languages_scl[python27] (/var/chef/cache/cookbooks/poise-languages/files/halite_gem/poise_languages/scl/mixin.rb line 27) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[subscription-manager repos --enable rhel-variant-rhscl-6-rpms] (/var/chef/cache/cookbooks/poise-languages/files/halite_gem/poise_languages/scl/resource.rb line 110) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ---- Begin output of subscription-manager repos --enable rhel-variant-rhscl-6-rpms ---- ec2-52-211-12-76.eu-west-1.compute.amazonaws.com STDOUT: Error: rhel-variant-rhscl-6-rpms is not a valid repo ID. Use --list option to see valid repos. ec2-52-211-12-76.eu-west-1.compute.amazonaws.com STDERR: ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ---- End output of subscription-manager repos --enable rhel-variant-rhscl-6-rpms ---- ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Ran subscription-manager repos --enable rhel-variant-rhscl-6-rpms returned 1 ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Cookbook Trace: ec2-52-211-12-76.eu-west-1.compute.amazonaws.com --------------- ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:inrun_action'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in block (2 levels) in converge' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:ineach'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in block in converge' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:inconverge'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/notifying_block.rb:69:in notifying_block' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/poise-languages/files/halite_gem/poise_languages/scl/resource.rb:71:inaction_install'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in run_action' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:inblock (2 levels) in converge'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in each' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:inblock in converge'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in converge' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/notifying_block.rb:69:innotifying_block'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/poise-python/files/halite_gem/poise_python/python_providers/base.rb:45:in action_install' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:inrun_action'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in block (2 levels) in converge' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:ineach'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in block in converge' ec2-52-211-12-76.eu-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:inconverge'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Resource Declaration:
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ---------------------
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com # In /var/chef/cache/cookbooks/poise-python/recipes/default.rb
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com 20: python_runtime '2' if node['poise-python']['install_python2']
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Compiled Resource:
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ------------------
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com # Declared in /var/chef/cache/cookbooks/poise-python/recipes/default.rb:20:in `from_file'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com python_runtime("2") do
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com action [:install]
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com retries 0
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com retry_delay 2
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com default_guard_interpreter :default
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com declared_type :python_runtime
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com cookbook_name "poise-python"
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com recipe_name "default"
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com get_pip_url "https://bootstrap.pypa.io/get-pip.py"
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com pip_version true
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com setuptools_version true
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com version "2"
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com virtualenv_version true
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com wheel_version true
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com end
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Platform:
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ---------
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com x86_64-linux
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Running handlers:
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com [2016-09-12T02:39:26-04:00] ERROR: Running exception handlers
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Running handlers complete
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com [2016-09-12T02:39:26-04:00] ERROR: Exception handlers complete
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Chef Client failed. 12 resources updated in 05 minutes 55 seconds
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com [2016-09-12T02:39:27-04:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com [2016-09-12T02:39:27-04:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com [2016-09-12T02:39:27-04:00] ERROR: python_runtime[2](poise-python::default line 20) had an error: Mixlib::ShellOut::ShellCommandFailed: poise_languages_scl[python27](/var/chef/cache/cookbooks/poise-languages/files/halite_gem/poise_languages/scl/mixin.rb line 27) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[subscription-manager repos --enable rhel-variant-rhscl-6-rpms](/var/chef/cache/cookbooks/poise-languages/files/halite_gem/poise_languages/scl/resource.rb line 110) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ---- Begin output of subscription-manager repos --enable rhel-variant-rhscl-6-rpms ----
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com STDOUT: Error: rhel-variant-rhscl-6-rpms is not a valid repo ID. Use --list option to see valid repos.
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com STDERR:
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com ---- End output of subscription-manager repos --enable rhel-variant-rhscl-6-rpms ----
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com Ran subscription-manager repos --enable rhel-variant-rhscl-6-rpms returned 1
ec2-52-211-12-76.eu-west-1.compute.amazonaws.com [2016-09-12T02:39:27-04:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
3:22:21

@coderanger
Copy link
Member

What OS is this on? The only way that would happen automatically is if you're on RHEL 6 (not CentOS, actual RHEL).

@coderanger
Copy link
Member

(or if you have the provider set via node attributes)

@lmilbaum
Copy link
Author

RHEL 6.

@coderanger
Copy link
Member

Try poise-languages 2.0.3. You're unfortunately in untested waters here as RedHat does not allow automated testing (usefully) against their OSes. You could switch to the system provider, but on EL6 that gets you Python 2.6 as the newest. langs 2.0.3 should at least get you past this error though, let me know if you hit another.

@lmilbaum
Copy link
Author

I have tried
poise-languages 2.0.3 on RHEL 6 -> hitting the same error
poise-languages 2.0.3 on RHEL 6 system provider -> python 2.6.6 installed, application doesn't work
switching to CentOS -> 2.7 python installed but application doesn't work

So, the application can run on RHEL6+python 2.7.

Any ideas?

@coderanger
Copy link
Member

coderanger commented Sep 12, 2016

With langs 2.0.3 you should at least be getting a different error because I changed the repo name being passed to the subscription-manager. What's the new error?

@lmilbaum
Copy link
Author

Error executing action run on resource 'execute[subscription-manager repos --enable rhel-server-rhscl-6-rpms]'

@coderanger
Copy link
Member

What's the output from subscription-manager? That is the correct repo name according to https://access.redhat.com/solutions/472793.

@lmilbaum
Copy link
Author

sudo subscription-manager repos --list
This system has no repositories available through subscriptions.

@coderanger
Copy link
Member

Okay, so you haven't purchased access to the RedHat SCL packages. In theory it should be possible to install SCLo (i.e. CentOS SCL) packages on RHEL but I've not looked in to what is required. I think you would need to get the repo package directly from a CentOS mirror via HTTPS and install that like how we used to install the repo package directly from softwarecollections.org. If you want to track down the steps to make this work, I can write the Chef side of things.

@coderanger
Copy link
Member

(for clarity the old repo packages I was using before have been deprecated for about a year now and newer SCLo stuffs are not being added to them, which is why I finally moved to the newer structure).

@lmilbaum
Copy link
Author

I am provisioning an EC2 instance. The subscription should have been dealt with by AWS. Isn't it?

@coderanger
Copy link
Member

My knowledge of RHEL subscription stuffs is limited, but I think the EC2 image from RedHat only gives you access to the base channels, not SCL. I don't know how you purchase those exactly, but it's distinct from base RHEL.

@lmilbaum
Copy link
Author

OK. Figured it out based on the URL:
https://forums.aws.amazon.com/thread.jspa?messageID=551601

sudo yum -y install yum-utils
sudo yum-config-manager --enable rhui-REGION-rhel-server-rhscl
sudo yum install python27

It works on my ec2 instance. Can you incorporate those commands to your cookbook please?

@coderanger
Copy link
Member

Do you mean that with a literal REGION in there or is that something related to EC2 regions?

@lmilbaum
Copy link
Author

yes. have a look:

[ec2-user@ip-10-0-0-100 ~]$ sudo yum-config-manager --enable rhui-REGION-rhel-server-rhscl
Failed to set locale, defaulting to C
Loaded plugins: amazon-id, rhui-lb
===================== repo: rhui-REGION-rhel-server-rhscl ======================
[rhui-REGION-rhel-server-rhscl]
bandwidth = 0
base_persistdir = /var/lib/yum/repos/x86_64/6Server
baseurl =
cache = 0
cachedir = /var/cache/yum/x86_64/6Server/rhui-REGION-rhel-server-rhscl
cost = 1000
enabled = 1
enablegroups = True
exclude =
failovermethod = priority
ftp_disable_epsv = False
gpgcadir = /var/lib/yum/repos/x86_64/6Server/rhui-REGION-rhel-server-rhscl/gpgcadir
gpgcakey =
gpgcheck = True
gpgdir = /var/lib/yum/repos/x86_64/6Server/rhui-REGION-rhel-server-rhscl/gpgdir
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
hdrdir = /var/cache/yum/x86_64/6Server/rhui-REGION-rhel-server-rhscl/headers
http_caching = all
includepkgs =
keepalive = True
mdpolicy = group:primary
mediaid =
metadata_expire = 21600
metalink =
mirrorlist = https://rhui2-cds01.REGION.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/rhscl/1/os
mirrorlist_expire = 86400
name = Red Hat Enterprise Linux Server 6 RHSCL (RPMs)
old_base_cache_dir =
password =
persistdir = /var/lib/yum/repos/x86_64/6Server/rhui-REGION-rhel-server-rhscl
pkgdir = /var/cache/yum/x86_64/6Server/rhui-REGION-rhel-server-rhscl/packages
proxy = False
proxy_dict =
proxy_password =
proxy_username =
repo_gpgcheck = False
retries = 10
skip_if_unavailable = False
ssl_check_cert_permissions = True
sslcacert = /etc/pki/rhui/cdn.redhat.com-chain.crt
sslclientcert = /etc/pki/rhui/product/content-rhel6.crt
sslclientkey = /etc/pki/rhui/content-rhel6.key
sslverify = True
throttle = 0
timeout = 30.0

@lmilbaum
Copy link
Author

BTW, the command - "sudo yum -y install yum-utils" is NOT required.

@coderanger
Copy link
Member

Whatever that is, it appears to be specific to AWS/EC2, the rhui2-cds01.REGION.aws.ce.redhat.com name doesn't even exist in public DNS. Will have to find something else :(

@lmilbaum
Copy link
Author

Got you. Will update my recipe with the intermediate commands till you figure out how to update the cookbook.

@coderanger
Copy link
Member

Yeah, you can always use the :dummy provider as a workaround for these kinds of issues. Just make sure you set it to use the SCL environment.

@lmilbaum
Copy link
Author

Could you provide a snippet of your workaround?
This is my workaround (not using poise-python at all):

execute 'add scl repo' do
command "yum-config-manager --enable rhui-REGION-rhel-server-rhscl"
action :run
end

package 'python27'

@coderanger
Copy link
Member

coderanger commented Sep 15, 2016

So add to that:

python_runtime 'whatever' do
  provider :dummy
  options python_binary: '/opt/rh/python27/root/usr/bin/python', python_environment: {'LD_LIBRARY_PATH' => "/opt/rh/root/usr/lib64:#{ENV['LD_LIBRARY_PATH']}"}
end

or something like that.

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

No branches or pull requests

2 participants