{"action":"created","issue":{"url":"https://api.github.com/repos/projectatomic/nulecule/issues/152","labels_url":"https://api.github.com/repos/projectatomic/nulecule/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/projectatomic/nulecule/issues/152/comments","events_url":"https://api.github.com/repos/projectatomic/nulecule/issues/152/events","html_url":"https://github.com/projectatomic/nulecule/issues/152","id":102172237,"number":152,"title":"projectatomic/helloapache example is failing","user":{"login":"LalatenduMohanty","id":3125299,"avatar_url":"https://avatars.githubusercontent.com/u/3125299?v=3","gravatar_id":"","url":"https://api.github.com/users/LalatenduMohanty","html_url":"https://github.com/LalatenduMohanty","followers_url":"https://api.github.com/users/LalatenduMohanty/followers","following_url":"https://api.github.com/users/LalatenduMohanty/following{/other_user}","gists_url":"https://api.github.com/users/LalatenduMohanty/gists{/gist_id}","starred_url":"https://api.github.com/users/LalatenduMohanty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LalatenduMohanty/subscriptions","organizations_url":"https://api.github.com/users/LalatenduMohanty/orgs","repos_url":"https://api.github.com/users/LalatenduMohanty/repos","events_url":"https://api.github.com/users/LalatenduMohanty/events{/privacy}","received_events_url":"https://api.github.com/users/LalatenduMohanty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-20T15:58:33Z","updated_at":"2015-08-25T14:41:13Z","closed_at":null,"body":"I tried to run the helloapache example from dockerhub on latest CentOS7 box, it failed to run. CC @ggallen\r\n\r\nHere are the steps I followed\r\n* Get a single node k8s setup\r\n```\r\n[vagrant@localhost ~]$ kubectl get nodes\r\nNAME        LABELS                             STATUS\r\n127.0.0.1   kubernetes.io/hostname=127.0.0.1   Ready\r\n```\r\n* Run the helloapache example\r\n```{r}\r\n[vagrant@localhost ~]$ atomic run projectatomic/helloapache\r\n/usr/bin/docker pull projectatomic/helloapache\r\nlatest: Pulling from docker.io/projectatomic/helloapache\r\nf1b10cd84249: Pull complete\r\nc852f6d61e65: Pull complete\r\n7322fbe74aa5: Pull complete\r\n00b732e9ad70: Pull complete\r\n54fa122efced: Pull complete\r\nb6c62bd7b7bb: Pull complete\r\nc2c2d3f8fe0a: Pull complete\r\n01b6c9c5d908: Pull complete\r\na2fe7177d65a: Pull complete\r\n616b6e613571: Pull complete\r\n0b6b10d60c35: Pull complete\r\nae71f37e66d3: Pull complete\r\n5cd578686f9d: Pull complete\r\nf6c7e1e80ccd: Pull complete\r\nd0abd9728a48: Pull complete\r\n72930c585f3e: Pull complete\r\naa99af784907: Pull complete\r\na7b22197203f: Already exists\r\nDigest: sha256:98bcea47bea3cfa3057b824716f02b94fd133c1d0062b4f18cf59706177ef92c\r\nStatus: Downloaded newer image for docker.io/projectatomic/helloapache:latest\r\ndocker run -it --rm  --privileged -v /home/vagrant:/atomicapp -v /run:/run -v /:/host --net=host --name helloapache -e NAME=helloapache -e IMAGE=projectatomic/helloapache projectatomic/helloapache -v  run  /atom\r\nicapp\r\n2015-08-21 11:30:51,447 - atomicapp.install - INFO - App name is projectatomic/helloapache, will be populated to /atomicapp\r\n2015-08-21 11:30:51,447 - atomicapp.utils - INFO - atomicapp.status.info.message=Loading app projectatomic/helloapache .\r\n2015-08-21 11:30:51,447 - atomicapp.utils - INFO - atomicapp.status.answer.message={\"general\": {\"namespace\": \"default\", \"provider\": \"kubernetes\"}}\r\n2015-08-21 11:30:51,447 - atomicapp.nulecule_base - DEBUG - {'namespace': 'default', 'provider': 'kubernetes'}\r\n2015-08-21 11:30:51,499 - atomicapp.nulecule_base - DEBUG - Output of docker images cmd:\r\n2015-08-21 11:30:51,499 - atomicapp.utils - INFO - atomicapp.status.info.message=Pulling image projectatomic/helloapache ...\r\nlatest: Pulling from docker.io/projectatomic/helloapache\r\nf1b10cd84249: Already exists\r\nc852f6d61e65: Already exists\r\n7322fbe74aa5: Already exists\r\n00b732e9ad70: Already exists\r\n54fa122efced: Already exists\r\nb6c62bd7b7bb: Already exists\r\nc2c2d3f8fe0a: Already exists\r\n01b6c9c5d908: Already exists\r\na2fe7177d65a: Already exists\r\n616b6e613571: Already exists\r\n0b6b10d60c35: Already exists\r\nae71f37e66d3: Already exists\r\n5cd578686f9d: Already exists\r\nf6c7e1e80ccd: Already exists\r\nd0abd9728a48: Already exists\r\n72930c585f3e: Already exists\r\naa99af784907: Already exists\r\na7b22197203f: Already exists\r\nDigest: sha256:98bcea47bea3cfa3057b824716f02b94fd133c1d0062b4f18cf59706177ef92c\r\nStatus: Image is up to date for docker.io/projectatomic/helloapache:latest\r\n2015-08-21 11:30:52,291 - atomicapp.nulecule_base - DEBUG - {'namespace': 'default', 'provider': 'kubernetes'}\r\n2015-08-21 11:30:52,292 - atomicapp.install - DEBUG - Creating a container with name helloapache-WJiMlh\r\n2015-08-21 11:30:52,292 - atomicapp.install - DEBUG - /usr/bin/docker run --name helloapache-WJiMlh --entrypoint /bin/true projectatomic/helloapache\r\n2015-08-21 11:30:53,120 - atomicapp.utils - INFO - Using temporary directory /tmp/nulecule-cjiCCa\r\n2015-08-21 11:30:53,120 - atomicapp.install - DEBUG - ['/usr/bin/docker', 'cp', 'helloapache-WJiMlh:/application-entity', '/tmp/nulecule-cjiCCa']\r\n2015-08-21 11:30:53,247 - atomicapp.install - DEBUG - Application entity data copied to /tmp/nulecule-cjiCCa\r\n2015-08-21 11:30:53,248 - atomicapp.utils - INFO - atomicapp.status.info.message=Copied app successfully.\r\nhelloapache-WJiMlh\r\n2015-08-21 11:30:53,300 - atomicapp.install - INFO - Copying app helloapache\r\n2015-08-21 11:30:53,311 - atomicapp.nulecule_base - DEBUG - Setting app id to helloapache-app\r\n2015-08-21 11:30:53,312 - atomicapp.install - DEBUG - App ID: helloapache-app\r\n2015-08-21 11:30:53,312 - atomicapp.nulecule_base - DEBUG - Version check successful: specversion == 0.0.2\r\n2015-08-21 11:30:53,312 - atomicapp.utils - INFO - atomicapp.status.info.message=Checking all artifacts\r\n2015-08-21 11:30:53,312 - atomicapp.nulecule_base - DEBUG - Provider: docker\r\n2015-08-21 11:30:53,312 - atomicapp.utils - INFO - atomicapp.status.info.message=Artifact file://artifacts/docker/hello-apache-pod_run: OK.\r\n2015-08-21 11:30:53,312 - atomicapp.nulecule_base - DEBUG - Provider: kubernetes\r\n2015-08-21 11:30:53,312 - atomicapp.utils - INFO - atomicapp.status.info.message=Artifact file://artifacts/kubernetes/hello-apache-pod.json: OK.\r\n2015-08-21 11:30:53,312 - atomicapp.utils - INFO - atomicapp.status.info.message=All artifacts OK.\r\n2015-08-21 11:30:53,312 - atomicapp.nulecule_base - INFO - Artifacts for helloapache-app present for these providers: docker, kubernetes\r\n2015-08-21 11:30:53,312 - atomicapp.utils - INFO - atomicapp.status.info.message=Loading Nulecule file.\r\n2015-08-21 11:30:53,312 - atomicapp.install - INFO - Installing dependencies for helloapache-app\r\n2015-08-21 11:30:53,312 - atomicapp.utils - DEBUG - {u'artifacts': {u'docker': [u'file://artifacts/docker/hello-apache-pod_run'], u'kubernetes': [u'file://artifacts/kubernetes/hello-apache-pod.json']}, u'params': [{u'default': u'centos/httpd', u'name': u'image', u'description': u'The webserver image'}, {u'default': 80, u'name': u'hostport', u'description': u'The host TCP port as the external endpoint'}], u'name': u'helloapache-app'}\r\n2015-08-21 11:30:53,313 - atomicapp.install - DEBUG - Component helloapache-app is part of the app\r\n2015-08-21 11:30:53,313 - atomicapp.install - DEBUG - Values: {u'helloapache-app': {u'image': u'centos/httpd', u'hostport': 80}}\r\n2015-08-21 11:30:53,313 - atomicapp.utils - INFO - atomicapp.status.info.message=All dependencies installed successfully.\r\n2015-08-21 11:30:53,313 - atomicapp.install - DEBUG - {u'helloapache-app': {u'image': u'centos/httpd', u'hostport': 80}}\r\n2015-08-21 11:30:53,313 - atomicapp.nulecule_base - DEBUG - Data given {u'helloapache-app': {u'image': u'centos/httpd', u'hostport': 80}}\r\n2015-08-21 11:30:53,313 - atomicapp.install - DEBUG - {u'helloapache-app': {u'image': u'centos/httpd', u'hostport': 80}, 'general': {'namespace': 'default', 'provider': 'kubernetes'}}\r\n2015-08-21 11:30:53,313 - atomicapp.nulecule_base - INFO - Writing answers file template to /atomicapp/answers.conf.sample\r\n2015-08-21 11:30:53,313 - atomicapp.nulecule_base - DEBUG - writing {u'helloapache-app': {u'image': u'centos/httpd', u'hostport': 80}, 'general': {'namespace': 'default', 'provider': 'kubernetes'}} to /atomicapp/answers.conf.sample with format ini\r\n2015-08-21 11:30:53,314 - atomicapp.utils - INFO - atomicapp.status.answer.message={\"helloapache-app\": {\"image\": \"centos/httpd\", \"hostport\": 80}, \"general\": {\"namespace\": \"default\", \"provider\": \"kubernetes\"}}\r\n2015-08-21 11:30:53,314 - atomicapp.utils - INFO - atomicapp.status.info.message=Install Successful.\r\n2015-08-21 11:30:53,314 - atomicapp.utils - INFO - atomicapp.status.info.message=Install Successful.\r\n2015-08-21 11:30:53,314 - atomicapp.utils - DEBUG - Using working directory /atomicapp/.workdir\r\n2015-08-21 11:30:53,314 - atomicapp.plugin - DEBUG - Loading providers from /usr/lib/python2.7/site-packages/atomicapp-0.1.9-py2.7.egg/atomicapp/providers\r\n2015-08-21 11:30:53,322 - atomicapp.nulecule_base - DEBUG - Setting app id to helloapache-app\r\n2015-08-21 11:30:53,322 - atomicapp.nulecule_base - DEBUG - Version check successful: specversion == 0.0.2\r\n2015-08-21 11:30:53,322 - atomicapp.nulecule_base - DEBUG - Provider: docker\r\n2015-08-21 11:30:53,322 - atomicapp.utils - INFO - atomicapp.status.info.message=Artifact file://artifacts/docker/hello-apache-pod_run: OK.\r\n2015-08-21 11:30:53,322 - atomicapp.nulecule_base - DEBUG - Provider: kubernetes\r\n2015-08-21 11:30:53,323 - atomicapp.utils - INFO - atomicapp.status.info.message=Artifact file://artifacts/kubernetes/hello-apache-pod.json: OK.\r\n2015-08-21 11:30:53,323 - atomicapp.utils - INFO - atomicapp.status.info.message=All artifacts OK.\r\n2015-08-21 11:30:53,323 - atomicapp.nulecule_base - INFO - Artifacts for helloapache-app present for these providers: docker, kubernetes\r\n2015-08-21 11:30:53,323 - atomicapp.utils - DEBUG - {u'artifacts': {u'docker': [u'file://artifacts/docker/hello-apache-pod_run'], u'kubernetes': [u'file://artifacts/kubernetes/hello-apache-pod.json']}, u'params': [{u'default': u'centos/httpd', u'name': u'image', u'description': u'The webserver image'}, {u'default': 80, u'name': u'hostport', u'description': u'The host TCP port as the external endpoint'}], u'name': u'helloapache-app'}\r\n2015-08-21 11:30:53,323 - atomicapp.run - DEBUG - Processing component 'helloapache-app' and graph item '{u'artifacts': {u'docker': [u'file://artifacts/docker/hello-apache-pod_run'], u'kubernetes': [u'file://artifacts/kubernetes/hello-apache-pod.json']}, u'params': [{u'default': u'centos/httpd', u'name': u'image', u'description': u'The webserver image'}, {u'default': 80, u'name': u'hostport', u'description': u'The host TCP port as the external endpoint'}], u'name': u'helloapache-app'}'\r\n2015-08-21 11:30:53,323 - atomicapp.plugin - DEBUG - Found provider <class 'kubernetes.KubernetesProvider'>\r\n2015-08-21 11:30:53,323 - atomicapp.nulecule_base - DEBUG - Param provider already in general with value kubernetes\r\n2015-08-21 11:30:53,323 - atomicapp.nulecule_base - DEBUG - Param namespace already in general with value default\r\n2015-08-21 11:30:53,323 - atomicapp.utils - INFO - atomicapp.status.info.message=Deploying component helloapache-app ...\r\n2015-08-21 11:30:53,323 - atomicapp.run - INFO - Using provider kubernetes for component helloapache-app\r\n2015-08-21 11:30:53,323 - atomicapp.run - DEBUG - Templating artifact /atomicapp/artifacts/kubernetes/hello-apache-pod.json\r\n2015-08-21 11:30:53,324 - atomicapp.nulecule_base - DEBUG - Param provider already in general with value kubernetes\r\n2015-08-21 11:30:53,324 - atomicapp.nulecule_base - DEBUG - Param namespace already in general with value default\r\n2015-08-21 11:30:53,324 - atomicapp.run - DEBUG - Config: {u'image': u'centos/httpd', 'provider': 'kubernetes', 'namespace': 'default', u'hostport': 80}\r\n2015-08-21 11:30:53,324 - atomicapp.run - DEBUG - {u'image': u'centos/httpd', 'provider': 'kubernetes', 'namespace': 'default', u'hostport': 80}\r\n2015-08-21 11:30:53,324 - atomicapp.plugin - DEBUG - Writing artifact to /atomicapp/.workdir/helloapache-app/artifacts/kubernetes/hello-apache-pod.json\r\n2015-08-21 11:30:53,324 - kubernetes - DEBUG - Given config: {u'image': u'centos/httpd', 'provider': 'kubernetes', 'namespace': 'default', u'hostport': 80}\r\n2015-08-21 11:30:53,324 - kubernetes - INFO - Using namespace default\r\n2015-08-21 11:30:53,324 - kubernetes - INFO - trying kubectl at /host/usr/bin/kubectl\r\n2015-08-21 11:30:53,325 - kubernetes - INFO - found kubectl at /host/usr/bin/kubectl\r\n2015-08-21 11:30:53,325 - kubernetes - INFO - Deploying to Kubernetes\r\n2015-08-21 11:30:53,325 - kubernetes - DEBUG - /atomicapp/.workdir/helloapache-app/artifacts/kubernetes/hello-apache-pod.json\r\n2015-08-21 11:30:53,341 - kubernetes - DEBUG - stdout =\r\n2015-08-21 11:30:53,341 - kubernetes - DEBUG - stderr = error: could not read an encoded object from /atomicapp/.workdir/helloapache-app/artifacts/kubernetes/hello-apache-pod.json: API version \"v1beta3\" in \"/atomicapp/.workdir/helloapache-app/artifacts/kubernetes/hello-apache-pod.json\" isn't supported, only supports API versions [\"v1\"]\r\nerror: no objects passed to create\r\n\r\n\r\n2015-08-21 11:30:53,341 - atomicapp.utils - INFO - atomicapp.status.error.message=cmd failed: /host/usr/bin/kubectl create -f /atomicapp/.workdir/helloapache-app/artifacts/kubernetes/hello-apache-pod.json --namespace=default\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/atomicapp\", line 9, in <module>\r\n    load_entry_point('atomicapp==0.1.9', 'console_scripts', 'atomicapp')()\r\n  File \"/usr/lib/python2.7/site-packages/atomicapp-0.1.9-py2.7.egg/atomicapp/cli/main.py\", line 227, in main\r\n    cli.run()\r\n  File \"/usr/lib/python2.7/site-packages/atomicapp-0.1.9-py2.7.egg/atomicapp/cli/main.py\", line 203, in run\r\n    args.func(args)\r\n  File \"/usr/lib/python2.7/site-packages/atomicapp-0.1.9-py2.7.egg/atomicapp/cli/main.py\", line 54, in cli_run\r\n    if ae.run() is not None:\r\n  File \"/usr/lib/python2.7/site-packages/atomicapp-0.1.9-py2.7.egg/atomicapp/run.py\", line 230, in run\r\n    self._dispatchGraph()\r\n  File \"/usr/lib/python2.7/site-packages/atomicapp-0.1.9-py2.7.egg/atomicapp/run.py\", line 125, in _dispatchGraph\r\n    self._processComponent(component, graph_item)\r\n  File \"/usr/lib/python2.7/site-packages/atomicapp-0.1.9-py2.7.egg/atomicapp/run.py\", line 213, in _processComponent\r\n    provider.deploy()  \r\n  File \"/usr/lib/python2.7/site-packages/atomicapp-0.1.9-py2.7.egg/atomicapp/providers/kubernetes.py\", line 137, in deploy\r\n    self._callK8s(k8s_file)\r\n  File \"/usr/lib/python2.7/site-packages/atomicapp-0.1.9-py2.7.egg/atomicapp/providers/kubernetes.py\", line 101, in _callK8s\r\n    raise Exception(str(stderr))\r\nException: error: could not read an encoded object from /atomicapp/.workdir/helloapache-app/artifacts/kubernetes/hello-apache-pod.json: API version \"v1beta3\" in \"/atomicapp/.workdir/helloapache-app/artifacts/kubernetes/hello-apache-pod.json\" isn't supported, only supports API versions [\"v1\"]\r\nerror: no objects passed to create\r\n\r\n```\r\n[1] https://hub.docker.com/r/projectatomic/helloapache/"},"comment":{"url":"https://api.github.com/repos/projectatomic/nulecule/issues/comments/134608866","html_url":"https://github.com/projectatomic/nulecule/issues/152#issuecomment-134608866","issue_url":"https://api.github.com/repos/projectatomic/nulecule/issues/152","id":134608866,"user":{"login":"vpavlin","id":4759808,"avatar_url":"https://avatars.githubusercontent.com/u/4759808?v=3","gravatar_id":"","url":"https://api.github.com/users/vpavlin","html_url":"https://github.com/vpavlin","followers_url":"https://api.github.com/users/vpavlin/followers","following_url":"https://api.github.com/users/vpavlin/following{/other_user}","gists_url":"https://api.github.com/users/vpavlin/gists{/gist_id}","starred_url":"https://api.github.com/users/vpavlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpavlin/subscriptions","organizations_url":"https://api.github.com/users/vpavlin/orgs","repos_url":"https://api.github.com/users/vpavlin/repos","events_url":"https://api.github.com/users/vpavlin/events{/privacy}","received_events_url":"https://api.github.com/users/vpavlin/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T14:41:13Z","updated_at":"2015-08-25T14:41:13Z","body":"That's a different problem, seems like https://github.com/projectatomic/atomicapp/issues/220"}}