{"action":"opened","issue":{"url":"https://api.github.com/repos/mesosphere/marathon/issues/4555","repository_url":"https://api.github.com/repos/mesosphere/marathon","labels_url":"https://api.github.com/repos/mesosphere/marathon/issues/4555/labels{/name}","comments_url":"https://api.github.com/repos/mesosphere/marathon/issues/4555/comments","events_url":"https://api.github.com/repos/mesosphere/marathon/issues/4555/events","html_url":"https://github.com/mesosphere/marathon/issues/4555","id":181358550,"number":4555,"title":"Rexray Issue:-Automatic unlimitted volume created in AWS Instance during deploying Mongo 3.1 on mesosspher cluster","user":{"login":"pratapnanda","id":20398213,"avatar_url":"https://avatars.githubusercontent.com/u/20398213?v=3","gravatar_id":"","url":"https://api.github.com/users/pratapnanda","html_url":"https://github.com/pratapnanda","followers_url":"https://api.github.com/users/pratapnanda/followers","following_url":"https://api.github.com/users/pratapnanda/following{/other_user}","gists_url":"https://api.github.com/users/pratapnanda/gists{/gist_id}","starred_url":"https://api.github.com/users/pratapnanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pratapnanda/subscriptions","organizations_url":"https://api.github.com/users/pratapnanda/orgs","repos_url":"https://api.github.com/users/pratapnanda/repos","events_url":"https://api.github.com/users/pratapnanda/events{/privacy}","received_events_url":"https://api.github.com/users/pratapnanda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-06T08:57:00Z","updated_at":"2016-10-06T08:57:00Z","closed_at":null,"body":"\r\n\r\nHello Team,\r\nI am wondering to see the result when i used to deploy MongoDB in Mesosphere cluster in AWS.\r\nI have manually created a EBS volume in AWS(\"ec2-awsdata\") and the deploy Application with External Volumes(using docker) in mesosphere(below Yml file). Rex-ray didn't find my existing volume \"ec2-awsdata\" and tried to create multiple volume in AWS in a loop.Then I forcefully destroy the deployment and manually delete those volume.\r\nI dont understand where is my mistake or has some bugs in rexray for MongoDB\r\n\r\nBelow are my configuration:\r\ncore@ip-10-0-2-222 ~ $ rexray version\r\nBinary: /opt/mesosphere/packages/rexray--5969104330e3381cadedff3daf6e94000283bf32/bin/rexray\r\nSemVer: 0.3.3-dcos+7\r\nOsArch: Linux-x86_64\r\nBranch: (detached\r\nCommit: 1816ee3\r\nFormed: Wed, 31 Aug 2016 04:25:48 UTC\r\ncore@ip-10-0-2-222 ~ $ rexray volume get\r\n- name: ec2-awsdata\r\nvolumeid: vol-7da82fc9\r\navailabilityzone: us-west-2a\r\nstatus: available\r\nvolumetype: gp2\r\niops: 100\r\nsize: \"1\"\r\nnetworkname: \"\"\r\nattachments: []\r\n- name: \"\"\r\nvolumeid: vol-110d5498\r\navailabilityzone: us-west-2b\r\nstatus: in-use\r\nvolumetype: standard\r\niops: 0\r\nsize: \"8\"\r\nnetworkname: \"\"\r\nattachments:\r\n- volumeid: vol-110d5498\r\ninstanceid: i-5463b4c1\r\ndevicename: /dev/sda1\r\nstatus: attached\r\ncore@ip-10-0-2-222 ~ $ docker version\r\nClient:\r\nVersion: 1.10.3\r\nAPI version: 1.22\r\nGo version: go1.5.4\r\nGit commit: 3cd164c\r\nBuilt:\r\nOS/Arch: linux/amd64\r\n\r\nServer:\r\n Version:      1.10.3\r\n API version:  1.22\r\n Go version:   go1.5.4\r\n Git commit:   3cd164c\r\n Built:\r\n OS/Arch:      linux/amd64\r\n\r\ncore@ip-10-0-7-183 /etc/rexray $ cat config.yml\r\nrexray:\r\nloglevel: info\r\nmodules:\r\ndefault-admin:\r\nhost: tcp://127.0.0.1:61003\r\nstorageDrivers:\r\n- ec2\r\nvolume:\r\nunmount:\r\nignoreusedcount: true\r\naws:\r\naccessKey: xxxxx\r\nsecretKey: xxxxx\r\nregion: us-west-2\r\n\r\nYML files\r\n{\r\n\"id\": \"/test-mongo\",\r\n\"instances\": 1,\r\n\"cpus\": 0.1,\r\n\"mem\": 256.0,\r\n\"container\": {\r\n\"type\": \"DOCKER\",\r\n\"docker\": {\r\n\"image\": \"mongo:3.1\",\r\n\"network\": \"BRIDGE\",\r\n\"portMappings\": [\r\n{\r\n\"containerPort\": 27017,\r\n\"hostPort\": 0,\r\n\"servicePort\": 53376,\r\n\"protocol\": \"tcp\"\r\n}\r\n],\r\n\"forcePullImage\": true\r\n},\r\n\"volumes\": [\r\n{\r\n\"containerPath\": \"/data/test-mongo-volume\",\r\n\"external\": {\r\n\"name\": \"ec2-awsdata\",\r\n\"provider\": \"dvdi\",\r\n\"options\": { \"dvdi/driver\": \"rexray\" }\r\n},\r\n\"mode\": \"RW\"\r\n},\r\n{\r\n\"hostPath\": \"var-log\",\r\n\"containerPath\": \"/var/log/mongodb\",\r\n\"mode\": \"RW\"\r\n}\r\n]\r\n},\r\n\"upgradeStrategy\": {\r\n\"minimumHealthCapacity\": 0,\r\n\"maximumOverCapacity\": 0\r\n}\r\n}\r\n\r\nerror logs:\r\ncore@ip-10-0-2-224 /var/log/rexray $ ls\r\nrexray.log\r\ncore@ip-10-0-2-224 /var/log/rexray $ tail -f rexray.log\r\ntime=\"2016-10-06T08:19:07Z\" level=info msg=\"waiting for volume creation to complete\" driverName=ec2 moduleName=default-docker resp.VolumeId=0xc8204ecfc8 runAsync=false snapshotID= volumeID=\r\ntime=\"2016-10-06T08:19:07Z\" level=info msg=vdm.Path driverName=docker moduleName=default-docker volumeID= volumeName=ec2-awsdata\r\ntime=\"2016-10-06T08:19:08Z\" level=info msg=vdm.Path driverName=docker moduleName=default-docker volumeID= volumeName=ec2-awsdata\r\ntime=\"2016-10-06T08:19:09Z\" level=info msg=vdm.Path driverName=docker moduleName=default-docker volumeID= volumeName=ec2-awsdata\r\ntime=\"2016-10-06T08:19:09Z\" level=info msg=vdm.Path driverName=docker moduleName=default-docker volumeID= volumeName=ec2-awsdata\r\ntime=\"2016-10-06T08:19:10Z\" level=info msg=vdm.Path driverName=docker moduleName=default-docker volumeID= volumeName=ec2-awsdata\r\ntime=\"2016-10-06T08:19:10Z\" level=info msg=vdm.Path driverName=docker moduleName=default-docker volumeID= volumeName=bbf22b930d5a44635a3c2bfa699f9f2f99b7bc48e64f20524c8c981985fb0126\r\ntime=\"2016-10-06T08:19:10Z\" level=info msg=\"getting path to volume\" driverName=docker moduleName=default-docker volumeID= volumeName=bbf22b930d5a44635a3c2bfa699f9f2f99b7bc48e64f20524c8c981985fb0126\r\ntime=\"2016-10-06T08:19:10Z\" level=info msg=sdm.GetVolume driverName=ec2 moduleName=default-docker volumeID= volumeName=bbf22b930d5a44635a3c2bfa699f9f2f99b7bc48e64f20524c8c981985fb0126\r\ntime=\"2016-10-06T08:19:10Z\" level=info msg=sdm.GetVolumeAttach driverName=ec2 instanceID=i-5773714f moduleName=default-docker volumeID=vol-22b13696\r\n\r\nWhen I deploying different application ,it works perfect .Below YML file works perfect as per expectation and it attached to AWS EBS sucessfully\r\n\r\n{\r\n\"id\": \"/test-docker\",\r\n\"instances\": 1,\r\n\"cpus\": 0.1,\r\n\"mem\": 32,\r\n\"cmd\": \"/usr/bin/tail -f /dev/null\",\r\n\"container\": {\r\n\"type\": \"DOCKER\",\r\n\"docker\": {\r\n\"image\": \"alpine:3.1\",\r\n\"network\": \"HOST\",\r\n\"forcePullImage\": true\r\n},\r\n\"volumes\": [\r\n{\r\n\"containerPath\": \"/data/test-rexray-volume\",\r\n\"external\": {\r\n\"name\": \"ec2-awsdata\",\r\n\"provider\": \"dvdi\",\r\n\"options\": { \"dvdi/driver\": \"rexray\" }\r\n},\r\n\"mode\": \"RW\"\r\n},\r\n{\r\n\"hostPath\": \"var-log\",\r\n\"containerPath\": \"/var/log/myapp\",\r\n\"mode\": \"RW\"\r\n}\r\n]\r\n},\r\n\"upgradeStrategy\": {\r\n\"minimumHealthCapacity\": 0,\r\n\"maximumOverCapacity\": 0\r\n}\r\n}\r\n\r\nI dont understand where is my mistake or rexray has some issue in MongoDB\r\n"}}
{"actor":{"display_login":"pratapnanda"}}