Solved Image Storage Group Resets on Upload Task
I am on svn 5807 ver 8359
I discovered the issue on ver 8355 and then updated and it persisted.
I have 2 storage groups, default and Snode.
Default is the main fogserver but it only has ~80 GB of space and I only store my main image on it.
Snode is my larger storage group for specialized images, backup images, test/dev images etc.
I needed to make a backup of a IT admin workstation before, so I made a image in the gui for it and pointed it to the Snode group. I double checked to make sure it set right and all was well. So then I started the upload.
It starts uploading and then after it’s about halfway through it stops and throws errors. I took a look and discovered that right after I hit upload it changed the storage node to default and uploaded to my smaller node until it ran out of space.
At the moment I have a work around. I just set the storage group on the image settings before booting the computer to start the task and it is now uploading to the right place. But there’s still something that causes a storage group reset on the database when a upload task starts.
I did see this happen on download tasks too a while back, but I think it was resolved. But I did find that I had to set a couple of my images storage groups back to Snode today.
When the image completed uploading it had a bunch of database errors saying that it couldn’t update the database. I didn’t see it with enough time to snap a picture sadly.
I had to manually move the image files on the snode server and went and checked the gui to see that the storage group said Default again for that image. I’m not sure when that switched back.
Are both nodes in the same group?
@Tom-Elliott Yes and no…
I do have two instances of Snode. One that is in the default group so my base image can replicate to it and then another instance of it with a different name in its own storage group.
@JJ-Fullmer Does this image have a proper “primary group” defined?
@Tom-Elliott It does
@JJ-Fullmer This sounds very, very, eerily similar to an issue I was having: https://forums.fogproject.org/topic/7798/8088-storage-group-changes-back-if-image-is-downloaded
@Wayne-Workman Pretty much the same thing except on upload instead of download. Haven’t tested download today. But that same problem you posted there happened to me around that time and was probably fixed via your request there. So thanks for that
@JJ-Fullmer I believe/hope this is now fixed. I know it’s a long weekend for most but hopefully this can be solved on Monday.
@Tom-Elliott I do believe that is fixed. As far as I have tested anyway. I will report back if anything changes