Skip to content

Instantly share code, notes, and snippets.

@surajssd
Created February 5, 2016 11:28
Show Gist options
  • Save surajssd/0c88561d1cc87c6fbcc0 to your computer and use it in GitHub Desktop.
Save surajssd/0c88561d1cc87c6fbcc0 to your computer and use it in GitHub Desktop.
[centos@atomic etherpad-centos7-atomicapp]$ sudo atomic run ether
docker run -it --rm --privileged -v /home/centos/nulecule-library/etherpad-centos7-atomicapp:/atomicapp -v /run:/run -v /:/host --net=host --name ether -e NAME=ether -e IMAGE=ether ether -v run
docker run -it --rm --privileged -v /home/centos/nulecule-library/etherpad-centos7-atomicapp:/atomicapp -v /run:/run -v /:/host --net=host --name ether -e NAME=ether -e IMAGE=ether ether -v run
2016-02-05 09:02:30,774 - __main__ - INFO - Action/Mode Selected is: run
2016-02-05 09:02:30,775 - __main__ - DEBUG - Setting app_spec based on $IMAGE env var
2016-02-05 09:02:30,775 - __main__ - DEBUG - Final parsed cmdline: run -v
2016-02-05 09:02:30,776 - atomicapp.nulecule.main - DEBUG - NuleculeManager init app_path: /host/var/lib/atomicapp/ether-9912d65b14cf
2016-02-05 09:02:30,776 - atomicapp.nulecule.main - DEBUG - NuleculeManager init image: ether
2016-02-05 09:02:30,776 - atomicapp.nulecule.main - DEBUG - Request to unpack to ether to /host/var/lib/atomicapp/ether-9912d65b14cf
2016-02-05 09:02:30,776 - atomicapp.nulecule.base - INFO - Unpacking image: ether to /host/var/lib/atomicapp/ether-9912d65b14cf
2016-02-05 09:02:30,866 - atomicapp.nulecule.container - INFO - Skipping pulling Docker image: ether
2016-02-05 09:02:30,866 - atomicapp.nulecule.container - INFO - Extracting nulecule data from image: ether to /host/var/lib/atomicapp/ether-9912d65b14cf
2016-02-05 09:02:30,866 - atomicapp.nulecule.container - DEBUG - Creating docker container: /usr/bin/docker create --entrypoint /bin/true ether
2016-02-05 09:02:31,157 - atomicapp.nulecule.container - DEBUG - Copying data from Docker container: /usr/bin/docker cp c35d7ec297e82277ccd1e6666e89a32624c099672abec7df96f49b4c4d0a962e:/application-entity /tmp/nulecule-30389f1c-cbe7-11e5-9007-5254008dab7b
2016-02-05 09:02:31,284 - atomicapp.nulecule.container - DEBUG - Copying nulecule data from /tmp/nulecule-30389f1c-cbe7-11e5-9007-5254008dab7b to /host/var/lib/atomicapp/ether-9912d65b14cf
2016-02-05 09:02:31,286 - atomicapp.nulecule.container - DEBUG - Removing tmp dir: /tmp/nulecule-30389f1c-cbe7-11e5-9007-5254008dab7b
2016-02-05 09:02:31,286 - atomicapp.utils - DEBUG - Recursively removing directory: /tmp/nulecule-30389f1c-cbe7-11e5-9007-5254008dab7b
2016-02-05 09:02:31,287 - atomicapp.nulecule.container - DEBUG - Removing Docker container: /usr/bin/docker rm -f c35d7ec297e82277ccd1e6666e89a32624c099672abec7df96f49b4c4d0a962e
c35d7ec297e82277ccd1e6666e89a32624c099672abec7df96f49b4c4d0a962e
2016-02-05 09:02:33,640 - atomicapp.plugin - DEBUG - Loading providers from /opt/atomicapp/atomicapp/providers
2016-02-05 09:02:33,643 - atomicapp.plugin - DEBUG - Loading providers from /opt/atomicapp/atomicapp/providers
2016-02-05 09:02:33,644 - atomicapp.nulecule.base - INFO - Pulling external application for mariadb-centos7-atomicapp.
2016-02-05 09:02:33,644 - atomicapp.nulecule.base - INFO - Unpacking image: projectatomic/mariadb-centos7-atomicapp to /host/var/lib/atomicapp/ether-9912d65b14cf/external/mariadb-centos7-atomicapp
2016-02-05 09:02:33,708 - atomicapp.nulecule.container - INFO - Pulling Docker image: projectatomic/mariadb-centos7-atomicapp
2016-02-05 09:02:33,708 - atomicapp.nulecule.container - DEBUG - /usr/bin/docker pull projectatomic/mariadb-centos7-atomicapp
Using default tag: latest
Trying to pull repository docker.io/projectatomic/mariadb-centos7-atomicapp ... latest: Pulling from projectatomic/mariadb-centos7-atomicapp
968d12afcebd: Pull complete
7727dba2767c: Pull complete
2b3330de6b88: Pull complete
89f47a6354cb: Pull complete
47d44cb6f252: Already exists
838c1c5c4f83: Already exists
5764f0a31317: Already exists
60e65a8e4030: Already exists
8b3ed8495831: Already exists
8c0be45ca5d4: Already exists
c21f4e1273aa: Already exists
b8605cdf521d: Already exists
3863a86cf9c9: Already exists
46ff2a7c9fce: Already exists
d66680ab041a: Already exists
521212f7dc7e: Already exists
b174493cdd33: Already exists
8a725e5795fb: Already exists
d3712fdefcf1: Already exists
e697979d0ad8: Already exists
Digest: sha256:650656aad1bf9980bb336195b66c114810b3bde33d435d5679136b94c02a251b
Status: Downloaded newer image for docker.io/projectatomic/mariadb-centos7-atomicapp:latest
2016-02-05 09:02:43,029 - atomicapp.nulecule.container - INFO - Extracting nulecule data from image: projectatomic/mariadb-centos7-atomicapp to /host/var/lib/atomicapp/ether-9912d65b14cf/external/mariadb-centos7-atomicapp
2016-02-05 09:02:43,029 - atomicapp.nulecule.container - DEBUG - Creating docker container: /usr/bin/docker create --entrypoint /bin/true projectatomic/mariadb-centos7-atomicapp
2016-02-05 09:02:43,336 - atomicapp.nulecule.container - DEBUG - Copying data from Docker container: /usr/bin/docker cp 884a397a0a6eac9d93ff666120e79ed86d6397e1f8aede45cca9a0f7503fc0d7:/application-entity /tmp/nulecule-377afaae-cbe7-11e5-9007-5254008dab7b
2016-02-05 09:02:43,462 - atomicapp.nulecule.container - DEBUG - Copying nulecule data from /tmp/nulecule-377afaae-cbe7-11e5-9007-5254008dab7b to /host/var/lib/atomicapp/ether-9912d65b14cf/external/mariadb-centos7-atomicapp
2016-02-05 09:02:43,464 - atomicapp.nulecule.container - DEBUG - Removing tmp dir: /tmp/nulecule-377afaae-cbe7-11e5-9007-5254008dab7b
2016-02-05 09:02:43,464 - atomicapp.utils - DEBUG - Recursively removing directory: /tmp/nulecule-377afaae-cbe7-11e5-9007-5254008dab7b
2016-02-05 09:02:43,464 - atomicapp.nulecule.container - DEBUG - Removing Docker container: /usr/bin/docker rm -f 884a397a0a6eac9d93ff666120e79ed86d6397e1f8aede45cca9a0f7503fc0d7
884a397a0a6eac9d93ff666120e79ed86d6397e1f8aede45cca9a0f7503fc0d7
2016-02-05 09:02:45,794 - atomicapp.plugin - DEBUG - Loading providers from /opt/atomicapp/atomicapp/providers
2016-02-05 09:02:45,795 - atomicapp.plugin - DEBUG - Loading providers from /opt/atomicapp/atomicapp/providers
2016-02-05 09:02:45,795 - atomicapp.plugin - DEBUG - Loading providers from /opt/atomicapp/atomicapp/providers
db_user (Database User): centos
db_pass (Database Password): centos
db_name (Database Name): centos
db_user (Database User): centos
db_pass (Database Password): centos
db_name (Database Name): centos
2016-02-05 09:03:05,728 - atomicapp.plugin - DEBUG - Found provider <class 'kubernetes.KubernetesProvider'>
2016-02-05 09:03:05,728 - atomicapp.plugin - WARNING - Configuration option 'providerconfig' not found
2016-02-05 09:03:05,728 - atomicapp.plugin - DEBUG - Found provider <class 'kubernetes.KubernetesProvider'>
2016-02-05 09:03:05,728 - atomicapp.plugin - WARNING - Configuration option 'providerconfig' not found
2016-02-05 09:03:05,728 - atomicapp.plugin - DEBUG - Found provider <class 'kubernetes.KubernetesProvider'>
2016-02-05 09:03:05,728 - atomicapp.plugin - WARNING - Configuration option 'providerconfig' not found
2016-02-05 09:03:05,728 - kubernetes - DEBUG - Given config: {u'db_pass': 'centos', u'db_name': 'centos', u'db_user': 'centos', u'root_pass': u'MySQLPass', 'provider': 'kubernetes', 'namespace': 'default'}
2016-02-05 09:03:05,728 - kubernetes - INFO - Using namespace default
2016-02-05 09:03:05,728 - kubernetes - INFO - trying kubectl at /host/usr/bin/kubectl
2016-02-05 09:03:05,729 - kubernetes - INFO - found kubectl at /host/usr/bin/kubectl
2016-02-05 09:03:05,729 - kubernetes - INFO - Deploying to Kubernetes
2016-02-05 09:03:05,729 - kubernetes - DEBUG - /host/var/lib/atomicapp/ether-9912d65b14cf/external/mariadb-centos7-atomicapp/artifacts/kubernetes/.mariadb-pod.yaml
2016-02-05 09:03:05,733 - kubernetes - DEBUG - /host/var/lib/atomicapp/ether-9912d65b14cf/external/mariadb-centos7-atomicapp/artifacts/kubernetes/.mariadb-service.yaml
2016-02-05 09:03:05,754 - atomicapp.utils - DEBUG -
<<< stdout >>>
<<< end >>>
2016-02-05 09:03:05,755 - atomicapp.utils - DEBUG -
<<< stderr >>>
Error from server: error when creating "/host/var/lib/atomicapp/ether-9912d65b14cf/external/mariadb-centos7-atomicapp/artifacts/kubernetes/.mariadb-pod.yaml": Pod "mariadb" is forbidden: no API token found for service account default/default, retry after the token is automatically created and added to the service account
<<< end >>>
2016-02-05 09:03:05,755 - atomicapp.utils - INFO - atomicapp.status.error.message=cmd failed: ['/host/usr/bin/kubectl', 'create', '-f', u'/host/var/lib/atomicapp/ether-9912d65b14cf/external/mariadb-centos7-atomicapp/artifacts/kubernetes/.mariadb-pod.yaml', '--namespace=default']
2016-02-05 09:03:05,755 - __main__ - ERROR - cmd: ['/host/usr/bin/kubectl', 'create', '-f', u'/host/var/lib/atomicapp/ether-9912d65b14cf/external/mariadb-centos7-atomicapp/artifacts/kubernetes/.mariadb-pod.yaml', '--namespace=default'] failed:
Error from server: error when creating "/host/var/lib/atomicapp/ether-9912d65b14cf/external/mariadb-centos7-atomicapp/artifacts/kubernetes/.mariadb-pod.yaml": Pod "mariadb" is forbidden: no API token found for service account default/default, retry after the token is automatically created and added to the service account
Traceback (most recent call last):
File "/opt/atomicapp/atomicapp/cli/main.py", line 100, in cli_run
nm.run(**argdict)
File "/opt/atomicapp/atomicapp/nulecule/main.py", line 234, in run
self.nulecule.run(cli_provider, dryrun)
File "/opt/atomicapp/atomicapp/nulecule/base.py", line 161, in run
component.run(provider_key, dryrun)
File "/opt/atomicapp/atomicapp/nulecule/base.py", line 286, in run
self._app.run(provider_key, dryrun)
File "/opt/atomicapp/atomicapp/nulecule/base.py", line 161, in run
component.run(provider_key, dryrun)
File "/opt/atomicapp/atomicapp/nulecule/base.py", line 291, in run
provider.run()
File "/opt/atomicapp/atomicapp/providers/kubernetes.py", line 185, in run
self._call(cmd)
File "/opt/atomicapp/atomicapp/providers/kubernetes.py", line 110, in _call
ec, stdout, stderr = Utils.run_cmd(cmd, checkexitcode=True)
File "/opt/atomicapp/atomicapp/utils.py", line 276, in run_cmd
"cmd: %s failed: \n%s" % (str(cmd), stderr))
AtomicAppUtilsException: cmd: ['/host/usr/bin/kubectl', 'create', '-f', u'/host/var/lib/atomicapp/ether-9912d65b14cf/external/mariadb-centos7-atomicapp/artifacts/kubernetes/.mariadb-pod.yaml', '--namespace=default'] failed:
Error from server: error when creating "/host/var/lib/atomicapp/ether-9912d65b14cf/external/mariadb-centos7-atomicapp/artifacts/kubernetes/.mariadb-pod.yaml": Pod "mariadb" is forbidden: no API token found for service account default/default, retry after the token is automatically created and added to the service account
[centos@atomic etherpad-centos7-atomicapp]$ sudo vi /etc/kubernetes/apiserver
[centos@atomic etherpad-centos7-atomicapp]$ kubectl get pods
NAME READY STATUS RESTARTS AGE
[centos@atomic etherpad-centos7-atomicapp]$
File "/opt/atomicapp/atomicapp/nulecule/base.py", line 161, in run
component.run(provider_key, dryrun)
File "/opt/atomicapp/atomicapp/nulecule/base.py", line 291, in run
provider.run()
File "/opt/atomicapp/atomicapp/providers/kubernetes.py", line 185, in run
self._call(cmd)
File "/opt/atomicapp/atomicapp/providers/kubernetes.py", line 110, in _call
ec, stdout, stderr = Utils.run_cmd(cmd, checkexitcode=True)
File "/opt/atomicapp/atomicapp/utils.py", line 276, in run_cmd
"cmd: %s failed: \n%s" % (str(cmd), stderr))
AtomicAppUtilsException: cmd: ['/host/usr/bin/kubectl', 'create', '-f', u'/host/var/lib/atomicapp/ether-9912d65b14cf/external/mariadb-centos7-atomicapp/artifacts/kubernetes/.mariadb-pod.yaml', '--namespace=default'] failed:
Error from server: error when creating "/host/var/lib/atomicapp/ether-9912d65b14cf/external/mariadb-centos7-atomicapp/artifacts/kubernetes/.mariadb-pod.yaml": Pod "mariadb" is forbidden: no API token found for service account default/default, retry after the token is automatically created and added to the service account
[centos@atomic etherpad-centos7-atomicapp]$ sudo vi /etc/kubernetes/apiserver
[centos@atomic etherpad-centos7-atomicapp]$ kubectl get pods
NAME READY STATUS RESTARTS AGE
[centos@atomic etherpad-centos7-atomicapp]$
[centos@atomic etherpad-centos7-atomicapp]$ sudo atomic run ether
docker run -it --rm --privileged -v /home/centos/nulecule-library/etherpad-centos7-atomicapp:/atomicapp -v /run:/run -v /:/host --net=host --name ether -e NAME=ether -e IMAGE=ether ether -v run
docker run -it --rm --privileged -v /home/centos/nulecule-library/etherpad-centos7-atomicapp:/atomicapp -v /run:/run -v /:/host --net=host --name ether -e NAME=ether -e IMAGE=ether ether -v run
2016-02-05 09:06:27,565 - __main__ - INFO - Action/Mode Selected is: run
2016-02-05 09:06:27,566 - __main__ - DEBUG - Setting app_spec based on $IMAGE env var
2016-02-05 09:06:27,566 - __main__ - DEBUG - Final parsed cmdline: run -v
2016-02-05 09:06:27,566 - atomicapp.nulecule.main - DEBUG - NuleculeManager init app_path: /host/var/lib/atomicapp/ether-0d34a37538e3
2016-02-05 09:06:27,566 - atomicapp.nulecule.main - DEBUG - NuleculeManager init image: ether
2016-02-05 09:06:27,567 - atomicapp.nulecule.main - DEBUG - Request to unpack to ether to /host/var/lib/atomicapp/ether-0d34a37538e3
2016-02-05 09:06:27,567 - atomicapp.nulecule.base - INFO - Unpacking image: ether to /host/var/lib/atomicapp/ether-0d34a37538e3
2016-02-05 09:06:27,655 - atomicapp.nulecule.container - INFO - Skipping pulling Docker image: ether
2016-02-05 09:06:27,655 - atomicapp.nulecule.container - INFO - Extracting nulecule data from image: ether to /host/var/lib/atomicapp/ether-0d34a37538e3
2016-02-05 09:06:27,655 - atomicapp.nulecule.container - DEBUG - Creating docker container: /usr/bin/docker create --entrypoint /bin/true ether
2016-02-05 09:06:27,955 - atomicapp.nulecule.container - DEBUG - Copying data from Docker container: /usr/bin/docker cp 6be27d10e54f529f500dac34dc685362811878ec651ac07b330aedf4c0859891:/application-entity /tmp/nulecule-bd5d4032-cbe7-11e5-aae8-5254008dab7b
2016-02-05 09:06:28,072 - atomicapp.nulecule.container - DEBUG - Copying nulecule data from /tmp/nulecule-bd5d4032-cbe7-11e5-aae8-5254008dab7b to /host/var/lib/atomicapp/ether-0d34a37538e3
2016-02-05 09:06:28,074 - atomicapp.nulecule.container - DEBUG - Removing tmp dir: /tmp/nulecule-bd5d4032-cbe7-11e5-aae8-5254008dab7b
2016-02-05 09:06:28,074 - atomicapp.utils - DEBUG - Recursively removing directory: /tmp/nulecule-bd5d4032-cbe7-11e5-aae8-5254008dab7b
2016-02-05 09:06:28,075 - atomicapp.nulecule.container - DEBUG - Removing Docker container: /usr/bin/docker rm -f 6be27d10e54f529f500dac34dc685362811878ec651ac07b330aedf4c0859891
6be27d10e54f529f500dac34dc685362811878ec651ac07b330aedf4c0859891
2016-02-05 09:06:30,530 - atomicapp.plugin - DEBUG - Loading providers from /opt/atomicapp/atomicapp/providers
2016-02-05 09:06:30,534 - atomicapp.plugin - DEBUG - Loading providers from /opt/atomicapp/atomicapp/providers
2016-02-05 09:06:30,535 - atomicapp.nulecule.base - INFO - Pulling external application for mariadb-centos7-atomicapp.
2016-02-05 09:06:30,535 - atomicapp.nulecule.base - INFO - Unpacking image: projectatomic/mariadb-centos7-atomicapp to /host/var/lib/atomicapp/ether-0d34a37538e3/external/mariadb-centos7-atomicapp
2016-02-05 09:06:30,596 - atomicapp.nulecule.container - INFO - Skipping pulling Docker image: projectatomic/mariadb-centos7-atomicapp
2016-02-05 09:06:30,597 - atomicapp.nulecule.container - INFO - Extracting nulecule data from image: projectatomic/mariadb-centos7-atomicapp to /host/var/lib/atomicapp/ether-0d34a37538e3/external/mariadb-centos7-atomicapp
2016-02-05 09:06:30,597 - atomicapp.nulecule.container - DEBUG - Creating docker container: /usr/bin/docker create --entrypoint /bin/true projectatomic/mariadb-centos7-atomicapp
2016-02-05 09:06:30,895 - atomicapp.nulecule.container - DEBUG - Copying data from Docker container: /usr/bin/docker cp c21b8763b5311c73a07b56b8eea08481efce3ad2b7a87b2bfd06ed32a259c4a5:/application-entity /tmp/nulecule-bf1dd8dc-cbe7-11e5-aae8-5254008dab7b
2016-02-05 09:06:31,021 - atomicapp.nulecule.container - DEBUG - Copying nulecule data from /tmp/nulecule-bf1dd8dc-cbe7-11e5-aae8-5254008dab7b to /host/var/lib/atomicapp/ether-0d34a37538e3/external/mariadb-centos7-atomicapp
2016-02-05 09:06:31,023 - atomicapp.nulecule.container - DEBUG - Removing tmp dir: /tmp/nulecule-bf1dd8dc-cbe7-11e5-aae8-5254008dab7b
2016-02-05 09:06:31,023 - atomicapp.utils - DEBUG - Recursively removing directory: /tmp/nulecule-bf1dd8dc-cbe7-11e5-aae8-5254008dab7b
2016-02-05 09:06:31,023 - atomicapp.nulecule.container - DEBUG - Removing Docker container: /usr/bin/docker rm -f c21b8763b5311c73a07b56b8eea08481efce3ad2b7a87b2bfd06ed32a259c4a5
c21b8763b5311c73a07b56b8eea08481efce3ad2b7a87b2bfd06ed32a259c4a5
2016-02-05 09:06:33,356 - atomicapp.plugin - DEBUG - Loading providers from /opt/atomicapp/atomicapp/providers
2016-02-05 09:06:33,356 - atomicapp.plugin - DEBUG - Loading providers from /opt/atomicapp/atomicapp/providers
2016-02-05 09:06:33,357 - atomicapp.plugin - DEBUG - Loading providers from /opt/atomicapp/atomicapp/providers
db_user (Database User): centos
db_pass (Database Password): centos
db_name (Database Name): centos
db_user (Database User): centos
db_pass (Database Password): centos
db_name (Database Name): centos
2016-02-05 09:06:46,898 - atomicapp.plugin - DEBUG - Found provider <class 'kubernetes.KubernetesProvider'>
2016-02-05 09:06:46,898 - atomicapp.plugin - WARNING - Configuration option 'providerconfig' not found
2016-02-05 09:06:46,898 - atomicapp.plugin - DEBUG - Found provider <class 'kubernetes.KubernetesProvider'>
2016-02-05 09:06:46,898 - atomicapp.plugin - WARNING - Configuration option 'providerconfig' not found
2016-02-05 09:06:46,898 - atomicapp.plugin - DEBUG - Found provider <class 'kubernetes.KubernetesProvider'>
2016-02-05 09:06:46,898 - atomicapp.plugin - WARNING - Configuration option 'providerconfig' not found
2016-02-05 09:06:46,898 - kubernetes - DEBUG - Given config: {u'db_pass': 'centos', u'db_name': 'centos', u'db_user': 'centos', u'root_pass': u'MySQLPass', 'provider': 'kubernetes', 'namespace': 'default'}
2016-02-05 09:06:46,898 - kubernetes - INFO - Using namespace default
2016-02-05 09:06:46,898 - kubernetes - INFO - trying kubectl at /host/usr/bin/kubectl
2016-02-05 09:06:46,899 - kubernetes - INFO - found kubectl at /host/usr/bin/kubectl
2016-02-05 09:06:46,899 - kubernetes - INFO - Deploying to Kubernetes
2016-02-05 09:06:46,899 - kubernetes - DEBUG - /host/var/lib/atomicapp/ether-0d34a37538e3/external/mariadb-centos7-atomicapp/artifacts/kubernetes/.mariadb-pod.yaml
2016-02-05 09:06:46,903 - kubernetes - DEBUG - /host/var/lib/atomicapp/ether-0d34a37538e3/external/mariadb-centos7-atomicapp/artifacts/kubernetes/.mariadb-service.yaml
2016-02-05 09:06:46,918 - atomicapp.utils - DEBUG -
<<< stdout >>>
<<< end >>>
2016-02-05 09:06:46,919 - atomicapp.utils - DEBUG -
<<< stderr >>>
Error from server: error when creating "/host/var/lib/atomicapp/ether-0d34a37538e3/external/mariadb-centos7-atomicapp/artifacts/kubernetes/.mariadb-pod.yaml": Pod "mariadb" is forbidden: no API token found for service account default/default, retry after the token is automatically created and added to the service account
<<< end >>>
2016-02-05 09:06:46,919 - atomicapp.utils - INFO - atomicapp.status.error.message=cmd failed: ['/host/usr/bin/kubectl', 'create', '-f', u'/host/var/lib/atomicapp/ether-0d34a37538e3/external/mariadb-centos7-atomicapp/artifacts/kubernetes/.mariadb-pod.yaml', '--namespace=default']
2016-02-05 09:06:46,919 - __main__ - ERROR - cmd: ['/host/usr/bin/kubectl', 'create', '-f', u'/host/var/lib/atomicapp/ether-0d34a37538e3/external/mariadb-centos7-atomicapp/artifacts/kubernetes/.mariadb-pod.yaml', '--namespace=default'] failed:
Error from server: error when creating "/host/var/lib/atomicapp/ether-0d34a37538e3/external/mariadb-centos7-atomicapp/artifacts/kubernetes/.mariadb-pod.yaml": Pod "mariadb" is forbidden: no API token found for service account default/default, retry after the token is automatically created and added to the service account
Traceback (most recent call last):
File "/opt/atomicapp/atomicapp/cli/main.py", line 100, in cli_run
nm.run(**argdict)
File "/opt/atomicapp/atomicapp/nulecule/main.py", line 234, in run
self.nulecule.run(cli_provider, dryrun)
File "/opt/atomicapp/atomicapp/nulecule/base.py", line 161, in run
component.run(provider_key, dryrun)
File "/opt/atomicapp/atomicapp/nulecule/base.py", line 286, in run
self._app.run(provider_key, dryrun)
File "/opt/atomicapp/atomicapp/nulecule/base.py", line 161, in run
component.run(provider_key, dryrun)
File "/opt/atomicapp/atomicapp/nulecule/base.py", line 291, in run
provider.run()
File "/opt/atomicapp/atomicapp/providers/kubernetes.py", line 185, in run
self._call(cmd)
File "/opt/atomicapp/atomicapp/providers/kubernetes.py", line 110, in _call
ec, stdout, stderr = Utils.run_cmd(cmd, checkexitcode=True)
File "/opt/atomicapp/atomicapp/utils.py", line 276, in run_cmd
"cmd: %s failed: \n%s" % (str(cmd), stderr))
AtomicAppUtilsException: cmd: ['/host/usr/bin/kubectl', 'create', '-f', u'/host/var/lib/atomicapp/ether-0d34a37538e3/external/mariadb-centos7-atomicapp/artifacts/kubernetes/.mariadb-pod.yaml', '--namespace=default'] failed:
Error from server: error when creating "/host/var/lib/atomicapp/ether-0d34a37538e3/external/mariadb-centos7-atomicapp/artifacts/kubernetes/.mariadb-pod.yaml": Pod "mariadb" is forbidden: no API token found for service account default/default, retry after the token is automatically created and added to the service account
[centos@atomic etherpad-centos7-atomicapp]$ sudo sh ~/services.sh
● etcd.service - Etcd Server
Loaded: loaded (/usr/lib/systemd/system/etcd.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2016-02-05 09:07:05 UTC; 60ms ago
Main PID: 6838 (etcd)
CGroup: /system.slice/etcd.service
└─6838 /usr/bin/etcd
Feb 05 09:07:05 atomic.example.org bash[6838]: 2016/02/5 09:07:05 etcdserver: heart...ms
Feb 05 09:07:05 atomic.example.org bash[6838]: 2016/02/5 09:07:05 etcdserver: elect...ms
Feb 05 09:07:05 atomic.example.org bash[6838]: 2016/02/5 09:07:05 etcdserver: snaps...00
Feb 05 09:07:05 atomic.example.org bash[6838]: 2016/02/5 09:07:05 etcdserver: adver...79
Feb 05 09:07:06 atomic.example.org bash[6838]: 2016/02/5 09:07:06 etcdserver: resta...80
Feb 05 09:07:06 atomic.example.org bash[6838]: 2016/02/5 09:07:06 raft: ce2a822cea3... 8
Feb 05 09:07:06 atomic.example.org bash[6838]: 2016/02/5 09:07:06 raft: newRaft ce2...8]
Feb 05 09:07:06 atomic.example.org bash[6838]: 2016/02/5 09:07:06 etcdserver: start...d]
Feb 05 09:07:06 atomic.example.org bash[6838]: 2016/02/5 09:07:06 etcdserver: added...ae
Feb 05 09:07:06 atomic.example.org bash[6838]: 2016/02/5 09:07:06 etcdserver: set t....0
Hint: Some lines were ellipsized, use -l to show in full.
● kube-apiserver.service - Kubernetes API Server
Loaded: loaded (/usr/lib/systemd/system/kube-apiserver.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2016-02-05 09:07:07 UTC; 42ms ago
Docs: https://github.com/GoogleCloudPlatform/kubernetes
Main PID: 6872 (kube-apiserver)
CGroup: /system.slice/kube-apiserver.service
└─6872 /usr/bin/kube-apiserver --logtostderr=true --v=0 --etcd_servers=htt...
Feb 05 09:07:06 atomic.example.org kube-apiserver[6872]: [restful] 2016/02/05 09:07:.../
Feb 05 09:07:06 atomic.example.org kube-apiserver[6872]: [restful] 2016/02/05 09:07:.../
Feb 05 09:07:07 atomic.example.org kube-apiserver[6872]: E0205 09:07:07.095209 68...d
Feb 05 09:07:07 atomic.example.org kube-apiserver[6872]: E0205 09:07:07.095218 68...d
Feb 05 09:07:07 atomic.example.org kube-apiserver[6872]: E0205 09:07:07.095241 68...d
Feb 05 09:07:07 atomic.example.org kube-apiserver[6872]: E0205 09:07:07.095234 68...d
Feb 05 09:07:07 atomic.example.org kube-apiserver[6872]: I0205 09:07:07.334669 68...3
Feb 05 09:07:07 atomic.example.org kube-apiserver[6872]: I0205 09:07:07.334712 68...0
Feb 05 09:07:07 atomic.example.org kube-apiserver[6872]: I0205 09:07:07.557764 68...)
Feb 05 09:07:07 atomic.example.org systemd[1]: Started Kubernetes API Server.
Hint: Some lines were ellipsized, use -l to show in full.
● kube-controller-manager.service - Kubernetes Controller Manager
Loaded: loaded (/usr/lib/systemd/system/kube-controller-manager.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2016-02-05 09:07:07 UTC; 66ms ago
Docs: https://github.com/GoogleCloudPlatform/kubernetes
Main PID: 6904 (kube-controller)
CGroup: /system.slice/kube-controller-manager.service
└─6904 /usr/bin/kube-controller-manager --logtostderr=true --v=0 --master=...
Feb 05 09:07:07 atomic.example.org systemd[1]: Started Kubernetes Controller Manager.
Feb 05 09:07:07 atomic.example.org systemd[1]: Starting Kubernetes Controller Manager...
Feb 05 09:07:07 atomic.example.org kube-controller-manager[6904]: I0205 09:07:07.6377...
Feb 05 09:07:07 atomic.example.org kube-controller-manager[6904]: I0205 09:07:07.6378...
Feb 05 09:07:07 atomic.example.org kube-controller-manager[6904]: E0205 09:07:07.6379...
Feb 05 09:07:07 atomic.example.org kube-controller-manager[6904]: W0205 09:07:07.6487...
Feb 05 09:07:07 atomic.example.org kube-controller-manager[6904]: E0205 09:07:07.6513...
Hint: Some lines were ellipsized, use -l to show in full.
● kube-scheduler.service - Kubernetes Scheduler Plugin
Loaded: loaded (/usr/lib/systemd/system/kube-scheduler.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2016-02-05 09:07:07 UTC; 44ms ago
Docs: https://github.com/GoogleCloudPlatform/kubernetes
Main PID: 6935 (kube-scheduler)
CGroup: /system.slice/kube-scheduler.service
└─6935 /usr/bin/kube-scheduler --logtostderr=true --v=0 --master=http://12...
Feb 05 09:07:07 atomic.example.org systemd[1]: Started Kubernetes Scheduler Plugin.
Feb 05 09:07:07 atomic.example.org systemd[1]: Starting Kubernetes Scheduler Plugin...
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2016-02-05 09:07:08 UTC; 61ms ago
Docs: http://docs.docker.com
Main PID: 7005 (docker)
CGroup: /system.slice/docker.service
└─7005 /usr/bin/docker daemon --selinux-enabled
Feb 05 09:07:07 atomic.example.org docker[7005]: time="2016-02-05T09:07:07.996157446..."
Feb 05 09:07:07 atomic.example.org docker[7005]: time="2016-02-05T09:07:07.996184515..."
Feb 05 09:07:07 atomic.example.org docker[7005]: time="2016-02-05T09:07:07.999431051..."
Feb 05 09:07:08 atomic.example.org docker[7005]: time="2016-02-05T09:07:08.002055614..."
Feb 05 09:07:08 atomic.example.org docker[7005]: time="2016-02-05T09:07:08.068914872..."
Feb 05 09:07:08 atomic.example.org docker[7005]: time="2016-02-05T09:07:08.069051278..."
Feb 05 09:07:08 atomic.example.org docker[7005]: time="2016-02-05T09:07:08.069066711..."
Feb 05 09:07:08 atomic.example.org docker[7005]: time="2016-02-05T09:07:08.069077390...s
Feb 05 09:07:08 atomic.example.org systemd[1]: Started Docker Application Container...e.
Feb 05 09:07:08 atomic.example.org docker[7005]: time="2016-02-05T09:07:08.091811849..."
Hint: Some lines were ellipsized, use -l to show in full.
● kube-proxy.service - Kubernetes Kube-Proxy Server
Loaded: loaded (/usr/lib/systemd/system/kube-proxy.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2016-02-05 09:07:08 UTC; 72ms ago
Docs: https://github.com/GoogleCloudPlatform/kubernetes
Main PID: 7083 (kube-proxy)
CGroup: /system.slice/kube-proxy.service
└─7083 /usr/bin/kube-proxy --logtostderr=true --v=0 --master=http://127.0....
Feb 05 09:07:08 atomic.example.org systemd[1]: Started Kubernetes Kube-Proxy Server.
Feb 05 09:07:08 atomic.example.org systemd[1]: Starting Kubernetes Kube-Proxy Server...
Hint: Some lines were ellipsized, use -l to show in full.
● kubelet.service - Kubernetes Kubelet Server
Loaded: loaded (/usr/lib/systemd/system/kubelet.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2016-02-05 09:07:08 UTC; 56ms ago
Docs: https://github.com/GoogleCloudPlatform/kubernetes
Main PID: 7135 (kubelet)
CGroup: /system.slice/kubelet.service
└─7135 /usr/bin/kubelet --logtostderr=true --v=0 --api_servers=http://127....
Feb 05 09:07:08 atomic.example.org systemd[1]: kubelet.service failed.
Feb 05 09:07:08 atomic.example.org systemd[1]: Started Kubernetes Kubelet Server.
Feb 05 09:07:08 atomic.example.org systemd[1]: Starting Kubernetes Kubelet Server...
Feb 05 09:07:08 atomic.example.org kubelet[7135]: W0205 09:07:08.270895 7135 serv....
Feb 05 09:07:08 atomic.example.org kubelet[7135]: W0205 09:07:08.271004 7135 serv....
Feb 05 09:07:08 atomic.example.org kubelet[7135]: I0205 09:07:08.271092 7135 mana..."
Feb 05 09:07:08 atomic.example.org kubelet[7135]: I0205 09:07:08.271419 7135 fs.g...]
Feb 05 09:07:08 atomic.example.org kubelet[7135]: I0205 09:07:08.273302 7135 mana...8
Feb 05 09:07:08 atomic.example.org kubelet[7135]: I0205 09:07:08.274960 7135 mana...}
Feb 05 09:07:08 atomic.example.org kubelet[7135]: I0205 09:07:08.275290 7135 plug....
Hint: Some lines were ellipsized, use -l to show in full.
[centos@atomic etherpad-centos7-atomicapp]$
[centos@atomic etherpad-centos7-atomicapp]$ sudo atomic run ether
docker run -it --rm --privileged -v /home/centos/nulecule-library/etherpad-centos7-atomicapp:/atomicapp -v /run:/run -v /:/host --net=host --name ether -e NAME=ether -e IMAGE=ether ether -v run
docker run -it --rm --privileged -v /home/centos/nulecule-library/etherpad-centos7-atomicapp:/atomicapp -v /run:/run -v /:/host --net=host --name ether -e NAME=ether -e IMAGE=ether ether -v run
2016-02-05 09:07:12,775 - __main__ - INFO - Action/Mode Selected is: run
2016-02-05 09:07:12,775 - __main__ - DEBUG - Setting app_spec based on $IMAGE env var
2016-02-05 09:07:12,775 - __main__ - DEBUG - Final parsed cmdline: run -v
2016-02-05 09:07:12,775 - atomicapp.nulecule.main - DEBUG - NuleculeManager init app_path: /host/var/lib/atomicapp/ether-191c38d50f21
2016-02-05 09:07:12,775 - atomicapp.nulecule.main - DEBUG - NuleculeManager init image: ether
2016-02-05 09:07:12,776 - atomicapp.nulecule.main - DEBUG - Request to unpack to ether to /host/var/lib/atomicapp/ether-191c38d50f21
2016-02-05 09:07:12,776 - atomicapp.nulecule.base - INFO - Unpacking image: ether to /host/var/lib/atomicapp/ether-191c38d50f21
2016-02-05 09:07:12,855 - atomicapp.nulecule.container - INFO - Skipping pulling Docker image: ether
2016-02-05 09:07:12,856 - atomicapp.nulecule.container - INFO - Extracting nulecule data from image: ether to /host/var/lib/atomicapp/ether-191c38d50f21
2016-02-05 09:07:12,856 - atomicapp.nulecule.container - DEBUG - Creating docker container: /usr/bin/docker create --entrypoint /bin/true ether
2016-02-05 09:07:13,161 - atomicapp.nulecule.container - DEBUG - Copying data from Docker container: /usr/bin/docker cp 085b51503c7cb7772b04e29e573993bd34f246ecf81987ef05a4e1ce97b58d2d:/application-entity /tmp/nulecule-d84f0c18-cbe7-11e5-937e-5254008dab7b
2016-02-05 09:07:13,284 - atomicapp.nulecule.container - DEBUG - Copying nulecule data from /tmp/nulecule-d84f0c18-cbe7-11e5-937e-5254008dab7b to /host/var/lib/atomicapp/ether-191c38d50f21
2016-02-05 09:07:13,286 - atomicapp.nulecule.container - DEBUG - Removing tmp dir: /tmp/nulecule-d84f0c18-cbe7-11e5-937e-5254008dab7b
2016-02-05 09:07:13,286 - atomicapp.utils - DEBUG - Recursively removing directory: /tmp/nulecule-d84f0c18-cbe7-11e5-937e-5254008dab7b
2016-02-05 09:07:13,287 - atomicapp.nulecule.container - DEBUG - Removing Docker container: /usr/bin/docker rm -f 085b51503c7cb7772b04e29e573993bd34f246ecf81987ef05a4e1ce97b58d2d
085b51503c7cb7772b04e29e573993bd34f246ecf81987ef05a4e1ce97b58d2d
2016-02-05 09:07:15,601 - atomicapp.plugin - DEBUG - Loading providers from /opt/atomicapp/atomicapp/providers
2016-02-05 09:07:15,605 - atomicapp.plugin - DEBUG - Loading providers from /opt/atomicapp/atomicapp/providers
2016-02-05 09:07:15,605 - atomicapp.nulecule.base - INFO - Pulling external application for mariadb-centos7-atomicapp.
2016-02-05 09:07:15,605 - atomicapp.nulecule.base - INFO - Unpacking image: projectatomic/mariadb-centos7-atomicapp to /host/var/lib/atomicapp/ether-191c38d50f21/external/mariadb-centos7-atomicapp
2016-02-05 09:07:15,673 - atomicapp.nulecule.container - INFO - Skipping pulling Docker image: projectatomic/mariadb-centos7-atomicapp
2016-02-05 09:07:15,674 - atomicapp.nulecule.container - INFO - Extracting nulecule data from image: projectatomic/mariadb-centos7-atomicapp to /host/var/lib/atomicapp/ether-191c38d50f21/external/mariadb-centos7-atomicapp
2016-02-05 09:07:15,674 - atomicapp.nulecule.container - DEBUG - Creating docker container: /usr/bin/docker create --entrypoint /bin/true projectatomic/mariadb-centos7-atomicapp
2016-02-05 09:07:15,961 - atomicapp.nulecule.container - DEBUG - Copying data from Docker container: /usr/bin/docker cp 1c789b09830e1ce1982ed0a81a660db3cb24a05ba7d82a320eb3069b6408137d:/application-entity /tmp/nulecule-d9fa635a-cbe7-11e5-937e-5254008dab7b
2016-02-05 09:07:16,093 - atomicapp.nulecule.container - DEBUG - Copying nulecule data from /tmp/nulecule-d9fa635a-cbe7-11e5-937e-5254008dab7b to /host/var/lib/atomicapp/ether-191c38d50f21/external/mariadb-centos7-atomicapp
2016-02-05 09:07:16,095 - atomicapp.nulecule.container - DEBUG - Removing tmp dir: /tmp/nulecule-d9fa635a-cbe7-11e5-937e-5254008dab7b
2016-02-05 09:07:16,095 - atomicapp.utils - DEBUG - Recursively removing directory: /tmp/nulecule-d9fa635a-cbe7-11e5-937e-5254008dab7b
2016-02-05 09:07:16,095 - atomicapp.nulecule.container - DEBUG - Removing Docker container: /usr/bin/docker rm -f 1c789b09830e1ce1982ed0a81a660db3cb24a05ba7d82a320eb3069b6408137d
1c789b09830e1ce1982ed0a81a660db3cb24a05ba7d82a320eb3069b6408137d
2016-02-05 09:07:18,376 - atomicapp.plugin - DEBUG - Loading providers from /opt/atomicapp/atomicapp/providers
2016-02-05 09:07:18,377 - atomicapp.plugin - DEBUG - Loading providers from /opt/atomicapp/atomicapp/providers
2016-02-05 09:07:18,377 - atomicapp.plugin - DEBUG - Loading providers from /opt/atomicapp/atomicapp/providers
db_user (Database User): centos
db_pass (Database Password): centos
db_name (Database Name): centos
db_user (Database User): centos
db_pass (Database Password): centos
db_name (Database Name): centos
2016-02-05 09:08:12,041 - atomicapp.plugin - DEBUG - Found provider <class 'kubernetes.KubernetesProvider'>
2016-02-05 09:08:12,042 - atomicapp.plugin - WARNING - Configuration option 'providerconfig' not found
2016-02-05 09:08:12,042 - atomicapp.plugin - DEBUG - Found provider <class 'kubernetes.KubernetesProvider'>
2016-02-05 09:08:12,042 - atomicapp.plugin - WARNING - Configuration option 'providerconfig' not found
2016-02-05 09:08:12,042 - atomicapp.plugin - DEBUG - Found provider <class 'kubernetes.KubernetesProvider'>
2016-02-05 09:08:12,042 - atomicapp.plugin - WARNING - Configuration option 'providerconfig' not found
2016-02-05 09:08:12,042 - kubernetes - DEBUG - Given config: {u'db_pass': 'centos', u'db_name': 'centos', u'db_user': 'centos', u'root_pass': u'MySQLPass', 'provider': 'kubernetes', 'namespace': 'default'}
2016-02-05 09:08:12,042 - kubernetes - INFO - Using namespace default
2016-02-05 09:08:12,042 - kubernetes - INFO - trying kubectl at /host/usr/bin/kubectl
2016-02-05 09:08:12,042 - kubernetes - INFO - found kubectl at /host/usr/bin/kubectl
2016-02-05 09:08:12,042 - kubernetes - INFO - Deploying to Kubernetes
2016-02-05 09:08:12,042 - kubernetes - DEBUG - /host/var/lib/atomicapp/ether-191c38d50f21/external/mariadb-centos7-atomicapp/artifacts/kubernetes/.mariadb-pod.yaml
2016-02-05 09:08:12,047 - kubernetes - DEBUG - /host/var/lib/atomicapp/ether-191c38d50f21/external/mariadb-centos7-atomicapp/artifacts/kubernetes/.mariadb-service.yaml
2016-02-05 09:08:12,073 - atomicapp.utils - DEBUG -
<<< stdout >>>
pods/mariadb
<<< end >>>
2016-02-05 09:08:12,073 - atomicapp.utils - DEBUG -
<<< stderr >>>
<<< end >>>
2016-02-05 09:08:12,110 - atomicapp.utils - DEBUG -
<<< stdout >>>
services/mariadb
<<< end >>>
2016-02-05 09:08:12,110 - atomicapp.utils - DEBUG -
<<< stderr >>>
<<< end >>>
2016-02-05 09:08:12,110 - atomicapp.plugin - DEBUG - Found provider <class 'kubernetes.KubernetesProvider'>
2016-02-05 09:08:12,111 - atomicapp.plugin - WARNING - Configuration option 'providerconfig' not found
2016-02-05 09:08:12,111 - kubernetes - DEBUG - Given config: {u'db_user': 'centos', u'image': u'centos/etherpad', u'hostport': 9001, 'namespace': 'default', u'db_pass': 'centos', u'db_name': 'centos', u'db_host': u'mariadb', 'provider': 'kubernetes'}
2016-02-05 09:08:12,111 - kubernetes - INFO - Using namespace default
2016-02-05 09:08:12,111 - kubernetes - INFO - trying kubectl at /host/usr/bin/kubectl
2016-02-05 09:08:12,111 - kubernetes - INFO - found kubectl at /host/usr/bin/kubectl
2016-02-05 09:08:12,111 - kubernetes - INFO - Deploying to Kubernetes
2016-02-05 09:08:12,111 - kubernetes - DEBUG - /host/var/lib/atomicapp/ether-191c38d50f21/artifacts/kubernetes/.etherpad-rc.yaml
2016-02-05 09:08:12,116 - kubernetes - DEBUG - /host/var/lib/atomicapp/ether-191c38d50f21/artifacts/kubernetes/.etherpad-svc.yaml
2016-02-05 09:08:12,133 - atomicapp.utils - DEBUG -
<<< stdout >>>
replicationcontrollers/etherpad
<<< end >>>
2016-02-05 09:08:12,133 - atomicapp.utils - DEBUG -
<<< stderr >>>
<<< end >>>
2016-02-05 09:08:12,175 - atomicapp.utils - DEBUG -
<<< stdout >>>
You have exposed your service on an external port on all nodes in your
cluster. If you want to expose this service to the external internet, you may
need to set up firewall rules for the service port(s) (tcp:32204) to serve traffic.
See http://releases.k8s.io/HEAD/docs/user-guide/services-firewalls.md for more details.
services/etherpad-svc
<<< end >>>
2016-02-05 09:08:12,175 - atomicapp.utils - DEBUG -
<<< stderr >>>
<<< end >>>
2016-02-05 09:08:12,176 - atomicapp.nulecule.main - DEBUG - Writing answers to file.
2016-02-05 09:08:12,176 - atomicapp.nulecule.main - DEBUG - FILE: /host/var/lib/atomicapp/ether-191c38d50f21/answers.conf.gen
2016-02-05 09:08:12,176 - atomicapp.nulecule.main - DEBUG - ANSWERS: {u'etherpad-app': {u'image': u'centos/etherpad', u'db_pass': 'centos', u'db_name': 'centos', u'db_user': 'centos', u'db_host': u'mariadb', u'hostport': 9001}, u'mariadb-atomicapp': {u'db_pass': 'centos', u'db_name': 'centos', u'db_user': 'centos', u'root_pass': u'MySQLPass'}, 'general': {'namespace': 'default', 'provider': 'kubernetes'}}
Your application resides in /var/lib/atomicapp/ether-191c38d50f21
Please use this directory for managing your application
[centos@atomic etherpad-centos7-atomicapp]$ cd /var/lib/atomicapp/ether-
ether-0d34a37538e3/ ether-191c38d50f21/ ether-9912d65b14cf/
[centos@atomic etherpad-centos7-atomicapp]$ cd /var/lib/atomicapp/ether-191c38d50f21/
[centos@atomic ether-191c38d50f21]$
[centos@atomic ether-191c38d50f21]$ ls
answers.conf.gen artifacts Dockerfile external Nulecule
[centos@atomic ether-191c38d50f21]$ cat answers.conf.gen
[etherpad-app]
image = centos/etherpad
db_pass = centos
db_name = centos
db_user = centos
db_host = mariadb
hostport = 9001
[mariadb-atomicapp]
db_pass = centos
db_name = centos
db_user = centos
root_pass = MySQLPass
[general]
namespace = default
provider = kubernetes[centos@atomic ether-191c38d50f21]$ vim Nulecule
[centos@atomic ether-191c38d50f21]$
[centos@atomic etherpad-centos7-atomicapp]$ sudo docker inspect -f="{{json .ContainerConfig.Labels}}" ether
{"RUN":"docker run -it --rm ${OPT1} --privileged -v `pwd`:/atomicapp -v /run:/run -v /:/host --net=host --name ${NAME} -e NAME=${NAME} -e IMAGE=${IMAGE} ${IMAGE} -v ${OPT2} run ${OPT3}","STOP":"docker run -it --rm ${OPT1} --privileged -v `pwd`:/atomicapp -v /run:/run -v /:/host --net=host --name ${NAME} -e NAME=${NAME} -e IMAGE=${IMAGE} ${IMAGE} -v ${OPT2} stop ${OPT3}","build-date":"2015-12-23","io.openshift.generate.job":"true","io.openshift.generate.token.as":"env:TOKEN_ENV_VAR","io.projectatomic.nulecule.atomicappversion":"0.4.1","io.projectatomic.nulecule.providers":"kubernetes,docker,openshift","io.projectatomic.nulecule.specversion":"0.0.2","license":"GPLv2","name":"CentOS Base Image","vendor":"CentOS"}
[centos@atomic etherpad-centos7-atomicapp]$ sudo docker inspect -f="{{json .ContainerConfig.Labels}}" ether | python -mjson.tool | less
[centos@atomic etherpad-centos7-atomicapp]$
@surajssd
Copy link
Author

surajssd commented Feb 5, 2016

services file

for SERVICE in etcd kube-apiserver kube-controller-manager  kube-scheduler docker kube-proxy  kubelet; do      
    systemctl restart $SERVICE;     
    systemctl enable $SERVICE;     
    systemctl status $SERVICE; 
done

@surajssd
Copy link
Author

surajssd commented Feb 5, 2016

Refer @rtnpro blog to set up an atomic machine on CentOS http://www.rtnpro.com/setting-up-atomic-on-centos-7/

And another blog of his to nuleulise applications http://www.rtnpro.com/nuleculizing-an-docker-image/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment