{"action":"created","issue":{"url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/756","labels_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/756/labels{/name}","comments_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/756/comments","events_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/756/events","html_url":"https://github.com/test-kitchen/test-kitchen/issues/756","id":90937961,"number":756,"title":"'username:' keyword not respected during `kitchen exec -c 'command'`","user":{"login":"bixu","id":339799,"avatar_url":"https://avatars.githubusercontent.com/u/339799?v=3","gravatar_id":"","url":"https://api.github.com/users/bixu","html_url":"https://github.com/bixu","followers_url":"https://api.github.com/users/bixu/followers","following_url":"https://api.github.com/users/bixu/following{/other_user}","gists_url":"https://api.github.com/users/bixu/gists{/gist_id}","starred_url":"https://api.github.com/users/bixu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bixu/subscriptions","organizations_url":"https://api.github.com/users/bixu/orgs","repos_url":"https://api.github.com/users/bixu/repos","events_url":"https://api.github.com/users/bixu/events{/privacy}","received_events_url":"https://api.github.com/users/bixu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-25T11:44:36Z","updated_at":"2015-07-01T15:33:17Z","closed_at":null,"body":"In the case shown below, although I'm setting a custom 'username' for one platform it's not getting used during SSH login during `kitchen exec`:\r\n\r\n```\r\n$ cat .kitchen.yml\r\n---\r\ndriver_plugin: joyent\r\ndriver_config:\r\n  joyent_username: \"<%= ENV['SDC_ACCOUNT'] %>\"\r\n  joyent_keyfile: \"<%= ENV['HOME'] %>/.ssh/id_rsa\"\r\n  joyent_keyname: \"<%= ENV['SDC_KEY_ID'] %>\"\r\n  joyent_url: \"<%= ENV['SDC_URL'] %>\"\r\n  joyent_flavor_id:  t4-standard-2G\r\nprovisioner:\r\n  name: shell\r\n\r\nplatforms:\r\n- name: smartos-64-14.3.0-smartmachine\r\n  driver_config:\r\n    joyent_image_id: 62f148f8-6e84-11e4-82c5-efca60348b9f\r\n\r\n- name: ubuntu-14.04-smartmachine\r\n  driver_config:\r\n    joyent_image_id: a21a64a0-0809-11e5-a64f-ff80e8e8086f\r\n\r\n- name: ubuntu-14.04-virtualmachine\r\n  driver_config:\r\n    joyent_image_id: c864f104-624c-43d2-835e-b49a39709b6b\r\n    username: ubuntu\r\n\r\nsuites:\r\n  - name: ubuntu\r\n    provisioner:\r\n      script: scripts/ubuntu.sh\r\n    excludes:\r\n      - smartos-64-14.3.0-smartmachine\r\n\r\n  - name: smartos\r\n    provisioner:\r\n      script: scripts/smartos.sh\r\n    excludes:\r\n      - ubuntu-14.04-smartmachine\r\n      - ubuntu-14.04-virtualmachine\r\n\r\n$ kitchen exec -c 'java -version'\r\n-----> Execute command on ubuntu-ubuntu-1404-smartmachine.\r\n       java version \"1.7.0_79\"\r\n       OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu0.14.04.2)\r\n       OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)\r\n-----> Execute command on ubuntu-ubuntu-1404-virtualmachine.\r\n       Please login as the user \"ubuntu\" rather than the user \"root\".\r\n\r\n-----> Execute command on smartos-smartos-64-1430-smartmachine.\r\n       openjdk version \"1.7.0-internal\"\r\n       )\r\n       OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)\r\n```"},"comment":{"url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/comments/117717111","html_url":"https://github.com/test-kitchen/test-kitchen/issues/756#issuecomment-117717111","issue_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/756","id":117717111,"user":{"login":"bixu","id":339799,"avatar_url":"https://avatars.githubusercontent.com/u/339799?v=3","gravatar_id":"","url":"https://api.github.com/users/bixu","html_url":"https://github.com/bixu","followers_url":"https://api.github.com/users/bixu/followers","following_url":"https://api.github.com/users/bixu/following{/other_user}","gists_url":"https://api.github.com/users/bixu/gists{/gist_id}","starred_url":"https://api.github.com/users/bixu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bixu/subscriptions","organizations_url":"https://api.github.com/users/bixu/orgs","repos_url":"https://api.github.com/users/bixu/repos","events_url":"https://api.github.com/users/bixu/events{/privacy}","received_events_url":"https://api.github.com/users/bixu/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T15:33:17Z","updated_at":"2015-07-01T15:33:17Z","body":"You are correct, setting the 'transport' option fixes this (although this still feels bug-like to me from a user perspective)."}}