Skip to content
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

rum yum clean before puppet to get rid of apparent stale yum metadata #8

Closed
wants to merge 1 commit into from

Conversation

multi-io
Copy link
Contributor

Provisioning of the icinga1x box is broken because "yum install tomcat6" fails (apparently the box image contains some stale yum metadata that shouldn't be in there). It was working until two days ago or so.

$ vagrant up

==> default: Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install tomcat6' returned 1: Error: failure: repodata/a187d1ec58638338d8dffb4015dee12a1e714b1701da7913201f7ef51a3df7c2-filelists.sqlite.bz2 from extras: [Errno 256] No more mirrors to try.
==> default:  You could try using --skip-broken to work around the problem
==> default:  You could try running: rpm -Va --nofiles --nodigest
==> default:
==> default: Error: /Stage[main]/Tomcat6/Package[tomcat6]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install tomcat6' returned 1: Error: failure: repodata/a187d1ec58638338d8dffb4015dee12a1e714b1701da7913201f7ef51a3df7c2-filelists.sqlite.bz2 from extras: [Errno 256] No more mirrors to try.
==> default:  You could try using --skip-broken to work around the problem
==> default:  You could try running: rpm -Va --nofiles --nodigest
==> default:
==> default: Notice: /Stage[main]/Tomcat6/File[/etc/sysconfig/tomcat6]: Dependency Package[tomcat6] has failures: true
==> default: Warning: /Stage[main]/Tomcat6/File[/etc/sysconfig/tomcat6]: Skipping because of failed dependencies
.....
==> default: Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install mysql-connector-java' returned 1: Error: failure: repodata/a187d1ec58638338d8dffb4015dee12a1e714b1701da7913201f7ef51a3df7c2-filelists.sqlite.bz2 from extras: [Errno 256] No more mirrors to try.
==> default:  You could try using --skip-broken to work around the problem
==> default:  You could try running: rpm -Va --nofiles --nodigest
==> default:
==> default: Error: /Stage[main]/Jasperserver/Package[mysql-connector-java]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install mysql-connector-java' returned 1: Error: failure: repodata/a187d1ec58638338d8dffb4015dee12a1e714b1701da7913201f7ef51a3df7c2-filelists.sqlite.bz2 from extras: [Errno 256] No more mirrors to try.
==> default:  You could try using --skip-broken to work around the problem
==> default:  You could try running: rpm -Va --nofiles --nodigest
==> default:
==> default: Notice: /Stage[main]/Icinga-reports/Exec[install-tomcat-mysql-connector]: Dependency Package[tomcat6] has failures: true
.....

Issuing "yum clean all" before the puppet run resolves this. I'm using a separate shell provisioner; alternatively you could probably write an exec resource in puppet (and let Stage[main] depend on it). Fixing the image might be a cleaner solution, but anyway...

@dnsmichi
Copy link
Contributor

Thanks, I do not intend to fix that much in the icinga1x box (the reporting module is primarily holding it off). Your fix is much appreciated and also already applied :) Next time please also create a referencing issue :) https://dev.icinga.org/issues/11024

