Skip to content
This repository was archived by the owner on Jan 19, 2018. It is now read-only.
This repository was archived by the owner on Jan 19, 2018. It is now read-only.

Non-quiet, non-verbose mode should output pretty strings #186

@aweiteka

Description

@aweiteka

By default atomic app run with no args should output strings for humans that do not have timestamps, log levels, etc. Currently we're getting all INFO logs, which is a lot.

Current output:

# atomicapp run /atomicapp
2015-07-23 14:37:22,084 - atomicapp.utils - INFO - atomicapp.status.info.message=All artifacts OK.
2015-07-23 14:37:22,084 - atomicapp.nulecule_base - INFO - Artifacts for aggregated-mariadb-atomicapp present for these providers:
2015-07-23 14:37:22,084 - atomicapp.utils - INFO - atomicapp.status.info.message=Artifact file://artifacts/openshift/volume.yaml: OK.
2015-07-23 14:37:22,084 - atomicapp.utils - INFO - atomicapp.status.info.message=Artifact file://artifacts/openshift/service.yaml: OK.
2015-07-23 14:37:22,085 - atomicapp.utils - INFO - atomicapp.status.info.message=Artifact file://artifacts/openshift/pod.yaml: OK.
2015-07-23 14:37:22,085 - atomicapp.utils - INFO - atomicapp.status.info.message=Artifact file://artifacts/kubernetes/wordpress-pod.yaml: OK.
2015-07-23 14:37:22,085 - atomicapp.utils - INFO - atomicapp.status.info.message=Artifact file://artifacts/kubernetes/wordpress-service.yaml: OK.
2015-07-23 14:37:22,085 - atomicapp.utils - INFO - atomicapp.status.info.message=All artifacts OK.
2015-07-23 14:37:22,085 - atomicapp.nulecule_base - INFO - Artifacts for wordpress present for these providers: openshift, kubernetes
2015-07-23 14:37:22,086 - atomicapp.run - WARNING - Setting image to projectatomic/mariadb-centos7-atomicapp
2015-07-23 14:37:22,087 - atomicapp.install - INFO - App name is projectatomic/mariadb-centos7-atomicapp, will be populated to /atomicapp/external/aggregated-mariadb-atomicapp
2015-07-23 14:37:22,087 - atomicapp.utils - INFO - atomicapp.status.info.message=Loading app projectatomic/mariadb-centos7-atomicapp .
2015-07-23 14:37:22,089 - atomicapp.utils - INFO - atomicapp.status.answer.message={"mariadb-app": {"db_pass": "pass", "image": "fedora/mariadb", "db_name": "name", "db_user": "user"}, "general": {"openshiftconfig": "/host/home/cloud-user/.kube/config", "namespace": "default", "provider": "openshift"}}
2015-07-23 14:37:24,127 - atomicapp.utils - INFO - atomicapp.status.info.message=Pulling image projectatomic/mariadb-centos7-atomicapp ...
Trying to pull repository registry.access.redhat.com/projectatomic/mariadb-centos7-atomicapp ... not found
latest: Pulling from docker.io/projectatomic/mariadb-centos7-atomicapp
045f82560154: Pull complete
...
269c050a3679: Already exists
Digest: sha256:5d252b342859adfc265c46f11ec1da1314e3fcc5a901f63241c0fec3d49686a9
Status: Downloaded newer image for docker.io/projectatomic/mariadb-centos7-atomicapp:latest
cb9e82d98a64196ffe85cbc0fe05a1a60db0117eab67fd25dba551b1aae2e51f
2015-07-23 14:37:33,780 - atomicapp.utils - INFO - Using temporary directory /tmp/nulecule-8u8Z7k
2015-07-23 14:37:34,361 - atomicapp.utils - INFO - atomicapp.status.info.message=Copied app successfully.
mariadb-centos7-atomicapp-WbVuNZ
2015-07-23 14:37:34,476 - atomicapp.utils - INFO - atomicapp.status.info.message=Loading app_id mariadb-atomicapp .
2015-07-23 14:37:34,493 - atomicapp.utils - INFO - atomicapp.status.info.message=Checking all artifacts
2015-07-23 14:37:34,493 - atomicapp.utils - INFO - atomicapp.status.info.message=Artifact file://artifacts/docker/mariadb-app-pod_run: OK.
2015-07-23 14:37:34,494 - atomicapp.utils - INFO - atomicapp.status.info.message=Artifact file://artifacts/kubernetes/mariadb-pod.yaml: OK.
2015-07-23 14:37:34,494 - atomicapp.utils - INFO - atomicapp.status.info.message=Artifact file://artifacts/kubernetes/mariadb-service.yaml: OK.
2015-07-23 14:37:34,494 - atomicapp.utils - INFO - atomicapp.status.info.message=All artifacts OK.
2015-07-23 14:37:34,494 - atomicapp.nulecule_base - INFO - Artifacts for mariadb-atomicapp present for these providers: docker, kubernetes, openshift
2015-07-23 14:37:34,494 - atomicapp.utils - INFO - atomicapp.status.info.message=Loading Nulecule file.
2015-07-23 14:37:34,495 - atomicapp.install - INFO - Installing dependencies for mariadb-atomicapp
2015-07-23 14:37:34,495 - atomicapp.utils - INFO - atomicapp.status.info.message=All dependencies installed successfully.
2015-07-23 14:37:34,495 - atomicapp.utils - INFO - atomicapp.status.answer.message={"mariadb-app": {"db_pass": "pass", "image": "fedora/mariadb", "db_name": "name", "db_user": "user"}, "mariadb-atomicapp": {"db_pass": null, "db_name": null, "root_pass": "MySQLPass", "db_user": null}, "general": {"openshiftconfig": "/host/home/cloud-user/.kube/config", "namespace": "default", "provider": "openshift"}}
2015-07-23 14:37:34,495 - atomicapp.utils - INFO - atomicapp.status.info.message=Install Successful.
2015-07-23 14:37:34,496 - atomicapp.utils - INFO - atomicapp.status.info.message=Install Successful.
2015-07-23 14:37:34,515 - atomicapp.utils - INFO - atomicapp.status.info.message=Artifact file://artifacts/docker/mariadb-app-pod_run: OK.
2015-07-23 14:37:34,515 - atomicapp.utils - INFO - atomicapp.status.info.message=Artifact file://artifacts/kubernetes/mariadb-pod.yaml: OK.
2015-07-23 14:37:34,515 - atomicapp.utils - INFO - atomicapp.status.info.message=Artifact file://artifacts/kubernetes/mariadb-service.yaml: OK.
2015-07-23 14:37:34,516 - atomicapp.utils - INFO - atomicapp.status.info.message=All artifacts OK.
2015-07-23 14:37:34,516 - atomicapp.nulecule_base - INFO - Artifacts for mariadb-atomicapp present for these providers: docker, kubernetes, openshift
2015-07-23 14:37:34,516 - atomicapp.utils - INFO - atomicapp.status.error.message=db_user is missing in answers.conf .
db_user (Database User): user
2015-07-23 14:38:02,086 - atomicapp.utils - INFO - atomicapp.status.error.message=db_pass is missing in answers.conf .
db_pass (Database Password): pass
2015-07-23 14:38:08,416 - atomicapp.utils - INFO - atomicapp.status.error.message=db_name is missing in answers.conf .
db_name (Database Name): name
2015-07-23 14:38:16,058 - atomicapp.utils - INFO - atomicapp.status.info.message=Deploying component mariadb-atomicapp ...
2015-07-23 14:38:16,058 - atomicapp.run - INFO - Using provider openshift for component mariadb-atomicapp

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions