Sudo is needed to copy logs
We're not capturing the logs as we likely can't copy the contents of the folder. So lets use sudo to exec the cp command, and for good measure we'll pull a list in case there just is nothing present to be uploaded for logs Change-Id: I73ad58037518e6d334efe0bad99458a2fabfc047
This commit is contained in:
parent
d135f78fc0
commit
d2fa3a6354
|
@ -57,7 +57,8 @@ for vm in $(openstack baremetal node list -c Name -f value); do
|
|||
done
|
||||
|
||||
if [ -d "/var/log/ironic" ]; then
|
||||
cp -a "/var/log/ironic" ${LOG_LOCATION}/ipa-logs
|
||||
sudo cp -a "/var/log/ironic" ${LOG_LOCATION}/ipa-logs
|
||||
ls -la ${LOG_LOCATION}/ipa-logs
|
||||
fi
|
||||
|
||||
sudo vbmc list &> ${LOG_LOCATION}/vbmc.txt
|
||||
|
|
Loading…
Reference in New Issue