{"action":"created","issue":{"url":"https://api.github.com/repos/nchammas/flintrock/issues/28","labels_url":"https://api.github.com/repos/nchammas/flintrock/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/nchammas/flintrock/issues/28/comments","events_url":"https://api.github.com/repos/nchammas/flintrock/issues/28/events","html_url":"https://github.com/nchammas/flintrock/issues/28","id":112645359,"number":28,"title":"Improve root volume setup and add some EBS volume support","user":{"login":"nchammas","id":1039369,"avatar_url":"https://avatars.githubusercontent.com/u/1039369?v=3","gravatar_id":"","url":"https://api.github.com/users/nchammas","html_url":"https://github.com/nchammas","followers_url":"https://api.github.com/users/nchammas/followers","following_url":"https://api.github.com/users/nchammas/following{/other_user}","gists_url":"https://api.github.com/users/nchammas/gists{/gist_id}","starred_url":"https://api.github.com/users/nchammas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nchammas/subscriptions","organizations_url":"https://api.github.com/users/nchammas/orgs","repos_url":"https://api.github.com/users/nchammas/repos","events_url":"https://api.github.com/users/nchammas/events{/privacy}","received_events_url":"https://api.github.com/users/nchammas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/nchammas/flintrock/milestones/2","html_url":"https://github.com/nchammas/flintrock/milestones/0.2","labels_url":"https://api.github.com/repos/nchammas/flintrock/milestones/2/labels","id":1360547,"number":2,"title":"0.2","description":"Implement miscellaneous user experience refinements, hopefully driven in part by user feedback.","creator":{"login":"nchammas","id":1039369,"avatar_url":"https://avatars.githubusercontent.com/u/1039369?v=3","gravatar_id":"","url":"https://api.github.com/users/nchammas","html_url":"https://github.com/nchammas","followers_url":"https://api.github.com/users/nchammas/followers","following_url":"https://api.github.com/users/nchammas/following{/other_user}","gists_url":"https://api.github.com/users/nchammas/gists{/gist_id}","starred_url":"https://api.github.com/users/nchammas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nchammas/subscriptions","organizations_url":"https://api.github.com/users/nchammas/orgs","repos_url":"https://api.github.com/users/nchammas/repos","events_url":"https://api.github.com/users/nchammas/events{/privacy}","received_events_url":"https://api.github.com/users/nchammas/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":0,"state":"open","created_at":"2015-10-17T04:41:19Z","updated_at":"2015-10-23T01:09:11Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2015-10-21T17:58:39Z","updated_at":"2015-10-26T14:59:54Z","closed_at":null,"body":"There are probably a few things that need to be done here which need to be fleshed out, including:\r\n- [ ] Tuning the size or type of the root volume (magnetic vs. SSD; ext4 setup; etc.)\r\n- [ ] Configuring additional EBS volumes (persistent storage)\r\n- [ ] Configuring additional instance store volumes (ephemeral storage); good as scratch space\r\n- [ ] Picking good defaults for this stuff\r\n- [ ] Deciding on how much of it should be configurable\r\n"},"comment":{"url":"https://api.github.com/repos/nchammas/flintrock/issues/comments/151165647","html_url":"https://github.com/nchammas/flintrock/issues/28#issuecomment-151165647","issue_url":"https://api.github.com/repos/nchammas/flintrock/issues/28","id":151165647,"user":{"login":"ericmjonas","id":36626,"avatar_url":"https://avatars.githubusercontent.com/u/36626?v=3","gravatar_id":"","url":"https://api.github.com/users/ericmjonas","html_url":"https://github.com/ericmjonas","followers_url":"https://api.github.com/users/ericmjonas/followers","following_url":"https://api.github.com/users/ericmjonas/following{/other_user}","gists_url":"https://api.github.com/users/ericmjonas/gists{/gist_id}","starred_url":"https://api.github.com/users/ericmjonas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericmjonas/subscriptions","organizations_url":"https://api.github.com/users/ericmjonas/orgs","repos_url":"https://api.github.com/users/ericmjonas/repos","events_url":"https://api.github.com/users/ericmjonas/events{/privacy}","received_events_url":"https://api.github.com/users/ericmjonas/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T14:59:54Z","updated_at":"2015-10-26T14:59:54Z","body":"Sorry, I meant query the ami:\r\n```\r\nimport boto.ec2\r\n\r\nconn = boto.ec2.connect_to_region('us-west-2')\r\n#test_ami ='ami-9ff7e8af'\r\ntest_ami = 'ami-bb46558b'\r\n\r\n\r\n\r\ndef get_ami_ephemeral_mounts(conn, ami):\r\n    img = conn.get_image(test_ami)\r\n\r\n    mp = {}\r\n    for mount_point, device in img.block_device_mapping.items():\r\n        mp[device.ephemeral_name] = mount_point\r\n    return mp\r\n\r\nprint( get_ami_ephemeral_mounts(conn, test_ami))\r\n```\r\n\r\nFor the case with `ami-9ff7e8af`\r\n```\r\n(py3k)dhcp-47-226:keystone jonas$ python testami.py\r\n{None: '/dev/xvda'}\r\n```\r\n\r\nand with `ami-bb46558b`\r\n```\r\n(py3k)dhcp-47-226:keystone jonas$ python testami.py\r\n{'ephemeral14': '/dev/sdp', 'ephemeral3': '/dev/sde', 'ephemeral5': '/dev/sdg', 'ephemeral4': '/dev/sdf', 'ephemeral15': '/dev/sdq', 'ephemeral10': '/dev/sdl', 'ephemeral1': '/dev/sdc', 'ephemeral13': '/dev/sdo', 'ephemeral8': '/dev/sdj', 'ephemeral12': '/dev/sdn', None: '/dev/sda1', 'ephemeral2': '/dev/sdd', 'ephemeral11': '/dev/sdm', 'ephemeral0': '/dev/sdb', 'ephemeral9': '/dev/sdk', 'ephemeral7': '/dev/sdi', 'ephemeral6': '/dev/sdh'}\r\n```\r\n\r\n\r\n\r\nI think \"what's the absolute minimum level of disk setup that would make Flintrock useful to you? What kind of setup are you really going to use, 90% of the time?\" is 100% the right attitude! The minimum I need is for flintrock to put the instance storage in the block-device-mapping, otherwise I can't do anything with the ephemeral storage after the instance is up. \r\n\r\nAttaching additional EBS block devices, etc. are all things I can do after. I could even install and deploy HDFS later, although I think that also comes in the \"what I'm going to use 90% of the time\" column. \r\n\r\n"}}