@tom-elliott Okay, so after some more testing and starting over my OC-FOG-NODE from scratch, I am finding a pattern. It seems the initial transfer of the image goes without any hitches. However, when I update an image, the largest .img file (or any file in which the md5sum changes possibly) seems to never gets updated when the lftp command goes out.
I also noticed that new images have root set for both the owner and group (on the master), even though the /images directory is set to fog:root. permissions are all 777 still though. On the nodes however, the owner and group is fog, but with only execute and read permissions?
I feel that the master node is not able to delete the non-matching .img file from the node before replicating, or isn’t writing over…not sure on the actual process.
Here is Master images folder:
and here is OC node:
This is log before uploading new version of image:
[06-05-18 11:20:00 am] * starting Image Replication.
[06-05-18 11:20:00 am] * We are group ID: 1. We are group name: default
[06-05-18 11:20:00 am] * We are node ID: 1. We are node name: DO-FOG-MASTER
[06-05-18 11:20:00 am] * Attempting to perform Group -> Group image replication.
[06-05-18 11:20:00 am] | Replicating postdownloadscripts
[06-05-18 11:20:00 am] * Found Image to transfer to 2 s
[06-05-18 11:20:00 am] | File Name: postdownloadscripts
[06-05-18 11:20:09 am] | postdownloadscripts: No need to sync fog.deletelog file to OC-FOG-NODE
[06-05-18 11:20:09 am] | postdownloadscripts: No need to sync fog.drivers file to OC-FOG-NODE
[06-05-18 11:20:10 am] | postdownloadscripts: No need to sync fog.postdownload file to OC-FOG-NODE
[06-05-18 11:20:10 am] * All files synced for this item.
[06-05-18 11:20:19 am] | postdownloadscripts: No need to sync fog.deletelog file to PH-FOG-NODE
[06-05-18 11:20:19 am] | postdownloadscripts: No need to sync fog.drivers file to PH-FOG-NODE
[06-05-18 11:20:20 am] | postdownloadscripts: No need to sync fog.postdownload file to PH-FOG-NODE
[06-05-18 11:20:20 am] * All files synced for this item.
[06-05-18 11:20:20 am] | Replicating postinitscripts
[06-05-18 11:20:20 am] * Found Image to transfer to 2 s
[06-05-18 11:20:20 am] | File Name: dev/postinitscripts
[06-05-18 11:20:28 am] | dev/postinitscripts: No need to sync fog.postinit file to OC-FOG-NODE
[06-05-18 11:20:28 am] * All files synced for this item.
[06-05-18 11:20:37 am] | dev/postinitscripts: No need to sync fog.postinit file to PH-FOG-NODE
[06-05-18 11:20:37 am] * All files synced for this item.
[06-05-18 11:20:38 am] * Not syncing Image between s
[06-05-18 11:20:38 am] | Image Name: Win10BaseVM
[06-05-18 11:20:38 am] | There are no other members to sync to.
[06-05-18 11:20:38 am] * Not syncing Image between s
[06-05-18 11:20:38 am] | Image Name: Win7BaseVM
[06-05-18 11:20:38 am] | There are no other members to sync to.
[06-05-18 11:20:38 am] * Attempting to perform Group -> Nodes image replication.
[06-05-18 11:20:38 am] * Found Image to transfer to 2 s
[06-05-18 11:20:38 am] | Image Name: Win10BaseVM
[06-05-18 11:20:47 am] | Win10BaseVM: No need to sync d1.fixed_size_partitions file to OC-FOG-NODE
[06-05-18 11:20:48 am] | Win10BaseVM: No need to sync d1.mbr file to OC-FOG-NODE
[06-05-18 11:20:48 am] | Win10BaseVM: No need to sync d1.minimum.partitions file to OC-FOG-NODE
[06-05-18 11:20:48 am] | Win10BaseVM: No need to sync d1.original.fstypes file to OC-FOG-NODE
[06-05-18 11:20:49 am] | Win10BaseVM: No need to sync d1.original.swapuuids file to OC-FOG-NODE
[06-05-18 11:20:49 am] | Win10BaseVM: No need to sync d1.original.uuids file to OC-FOG-NODE
[06-05-18 11:20:49 am] | Win10BaseVM: No need to sync d1.partitions file to OC-FOG-NODE
[06-05-18 11:20:49 am] | Win10BaseVM: No need to sync d1p1.img file to OC-FOG-NODE
[06-05-18 11:20:50 am] | Win10BaseVM: No need to sync d1p2.img file to OC-FOG-NODE
[06-05-18 11:20:50 am] | Win10BaseVM: No need to sync d1p3.img file to OC-FOG-NODE
[06-05-18 11:22:51 am] | Win10BaseVM: No need to sync d1p4.img file to OC-FOG-NODE
[06-05-18 11:22:51 am] * All files synced for this item.
[06-05-18 11:23:00 am] | Win10BaseVM: No need to sync d1.fixed_size_partitions file to PH-FOG-NODE
[06-05-18 11:23:01 am] | Win10BaseVM: No need to sync d1.mbr file to PH-FOG-NODE
[06-05-18 11:23:01 am] | Win10BaseVM: No need to sync d1.minimum.partitions file to PH-FOG-NODE
[06-05-18 11:23:01 am] | Win10BaseVM: No need to sync d1.original.fstypes file to PH-FOG-NODE
[06-05-18 11:23:02 am] | Win10BaseVM: No need to sync d1.original.swapuuids file to PH-FOG-NODE
[06-05-18 11:23:02 am] | Win10BaseVM: No need to sync d1.original.uuids file to PH-FOG-NODE
[06-05-18 11:23:02 am] | Win10BaseVM: No need to sync d1.partitions file to PH-FOG-NODE
[06-05-18 11:23:02 am] | Win10BaseVM: No need to sync d1p1.img file to PH-FOG-NODE
[06-05-18 11:23:03 am] | Win10BaseVM: No need to sync d1p2.img file to PH-FOG-NODE
[06-05-18 11:23:03 am] | Win10BaseVM: No need to sync d1p3.img file to PH-FOG-NODE
[06-05-18 11:25:03 am] | Win10BaseVM: No need to sync d1p4.img file to PH-FOG-NODE
[06-05-18 11:25:03 am] * All files synced for this item.
[06-05-18 11:25:03 am] * Found Image to transfer to 2 s
[06-05-18 11:25:03 am] | Image Name: Win7BaseVM
[06-05-18 11:25:13 am] | Win7BaseVM: No need to sync d1.fixed_size_partitions file to OC-FOG-NODE
[06-05-18 11:25:14 am] | Win7BaseVM: No need to sync d1.mbr file to OC-FOG-NODE
[06-05-18 11:25:14 am] | Win7BaseVM: No need to sync d1.minimum.partitions file to OC-FOG-NODE
[06-05-18 11:25:14 am] | Win7BaseVM: No need to sync d1.original.fstypes file to OC-FOG-NODE
[06-05-18 11:25:14 am] | Win7BaseVM: No need to sync d1.original.swapuuids file to OC-FOG-NODE
[06-05-18 11:25:15 am] | Win7BaseVM: No need to sync d1.partitions file to OC-FOG-NODE
[06-05-18 11:27:12 am] | Win7BaseVM: No need to sync d1p1.img file to OC-FOG-NODE
[06-05-18 11:27:12 am] * All files synced for this item.
[06-05-18 11:27:21 am] | Win7BaseVM: No need to sync d1.fixed_size_partitions file to PH-FOG-NODE
[06-05-18 11:27:21 am] | Win7BaseVM: No need to sync d1.mbr file to PH-FOG-NODE
[06-05-18 11:27:22 am] | Win7BaseVM: No need to sync d1.minimum.partitions file to PH-FOG-NODE
[06-05-18 11:27:22 am] | Win7BaseVM: No need to sync d1.original.fstypes file to PH-FOG-NODE
[06-05-18 11:27:22 am] | Win7BaseVM: No need to sync d1.original.swapuuids file to PH-FOG-NODE
[06-05-18 11:27:22 am] | Win7BaseVM: No need to sync d1.partitions file to PH-FOG-NODE
[06-05-18 11:29:15 am] | Win7BaseVM: No need to sync d1p1.img file to PH-FOG-NODE
[06-05-18 11:29:15 am] * All files synced for this item.
And this is after uploading my Win7 VM:
[06-05-18 3:20:00 pm] * Starting Image Replication.
[06-05-18 3:20:00 pm] * We are group ID: 1. We are group name: default
[06-05-18 3:20:00 pm] * We are node ID: 1. We are node name: DO-FOG-MASTER
[06-05-18 3:20:00 pm] * Attempting to perform Group -> Group image replication.
[06-05-18 3:20:00 pm] | Replicating postdownloadscripts
[06-05-18 3:20:00 pm] * Found Image to transfer to 2 s
[06-05-18 3:20:00 pm] | File Name: postdownloadscripts
[06-05-18 3:20:09 pm] | postdownloadscripts: No need to sync fog.deletelog file to OC-FOG-NODE
[06-05-18 3:20:09 pm] | postdownloadscripts: No need to sync fog.drivers file to OC-FOG-NODE
[06-05-18 3:20:10 pm] | postdownloadscripts: No need to sync fog.postdownload file to OC-FOG-NODE
[06-05-18 3:20:10 pm] * All files synced for this item.
[06-05-18 3:20:19 pm] | postdownloadscripts: No need to sync fog.deletelog file to PH-FOG-NODE
[06-05-18 3:20:19 pm] | postdownloadscripts: No need to sync fog.drivers file to PH-FOG-NODE
[06-05-18 3:20:20 pm] | postdownloadscripts: No need to sync fog.postdownload file to PH-FOG-NODE
[06-05-18 3:20:20 pm] * All files synced for this item.
[06-05-18 3:20:20 pm] | Replicating postinitscripts
[06-05-18 3:20:20 pm] * Found Image to transfer to 2 s
[06-05-18 3:20:20 pm] | File Name: dev/postinitscripts
[06-05-18 3:20:29 pm] | dev/postinitscripts: No need to sync fog.postinit file to OC-FOG-NODE
[06-05-18 3:20:29 pm] * All files synced for this item.
[06-05-18 3:20:37 pm] | dev/postinitscripts: No need to sync fog.postinit file to PH-FOG-NODE
[06-05-18 3:20:37 pm] * All files synced for this item.
[06-05-18 3:20:38 pm] * Not syncing Image between s
[06-05-18 3:20:38 pm] | Image Name: Win10BaseVM
[06-05-18 3:20:38 pm] | There are no other members to sync to.
[06-05-18 3:20:38 pm] * Not syncing Image between s
[06-05-18 3:20:38 pm] | Image Name: Win7BaseVM
[06-05-18 3:20:38 pm] | There are no other members to sync to.
[06-05-18 3:20:38 pm] * Attempting to perform Group -> Nodes image replication.
[06-05-18 3:20:38 pm] * Found Image to transfer to 2 s
[06-05-18 3:20:38 pm] | Image Name: Win10BaseVM
[06-05-18 3:20:48 pm] | Win10BaseVM: No need to sync d1.fixed_size_partitions file to OC-FOG-NODE
[06-05-18 3:20:48 pm] | Win10BaseVM: No need to sync d1.mbr file to OC-FOG-NODE
[06-05-18 3:20:48 pm] | Win10BaseVM: No need to sync d1.minimum.partitions file to OC-FOG-NODE
[06-05-18 3:20:48 pm] | Win10BaseVM: No need to sync d1.original.fstypes file to OC-FOG-NODE
[06-05-18 3:20:49 pm] | Win10BaseVM: No need to sync d1.original.swapuuids file to OC-FOG-NODE
[06-05-18 3:20:49 pm] | Win10BaseVM: No need to sync d1.original.uuids file to OC-FOG-NODE
[06-05-18 3:20:49 pm] | Win10BaseVM: No need to sync d1.partitions file to OC-FOG-NODE
[06-05-18 3:20:50 pm] | Win10BaseVM: No need to sync d1p1.img file to OC-FOG-NODE
[06-05-18 3:20:50 pm] | Win10BaseVM: No need to sync d1p2.img file to OC-FOG-NODE
[06-05-18 3:20:50 pm] | Win10BaseVM: No need to sync d1p3.img file to OC-FOG-NODE
[06-05-18 3:22:42 pm] | Win10BaseVM: No need to sync d1p4.img file to OC-FOG-NODE
[06-05-18 3:22:42 pm] * All files synced for this item.
[06-05-18 3:22:51 pm] | Win10BaseVM: No need to sync d1.fixed_size_partitions file to PH-FOG-NODE
[06-05-18 3:22:52 pm] | Win10BaseVM: No need to sync d1.mbr file to PH-FOG-NODE
[06-05-18 3:22:52 pm] | Win10BaseVM: No need to sync d1.minimum.partitions file to PH-FOG-NODE
[06-05-18 3:22:52 pm] | Win10BaseVM: No need to sync d1.original.fstypes file to PH-FOG-NODE
[06-05-18 3:22:53 pm] | Win10BaseVM: No need to sync d1.original.swapuuids file to PH-FOG-NODE
[06-05-18 3:22:53 pm] | Win10BaseVM: No need to sync d1.original.uuids file to PH-FOG-NODE
[06-05-18 3:22:53 pm] | Win10BaseVM: No need to sync d1.partitions file to PH-FOG-NODE
[06-05-18 3:22:53 pm] | Win10BaseVM: No need to sync d1p1.img file to PH-FOG-NODE
[06-05-18 3:22:54 pm] | Win10BaseVM: No need to sync d1p2.img file to PH-FOG-NODE
[06-05-18 3:22:54 pm] | Win10BaseVM: No need to sync d1p3.img file to PH-FOG-NODE
[06-05-18 3:24:48 pm] | Win10BaseVM: No need to sync d1p4.img file to PH-FOG-NODE
[06-05-18 3:24:48 pm] * All files synced for this item.
[06-05-18 3:24:48 pm] * Found Image to transfer to 2 s
[06-05-18 3:24:48 pm] | Image Name: Win7BaseVM
[06-05-18 3:24:58 pm] | Win7BaseVM: No need to sync d1.fixed_size_partitions file to OC-FOG-NODE
[06-05-18 3:24:58 pm] | Win7BaseVM: No need to sync d1.mbr file to OC-FOG-NODE
[06-05-18 3:24:59 pm] | Win7BaseVM: No need to sync d1.minimum.partitions file to OC-FOG-NODE
[06-05-18 3:24:59 pm] | Win7BaseVM: No need to sync d1.original.fstypes file to OC-FOG-NODE
[06-05-18 3:24:59 pm] | Win7BaseVM: No need to sync d1.original.swapuuids file to OC-FOG-NODE
[06-05-18 3:25:00 pm] | Win7BaseVM: No need to sync d1.partitions file to OC-FOG-NODE
[06-05-18 3:26:57 pm] | Files do not match on server: OC-FOG-NODE
[06-05-18 3:26:57 pm] | Deleting remote file: /images/Win7BaseVM/d1p1.img
[06-05-18 3:26:57 pm] * Starting Sync Actions
[06-05-18 3:26:57 pm] | CMD:
lftp -e 'set xfer:log 1; set xfer:log-file "/opt/fog/log/fogreplicator.Win7BaseVM.transfer.OC-FOG-NODE.log";set ftp:list-options -a;set net:max-retries 10;set net:timeout 30; mirror -c --parallel=20 -R --ignore-time -vvv --exclude ".srvprivate" "/images/Win7BaseVM" "/images/Win7BaseVM"; exit' -u fog,[Protected] 10.59.181.12
[06-05-18 3:26:57 pm] * Started sync for Image Win7BaseVM
[06-05-18 3:26:57 pm] | Replication already running with PID: 25890
If I use rsync I can get the files to copy manually, or if I delete the files from the node it seems to be able to send the files out again. It just seems that the replication service won’t update my images. The md5sum on /images/Win7BaseVM.d1p1.img is different between the master and the node, which is triggering the lftp, but it isn’t overriding the node files.