Add multi ports to tcpdump for ironic debug

This commit adds an array of ports to be monitored while debugging
ironic issues via tcpdump.

Related-Bug: #1797526
Change-Id: Ib941412b7ccdc06242092ac784c287c10e39fdfb
This commit is contained in:
Wes Hayutin 2018-10-12 09:35:06 -06:00 committed by wes hayutin
parent ad8fafb346
commit c1c6856316
2 changed files with 6 additions and 1 deletions

View File

@ -9,6 +9,11 @@ step_register: true
step_introspect: false
step_introspect_debug: false
step_introspect_debug_tcpdump_log: "{{ working_dir }}/overcloud_prep_images_introspection_debug.pcap.log"
step_introspect_debug_tcpdump_ports:
- 67
- 68
- 69
- 623
step_introspect_with_retry: false
bash_deploy_ramdisk: false
step_install_undercloud: true

View File

@ -137,7 +137,7 @@ done
{% if step_introspect_debug|bool %}
sudo yum -y install tcpdump
sudo tcpdump -i any port 67 or port 68 or port 69 -w {{ step_introspect_debug_tcpdump_log }} &
sudo tcpdump -i any port {{ step_introspect_debug_tcpdump_ports | join(' or port ') }} -w {{ step_introspect_debug_tcpdump_log }} &
sleep 1
pidof_tcpdump=$(ps --ppid $! -o pid=)