deployment tasks are are too verbose

Bug #1819226 reported by Alex Schultz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Incomplete
Medium
Unassigned

Bug Description

Some deployment tasks like "Write docker config scripts" and "Write kolla config json files" are too verbose and print out the contents of the files to std out. We should reduce the output generated by these types of tasks.

TASK [Write docker config scripts] *********************************************
Friday 08 March 2019 16:19:49 -0500 (0:00:00.325) 0:14:08.623 **********
changed: [overcloud-novacompute-0] => (item=docker_puppet_apply.sh) => {"changed": true, "checksum": "2a52ef0a228517209c965af5ceff0d28265208f0", "dest": "/var/lib/docker-config-scripts/docker_puppet_apply.sh", "gid": 0, "group": "root", "item": ["docker_puppet_apply.sh", {"content": "#!/bin/bash\nset -eux\nSTEP=$1\nTAGS=$2\nCONFIG=$3\nEXTRA_ARGS=${4:-''}\nif [ -d /tmp/puppet-etc ]; then\n # ignore copy failures as these may be the same file depending on docker mounts\n cp -a /tmp/puppet-etc/* /etc/puppet || true\nfi\necho \"{\\\"step\\\": ${STEP}}\" > /etc/puppet/hieradata/docker_puppet.json\n# $::deployment_type in puppet-tripleo\nexport FACTER_deployment_type=containers\nset +e\npuppet apply $EXTRA_ARGS \\\n --verbose \\\n --detailed-exitcodes \\\n --summarize \\\n --color=false \\\n --modulepath /etc/puppet/modules:/opt/stack/puppet-modules:/usr/share/openstack-puppet/modules \\\n --tags $TAGS \\\n -e \"noop_resource('package'); ${CONFIG}\"\nrc=$?\nset -e\nset +ux\nif [ $rc -eq 2 -o $rc -eq 0 ]; then\n exit 0\nfi\nexit $rc\n", "mode": "0700"}], "md5sum": "90efa10e5c425afd47c5267cb73848ec", "mode": "0700", "owner": "root", "secontext": "system_u:object_r:container_file_t:s0", "size": 740, "src": "/home/tripleo-admin/.ansible/tmp/ansible-tmp-1552079990.117394-274501834222142/source", "state": "file", "uid": 0}

TASK [Write per-step docker-container-startup-configs] *************************
Friday 08 March 2019 16:19:55 -0500 (0:00:00.846) 0:14:14.395 **********
changed: [overcloud-novacompute-0] => (item=step_1) => {"changed": true, "checksum": "bf21a9e8fbc5a3846fb05b4fa0859e0917b2202f", "dest": "/var/lib/tripleo-config/docker-container-startup-config-step_1.json", "gid": 0, "group": "root", "item": ["step_1", {}], "md5sum": "99914b932bd37a50b983c5e7c90ae93b", "mode": "0600", "owner": "root", "secontext": "system_u:object_r:var_lib_t:s0", "size": 2, "src": "/home/tripleo-admin/.ansible/tmp/ansible-tmp-1552079995.8247252-153624735637534/source", "state": "file", "uid": 0}

TASK [Write kolla config json files] *******************************************
Friday 08 March 2019 16:20:01 -0500 (0:00:00.311) 0:14:19.740 **********
changed: [overcloud-novacompute-0] => (item=/var/lib/kolla/config_files/iscsid.json) => {"changed": true, "checksum": "5a9e3abc0e5ab869c07e7e6995c535d38ff135fe", "dest": "/var/lib/kolla/config_files/iscsid.json", "gid": 0, "group": "root", "item": ["/var/lib/kolla/config_files/iscsid.json", {"command": "/usr/sbin/iscsid -f", "config_files": [{"dest": "/etc/iscsi/", "merge": true, "preserve_properties": true, "source": "/var/lib/kolla/config_files/src-iscsid/*"}]}], "md5sum": "877d85bda02209137836b3e0819a0ae4", "mode": "0600", "owner": "root", "secontext": "system_u:object_r:container_file_t:s0", "size": 257, "src": "/home/tripleo-admin/.ansible/tmp/ansible-tmp-1552080001.1984587-247655205951557/source", "state": "file", "uid": 0}

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-heat-templates (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/642164

tags: added: queens-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/642164
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=736a6aa161711e8ee31c0e0ab385ae59aa9cb026
Submitter: Zuul
Branch: master

commit 736a6aa161711e8ee31c0e0ab385ae59aa9cb026
Author: Alex Schultz <email address hidden>
Date: Fri Mar 8 14:40:43 2019 -0700

    Suppress output from copy tasks

    These tasks output the contents of the things being copied which can be
    extra verbose and not beneficial to the overall process. These files can
    be retrieved off the disk if necessary.

    Change-Id: I2def6c41a1df345d055b6db26130cb6faf93be53
    Related-Bug: #1819226

Changed in tripleo:
milestone: stein-3 → train-1
Changed in tripleo:
milestone: train-1 → train-2
Changed in tripleo:
milestone: train-2 → train-3
Changed in tripleo:
milestone: train-3 → ussuri-1
Changed in tripleo:
milestone: ussuri-1 → ussuri-2
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-2 → ussuri-3
wes hayutin (weshayutin)
Changed in tripleo:
status: Triaged → Incomplete
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-3 → ussuri-rc3
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-rc3 → victoria-1
Changed in tripleo:
milestone: victoria-1 → victoria-3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.