@dnsmichi dnsmichi closed this Jan 22, 2016
dnsmichi pushed a commit that referenced this pull request Nov 28, 2017
cb0455b1 testing: skip snapshot testing for non-existent artifacts
70d3a621 Release version 6.0.0
c559b206 Merge branch '6.x'
afd1abdc Update metadata and docs for 6.x release
c731c30f manifests: default to 6.x and permit 6 repo version
84bd98eb Merge branch 'master' into 6.x
3ab626d4 Release version 5.2.0
bafcf465 docs: prepare 6.x changelog and migration guide
a6c34d2f testing: add missing stdlib for apt module acceptance tests
d64a07fe metadata: add missing data provider line for earlier puppet versions
c290ccc3 templates: remove puppet 3.x handling for to_yaml weirdness
7d70ba22 testing: fix yaml hook for some versions of puppet in acceptance setup
99ecda50 metadata: require updated puppet 4/5 requirements for 6.x release
34b36f75 testing: updated spec references to facts to use structure notation
83a69a2d testing: remove stdlib from acceptance fixtures
219fc3c3 manifests: use structured facts instead of global fact variables
7dbcc344 manifests: updated parameters, module header docs, and s/anchor/contain/
58133ccf lib: remove now-unnecessary kibana config checker function
1bebac2c many style fixes and travis yml fix; appease rubocop gods
7ae7b49b testing: fix acceptance (utilities requires and more forgiving api tests)
9f2325de update rubocop for 0.51.0 config and gem changes
520866ba testing: fix references to host loop
e77d4eee initial changes for 6.x update
1323ec5b Merge pull request #14 from psaints/master
d9eafd28 service: Added service status option
f8215dc3 Post-5.1.0 empty changelog
94ea7d38 Release version 5.1.0
fe388be7 Merge branch 'apt-4-dep'
002fdd09 metadata: updated dep for apt 4.x module
1fa96840 testing: fix snapshot version parsing for alpha2 versions
c182deeb testing: skip package_source int verification for now
2db84f86 testing: update snapshot parsing to read public dl page
af75cfed Merge branch 'snapshot-testing'
9174ea71 testing: add spec_prep as a prereq for snapshot testing
650df800 lib: remove sprurious abc disabling cop comments
fd336fc9 rubocop: disable abcsize metric cop
ad62aa8c testing: add snapshot tests to travis
84b3b82d testing: implement basic snapshot testing
e8000eec testing: actually copy over apt module files into containers
6ec4a189 manifests: support package installation via source files
459790e7 testing: include documentation coverage tests in basic tests
4470d13d testing: sync up travis config with staged puppet-elasticsearch style
3e0984c1 Release version 5.0.1
0c6e5506 Merge branch 'pr-11'
35053f6a docs: add changelog note for anchor ordering changes
67596d92 RubuCop style fix, remove extra blank line
8dc65beb Added conditional to Gemfile in response to metadata-json-lint 2.0.0 now requiring inclusion of semantic_puppet gem when puppet < 4.9.0
5e7dda45 Add anchor kibana::begin and add to dependency chains so that module sub-classes are contained
2a223245 README: add endorsed shield for forge module
20046913 Updated LICENSE to full form
31e8a349 Release version 5.0
2583b55d metadata: change dashes to slashes in deps for 3.x compatability
662822d6 docs: get code doc to 100% for yard
234bea21 Rakefile: checks for semantic requires that actually work
42cf645c Rakefile: dumb newline spacing cop
c998cc8c docs: initialize empty changelog post-0.3.0
81335b66 Release version 0.3.0
09c9dfbb metadata: updated requirements and OS deps
53408d8f Merge pull request #9 from soxwellfb/puppet3.8
95523918 testing: use :undef instead of 'nil' to test undef conditiions
f15f2be5 testing: don't test 3.8 on distros too new for it
384f0436 testing: 3.x installation via gem on special-case distros
430edba5 testing: support manual gem installation nodeset methods
58b84b6c testing: fix xenial locale installation issue
11c083f6 testing: move amazonlinux to generic unversioned nodeset
29cf846b testing: fix 3.x testing platforms in helpers and travis
b500077e Merge pull request #1 from tylerjl/3.8-tests
83ef7034 tests: only test 3.x on travis on supported hosts
b31bf27c tests: provide for 3.x installation via rubygems
4990c0ca tests: set correct version per distro family
4e24474c template: correctly sub string in 3.x
a9d2edab tests: format yml correctly in 3.x to_yaml calls
74e952f3 tests: retry backoff for api tests
47bb1651 tests: invoke a more controlled spec unit test suite
3d27dff3 tests: reorder installation line to set default vars
d59db974 tests: don't reference unresolvable variable for port in acc tests
1e81d0cc tests: permit package rev in acceptace test versions
14339abe lib: remove 3.x unsupport absolute_path calls (unneeded)
d18e2082 Kill rogue whitespaces
b56f98b5 tests: remove fedora 25 from 3.x acceptance tests
e0b4fffa tests: use install helper env vars for distro 3.x tests
e243ca05 tests: fix foss defaults on 3.x test hosts
295d0ece lib: fix rubocop spacing error in validate_kibana_config
d6c2c075 validate_kibana_config can now fail nil strings as well and empty ones
9abc51f0 Got the right Puppet Gem version in the Travis matrix
9f7fa6c9 Add multiple puppet versions to the the travis matrix
fd31ec6f Add multiple puppet versions to the the travis matrix
e83bc437 Try more sensible rubocop suggestion
ccd61578 More Rubocop cleanup
73bfce08 Rubocop cleanup
dd2181e1 Default testing to Puppet 4.0
892146cb Converted defined type to validate the config hash to a native function.
ffbff60a Merge remote-tracking branch 'upstream/master' into puppet3.8
fcfc3950 Partially update metadata.json
d51b8ea7 Ignore dev/spec files in package build artifact
221d5f5d Initialize empty post-0.2.1 changelog
a49bc76c Release version 0.2.1
a806f6b6 lib: explicitly catch nonzero plugin command return codes
1d46482c Merge pull request #8 from elastic/issue/7
c667db27 lib: observe url parameter in 4.x install operations
2a1f932b Fixed puppet strings for Puppet 3 requirements
75fec9a6 Properly namespace validate_config
dc62e0c1 Should use size() instead of length() for Puppet 3.8
6393574f Puppet linting - commas
ff724f21 Puppet linting
4ce12512 Completed validation checks
8b9722fa Put the correct quotes in
6aea74ff Adding in some parameter validation.
9084ed6a autobefore doesn't exist yet
8789ecb0 Add safe_yaml gem to work around Ruby 2.2
9f744bec Update gemfile for puppet 3.8.7
e0dac862 Remove Puppet4 Typing
6d8dd95a manifest: fix install arrow chain for puppet linter
9e93defd manifests: enforce kibana ownership on config file
6122c1ba manifests: fix alignment style after package rev change

