saltstack / salt

Software to automate the management and configuration of any infrastructure or application at scale. Install Salt from the Salt package repositories here:
https://docs.saltproject.io/salt/install-guide/en/latest/
Apache License 2.0
14.22k stars 5.49k forks source link

FX2 proxy-minion dellchassis.switch state broken #28948

Closed cedwards closed 8 years ago

cedwards commented 9 years ago

I discovered today that applying the dellchassis.switch state results in a Traceback. Oddly enough using test=True responds appropriately, but once it's removed I get the following:

----------
          ID: switch-2
    Function: dellchassis.switch
      Result: False
     Comment: An exception occurred in this state: Traceback (most recent call last):
                File "/usr/lib/python2.7/site-packages/salt/state.py", line 1594, in call
                  **cdata['kwargs'])
                File "/usr/lib/python2.7/site-packages/salt/loader.py", line 1491, in wrapper
                  return f(*args, **kwargs)
                File "/usr/lib/python2.7/site-packages/salt/states/dellchassis.py", line 495, in switch
                  current_nic = __salt__['chassis.cmd']('network_info', module=name)
                File "/usr/lib/python2.7/site-packages/salt/modules/chassis.py", line 44, in cmd
                  return __proxy__[proxycmd](cmd, *args, **kwargs)
                File "/usr/lib/python2.7/site-packages/salt/proxy/fx2.py", line 292, in chconfig
                  return __salt__['dracr.'+cmd](*args, **kwargs)
                File "/usr/lib/python2.7/site-packages/salt/modules/dracr.py", line 246, in network_info
                  if module not in inv.get('switch'):
              TypeError: argument of type 'NoneType' is not iterable
     Started: 22:29:27.988392
    Duration: 1770.78 ms
     Changes:
----------
          ID: switch-1
    Function: dellchassis.switch
      Result: False
     Comment: An exception occurred in this state: Traceback (most recent call last):
                File "/usr/lib/python2.7/site-packages/salt/state.py", line 1594, in call
                  **cdata['kwargs'])
                File "/usr/lib/python2.7/site-packages/salt/loader.py", line 1491, in wrapper
                  return f(*args, **kwargs)
                File "/usr/lib/python2.7/site-packages/salt/states/dellchassis.py", line 495, in switch
                  current_nic = __salt__['chassis.cmd']('network_info', module=name)
                File "/usr/lib/python2.7/site-packages/salt/modules/chassis.py", line 44, in cmd
                  return __proxy__[proxycmd](cmd, *args, **kwargs)
                File "/usr/lib/python2.7/site-packages/salt/proxy/fx2.py", line 292, in chconfig
                  return __salt__['dracr.'+cmd](*args, **kwargs)
                File "/usr/lib/python2.7/site-packages/salt/modules/dracr.py", line 246, in network_info
                  if module not in inv.get('switch'):
              TypeError: argument of type 'NoneType' is not iterable
     Started: 22:29:29.759577
    Duration: 1581.087 ms
     Changes:

@cro @rallytime @Ch3LL

cro commented 9 years ago

I think we resolved this today. @cedwards -- let us know after you get done with your rotations tonight. Thanks!

meggiebot commented 8 years ago

ZD-527

cro commented 8 years ago

I think that this might have been caused when the CMC freezes up. I have a check now to throw a better error message.

cro commented 8 years ago

Marking closed, @cedwards feel free to re-open if you find further issues.