Closed jb185t closed 4 years ago
Hi,
I had the same issue, and I think I figured it out.
Might be something to do with the mounted folder.
The share_mnt folder needs to be the exported folder mounted as NFS on your machine (NFS3 specified).
ie if your files are in /mnt/shared, you should mount them elsewhere using :
mount -t nfs 192.168.100.150:/mnt/shared /mnt/nfsmount/ -o vers=3
which will then show like this in your mount command:
12.34.56.78:/mnt/shared on /mnt/nfsmount type nfs (rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,...)
Then you should be able to run this playbook.
Thanks for the reply, Wobak!
Your display from mount command hinted me what was my bad. In /etc/exports file, I set the read only ro as permission mode. Once I change it to rw as below, the "Export of scp failed for firmware update" was disappeared.
/mnt/shared x.0.0.0/8(rw,sync,no_subtree_check)
However, after rerun, another error popped up;
IOError: [Errno 13] Permission denied: '/mnt/shared/scp_66QH3W2_20190924_225559.xml
It seemed Ansible tried to write something on the SCP xml file, which failed due to insufficient permission. Widely opening up /mnt/* folders or changing /etc/exports file as below didn't help.
/mnt/shared x.0.0.0/8(rw,sync,no_subtree_check,all_squash,anonuid=0,anongid=991)
When I tried to manually edit /mnt/shared/scp_66QH3W2_20190924_225559.xml from some other NFS client, the file was read only. Wonder how it can be made read and writable.
Joon
Can you try with no_root_squash instead of all_squash ?
No luck with no_root_squash.
I noticed that each time the playbook is executed, new SCP_xxxxx.xml with time stamp is created. Wonder how it is created. It seems the Python code remotely copied by Ansible running in target iDrac server creates the XML file but not 100% sure. The file does have some XML contents.
This may due to some gap in my environment. Will report back further update.
Hi jb125t/Woback,
We have tried this scenario and were successfully able to perform the update operation. However, below are the NFS share permission.
*(rw,sync,no_subtree_check) with 755 folder permission (recommended).
Kindly re-check if you have adequate NFS share and mount permission and let us know the status.
Thanks & Regards, Rajshekar P
@jb185t @Wobak Have you tried the above settings? Also we have now enhanced idrac_firmware
module to support more reposotiry types such as HTTP/S, FTP also using non-SCP approach for firmware updating. Let us know in case you are still facing the issues
@jb185t @Wobak Since there is no update for sometimes,we are closing this issue.
Using OpenManage Ansible Module, I'm trying to update firmware on below server.
Against the machine, below Ansible playbook was applied. NFS is mounted on Ansible Controller host and parameter variables are set as below in inventory.
However, I get error message highlighted below. Wonder what did I do wrong or what to check. Dell-basic-scp-rsv731.xml was exported from other RX740 server.
Here is the contents in shared directory in Ansible Controller machine.