git-subtree-dir: modules/kibana
git-subtree-split: cb0455b10e20c74d0a12798acfb7075c4c72b8d0
dnsmichi pushed a commit that referenced this pull request Aug 16, 2019
e0bf8cfe Merge pull request #179 from olevole/master
8cd1f6e0 fix spec: proper data_dir value for FreeBSD
4333ff9e properly aligned
b37bdb0d repo and package method are the same for FreeBSD
e1aeca52 fix typo
e4aa1eff repo: added case for FreeBSD OS family
d661e22c fix typo
b9e566ad Merge branch 'master' of github.com:olevole/puppet-grafana
4277076e Merge branch 'master' of github.com:olevole/puppet-grafana
b299a124 Merge pull request #180 from voxpupuli/modulesync
e6a50cc9 modulesync 2.8.0
e66e9999 Merge branch 'master' of github.com:olevole/puppet-grafana
cad5c06e Add FreeBSD platform support
b2c5b7e2 Add FreeBSD platform support
69d9cae6 Merge pull request #176 from voxpupuli/afisher_update_dependencies
8c752fee allow puppetlabs/apt 7.x
01eb3f57 Allow puppet/archive 4.x and puppetlabs/stdlib 6.x
fa9bce3d Merge pull request #172 from alexconrey/master
5c47fe5d Fix rubocop issues (#9)
ee7252df fix issue with grafana_folder idempotency apply (#8)
5f08df2f Merge pull request #171 from voxpupuli/modulesync
3011aba0 Update README.md (#7)
f7580a3b fix rubocop warnings (#6)
f86d7c30 Update grafana dashboard resource (#5)
d6a938a4 Rewrite grafana_cli unit test
cd52596e modulesync 2.7.0
d5067d36 Merge pull request #170 from alexconrey/master
2adb0966 update acceptance tests for grafana_folder (#4)
3f6d08c5 Update README.md/create acceptance tests (#3)
e1817961 rubocop fixes (#2)
29c1bfa4 Corrected invalid database config example (#169)
99254e3a Implement grafana folder resource (#1)
ab1c6f58 Use data in modules instead of params.pp (#167)
4c57681f Merge pull request #166 from dhoppe/puppet3_syntax
822a6fd5 Remove Puppet 3 specific syntax
78c361bc Mark passwords as sensitive (#165)
f4c4d9ba Merge pull request #161 from dhoppe/base_url
1b093c7a Merge pull request #164 from voxpupuli/modulesync
411ab48a Merge branch 'master' into base_url
3f98b51c Merge pull request #160 from dhoppe/real_package_source
20c26773 Update to latest available version and make sure the repo configs are unique (#163)
0a84497f modulesync 2.6.0
d5a535ef Fix value of variables base_url and real_archive_source
72ba05ae Fix value of variable real_package_source

git-subtree-dir: .puppet/modules/grafana
git-subtree-split: e0bf8cfe9ac06852fbb423e247e18e765d9d4a8b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants