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

Proxy minion commands causing exceptions #31585

Closed
frogunder opened this issue Mar 1, 2016 · 2 comments
Closed

Proxy minion commands causing exceptions #31585

frogunder opened this issue Mar 1, 2016 · 2 comments
Assignees
Labels
Bug broken, incorrect, or confusing behavior Proxy-Minion RIoT Relates to integration with cloud providers, hypervisors, API-based services, etc.
Milestone

Comments

@frogunder
Copy link
Contributor

Description of Issue/Question

On a proxy minion setup, when running salt p8000 pkg.list_pkgs, it returns:

p8000:
    The minion function caused an exception: Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/salt/minion.py", line 1210, in _thread_return
        return_data = executor.execute()
      File "/usr/lib/python2.7/site-packages/salt/executors/direct_call.py", line 28, in execute
        return self.func(*self.args, **self.kwargs)
      File "/usr/lib/python2.7/site-packages/salt/modules/ssh_package.py", line 31, in list_pkgs
        return __proxy__['ssh_sample.package_list']()
      File "/usr/lib/python2.7/site-packages/salt/loader.py", line 1010, in __getitem__
        func = super(LazyLoader, self).__getitem__(item)
      File "/usr/lib/python2.7/site-packages/salt/utils/lazy.py", line 93, in __getitem__
        raise KeyError(key)
    KeyError: 'ssh_sample.package_list'

I get the similar errors when runnig pkg.install and pkg.remove.

These commands are working in version 2015.8.7.

Running salt p8000 test.ping, returns:

p8000:
    The minion function caused an exception: Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/salt/minion.py", line 1210, in _thread_return
        return_data = executor.execute()
      File "/usr/lib/python2.7/site-packages/salt/executors/direct_call.py", line 28, in execute
        return self.func(*self.args, **self.kwargs)
      File "/usr/lib/python2.7/site-packages/salt/modules/test.py", line 119, in ping
        return __opts__['proxymodule'][ping_cmd]()
    KeyError: 'proxy module'

This also fails in 2015.8.7.

Setup

install bottle
git clone https://github.com/saltstack/salt-manual-tests.git
git clone https://github.com/saltstack/salt-contrib.git

/etc/salt/master

pillar_roots:
  base:
    - /root/salt-manual-tests/proxy/pillar

file_roots:
  base:
    - /root/salt-manual-tests/proxy/states

/etc/salt/proxy

master: localhost

Replaced {{ip}} with the IP address of the system in /root/salt-manual-tests/proxy/pillar/proxy8000.sls

Steps to Reproduce Issue

salt-master -l debug
cd ~/salt-contrib/proxyminion_rest_example/ && python rest.py --address=IP-addr --port=8000
browse to http://IP-addr:8000 (watch this page)
salt-proxy --proxyid=p8000 -l debug
salt-key -ya p8000

Versions Report

Salt Version:
           Salt: 2016.3.0rc1-575-ge1ade05

Dependency Versions:
         Jinja2: 2.7.2
       M2Crypto: 0.21.1
           Mako: Not Installed
         PyYAML: 3.11
          PyZMQ: 14.7.0
         Python: 2.7.5 (default, Jun 17 2014, 18:11:42)
           RAET: Not Installed
        Tornado: 4.2.1
            ZMQ: 4.0.5
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: Not Installed
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
        libgit2: Not Installed
        libnacl: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.6
   mysql-python: Not Installed
      pycparser: Not Installed
       pycrypto: 2.6.1
         pygit2: Not Installed
   python-gnupg: Not Installed
          smmap: Not Installed
        timelib: Not Installed

System Versions:
           dist: centos 7.0.1406 Core
        machine: x86_64
        release: 4.4.0-x86_64-linode63
         system: CentOS Linux 7.0.1406 Core
@cro cro self-assigned this Mar 1, 2016
@cro cro added this to the B 1 milestone Mar 1, 2016
@cro cro added Bug broken, incorrect, or confusing behavior RIoT Relates to integration with cloud providers, hypervisors, API-based services, etc. Proxy-Minion TEAM RIoT labels Mar 1, 2016
@cro
Copy link
Contributor

cro commented Mar 1, 2016

@frogunder Ready for you to try again as soon as these are merged.

cro added a commit that referenced this issue Mar 2, 2016
cachedout pushed a commit that referenced this issue Mar 3, 2016
@frogunder
Copy link
Contributor Author

@cro - Retested and everything is working fine.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior Proxy-Minion RIoT Relates to integration with cloud providers, hypervisors, API-based services, etc.
Projects
None yet
Development

No branches or pull requests

3 participants