-
Notifications
You must be signed in to change notification settings - Fork 290
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
sensu module failing on amazon linux as it is pointing to a incorrect yum repo http url which doesn't exist #821
Comments
|
Thanks for the great bug report! Looking into adding support for Amazon Linux. |
|
enhancement tag added so that we officially support Amazon Linux 2017. |
|
@ghoneycutt I can fix this one if nobody else is working on it |
|
@alvagante Thank you! |
|
@htallur so here we have the usual dilemma of figuring our what base Rhel version to use for packages on amazon ami , in this case for sensu. I would try with the 7 one, and change in /etc/yum.repos.d/the string $releasever with just 7. If then installation works well for you, I can puppettize it. |
|
if I replace $releasever with 7, sensu repo works but not default amazon repo's. yum repolistLoaded plugins: priorities, update-motd, upgrade-helper |
|
@htallur I intended to place the 7 ONLY on the sensu yum repo file, the others should remain as is |
|
@htallur and then if you have problems with version 7, try to change it to 6. |
|
gotcha, I have now changed the value of $releasever to 7 in senu repourl I guess you can go ahead and puppetize the update, as puppet is reverting the change to $releasever. |
|
Hei @htallur please verify if the linked fix actually does the expected job. Will add tests, and make a PR in the next days. |
|
its able to download the required packages, but puppet run failed at a later stage of restarting sensu-client Error: Could not start Service[sensu-client]: Execution of '/sbin/service sensu-client start' returned 1: sensu-client: unrecognized service |
|
@htallur did the sensu service start when you manually edited, before this patch, the sensu yum repo file and installed the package? If so, what was the sensu service name you used (sensu-client?)? |
|
@alvagante You could use this virtualbox to test Amazon Linux 2017.03 https://app.vagrantup.com/mvbcoding/boxes/awslinux Or could use the aws provider plugin and have our Vagrant actually talk to AWS. |
|
@alvagante sensu packages were not even installed before the patch. |
|
@htallur so I've tested on the vangrant box suggested by @ghoneycutt and actually we need packages for Rhel version 6. This PR #833 has the correct fix, package is installed and service is started. |
Use repository for rhel 6 on Amazon linux
Use repository for rhel 6 on Amazon linux Experimental retrospec generated tests for sensu::repo classes Refactored tests for sensu::repo::yum
Use repository for rhel 6 on Amazon linux Experimental retrospec generated tests for sensu::repo classes Refactored tests for sensu::repo::yum Moves sensu::repo::yum test file
Use repository for rhel 6 on Amazon linux Experimental retrospec generated tests for sensu::repo classes Refactored tests for sensu::repo::yum Moves sensu::repo::yum test file Added vagrant vm for amazon linux 201703
|
Thanks for all the hard work @htallur and @alvagante Released in v2.38.0 |
Description of problem
failure: repodata/repomd.xml from sensu: [Errno 256] No more mirrors to try.
https://sensu.global.ssl.fastly.net/yum/latest/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
#- What did you do?
#- What happened?
https://sensu.global.ssl.fastly.net/yum/latest/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found "
#- What did you expect to happen?
#- How can someone reproduce the problem?
Command used and debugging output
- Is this a masterless or master based puppet setup?
Platform and version information
NAME="Amazon Linux AMI"
VERSION="2017.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2017.03"
4.10.5
1.0.2
2.35.0
Anything else to add that you think will be helpful?
failure: repodata/repomd.xml from sensu: [Errno 256] No more mirrors to try.
https://sensu.global.ssl.fastly.net/yum/latest/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
yum repolist
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main | 2.1 kB 00:00:00
amzn-updates | 2.3 kB 00:00:00
epel/x86_64/metalink | 12 kB 00:00:00
https://sensu.global.ssl.fastly.net/yum/latest/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below knowledge base article
https://access.redhat.com/articles/1320623
If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.
https://sensu.global.ssl.fastly.net/yum/latest/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
repo id repo name status
amzn-main/latest amzn-main-Base 5,668
amzn-updates/latest amzn-updates-Base 1,616
epel/x86_64 Extra Packages for Enterprise Linux 6 - x86_64 12,407
The text was updated successfully, but these errors were encountered: