{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/36556","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/36556/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/36556/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/36556/events","html_url":"https://github.com/saltstack/salt/issues/36556","id":179038803,"number":36556,"title":"InfluxDB Database Present State not working","user":{"login":"FabianEnvoy","id":22302805,"avatar_url":"https://avatars.githubusercontent.com/u/22302805?v=3","gravatar_id":"","url":"https://api.github.com/users/FabianEnvoy","html_url":"https://github.com/FabianEnvoy","followers_url":"https://api.github.com/users/FabianEnvoy/followers","following_url":"https://api.github.com/users/FabianEnvoy/following{/other_user}","gists_url":"https://api.github.com/users/FabianEnvoy/gists{/gist_id}","starred_url":"https://api.github.com/users/FabianEnvoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FabianEnvoy/subscriptions","organizations_url":"https://api.github.com/users/FabianEnvoy/orgs","repos_url":"https://api.github.com/users/FabianEnvoy/repos","events_url":"https://api.github.com/users/FabianEnvoy/events{/privacy}","received_events_url":"https://api.github.com/users/FabianEnvoy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Pending%20Discussion","name":"Pending Discussion","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/37","html_url":"https://github.com/saltstack/salt/milestones/Blocked","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/37/labels","id":343741,"number":37,"title":"Blocked","description":"Issues which are blocked in some way, whether they need further discussion, clarification, justification, or are blocked for some other reason.","creator":{"login":"basepi","id":702318,"avatar_url":"https://avatars.githubusercontent.com/u/702318?v=3","gravatar_id":"","url":"https://api.github.com/users/basepi","html_url":"https://github.com/basepi","followers_url":"https://api.github.com/users/basepi/followers","following_url":"https://api.github.com/users/basepi/following{/other_user}","gists_url":"https://api.github.com/users/basepi/gists{/gist_id}","starred_url":"https://api.github.com/users/basepi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basepi/subscriptions","organizations_url":"https://api.github.com/users/basepi/orgs","repos_url":"https://api.github.com/users/basepi/repos","events_url":"https://api.github.com/users/basepi/events{/privacy}","received_events_url":"https://api.github.com/users/basepi/received_events","type":"User","site_admin":false},"open_issues":580,"closed_issues":1043,"state":"open","created_at":"2013-05-28T22:24:12Z","updated_at":"2016-09-27T19:00:28Z","due_on":null,"closed_at":null},"comments":15,"created_at":"2016-09-24T16:33:20Z","updated_at":"2016-09-28T09:03:14Z","closed_at":null,"body":"### Description of Issue/Question\r\nInternal State \"salt.states.influxdb_database.present\" not working in sls File.\r\nInfluxDB Installation successful and service is running and reachable. \r\n\r\n### State-File\r\n```\r\ninflux-db-test:\r\n  influxdb_database.present:\r\n    - name: test\r\n    - user: influxdb-user\r\n    - password: ....\r\n    - host: ....\r\n    - port: ... \r\n    - require:\r\n      - service: influxdb_start\r\n```\r\n### Error-Report\r\n```\r\n----------\r\n          ID: influx-db-synthetic\r\n    Function: influxdb_database.present\r\n        Name: synthetic_profiles\r\n      Result: False\r\n     Comment: State 'influxdb_database.present' was not found in SLS 'influxdb.config'\r\n              Reason: 'influxdb_database' __virtual__ returned False\r\n     Started: \r\n    Duration: \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: Not Installed\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: Not Installed\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: Not Installed\r\n         Python: 2.7.9 (default, Mar  1 2015, 12:57:24)\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.5 \r\n        machine: x86_64\r\n        release: 3.16.0-4-amd64\r\n         system: Linux\r\n        version: debian 8.5\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/250111956","html_url":"https://github.com/saltstack/salt/issues/36556#issuecomment-250111956","issue_url":"https://api.github.com/repos/saltstack/salt/issues/36556","id":250111956,"user":{"login":"nilliams","id":1140055,"avatar_url":"https://avatars.githubusercontent.com/u/1140055?v=3","gravatar_id":"","url":"https://api.github.com/users/nilliams","html_url":"https://github.com/nilliams","followers_url":"https://api.github.com/users/nilliams/followers","following_url":"https://api.github.com/users/nilliams/following{/other_user}","gists_url":"https://api.github.com/users/nilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/nilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilliams/subscriptions","organizations_url":"https://api.github.com/users/nilliams/orgs","repos_url":"https://api.github.com/users/nilliams/repos","events_url":"https://api.github.com/users/nilliams/events{/privacy}","received_events_url":"https://api.github.com/users/nilliams/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T09:03:13Z","updated_at":"2016-09-28T09:03:13Z","body":"Ah thanks babilen, did not know! Okay I've tried that now and unfortunately it still fails with the same error.\r\n```\r\n[ERROR   ] State 'influxdb_database.present' was not found in SLS 'influxdb'\r\nReason: 'influxdb_database' __virtual__ returned False\r\n```\r\n\r\nReport:\r\n```\r\n...\r\n----------\r\n          ID: influxdb_ppa\r\n    Function: pkgrepo.managed\r\n        Name: deb https://repos.influxdata.com/ubuntu precise stable\r\n      Result: True\r\n     Comment: Configured package repo 'deb https://repos.influxdata.com/ubuntu precise stable'\r\n     Started: 08:52:34.756144\r\n    Duration: 6612.446 ms\r\n     Changes:\r\n              ----------\r\n              repo:\r\n                  deb https://repos.influxdata.com/ubuntu precise stable\r\n----------\r\n          ID: install_influxdb\r\n    Function: pkg.installed\r\n        Name: influxdb\r\n      Result: True\r\n     Comment: The following packages were installed/updated: influxdb\r\n     Started: 08:52:41.375354\r\n    Duration: 20244.205 ms\r\n     Changes:\r\n              ----------\r\n              influxdb:\r\n                  ----------\r\n                  new:\r\n                      1.0.0-1\r\n                  old:\r\n----------\r\n          ID: run_influxdb\r\n    Function: service.running\r\n        Name: influxdb\r\n      Result: True\r\n     Comment: Service influxdb is already enabled, and is running\r\n     Started: 08:53:02.125798\r\n    Duration: 1152.307 ms\r\n     Changes:\r\n              ----------\r\n              influxdb:\r\n                  True\r\n----------\r\n          ID: install_influxdb-python\r\n    Function: pip.installed\r\n        Name: influxdb\r\n      Result: True\r\n     Comment: All packages were successfully installed\r\n     Started: 08:53:03.325971\r\n    Duration: 3883.558 ms\r\n     Changes:\r\n              ----------\r\n              influxdb==3.0.0:\r\n                  Installed\r\n----------\r\n          ID: playground_dev\r\n    Function: influxdb_database.present\r\n      Result: False\r\n     Comment: State 'influxdb_database.present' was not found in SLS 'influxdb'\r\n              Reason: 'influxdb_database' __virtual__ returned False\r\n     Started:\r\n    Duration:\r\n     Changes:\r\n...\r\n```\r\n\r\nMy dir structure:\r\n```\r\n$ tree /srv/salt/\r\n/srv/salt/\r\n|-- influxdb.sls\r\n|-- _modules\r\n|   |-- influx08.py\r\n|   `-- influx.py\r\n|-- pip.sls\r\n|-- _states\r\n|   |-- influxdb08_database.py\r\n|   |-- influxdb08_user.py\r\n|   |-- influxdb_database.py\r\n|   `-- influxdb_user.py\r\n`-- top.sls\r\n```"}}
{"actor":{"display_login":"nilliams"}}