{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/33121","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/33121/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/33121/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/33121/events","html_url":"https://github.com/saltstack/salt/issues/33121","id":153818526,"number":33121,"title":"require_in formula cannot extend ID error","user":{"login":"grobinson-blockchain","id":13755880,"avatar_url":"https://avatars.githubusercontent.com/u/13755880?v=3","gravatar_id":"","url":"https://api.github.com/users/grobinson-blockchain","html_url":"https://github.com/grobinson-blockchain","followers_url":"https://api.github.com/users/grobinson-blockchain/followers","following_url":"https://api.github.com/users/grobinson-blockchain/following{/other_user}","gists_url":"https://api.github.com/users/grobinson-blockchain/gists{/gist_id}","starred_url":"https://api.github.com/users/grobinson-blockchain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grobinson-blockchain/subscriptions","organizations_url":"https://api.github.com/users/grobinson-blockchain/orgs","repos_url":"https://api.github.com/users/grobinson-blockchain/repos","events_url":"https://api.github.com/users/grobinson-blockchain/events{/privacy}","received_events_url":"https://api.github.com/users/grobinson-blockchain/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Info%20Needed","name":"Info Needed","color":"c7def8"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Pending%20Discussion","name":"Pending Discussion","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"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":391,"closed_issues":828,"state":"open","created_at":"2013-05-28T22:24:12Z","updated_at":"2016-05-11T15:35:38Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-05-09T16:40:12Z","updated_at":"2016-05-12T16:30:38Z","closed_at":null,"body":"### Description of Issue/Question\r\n\r\nI have an include on an external formula and require its execution to happen after the execution of some other state: \r\n\r\n    include:\r\n      - nginx.ng\r\n\r\n    download-openresty-more-headers:\r\n      archive.extracted:\r\n        - name: /tmp/\r\n        - source: https://github.com/openresty/headers-more-nginx-module/archive/v{{ openresty_headers_more['version'] \r\n    }}.tar.gz\r\n        - source_hash: sha256={{ openresty_headers_more['hash'] }}\r\n        - archive_format: tar\r\n        - if_missing: /tmp/openresty_headers_more-{{ openresty_headers_more['version'] }}.tar.gz\r\n    \r\n    rename-openresty-more-headers:\r\n      file.rename:\r\n        - name: /tmp/headers-more-nginx-module\r\n        - source: /tmp/headers-more-nginx-module-{{ openresty_headers_more['version'] }}\r\n        - require:\r\n          - archive: download-openresty-more-headers\r\n          - sls: nginx.ng\r\n\r\nThe following SLS file works, but the relationship on the require is the incorrect and I need to inverse the dependency such that `nginx.ng` requires the `rename-openresty-more-headers` state:\r\n\r\n    include:\r\n      - nginx.ng\r\n\r\n    download-openresty-more-headers:\r\n      archive.extracted:\r\n        - name: /tmp/\r\n        - source: https://github.com/openresty/headers-more-nginx-module/archive/v{{ openresty_headers_more['version'] \r\n    }}.tar.gz\r\n        - source_hash: sha256={{ openresty_headers_more['hash'] }}\r\n        - archive_format: tar\r\n        - if_missing: /tmp/openresty_headers_more-{{ openresty_headers_more['version'] }}.tar.gz\r\n    \r\n    rename-openresty-more-headers:\r\n      file.rename:\r\n        - name: /tmp/headers-more-nginx-module\r\n        - source: /tmp/headers-more-nginx-module-{{ openresty_headers_more['version'] }}\r\n        - require:\r\n          - archive: download-openresty-more-headers\r\n        - require_in:\r\n          - sls: nginx.ng\r\n\r\nHowever, this results in the following error (which I understand from the docs should work as require_in is just the inverse of require):\r\n\r\n    local:\r\n        Data failed to compile:\r\n    ----------\r\n        Cannot extend ID 'nginx.ng' in 'base:bc-nginx'. It is not part of the high state.\r\n    This is likely due to a missing include statement or an incorrectly typed ID.\r\n    Ensure that a state with an ID of 'nginx.ng' is available\r\n    in environment 'base' and to SLS 'bc-nginx'\r\n\r\n### Versions Report\r\n    Salt Version:\r\n               Salt: 2015.8.8.2\r\n     \r\n    Dependency Versions:\r\n             Jinja2: 2.7.3\r\n           M2Crypto: Not Installed\r\n               Mako: Not Installed\r\n             PyYAML: 3.11\r\n              PyZMQ: 14.4.0\r\n             Python: 2.7.9 (default, Mar  1 2015, 12:57:24)\r\n               RAET: Not Installed\r\n            Tornado: 4.2.1\r\n                ZMQ: 4.0.5\r\n               cffi: Not Installed\r\n           cherrypy: Not Installed\r\n           dateutil: 2.2\r\n              gitdb: Not Installed\r\n          gitpython: Not Installed\r\n              ioflo: Not Installed\r\n            libgit2: Not Installed\r\n            libnacl: 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: Not Installed\r\n           pycrypto: 2.6.1\r\n             pygit2: Not Installed\r\n       python-gnupg: Not Installed\r\n              smmap: Not Installed\r\n            timelib: Not Installed\r\n     \r\n    System Versions:\r\n               dist: debian 8.4 \r\n            machine: x86_64\r\n            release: 3.16.0-4-amd64\r\n             system: debian 8.4"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/218812086","html_url":"https://github.com/saltstack/salt/issues/33121#issuecomment-218812086","issue_url":"https://api.github.com/repos/saltstack/salt/issues/33121","id":218812086,"user":{"login":"grobinson-blockchain","id":13755880,"avatar_url":"https://avatars.githubusercontent.com/u/13755880?v=3","gravatar_id":"","url":"https://api.github.com/users/grobinson-blockchain","html_url":"https://github.com/grobinson-blockchain","followers_url":"https://api.github.com/users/grobinson-blockchain/followers","following_url":"https://api.github.com/users/grobinson-blockchain/following{/other_user}","gists_url":"https://api.github.com/users/grobinson-blockchain/gists{/gist_id}","starred_url":"https://api.github.com/users/grobinson-blockchain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grobinson-blockchain/subscriptions","organizations_url":"https://api.github.com/users/grobinson-blockchain/orgs","repos_url":"https://api.github.com/users/grobinson-blockchain/repos","events_url":"https://api.github.com/users/grobinson-blockchain/events{/privacy}","received_events_url":"https://api.github.com/users/grobinson-blockchain/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T16:30:38Z","updated_at":"2016-05-12T16:30:38Z","body":"Hi @Ch3LL were you able to reproduce this error?"}}