Skip to content

Stop image deployment if specified disk not found #100

@Peter-Csatlos

Description

@Peter-Csatlos

Is your feature request related to a problem? Please describe.
Some of the machines I use FOG with have multiple disks. For these machines, I have set the "Host Primary Disk" by the unique id of the SSD. After imaging around 100 machines last week, I noticed that on one machine the new image went to it's HDD. It probably had an SSD failure some time last year, so it was changed without updating the field in FOG. Now the Primary Disk setup does nothing. In this case, the actual data loss is not an issue, but I can see that this could be a major problem for someone.

Describe the solution you'd like
I would like to the image deployment process to fail if the Host Primary Disk field is set but the specified disk is not found. This should be an optional feature, so the current behavior is kept if this is toggled off.
The best implementation would be if the task would go in a "failed" state, so the admins can see on the web ui that there is an issue and the machine is not just silently in a boot loop. This failed state would remain until and admin is removing the task and the failed task should not be picked up again by the machine so it can boot back into the installed OS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions