Created
April 16, 2017 04:23
-
-
Save mtkennerly/a5d823b9c742cee30cfc332b685ce138 to your computer and use it in GitHub Desktop.
Salt TypeError when removing a group on Windows Server 2012 R2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo: | |
group.absent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# salt-call state.highstate --log-level debug > output.txt 2>&1 | |
[DEBUG ] Reading configuration from c:\salt\conf\minion | |
[DEBUG ] Using cached minion ID from c:\salt\conf\minion_id: vagrant-2012-r2.Belkin | |
[DEBUG ] Configuration file path: c:\salt\conf\minion | |
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged. | |
[DEBUG ] Reading configuration from c:\salt\conf\minion | |
[DEBUG ] Determining pillar cache | |
[DEBUG ] LazyLoaded jinja.render | |
[DEBUG ] LazyLoaded yaml.render | |
[DEBUG ] LazyLoaded jinja.render | |
[DEBUG ] LazyLoaded yaml.render | |
[DEBUG ] LazyLoaded state.highstate | |
[DEBUG ] LazyLoaded grains.get | |
[DEBUG ] LazyLoaded saltutil.is_running | |
[DEBUG ] LazyLoaded roots.envs | |
[DEBUG ] Could not LazyLoad roots.init: 'roots.init' is not available. | |
[DEBUG ] Updating roots fileserver cache | |
[DEBUG ] Determining pillar cache | |
[DEBUG ] LazyLoaded jinja.render | |
[DEBUG ] LazyLoaded yaml.render | |
[INFO ] Loading fresh modules for state activity | |
[DEBUG ] LazyLoaded jinja.render | |
[DEBUG ] LazyLoaded yaml.render | |
[DEBUG ] In saltenv 'base', looking at rel_path 'top.sls' to resolve 'salt://top.sls' | |
[DEBUG ] In saltenv 'base', ** considering ** path 'c:\salt\var\cache\salt\minion\files\base\top.sls' to resolve 'salt://top.sls' | |
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://top.sls' | |
[DEBUG ] compile template: c:\salt\var\cache\salt\minion\files\base\top.sls | |
[DEBUG ] Jinja search path: ['c:\\salt\\var\\cache\\salt\\minion\\files\\base'] | |
[PROFILE ] Time (in seconds) to render 'c:\salt\var\cache\salt\minion\files\base\top.sls' using 'jinja' renderer: 0.0 | |
[DEBUG ] Rendered data from file: c:\salt\var\cache\salt\minion\files\base\top.sls: | |
base: | |
'*': | |
- demo | |
[DEBUG ] LazyLoaded config.get | |
[DEBUG ] Results of YAML rendering: | |
OrderedDict([('base', OrderedDict([('*', ['demo'])]))]) | |
[PROFILE ] Time (in seconds) to render 'c:\salt\var\cache\salt\minion\files\base\top.sls' using 'yaml' renderer: 0.0469999313354 | |
[DEBUG ] compound_match: vagrant-2012-r2.Belkin ? * | |
[DEBUG ] compound_match vagrant-2012-r2.Belkin ? "*" => "True" | |
[DEBUG ] LazyLoaded saltutil.sync_all | |
[DEBUG ] Syncing all | |
[INFO ] Creating module dir 'c:\salt\var\cache\salt\minion\extmods\beacons' | |
[DEBUG ] LazyLoaded roots.envs | |
[DEBUG ] Could not LazyLoad roots.init: 'roots.init' is not available. | |
[INFO ] Syncing beacons for environment 'base' | |
[INFO ] Loading cache from salt://_beacons, for base) | |
[INFO ] Caching directory '_beacons/' for environment 'base' | |
[DEBUG ] Local cache dir: 'c:\salt\var\cache\salt\minion\files\base\_beacons' | |
[INFO ] Creating module dir 'c:\salt\var\cache\salt\minion\extmods\modules' | |
[DEBUG ] LazyLoaded roots.envs | |
[DEBUG ] Could not LazyLoad roots.init: 'roots.init' is not available. | |
[INFO ] Syncing modules for environment 'base' | |
[INFO ] Loading cache from salt://_modules, for base) | |
[INFO ] Caching directory '_modules/' for environment 'base' | |
[DEBUG ] Local cache dir: 'c:\salt\var\cache\salt\minion\files\base\_modules' | |
[INFO ] Creating module dir 'c:\salt\var\cache\salt\minion\extmods\states' | |
[DEBUG ] LazyLoaded roots.envs | |
[DEBUG ] Could not LazyLoad roots.init: 'roots.init' is not available. | |
[INFO ] Syncing states for environment 'base' | |
[INFO ] Loading cache from salt://_states, for base) | |
[INFO ] Caching directory '_states/' for environment 'base' | |
[DEBUG ] Local cache dir: 'c:\salt\var\cache\salt\minion\files\base\_states' | |
[INFO ] Creating module dir 'c:\salt\var\cache\salt\minion\extmods\sdb' | |
[DEBUG ] LazyLoaded roots.envs | |
[DEBUG ] Could not LazyLoad roots.init: 'roots.init' is not available. | |
[INFO ] Syncing sdb for environment 'base' | |
[INFO ] Loading cache from salt://_sdb, for base) | |
[INFO ] Caching directory '_sdb/' for environment 'base' | |
[DEBUG ] Local cache dir: 'c:\salt\var\cache\salt\minion\files\base\_sdb' | |
[INFO ] Creating module dir 'c:\salt\var\cache\salt\minion\extmods\grains' | |
[DEBUG ] LazyLoaded roots.envs | |
[DEBUG ] Could not LazyLoad roots.init: 'roots.init' is not available. | |
[INFO ] Syncing grains for environment 'base' | |
[INFO ] Loading cache from salt://_grains, for base) | |
[INFO ] Caching directory '_grains/' for environment 'base' | |
[DEBUG ] Local cache dir: 'c:\salt\var\cache\salt\minion\files\base\_grains' | |
[INFO ] Creating module dir 'c:\salt\var\cache\salt\minion\extmods\renderers' | |
[DEBUG ] LazyLoaded roots.envs | |
[DEBUG ] Could not LazyLoad roots.init: 'roots.init' is not available. | |
[INFO ] Syncing renderers for environment 'base' | |
[INFO ] Loading cache from salt://_renderers, for base) | |
[INFO ] Caching directory '_renderers/' for environment 'base' | |
[DEBUG ] Local cache dir: 'c:\salt\var\cache\salt\minion\files\base\_renderers' | |
[INFO ] Creating module dir 'c:\salt\var\cache\salt\minion\extmods\returners' | |
[DEBUG ] LazyLoaded roots.envs | |
[DEBUG ] Could not LazyLoad roots.init: 'roots.init' is not available. | |
[INFO ] Syncing returners for environment 'base' | |
[INFO ] Loading cache from salt://_returners, for base) | |
[INFO ] Caching directory '_returners/' for environment 'base' | |
[DEBUG ] Local cache dir: 'c:\salt\var\cache\salt\minion\files\base\_returners' | |
[INFO ] Creating module dir 'c:\salt\var\cache\salt\minion\extmods\output' | |
[DEBUG ] LazyLoaded roots.envs | |
[DEBUG ] Could not LazyLoad roots.init: 'roots.init' is not available. | |
[INFO ] Syncing output for environment 'base' | |
[INFO ] Loading cache from salt://_output, for base) | |
[INFO ] Caching directory '_output/' for environment 'base' | |
[DEBUG ] Local cache dir: 'c:\salt\var\cache\salt\minion\files\base\_output' | |
[INFO ] Creating module dir 'c:\salt\var\cache\salt\minion\extmods\utils' | |
[DEBUG ] LazyLoaded roots.envs | |
[DEBUG ] Could not LazyLoad roots.init: 'roots.init' is not available. | |
[INFO ] Syncing utils for environment 'base' | |
[INFO ] Loading cache from salt://_utils, for base) | |
[INFO ] Caching directory '_utils/' for environment 'base' | |
[DEBUG ] Local cache dir: 'c:\salt\var\cache\salt\minion\files\base\_utils' | |
[INFO ] Creating module dir 'c:\salt\var\cache\salt\minion\extmods\log_handlers' | |
[DEBUG ] LazyLoaded roots.envs | |
[DEBUG ] Could not LazyLoad roots.init: 'roots.init' is not available. | |
[INFO ] Syncing log_handlers for environment 'base' | |
[INFO ] Loading cache from salt://_log_handlers, for base) | |
[INFO ] Caching directory '_log_handlers/' for environment 'base' | |
[DEBUG ] Local cache dir: 'c:\salt\var\cache\salt\minion\files\base\_log_handlers' | |
[INFO ] Creating module dir 'c:\salt\var\cache\salt\minion\extmods\proxy' | |
[DEBUG ] LazyLoaded roots.envs | |
[DEBUG ] Could not LazyLoad roots.init: 'roots.init' is not available. | |
[INFO ] Syncing proxy for environment 'base' | |
[INFO ] Loading cache from salt://_proxy, for base) | |
[INFO ] Caching directory '_proxy/' for environment 'base' | |
[DEBUG ] Local cache dir: 'c:\salt\var\cache\salt\minion\files\base\_proxy' | |
[INFO ] Creating module dir 'c:\salt\var\cache\salt\minion\extmods\engines' | |
[DEBUG ] LazyLoaded roots.envs | |
[DEBUG ] Could not LazyLoad roots.init: 'roots.init' is not available. | |
[INFO ] Syncing engines for environment 'base' | |
[INFO ] Loading cache from salt://_engines, for base) | |
[INFO ] Caching directory '_engines/' for environment 'base' | |
[DEBUG ] Local cache dir: 'c:\salt\var\cache\salt\minion\files\base\_engines' | |
[INFO ] Creating module dir 'c:\salt\var\cache\salt\minion\extmods\pillar' | |
[DEBUG ] LazyLoaded roots.envs | |
[DEBUG ] Could not LazyLoad roots.init: 'roots.init' is not available. | |
[INFO ] Syncing pillar for environment 'base' | |
[INFO ] Loading cache from salt://_pillar, for base) | |
[INFO ] Caching directory '_pillar/' for environment 'base' | |
[DEBUG ] Local cache dir: 'c:\salt\var\cache\salt\minion\files\base\_pillar' | |
[DEBUG ] Refreshing modules... | |
[INFO ] Loading fresh modules for state activity | |
[DEBUG ] LazyLoaded jinja.render | |
[DEBUG ] LazyLoaded yaml.render | |
[DEBUG ] LazyLoaded saltutil.refresh_modules | |
[DEBUG ] LazyLoaded event.fire | |
[DEBUG ] SaltEvent PUB socket URI: 4510 | |
[DEBUG ] SaltEvent PULL socket URI: 4511 | |
[DEBUG ] Initializing new IPCClient for path: 4511 | |
[DEBUG ] Sending event: tag = module_refresh; data = {'_stamp': '2017-04-16T03:53:18.816000'} | |
[DEBUG ] In saltenv 'base', looking at rel_path 'demo.sls' to resolve 'salt://demo.sls' | |
[DEBUG ] In saltenv 'base', ** considering ** path 'c:\salt\var\cache\salt\minion\files\base\demo.sls' to resolve 'salt://demo.sls' | |
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://demo.sls' | |
[DEBUG ] compile template: c:\salt\var\cache\salt\minion\files\base\demo.sls | |
[DEBUG ] Jinja search path: ['c:\\salt\\var\\cache\\salt\\minion\\files\\base'] | |
[PROFILE ] Time (in seconds) to render 'c:\salt\var\cache\salt\minion\files\base\demo.sls' using 'jinja' renderer: 0.0 | |
[DEBUG ] Rendered data from file: c:\salt\var\cache\salt\minion\files\base\demo.sls: | |
foo: | |
group.absent | |
[DEBUG ] LazyLoaded config.get | |
[DEBUG ] Results of YAML rendering: | |
OrderedDict([('foo', 'group.absent')]) | |
[PROFILE ] Time (in seconds) to render 'c:\salt\var\cache\salt\minion\files\base\demo.sls' using 'yaml' renderer: 0.0 | |
[DEBUG ] LazyLoaded cmd.run | |
[DEBUG ] LazyLoaded group.absent | |
[INFO ] Running state [foo] at time 20:53:18.832000 | |
[INFO ] Executing state group.absent for foo | |
[DEBUG ] LazyLoaded group.info | |
[ERROR ] {'foo': ''} | |
[INFO ] Completed state [foo] at time 20:53:18.879000 duration_in_ms=47.0 | |
[DEBUG ] File c:\salt\var\cache\salt\minion\accumulator\86657904 does not exist, no need to cleanup. | |
[DEBUG ] LazyLoaded config.option | |
[DEBUG ] LazyLoaded highstate.output | |
[DEBUG ] Traceback (most recent call last): | |
File "C:\salt\bin\lib\site-packages\salt\output\__init__.py", line 38, in try_printout | |
printout = get_printout(out, opts)(data, **kwargs) | |
File "C:\salt\bin\lib\site-packages\salt\output\highstate.py", line 146, in output | |
for host, hostdata in six.iteritems(data) | |
File "C:\salt\bin\lib\site-packages\salt\output\highstate.py", line 208, in _format_host | |
rcounts.setdefault(ret['result'], 0) | |
TypeError: unhashable type: 'dict' | |
[DEBUG ] LazyLoaded nested.output | |
local: | |
---------- | |
group_|-foo_|-foo_|-absent: | |
---------- | |
__id__: | |
foo | |
__run_num__: | |
0 | |
changes: | |
---------- | |
foo: | |
comment: | |
Removed group foo | |
duration: | |
47.0 | |
name: | |
foo | |
result: | |
---------- | |
changes: | |
- Successfully removed group foo | |
comment: | |
name: | |
foo | |
result: | |
True | |
start_time: | |
20:53:18.832000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file_client: local | |
state_output: mixed | |
file_roots: | |
base: | |
- /srv/salt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
base: | |
'*': | |
- demo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.box = "opentable/win-2012r2-standard-amd64-nocm" | |
config.vm.synced_folder "salt_srv/salt", "/srv/salt" | |
config.vm.provider "virtualbox" do |vb| | |
vb.gui = true | |
end | |
config.vm.provision "file" do |file| | |
file.source = "salt_srv/minion" | |
file.destination = "/salt/conf/minion" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# salt --versions | |
Salt Version: | |
Salt: 2016.11.3 | |
Dependency Versions: | |
cffi: 1.7.0 | |
cherrypy: unknown | |
dateutil: 2.5.3 | |
gitdb: 0.6.4 | |
gitpython: 2.0.8 | |
ioflo: 1.5.5 | |
Jinja2: 2.9.4 | |
libgit2: Not Installed | |
libnacl: 1.4.5 | |
M2Crypto: Not Installed | |
Mako: 1.0.4 | |
msgpack-pure: Not Installed | |
msgpack-python: 0.4.8 | |
mysql-python: Not Installed | |
pycparser: 2.14 | |
pycrypto: 2.6.1 | |
pygit2: Not Installed | |
Python: 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)] | |
python-gnupg: 0.3.8 | |
PyYAML: 3.11 | |
PyZMQ: 16.0.1 | |
RAET: Not Installed | |
smmap: 0.9.0 | |
timelib: 0.2.4 | |
Tornado: 4.4.1 | |
ZMQ: 4.1.6 | |
System Versions: | |
dist: | |
machine: AMD64 | |
release: 2012ServerR2 | |
system: Windows | |
version: 2012ServerR2 6.3.9600 Multiprocessor Free |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment