Skip to content

Instantly share code, notes, and snippets.

@abemusic
Last active December 30, 2015 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abemusic/7813024 to your computer and use it in GitHub Desktop.
Save abemusic/7813024 to your computer and use it in GitHub Desktop.
Error using sources with pkg.installed state.
install_accumulo:
pkg:
- installed
- sources:
- accumulo: 'http://apache.mirrors.hoobly.com/accumulo/1.5.0/accumulo-1.5.0-bin.rpm'
base:
----------
State: - pkg
Name: install_accumulo
Function: installed
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/salt/state.py", line 1316, in call
self.verify_ret(ret)
File "/usr/lib64/python2.6/contextlib.py", line 34, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python2.6/site-packages/salt/utils/context.py", line 43, in func_globals_inject
yield
File "/usr/lib/python2.6/site-packages/salt/state.py", line 1315, in call
**cdata['kwargs'])
File "/usr/lib/python2.6/site-packages/salt/states/pkg.py", line 465, in installed
**kwargs)
File "/usr/lib/python2.6/site-packages/salt/modules/yumpkg.py", line 644, in install
**kwargs)
File "/usr/lib/python2.6/site-packages/salt/modules/pkg_resource.py", line 254, in parse_targets
problems = _verify_binary_pkg(srcinfo)
File "/usr/lib/python2.6/site-packages/salt/modules/pkg_resource.py", line 174, in _verify_binary_pkg
pkgmeta_name, pkgmeta_version = _parse_pkg_meta(pkg_path)
File "/usr/lib/python2.6/site-packages/salt/modules/pkg_resource.py", line 120, in _parse_pkg_meta
return metaparser(path)
File "/usr/lib/python2.6/site-packages/salt/modules/pkg_resource.py", line 41, in parse_rpm
pkginfo = _parse_pkginfo(pkginfo)
File "/usr/lib/python2.6/site-packages/salt/modules/yumpkg5.py", line 100, in _parse_pkginfo
if __grains__.get('cpuarch') in __SUFFIX_NOT_NEEDED \
NameError: global name '__SUFFIX_NOT_NEEDED' is not defined
Changes:
----------
Summary
------------
Succeeded: 0
Failed: 1
------------
Total: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment