Skip to content

Instantly share code, notes, and snippets.

@pcn
Created November 2, 2018 19:06
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 pcn/47e1a2f6cb49fd93caf55429631a4edf to your computer and use it in GitHub Desktop.
Save pcn/47e1a2f6cb49fd93caf55429631a4edf to your computer and use it in GitHub Desktop.
Why is the lazyloader not loading this up?
2018-11-02 19:04:19,094 [salt.loaded.ext.engines.autoscale_ecs][WARNING ] AUTOSCALE: Got an unhandled exception: Traceback (most recent call last):
  File "/srv/salt/engines/autoscale_ecs.py", line 357, in start
    result = _process_message(msg_data)
  File "/srv/salt/engines/autoscale_ecs.py", line 285, in _process_message
    return event_handler(msg)
  File "/srv/salt/engines/autoscale_ecs.py", line 178, in launch_instance
    if _instance_launch(msg['EC2InstanceId'], msg['Region']):
  File "/srv/salt/engines/autoscale_ecs.py", line 82, in _instance_launch
    rc.cmd('cloudaws.enabled_detailed_monitoring', [instance_id])
  File "/usr/lib/python2.7/dist-packages/salt/runner.py", line 156, in cmd
    full_return)
  File "/usr/lib/python2.7/dist-packages/salt/client/mixins.py", line 233, in cmd
    self.functions[fun], arglist, pub_data
  File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1142, in __getitem__
    func = super(LazyLoader, self).__getitem__(item)
  File "/usr/lib/python2.7/dist-packages/salt/utils/lazy.py", line 104, in __getitem__
    raise KeyError(key)
KeyError: 'cloudaws.enabled_detailed_monitoring'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment