CI: set tftp folder permission

In trying to chase down why the raw tftp boot of grub is not
happy, I determined that the tftp folder being created had the
wrong permissions out of the box. Ironic has an optional knob for
this, so we're going to set it by default.

Change-Id: If2a0e5e47163a3525ecd245e8b54cacea9a615de
This commit is contained in:
Julia Kreger 2024-07-05 13:01:30 -07:00
parent 111466f782
commit 631f50d21b
2 changed files with 5 additions and 0 deletions

View File

@ -1600,6 +1600,8 @@ function configure_ironic {
iniset $IRONIC_CONF_FILE agent deploy_logs_collect $IRONIC_DEPLOY_LOGS_COLLECT
iniset $IRONIC_CONF_FILE agent deploy_logs_storage_backend $IRONIC_DEPLOY_LOGS_STORAGE_BACKEND
iniset $IRONIC_CONF_FILE agent deploy_logs_local_path $IRONIC_DEPLOY_LOGS_LOCAL_PATH
# Allow ironic to set permissions for the tftp test usage.
iniset $IRONIC_CONF_FILE pxe dir_permission 493
# Set image_download_source for direct interface
if [[ -n "$IRONIC_AGENT_IMAGE_DOWNLOAD_SOURCE" ]]; then
iniset $IRONIC_CONF_FILE agent image_download_source $IRONIC_AGENT_IMAGE_DOWNLOAD_SOURCE

View File

@ -3,6 +3,9 @@
- name: Get tftpd info from journald
shell: "journalctl -t in.tftpd > {{ zuul_output_dir }}/logs/tftpd-journal.txt"
become: yes
- name: Get tftpd info from journald
shell: "ls -laR /opt/stack/data/ironic/tftpboot /opt/stack/data/ironic/httpboot > {{ zuul_output_dir }}/logs/ironic-files.txt"
become: yes
- name: Get network connection information for ironic process
shell: "netstat -apn > {{ zuul_output_dir }}/logs/post-job-network-connections.txt"
become: yes