Instantly share code, notes, and snippets.

Embed
What would you like to do?
MongoDB-APB Log Execution
➜ mongodb-apb git:(master) oc logs -f apb-run-provision-mongodb-apb6ncsp -n mongodb-01
+ [[ provision --extra-vars {"MONGODB_ADMIN_PASSWORD": "admin", "MONGODB_DATA_STORAGE_SIZE": 1, "MONGODB_VERSION": "3.4", "MONGODB_MEMORY_LIMIT": "512Mi", "_apb_plan_id": "ephemeral", "namespace": "mongodb-01", "MONGODB_PASSWORD": "password", "MONGODB_USER": "username", "MONGODB_IMAGE_TAG": "latest", "MONGODB_DATABASE": "sampledb", "USE_UPSTREAM_IMAGES": false} == *\s\2\i\/\a\s\s\e\m\b\l\e* ]]
+ ACTION=provision
+ shift
+ playbooks=/opt/apb/actions
+ CREDS=/var/tmp/bind-creds
+ TEST_RESULT=/var/tmp/test-result
+ whoami
+ '[' -w /etc/passwd ']'
++ id -u
+ echo 'apb:x:1000100000:0:apb user:/opt/apb:/sbin/nologin'
+ set +x
+ [[ -e /opt/apb/actions/provision.yaml ]]
+ [[ -e /opt/apb/actions/provision.yml ]]
+ ANSIBLE_ROLES_PATH=/etc/ansible/roles:/opt/ansible/roles
+ ansible-playbook /opt/apb/actions/provision.yml --extra-vars '{"MONGODB_ADMIN_PASSWORD": "admin", "MONGODB_DATA_STORAGE_SIZE": 1, "MONGODB_VERSION": "3.4", "MONGODB_MEMORY_LIMIT": "512Mi", "_apb_plan_id": "ephemeral", "namespace": "mongodb-01", "MONGODB_PASSWORD": "password", "MONGODB_USER": "username", "MONGODB_IMAGE_TAG": "latest", "MONGODB_DATABASE": "sampledb", "USE_UPSTREAM_IMAGES": false}'
[WARNING]: Could not match supplied host pattern, ignoring: all
[WARNING]: provided hosts list is empty, only localhost is available
PLAY [[MONGODB-APB][PROVISION] APB to deploy a MongoDB application on Openshift] ***
TASK [mongodb-apb : [MONGODB-APB][MAIN] MongoDB] *******************************
ok: [localhost] => {
"msg": [
"Entering on Main:",
" Mode: provision",
" State: present",
" Plan: ephemeral"
]
}
TASK [mongodb-apb : [MONGODB-APB][PROVISION] Select Downstream image] **********
ok: [localhost]
TASK [mongodb-apb : [MONGODB-APB][MAIN] Deploying MongoDB] *********************
included: /opt/ansible/roles/mongodb-apb/tasks/mongodb.yml for localhost
TASK [mongodb-apb : [MONGODB-APB][PROVISION] Create ImageStream for MongoDB image] ***
changed: [localhost]
TASK [mongodb-apb : debug] *****************************************************
ok: [localhost] => {
"mongodb_image": "registry.access.redhat.com/rhscl/mongodb-34-rhel7"
}
TASK [mongodb-apb : [MONGODB-APB][PROVISION] Set to present the MongoDB Deployment Config for Ephemeral plan] ***
changed: [localhost]
TASK [mongodb-apb : [MONGODB-APB][PROVISION] Set to present the MongoDB Service] ***
changed: [localhost]
TASK [mongodb-apb : [MONGODB-APB][PROVISION] Wait for MongoDB to be ready] *****
ok: [localhost]
TASK [mongodb-apb : [MONGODB-APB][MAIN] Binding Credentials MongoDB] ***********
included: /opt/ansible/roles/mongodb-apb/tasks/bind_credentials.yml for localhost
TASK [mongodb-apb : [MONGODB-APB][PROVISION] Encode MongoDB Credentials] *******
changed: [localhost]
PLAY RECAP *********************************************************************
localhost : ok=10 changed=4 unreachable=0 failed=0
[MONGODB-APB][PROVISION] Create ImageStream for MongoDB image ---------- 40.43s
[MONGODB-APB][PROVISION] Wait for MongoDB to be ready ------------------ 18.67s
[MONGODB-APB][PROVISION] Set to present the MongoDB Service ------------- 1.45s
[MONGODB-APB][PROVISION] Set to present the MongoDB Deployment Config for Ephemeral plan --- 1.21s
[MONGODB-APB][PROVISION] Encode MongoDB Credentials --------------------- 1.02s
[MONGODB-APB][MAIN] Deploying MongoDB ----------------------------------- 0.05s
------------------------------------------------------------------------ 0.04s
[MONGODB-APB][PROVISION] Set to present MongoDB PVC for Persistent plan --- 0.04s
[MONGODB-APB][PROVISION] Set to present the MongoDB Deployment Config for Persistent plan --- 0.03s
[MONGODB-APB][MAIN] MongoDB --------------------------------------------- 0.03s
+ EXIT_CODE=0
+ set +ex
+ '[' -f /var/tmp/test-result ']'
+ exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment