-
Notifications
You must be signed in to change notification settings - Fork 108
Error executing action run
on resource 'execute[subscription-manager repos --enable rhel-variant-rhscl-6-rpms]'
#75
Comments
This was fixed in poise-languages 2.0.2 |
The error persists with poise-languages 2.0.2 |
The only way that would happen is if you had manually set things to use the |
Couldn't find any reference to scl in my repo |
Then you either didn't deploy the newer poise-languages or are setting the provider elsewhere. |
Is there an attribute on the node I can look for to verify that? |
UCR-server: |
What OS is this on? The only way that would happen automatically is if you're on RHEL 6 (not CentOS, actual RHEL). |
(or if you have the provider set via node attributes) |
RHEL 6. |
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. |
I have tried So, the application can run on RHEL6+python 2.7. Any ideas? |
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? |
Error executing action |
What's the output from subscription-manager? That is the correct repo name according to https://access.redhat.com/solutions/472793. |
sudo subscription-manager repos --list |
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. |
(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). |
I am provisioning an EC2 instance. The subscription should have been dealt with by AWS. Isn't it? |
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. |
OK. Figured it out based on the URL: sudo yum -y install yum-utils It works on my ec2 instance. Can you incorporate those commands to your cookbook please? |
Do you mean that with a literal |
yes. have a look: [ec2-user@ip-10-0-0-100 ~]$ sudo yum-config-manager --enable rhui-REGION-rhel-server-rhscl |
BTW, the command - "sudo yum -y install yum-utils" is NOT required. |
Whatever that is, it appears to be specific to AWS/EC2, the |
Got you. Will update my recipe with the intermediate commands till you figure out how to update the cookbook. |
Yeah, you can always use the |
Could you provide a snippet of your workaround? execute 'add scl repo' do package 'python27' |
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. |
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
The text was updated successfully, but these errors were encountered: