Skip to content

Instantly share code, notes, and snippets.

Created September 11, 2015 03:12
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 anonymous/c0ff22784cb56f5c334a to your computer and use it in GitHub Desktop.
Save anonymous/c0ff22784cb56f5c334a to your computer and use it in GitHub Desktop.
irtual__() is wrongly returning `None`. It should either return `True`, `False` or a new name. If you're the developer of the module 'foreman', please fix this.
2015-09-10 23:06:23,460 [salt.loader ][DEBUG ][21731] Error loading module.ipmi: No module named pyghmi.ipmi
2015-09-10 23:06:23,512 [salt.loader ][DEBUG ][21731] Error loading module.tls: ['PyOpenSSL version 0.14 or later must be installed before this module can be used.']
2015-09-10 23:06:23,524 [salt.loader ][DEBUG ][21731] Error loading module.nacl: libnacl import error, perhaps missing python libnacl package
2015-09-10 23:06:23,549 [salt.loader ][DEBUG ][21731] Error loading module.npm: npm execution module could not be loaded because the npm binary could not be located
2015-09-10 23:06:23,654 [salt.utils.lazy ][DEBUG ][21731] Could not LazyLoad redis.get_key
2015-09-10 23:06:23,657 [salt.utils.lazy ][DEBUG ][21731] Could not LazyLoad mysql.ext_pillar
2015-09-10 23:06:23,657 [salt.pillar ][CRITICAL][21731] Specified ext_pillar interface mysql is unavailable
2015-09-10 23:06:23,707 [salt.utils.job ][INFO ][21728] Got return from WebServer01 for job 20150910230623377690
2015-09-10 23:06:23,708 [salt.utils.event ][DEBUG ][21728] Sending event - data = {'fun_args': [], 'jid': '20150910230623377690', 'return': {'installer_name_aws': 'ubuntu', 'installer_name_digitalocean': 'root', 'installer_group_aws': 'ubuntu', 'installer_group_digitalocean': 'root'}, 'retcode': 0, 'success': True, 'cmd': '_return', '_stamp': '2015-09-11T03:06:23.707579', 'fun': 'pillar.items', 'id': 'WebServer01'}
2015-09-10 23:06:28,716 [salt.config ][DEBUG ][21713] Reading configuration from /etc/salt/master
2015-09-10 23:06:28,776 [salt.config ][DEBUG ][21713] Guessing ID. The id can be explicitly in set /etc/salt/minion
2015-09-10 23:06:28,805 [salt.config ][INFO ][21713] Found minion id from generate_minion_id(): SaltMaster
2015-09-10 23:06:28,806 [salt.config ][DEBUG ][21713] Reading configuration from /etc/salt/master
2015-09-10 23:06:29,044 [salt.utils.lazy ][DEBUG ][21713] LazyLoaded local_cache.clean_old_jobs
2015-09-10 23:06:29,054 [salt.utils.lazy ][DEBUG ][21713] Could not LazyLoad config.merge
2015-09-10 23:06:29,054 [salt.fileserver ][DEBUG ][21713] Updating roots fileserver cache
2015-09-10 23:06:29,056 [salt.utils.verify][DEBUG ][21713] This salt-master instance has accepted 2 minion keys.
root@SaltMaster:/srv/salt# i though i understood this one but turns out i didnt make enough notes :(
-bash: syntax error near unexpected token `('
root@SaltMaster:/srv/salt# sudo vim /etc/salt/master
root@SaltMaster:/srv/salt# sudo salt "Web*" pillar.items ext_pillarWebServer01:
----------
root@SaltMaster:/srv/salt# sudo rm /var/log/salt/master
root@SaltMaster:/srv/salt# sudo salt "Web*" pillar.items ext_pillar
^[[AWebServer01:
----------
root@SaltMaster:/srv/salt# sudo cat /var/log/salt/master
2015-09-10 23:11:30,506 [salt.master ][INFO ][21731] Clear payload received with command publish
2015-09-10 23:11:30,509 [salt.utils.event ][DEBUG ][21731] Sending event - data = {'_stamp': '2015-09-11T03:11:30.509243', 'minions': ['WebServer01']}
2015-09-10 23:11:30,512 [salt.utils.event ][DEBUG ][21731] Sending event - data = {'tgt_type': 'glob', 'jid': '20150910231130508595', 'tgt': 'Web*', '_stamp': '2015-09-11T03:11:30.511410', 'user': 'sudo_root', 'arg': ['ext_pillar'], 'fun': 'pillar.items', 'minions': ['WebServer01']}
2015-09-10 23:11:30,513 [salt.master ][INFO ][21731] User sudo_root Published command pillar.items with jid 20150910231130508595
2015-09-10 23:11:30,514 [salt.master ][DEBUG ][21731] Published command details {'tgt_type': 'glob', 'jid': '20150910231130508595', 'tgt': 'Web*', 'ret': '', 'user': 'sudo_root', 'arg': ['ext_pillar'], 'fun': 'pillar.items'}
2015-09-10 23:11:30,548 [salt.utils.lazy ][DEBUG ][21728] LazyLoaded jinja.render
2015-09-10 23:11:30,550 [salt.utils.lazy ][DEBUG ][21728] LazyLoaded yaml.render
2015-09-10 23:11:30,553 [salt.utils.lazy ][DEBUG ][21728] LazyLoaded cmd.run
2015-09-10 23:11:30,554 [salt.utils.jinja ][DEBUG ][21728] Jinja search path: ['/srv/pillar']
2015-09-10 23:11:30,560 [salt.template ][DEBUG ][21728] Rendered data from file: /srv/pillar/top.sls:
base:
'*':
- base
2015-09-10 23:11:30,572 [salt.utils.lazy ][DEBUG ][21728] LazyLoaded config.get
2015-09-10 23:11:30,573 [salt.loaded.int.render.yaml][DEBUG ][21728] Results of YAML rendering:
OrderedDict([('base', OrderedDict([('*', ['base'])]))])
2015-09-10 23:11:30,574 [salt.utils.jinja ][DEBUG ][21728] Jinja search path: ['/srv/pillar']
2015-09-10 23:11:30,575 [salt.template ][DEBUG ][21728] Rendered data from file: /srv/pillar/base.sls:
installer_name_aws: ubuntu
installer_group_aws: ubuntu
installer_name_digitalocean: root
installer_group_digitalocean: root
2015-09-10 23:11:30,577 [salt.loaded.int.render.yaml][DEBUG ][21728] Results of YAML rendering:
OrderedDict([('installer_name_aws', 'ubuntu'), ('installer_group_aws', 'ubuntu'), ('installer_name_digitalocean', 'root'), ('installer_group_digitalocean', 'root')])
2015-09-10 23:11:30,583 [salt.loader ][WARNING ][21728] salt.loaded.int.pillar.foreman.__virtual__() is wrongly returning `None`. It should either return `True`, `False` or a new name. If you're the developer of the module 'foreman', please fix this.
2015-09-10 23:11:30,610 [salt.loader ][DEBUG ][21728] Error loading module.ipmi: No module named pyghmi.ipmi
2015-09-10 23:11:30,715 [salt.loader ][DEBUG ][21728] Error loading module.tls: ['PyOpenSSL version 0.14 or later must be installed before this module can be used.']
2015-09-10 23:11:30,765 [salt.config ][DEBUG ][21713] Reading configuration from /etc/salt/master
2015-09-10 23:11:30,860 [salt.config ][DEBUG ][21713] Guessing ID. The id can be explicitly in set /etc/salt/minion
2015-09-10 23:11:30,887 [salt.loader ][DEBUG ][21728] Error loading module.nacl: libnacl import error, perhaps missing python libnacl package
2015-09-10 23:11:30,926 [salt.config ][INFO ][21713] Found minion id from generate_minion_id(): SaltMaster
2015-09-10 23:11:30,927 [salt.config ][DEBUG ][21713] Reading configuration from /etc/salt/master
2015-09-10 23:11:30,949 [salt.loader ][DEBUG ][21728] Error loading module.npm: npm execution module could not be loaded because the npm binary could not be located
2015-09-10 23:11:31,245 [salt.utils.lazy ][DEBUG ][21728] Could not LazyLoad redis.get_key
2015-09-10 23:11:31,253 [salt.utils.lazy ][DEBUG ][21728] Could not LazyLoad mysql.ext_pillar
2015-09-10 23:11:31,254 [salt.pillar ][CRITICAL][21728] Specified ext_pillar interface mysql is unavailable
2015-09-10 23:11:31,308 [salt.utils.job ][INFO ][21722] Got return from WebServer01 for job 20150910231130508595
2015-09-10 23:11:31,309 [salt.utils.event ][DEBUG ][21722] Sending event - data = {'fun_args': ['ext_pillar'], 'jid': '20150910231130508595', 'return': {}, 'retcode': 0, 'success': True, 'cmd': '_return', '_stamp': '2015-09-11T03:11:31.308513', 'fun': 'pillar.items', 'id': 'WebServer01'}
2015-09-10 23:11:31,390 [salt.utils.lazy ][DEBUG ][21713] LazyLoaded local_cache.clean_old_jobs
2015-09-10 23:11:31,400 [salt.utils.lazy ][DEBUG ][21713] Could not LazyLoad config.merge
2015-09-10 23:11:31,401 [salt.fileserver ][DEBUG ][21713] Updating roots fileserver cache
2015-09-10 23:11:31,403 [salt.utils.verify][DEBUG ][21713] This salt-master instance has accepted 2 minion keys.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment