{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/36461","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/36461/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/36461/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/36461/events","html_url":"https://github.com/saltstack/salt/issues/36461","id":178299512,"number":36461,"title":"AttributeError on salt-master after upgrading from \"2016.3.2\" to \"2016.3.3\"","user":{"login":"HWDexperte","id":1409863,"avatar_url":"https://avatars.githubusercontent.com/u/1409863?v=3","gravatar_id":"","url":"https://api.github.com/users/HWDexperte","html_url":"https://github.com/HWDexperte","followers_url":"https://api.github.com/users/HWDexperte/followers","following_url":"https://api.github.com/users/HWDexperte/following{/other_user}","gists_url":"https://api.github.com/users/HWDexperte/gists{/gist_id}","starred_url":"https://api.github.com/users/HWDexperte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HWDexperte/subscriptions","organizations_url":"https://api.github.com/users/HWDexperte/orgs","repos_url":"https://api.github.com/users/HWDexperte/repos","events_url":"https://api.github.com/users/HWDexperte/events{/privacy}","received_events_url":"https://api.github.com/users/HWDexperte/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-09-21T09:54:15Z","updated_at":"2016-09-21T13:15:47Z","closed_at":null,"body":"### Description of Issue\r\nAfter performing an `apt-get dist-upgrade` on my Debian 8 salt master, the installation via apt failed with this trace:\r\n\r\n```bash\r\n# apt-get dist-upgrade\r\nUnpacking salt-cloud (2016.3.3+ds-1) over (2016.3.2+ds-1) ...\r\nUnpacking salt-master (2016.3.3+ds-1) over (2016.3.2+ds-1) ...\r\nUnpacking salt-common (2016.3.3+ds-1) over (2016.3.2+ds-1) ...\r\n[...]\r\nSetting up salt-common (2016.3.3+ds-1) ...\r\nSetting up salt-cloud (2016.3.3+ds-1) ...\r\nSetting up salt-master (2016.3.3+ds-1) ...\r\n\r\nJob for salt-master.service failed. See 'systemctl status salt-master.service' and 'journalctl -xn' for details.\r\ninvoke-rc.d: initscript salt-master, action \"start\" failed.\r\ndpkg: error processing package salt-master (--configure):\r\n subprocess installed post-installation script returned error exit status 1\r\ndpkg: dependency problems prevent configuration of salt-api:\r\n salt-api depends on salt-master; however:\r\n  Package salt-master is not configured yet.\r\n\r\ndpkg: error processing package salt-api (--configure):\r\n dependency problems - leaving unconfigured\r\nErrors were encountered while processing:\r\n salt-master\r\n salt-api\r\nE: Sub-process /usr/bin/dpkg returned an error code (1)\r\n```\r\n\r\nand `systemctl status salt-master.service` gives me the same output as `cat /var/log/salt/master`:\r\n\r\n```\r\n2016-09-21 11:39:14,969 [salt.log.setup   ][ERROR   ][596] An un-handled exception was caught by salt's global exception handler:\r\nAttributeError: 'NoneType' object has no attribute 'lower'\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/salt-api\", line 8, in <module>\r\n    salt_api()\r\n  File \"/usr/lib/python2.7/dist-packages/salt/scripts.py\", line 464, in salt_api\r\n    sapi.start()\r\n  File \"/usr/lib/python2.7/dist-packages/salt/cli/api.py\", line 79, in start\r\n    super(SaltAPI, self).start()\r\n  File \"/usr/lib/python2.7/dist-packages/salt/utils/parsers.py\", line 941, in start\r\n    self.prepare()\r\n  File \"/usr/lib/python2.7/dist-packages/salt/cli/api.py\", line 53, in prepare\r\n    verify_log(self.config)\r\n  File \"/usr/lib/python2.7/dist-packages/salt/utils/verify.py\", line 523, in verify_log\r\n    level = LOG_LEVELS.get(opts.get('log_level').lower(), logging.NOTSET)\r\nAttributeError: 'NoneType' object has no attribute 'lower'\r\n```\r\n### Setup\r\nIn my `/etc/apt/sources.list` file there is this entry:\r\n```\r\ndeb http://repo.saltstack.com/apt/debian/latest jessie main\r\n```\r\n\r\n### Steps to Reproduce Issue\r\nInclude the mentioned line in `/etc/apt/sources.list` in your own file and execute an `apt-get dist-upgrade` from salt-masver version 2016.3.2.\r\n\r\n### Versions Report\r\n```\r\nSalt Version:\r\n           Salt: 2016.3.3\r\n \r\nDependency Versions:\r\n           cffi: 0.8.6\r\n       cherrypy: 3.5.0\r\n       dateutil: 2.2\r\n          gitdb: 0.5.4\r\n      gitpython: 0.3.2 RC1\r\n          ioflo: Not Installed\r\n         Jinja2: 2.7.3\r\n        libgit2: 0.24.0\r\n        libnacl: Not Installed\r\n       M2Crypto: Not Installed\r\n           Mako: Not Installed\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.4.2\r\n   mysql-python: 1.2.3\r\n      pycparser: 2.10\r\n       pycrypto: 2.6.1\r\n         pygit2: 0.24.0\r\n         Python: 2.7.9 (default, Jun 29 2016, 13:08:31)\r\n   python-gnupg: Not Installed\r\n         PyYAML: 3.11\r\n          PyZMQ: 14.4.0\r\n           RAET: Not Installed\r\n          smmap: 0.8.2\r\n        timelib: Not Installed\r\n        Tornado: 4.2.1\r\n            ZMQ: 4.0.5\r\n \r\nSystem Versions:\r\n           dist: debian 8.6 \r\n        machine: x86_64\r\n        release: 3.16.0-4-amd64\r\n         system: Linux\r\n        version: debian 8.6\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/248608788","html_url":"https://github.com/saltstack/salt/issues/36461#issuecomment-248608788","issue_url":"https://api.github.com/repos/saltstack/salt/issues/36461","id":248608788,"user":{"login":"dahrens","id":342831,"avatar_url":"https://avatars.githubusercontent.com/u/342831?v=3","gravatar_id":"","url":"https://api.github.com/users/dahrens","html_url":"https://github.com/dahrens","followers_url":"https://api.github.com/users/dahrens/followers","following_url":"https://api.github.com/users/dahrens/following{/other_user}","gists_url":"https://api.github.com/users/dahrens/gists{/gist_id}","starred_url":"https://api.github.com/users/dahrens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dahrens/subscriptions","organizations_url":"https://api.github.com/users/dahrens/orgs","repos_url":"https://api.github.com/users/dahrens/repos","events_url":"https://api.github.com/users/dahrens/events{/privacy}","received_events_url":"https://api.github.com/users/dahrens/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T13:15:46Z","updated_at":"2016-09-21T13:15:46Z","body":"@cachedout makes sense - @HWDexperte is currently diving into the unittests and tries provide a test for this case, too."}}
{"actor":{"display_login":"dahrens"}}