Comments (9)
@createor can I get some info on your yum repos? I am working on this but am running into some issues:
Recipe: netuitive::add_repo
* netuitive_repo[netuitive] action add[2016-03-07T20:07:31+00:00] WARN: EPEL based system support is still in the works, please submit an issue on github for any issues you have
(up to date)
* yum_package[yum-plugin-versionlock] action install
- install version 1.1.30-30.el6 of package yum-plugin-versionlock
* yum_repository[netuitive] action create
* template[/etc/yum.repos.d/netuitive.repo] action create
- create new file /etc/yum.repos.d/netuitive.repo
- update content in file /etc/yum.repos.d/netuitive.repo from none to f4af13
--- /etc/yum.repos.d/netuitive.repo 2016-03-07 20:07:36.943557722 +0000
+++ /tmp/chef-rendered-template20160307-2963-1gl9jli 2016-03-07 20:07:36.943557722 +0000
@@ -1 +1,11 @@
+# This file was generated by Chef
+# Do NOT modify this file by hand.
+
+[netuitive]
+name=Netuitive EPEL Repo
+baseurl=https://repos.app.netuitive.com/rpm/noarch/base
+enabled=1
+gpgcheck=1
+gpgkey=https://repos.app.netuitive.com/RPM-GPG-KEY-netuitive
+priority=10
- change mode from '' to '0644'
- restore selinux security context
* execute[yum clean metadata netuitive] action run
- execute yum clean metadata --disablerepo=* --enablerepo=netuitive
* execute[yum-makecache-netuitive] action run
================================================================================
Error executing action `run` on resource 'execute[yum-makecache-netuitive]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of yum -q -y makecache --disablerepo=* --enablerepo=netuitive ----
STDOUT:
STDERR: https://repos.app.netuitive.com/rpm/noarch/base/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: netuitive. Please verify its path and try again
---- End output of yum -q -y makecache --disablerepo=* --enablerepo=netuitive ----
Ran yum -q -y makecache --disablerepo=* --enablerepo=netuitive returned 1
Resource Declaration:
---------------------
# In /tmp/kitchen/cookbooks/yum/providers/repository.rb
69: execute "yum-makecache-#{new_resource.repositoryid}" do
70: command "yum -q -y makecache --disablerepo=* --enablerepo=#{new_resource.repositoryid}"
71: action :nothing
72: only_if { new_resource.enabled }
73: end
74:
Compiled Resource:
------------------
# Declared in /tmp/kitchen/cookbooks/yum/providers/repository.rb:69:in `block in class_from_file'
execute("yum-makecache-netuitive") do
action [:nothing]
retries 0
retry_delay 2
default_guard_interpreter :execute
command "yum -q -y makecache --disablerepo=* --enablerepo=netuitive"
backup 5
returns 0
declared_type :execute
cookbook_name :netuitive
only_if { #code block }
end
================================================================================
Error executing action `create` on resource 'yum_repository[netuitive]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
execute[yum-makecache-netuitive] (/tmp/kitchen/cookbooks/yum/providers/repository.rb line 69) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of yum -q -y makecache --disablerepo=* --enablerepo=netuitive ----
STDOUT:
STDERR: https://repos.app.netuitive.com/rpm/noarch/base/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: netuitive. Please verify its path and try again
---- End output of yum -q -y makecache --disablerepo=* --enablerepo=netuitive ----
Ran yum -q -y makecache --disablerepo=* --enablerepo=netuitive returned 1
Resource Declaration:
---------------------
# In /tmp/kitchen/cookbooks/netuitive/libraries/provider_repo.rb
46: yum_repository 'netuitive' do
47: description 'Netuitive EPEL Repo'
48: url new_resource.repo_urls['rhel'] + '/base'
49: gpgkey new_resource.repo_keys['rhel']
50: gpgcheck true
51: priority new_resource.repo_priority_pins['rhel']
52: end
53: end
Compiled Resource:
------------------
# Declared in /tmp/kitchen/cookbooks/netuitive/libraries/provider_repo.rb:46:in `block in <class:NetuitiveRepoProvider>'
yum_repository("netuitive") do
action [:create]
updated true
updated_by_last_action true
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :yum_repository
cookbook_name :netuitive
description "Netuitive EPEL Repo"
baseurl "https://repos.app.netuitive.com/rpm/noarch/base"
gpgkey "https://repos.app.netuitive.com/RPM-GPG-KEY-netuitive"
gpgcheck true
priority "10"
repositoryid "netuitive"
mode "0644"
make_cache true
clean_metadata true
enabled true
end
Running handlers:
[2016-03-07T20:07:37+00:00] ERROR: Running exception handlers
Running handlers complete
[2016-03-07T20:07:37+00:00] ERROR: Exception handlers complete
Chef Client failed. 3 resources updated in 6.719883252 seconds
[2016-03-07T20:07:37+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
[2016-03-07T20:07:37+00:00] ERROR: yum_repository[netuitive] (/tmp/kitchen/cookbooks/netuitive/libraries/provider_repo.rb line 46) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[yum-makecache-netuitive] (/tmp/kitchen/cookbooks/yum/providers/repository.rb line 69) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of yum -q -y makecache --disablerepo=* --enablerepo=netuitive ----
STDOUT:
STDERR: https://repos.app.netuitive.com/rpm/noarch/base/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: netuitive. Please verify its path and try again
---- End output of yum -q -y makecache --disablerepo=* --enablerepo=netuitive ----
Ran yum -q -y makecache --disablerepo=* --enablerepo=netuitive returned 1
[2016-03-07T20:07:37+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
from chef-netuitive.
@createor this is what I was attempting: https://github.com/Netuitive/chef-netuitive/compare/master...CloudCruiser:feature/epel_support?expand=1
from chef-netuitive.
think its a simple matter of understanding your repo structure...
from chef-netuitive.
So it is! I confirmed the rhel repo url should be 'https://repos.app.netuitive.com/rpm/$basearch/'
from chef-netuitive.
It's worth noting that this change works in fedora, but that centos still fails later because the init script is /etc/init.d/netuitive-agent there.
from chef-netuitive.
@createor I was wondering why we did not have a standard init script location, is there a reason for this?
I am not sure this is something we should be solving at a chef level and more at a package level...thoughts?
from chef-netuitive.
I take it back we are packaging all the different type of init scripts, we just need to detect and select
from chef-netuitive.
@createor I have detection working on systemd, upstart, init.d the problem is that centos has support for upstart but the package is preferring to use init.d is there a reason for this?
from chef-netuitive.
will get you a branch to look at tomorrow
from chef-netuitive.
Related Issues (18)
- We should have a more feature full template HOT 29
- We should have some basic unit testing HOT 2
- bad metadata
- Need to specify cookbook name in template in
- netuitive-agent is not restarted when a custom collector is added or changed HOT 1
- Support language agents
- Backward compatibility for Chef 11 HOT 6
- Document Chef Requirements
- Typo: use_epl_repos should be use_epel_repos HOT 2
- [CI] Need to have integration tests run on prs automatically on travis HOT 2
- Support for chef client 12.16
- Fix travis badge to go to the right repo
- Integrate travis-ci to push to supermarket on git tag HOT 18
- Add Windows Support HOT 2
- Moderate severity security vulnerability detected in rack HOT 2
- Chef Support Updates and CI fixes HOT 9
- switch travis ci test
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chef-netuitive.