{"action":"created","issue":{"url":"https://api.github.com/repos/projectatomic/atomicapp/issues/630","repository_url":"https://api.github.com/repos/projectatomic/atomicapp","labels_url":"https://api.github.com/repos/projectatomic/atomicapp/issues/630/labels{/name}","comments_url":"https://api.github.com/repos/projectatomic/atomicapp/issues/630/comments","events_url":"https://api.github.com/repos/projectatomic/atomicapp/issues/630/events","html_url":"https://github.com/projectatomic/atomicapp/issues/630","id":140949043,"number":630,"title":"`atomicapp stop` fails to stop application","user":{"login":"surajssd","id":5815795,"avatar_url":"https://avatars.githubusercontent.com/u/5815795?v=3","gravatar_id":"","url":"https://api.github.com/users/surajssd","html_url":"https://github.com/surajssd","followers_url":"https://api.github.com/users/surajssd/followers","following_url":"https://api.github.com/users/surajssd/following{/other_user}","gists_url":"https://api.github.com/users/surajssd/gists{/gist_id}","starred_url":"https://api.github.com/users/surajssd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surajssd/subscriptions","organizations_url":"https://api.github.com/users/surajssd/orgs","repos_url":"https://api.github.com/users/surajssd/repos","events_url":"https://api.github.com/users/surajssd/events{/privacy}","received_events_url":"https://api.github.com/users/surajssd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2016-03-15T11:46:20Z","updated_at":"2016-03-22T15:53:56Z","closed_at":null,"body":"When I run atomicapp stop the application should stop!\r\n```bash\r\n(atomic) [vagrant@centos7-adb ~]$ ll /var/lib/atomicapp\r\nls: cannot access /var/lib/atomicapp: No such file or directory\r\n(atomic) [vagrant@centos7-adb ~]$ sudo atomicapp run projectatomic/helloapache -v --provider=docker\r\n1458041180 - [INFO] - cli/main.py - Action/Mode Selected is: run\r\n[SNIP]\r\n1458041181 - [DEBUG] - nulecule/main.py - Writing answers to file.\r\n1458041181 - [DEBUG] - nulecule/main.py - FILE: /var/lib/atomicapp/projectatomic-helloapache-103ba878f1be/answers.conf.gen\r\n1458041181 - [DEBUG] - nulecule/main.py - ANSWERS: {u'helloapache-app': {u'image': u'centos/httpd', u'hostport': 80}, 'general': {'namespace': 'default', 'provider': 'docker'}}\r\n\r\nYour application resides in /var/lib/atomicapp/projectatomic-helloapache-103ba878f1be\r\nPlease use this directory for managing your application\r\n```\r\n**projectatomic-helloapache-103ba878f1be** is a directory where data resides, but then when I do `atomicapp stop` rather than stopping the existing app and removing the directory `/var/lib/atomicapp/projectatomic-helloapache-103ba878f1be` atomicapp creates a new one.\r\n\r\n```bash\r\n(atomic) [vagrant@centos7-adb ~]$ sudo atomicapp stop projectatomic/helloapache -v --provider=docker\r\n1458041205 - [INFO] - cli/main.py - Action/Mode Selected is: stop\r\n1458041205 - [DEBUG] - cli/main.py - Final parsed cmdline: stop projectatomic/helloapache -v --provider=docker\r\n1458041205 - [DEBUG] - nulecule/main.py - NuleculeManager init app_path: /var/lib/atomicapp/projectatomic-helloapache-da5466fa95bd\r\n1458041205 - [DEBUG] - nulecule/main.py - NuleculeManager init image: projectatomic/helloapache\r\n1458041205 - [ERROR] - cli/main.py - Provided answers file doesn't exist: /var/lib/atomicapp/projectatomic-helloapache-da5466fa95bd/answers.conf.gen\r\n(atomic) [vagrant@centos7-adb ~]$ ll /var/lib/atomicapp\r\ntotal 0\r\ndrwxr-xr-x. 3 root root 93 Mar 15 07:26 projectatomic-helloapache-103ba878f1be\r\ndrwxr-xr-x. 2 root root  6 Mar 15 07:26 projectatomic-helloapache-da5466fa95bd\r\n```"},"comment":{"url":"https://api.github.com/repos/projectatomic/atomicapp/issues/comments/199878157","html_url":"https://github.com/projectatomic/atomicapp/issues/630#issuecomment-199878157","issue_url":"https://api.github.com/repos/projectatomic/atomicapp/issues/630","id":199878157,"user":{"login":"surajssd","id":5815795,"avatar_url":"https://avatars.githubusercontent.com/u/5815795?v=3","gravatar_id":"","url":"https://api.github.com/users/surajssd","html_url":"https://github.com/surajssd","followers_url":"https://api.github.com/users/surajssd/followers","following_url":"https://api.github.com/users/surajssd/following{/other_user}","gists_url":"https://api.github.com/users/surajssd/gists{/gist_id}","starred_url":"https://api.github.com/users/surajssd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surajssd/subscriptions","organizations_url":"https://api.github.com/users/surajssd/orgs","repos_url":"https://api.github.com/users/surajssd/repos","events_url":"https://api.github.com/users/surajssd/events{/privacy}","received_events_url":"https://api.github.com/users/surajssd/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T15:53:56Z","updated_at":"2016-03-22T15:53:56Z","body":"@dustymabe \r\nDeployed an App using Atomic CLI\r\n```bash\r\n[vagrant@centos7-adb ~]$ sudo atomic run projectatomic/helloapache -v\r\nUsing default tag: latest\r\nTrying to pull repository docker.io/projectatomic/helloapache ... latest: Pulling from projectatomic/helloapache\r\n\r\n3690474eb5b4: Pull complete \r\n[SNIP]\r\n<<< end >>>\r\n\r\n1458661293 - [DEBUG] - nulecule/main.py - Writing answers to file.\r\n1458661293 - [DEBUG] - nulecule/main.py - FILE: /host/var/lib/atomicapp/projectatomic-helloapache-0de0ca509d38/answers.conf.gen\r\n1458661293 - [DEBUG] - nulecule/main.py - ANSWERS: {u'helloapache-app': {u'image': u'centos/httpd', u'hostport': 80}, 'general': {'namespace': 'default', 'provider': 'kubernetes'}}\r\n\r\nYour application resides in /var/lib/atomicapp/projectatomic-helloapache-0de0ca509d38\r\nPlease use this directory for managing your application\r\n\r\n[vagrant@centos7-adb ~]$ ll /var/lib/atomicapp\r\ntotal 0\r\ndrwxr-xr-x. 3 root root 93 Mar 22 11:41 projectatomic-helloapache-0de0ca509d38\r\n```\r\n\r\nTrying to stop the app\r\n```bash\r\n[vagrant@centos7-adb ~]$ sudo atomic stop projectatomic/helloapache  /var/lib/atomicapp/projectatomic-helloapache-0de0ca509d38/\r\n/bin/atomic: unrecognized arguments: /var/lib/atomicapp/projectatomic-helloapache-0de0ca509d38/\r\nTry 'atomic --help' for more information.\r\n\r\n\r\n[vagrant@centos7-adb ~]$ sudo atomic stop --help\r\nusage: atomic stop [-h] [-n NAME] image\r\n\r\npositional arguments:\r\n  image                 container image\r\n\r\noptional arguments:\r\n  -h, --help            show this help message and exit\r\n  -n NAME, --name NAME  name of container\r\n\r\natomic will just stop the container if it is running, if image does not\r\nspecify LABEL STOP\r\n\r\n\r\n[vagrant@centos7-adb ~]$ sudo atomic stop projectatomic/helloapache  --help\r\nusage: atomic stop [-h] [-n NAME] image\r\n\r\npositional arguments:\r\n  image                 container image\r\n\r\noptional arguments:\r\n  -h, --help            show this help message and exit\r\n  -n NAME, --name NAME  name of container\r\n\r\natomic will just stop the container if it is running, if image does not\r\nspecify LABEL STOP\r\n```"}}