{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/35111","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/35111/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/35111/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/35111/events","html_url":"https://github.com/saltstack/salt/issues/35111","id":168755694,"number":35111,"title":"cloud.profile fails in orchestration","user":{"login":"trebortech","id":1224138,"avatar_url":"https://avatars.githubusercontent.com/u/1224138?v=3","gravatar_id":"","url":"https://api.github.com/users/trebortech","html_url":"https://github.com/trebortech","followers_url":"https://api.github.com/users/trebortech/followers","following_url":"https://api.github.com/users/trebortech/following{/other_user}","gists_url":"https://api.github.com/users/trebortech/gists{/gist_id}","starred_url":"https://api.github.com/users/trebortech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trebortech/subscriptions","organizations_url":"https://api.github.com/users/trebortech/orgs","repos_url":"https://api.github.com/users/trebortech/repos","events_url":"https://api.github.com/users/trebortech/events{/privacy}","received_events_url":"https://api.github.com/users/trebortech/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/saltstack/salt/labels/High%20Severity","name":"High Severity","color":"ff9143"},{"url":"https://api.github.com/repos/saltstack/salt/labels/P4","name":"P4","color":"031a39"},{"url":"https://api.github.com/repos/saltstack/salt/labels/RIoT","name":"RIoT","color":"fef2c0"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Salt-Cloud","name":"Salt-Cloud","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestones/Approved","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"login":"thatch45","id":507599,"avatar_url":"https://avatars.githubusercontent.com/u/507599?v=3","gravatar_id":"","url":"https://api.github.com/users/thatch45","html_url":"https://github.com/thatch45","followers_url":"https://api.github.com/users/thatch45/followers","following_url":"https://api.github.com/users/thatch45/following{/other_user}","gists_url":"https://api.github.com/users/thatch45/gists{/gist_id}","starred_url":"https://api.github.com/users/thatch45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatch45/subscriptions","organizations_url":"https://api.github.com/users/thatch45/orgs","repos_url":"https://api.github.com/users/thatch45/repos","events_url":"https://api.github.com/users/thatch45/events{/privacy}","received_events_url":"https://api.github.com/users/thatch45/received_events","type":"User","site_admin":false},"open_issues":3173,"closed_issues":3960,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2016-09-04T21:13:38Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-08-01T22:20:13Z","updated_at":"2016-09-04T21:13:38Z","closed_at":"2016-09-04T21:13:38Z","body":"### Description of Issue/Question\r\n\r\nI have a working cloud profile config that deploys a windows box to AWS. It completes all the steps to include the state files listed in the profile. This works fine when I execute it from salt-cloud.\r\n\r\nWhen I try to execute this profile inside of an orchestration file it fails to bootstrap the instance. It will deploy the instance and even set the name tag but does not bootstrap the new instance.\r\n\r\nNothing shows up in any log files and debug doesn't show any errors.\r\n\r\n### Setup\r\n\r\n```\r\n----------------- iis.conf  ----------------------\r\niis:\r\n  provider: tt-aws\r\n  image: ami-1fXXXX\r\n  size: t2.medium\r\n  minion:\r\n    master: 10.X.X.X\r\n    startup_states: sls\r\n    sls_list:\r\n      - sync\r\n      - network\r\n    mine_interval: 5\r\n    grains:\r\n      roles:\r\n        - iis\r\n      app:\r\n        - webapp1\r\n  win_deploy_auth_retries: 2\r\n  win_deploy_auth_retry_delay: 5\r\n  smb_port: 445\r\n  win_installer: /etc/salt/cloud.deploy.d/Salt-Minion-2016.3.1-AMD64-Setup.exe\r\n  win_username: Administrator\r\n  win_password: XXXXX\r\n  ssh_interface: private_ips\r\n  network_interfaces:\r\n    - DeviceIndex: 0\r\n      SubnetId: subnet-0XXXXXX\r\n      SecurityGroupId:\r\n        - sg-3XXXXX\r\n      allocate_new_eip: False\r\n```\r\n\r\n\r\n----------------- orch1.sls  ----------------------\r\n\r\n```\r\n\"Deploy IIS New Server\":\r\n  salt.function:\r\n    - tgt: 'saltmaster'\r\n    - name: cloud.profile\r\n    - kwarg:\r\n        profile:iis\r\n        names:\r\n          - iis1\r\n```\r\n\r\n### Steps to Reproduce Issue\r\n\r\n`salt-cloud -p iis iis1`  <---- works\r\n\r\n`salt-run state.orch orch1`   <----- fails to bootstrap instance\r\n\r\n\r\n### Versions Report\r\n\r\n```\r\nSalt Version:\r\n           Salt: 2016.3.1\r\nDependency Versions:\r\n           cffi: Not Installed\r\n       cherrypy: 6.0.1\r\n       dateutil: Not Installed\r\n          gitdb: 0.5.4\r\n      gitpython: 0.3.2 RC1\r\n          ioflo: Not Installed\r\n         Jinja2: 2.7.2\r\n        libgit2: Not Installed\r\n        libnacl: Not Installed\r\n       M2Crypto: 0.21.1\r\n           Mako: Not Installed\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.3.0\r\n   mysql-python: Not Installed\r\n      pycparser: Not Installed\r\n       pycrypto: 2.6.1\r\n         pygit2: Not Installed\r\n         Python: 2.7.6 (default, Jun 22 2015, 17:58:13)\r\n   python-gnupg: Not Installed\r\n         PyYAML: 3.10\r\n          PyZMQ: 14.0.1\r\n           RAET: Not Installed\r\n          smmap: 0.8.2\r\n        timelib: Not Installed\r\n        Tornado: 4.4.1\r\n            ZMQ: 4.0.4\r\nSystem Versions:\r\n           dist: Ubuntu 14.04 trusty\r\n        machine: x86_64\r\n        release: 3.13.0-74-generic\r\n         system: Linux\r\n        version: Ubuntu 14.04 trusty\r\nAdd Comment Collaps\r\n```"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/244629108","html_url":"https://github.com/saltstack/salt/issues/35111#issuecomment-244629108","issue_url":"https://api.github.com/repos/saltstack/salt/issues/35111","id":244629108,"user":{"login":"trebortech","id":1224138,"avatar_url":"https://avatars.githubusercontent.com/u/1224138?v=3","gravatar_id":"","url":"https://api.github.com/users/trebortech","html_url":"https://github.com/trebortech","followers_url":"https://api.github.com/users/trebortech/followers","following_url":"https://api.github.com/users/trebortech/following{/other_user}","gists_url":"https://api.github.com/users/trebortech/gists{/gist_id}","starred_url":"https://api.github.com/users/trebortech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trebortech/subscriptions","organizations_url":"https://api.github.com/users/trebortech/orgs","repos_url":"https://api.github.com/users/trebortech/repos","events_url":"https://api.github.com/users/trebortech/events{/privacy}","received_events_url":"https://api.github.com/users/trebortech/received_events","type":"User","site_admin":false},"created_at":"2016-09-04T21:13:38Z","updated_at":"2016-09-04T21:13:38Z","body":"I changed from executing a function in orchestration to using the cloud.profile runner and that took are of this issue.\r\n\r\n----------------- orch1.sls ----------------------\r\n\r\n```\r\n\"Deploy IIS New Server\":\r\n  salt.runner:\r\n    - name: cloud.profile\r\n    - prof: iis\r\n    - instances:\r\n      - demo-iis1\r\n```"}}
{"actor":{"display_login":"trebortech"}}