Categories

  • 13k Topics
    115k Posts
    L

    Hello everyone,

    I would like to propose a small option on a software item (or on a group association): “run only after the host has been renamed and joined to the domain”.

    Today, on a fresh deploy, the agent enrolls, runs the snapins and then runs the Chocolatey software module, and only after that does it rename the host and join it to the domain, which ends in a reboot. That order is fine for Chrome or VLC. It is a problem for installers that do their real work in a second stage after the first one returns. Our case is the Avast Business agent: the MSI returns 0 in about ten seconds, but the antivirus itself is downloaded and installed afterwards, over the next few minutes. If the join reboot lands in the middle, the install can be left half done, and from FOG’s side everything looks fine because the Chocolatey package reported success.

    What we do today is a workaround inside the package script: if the computer name is still the image name, the script throws on purpose, so nothing gets installed, and then we rely on FOG running the software again after the reboot. It works, but it has some rough edges that a native option would remove:

    When the script throws, the software status row for that host is not updated. It keeps the old state (converged from a previous run), so the web UI never shows that the package failed. We only knew from the host itself.

    We had to rely on the retry. By watching the web server log we saw that after each boot the agent runs the Chocolatey module about four times, roughly a minute apart, and then not again for hours (we saw passes about every six hours). So if the retry after the join reboot is missed, the next chance is a long way off.

    The software status list of the host survives a new deploy. When an image is deployed, pending tasks such as snapins are cleared, but the old software status rows stay, so a freshly cloned host still shows software as converged or installed from the previous install. That is also why a failed package could not be told apart from an old success. The machine is new after a deploy, so that list should not be kept.

    We first tried to detect “not joined yet” with the domain membership, but that does not work: the agent renames the host and joins the domain in the same step, and both only become effective after the reboot, so right before it Windows already reports the host as part of the domain while it still has the image name. The host name was the only reliable signal.

    So the request would be, in order of importance:

    An option per software item (or per group) to defer it until after the rename/join reboot.

    Recording a failed Chocolatey run in the software status (failed, with the output), instead of leaving the previous status.

    Clearing the host’s software status list when a deploy finishes, the same way pending snapin tasks are cleared, since the machine is new.

    I am not sure the ordering is the only thing behind our Avast problem, since we also had a separate crash of the vendor installer that seems unrelated, so I am only asking for the generic behavior, which would help with any installer that continues working after it returns.

    Happy to share logs or test a patch if it helps. Thanks!

  • Get the latest news on what's happening.
    208 Topics
    849 Posts
    Tom ElliottT

    FOG 1.6.1 is released. It is on the stable and master branches, and the tag is 1.6.1.

    Upgrade from your FOG source checkout:

    sudo bin/updatefog.sh --channel stable

    Or run git pull on stable, then bin/installfog.sh. The schema moves from 446 to 473, so the web UI asks for the schema update after the upgrade. Installs from master use FOS 1.6.1.

    Highlights

    IPv6: IPv6 listeners, opt-in DHCPv6, boot to the IPv6 address, and multicast over IPv6. FOS 1.6.1 adds IPv6 and udpcast over IPv6. Software management through the fog-agent, per host and per group, with Flatpak, Snap, and winget. Storage nodes: deploys balance across a group, and a full node overflows at PXE boot. AD rejoin and OU placement for deployed images. Roles can limit the networks their members use the web UI and API from. The Imaging Report records deploys and multicast joins to unregistered hosts. “Deploy image now” after Full Registration deploys with no reboot. MySQL 8.0.13+ installs and upgrades.

    Security: 1.6.1 is the first stable release with the fix for GHSA-q38j-qx5x-w25v (a Legacy Restricted user could read the AD join password and product keys). If you moved to the Patches channel to get that fix early, you can switch back with --channel stable.

    Offline installs: the installer now downloads udpcast from FOGProject/udpcast and checks its sha256. Put udpcast-v20250223-fog.1.tar.gz and its .sha256 in packages/ before you run the installer.

    Thank you to ASPePeX on GitHub for the OIDC trailing-slash fix (fog-plugins #49), and to everyone who tested and reported issues.

    Full release notes: https://github.com/FOGProject/fogproject/releases/tag/1.6.1

  • View tutorials or talk about FOG in general.
    2k Topics
    19k Posts
    Tom ElliottT

    @DBailey635 Good questions.

    Release: waiting for stable is sensible. The stable channel gets a release on the 11th of each month, and this feature is in the next one, on December 11.

    Check-ins: both OSes share one host and one hostname. The host list shows the most recent check-in from either OS. The host’s edit page lists each OS on its own line, with its agent version, last check-in, and certificate expiry. So you can see when Windows and Linux each last checked in.

    Separate hostnames for the domain join: not today. FOG applies the host’s one name to every OS, and the domain join follows the Windows install. A per-OS suffix (host01-win / host01-lnx) is a reasonable feature request. It needs a second computer account per machine, so it is not a small change.

    Deploy window: the default is 24 hours after FOG completes a deploy to the host. You can change it in FOG Configuration > FOG Settings > General Settings > FOG_AGENT_ENROLL_DEPLOY_WINDOW (in hours). A longer window does work, but for that whole time any machine that presents that host’s identity enrolls with no approval. For an OS that first boots months later, two better routes:

    Approve it when it shows up. The second OS waits in pending agents until you approve it, and it keeps retrying, so a student’s first boot just queues it. Put an agent enrollment token in the Linux image’s agent install (--token). Give the token enough uses and an expiry past the point where the course switches OS. The agent then enrolls on its first boot, whenever that is, without an approval click.

    No need to walk the room after imaging.

  • Report bugs, request features, or get the latest progress.
    2k Topics
    21k Posts
    Tom ElliottT

    @sgennadi Thanks for the PHP 8.6 report.

    You are right: CI tested only PHP 7.4 and 8.3. CI now also runs the full test suite on PHP 8.4 and 8.5 for every change. Both pass today. A failure on 8.4 or 8.5 shows as a warning and does not block a change or a release. I will add 8.6 when the CI tooling supports it.

    The tested versions are now on the requirements page: https://docs.fogproject.org/installation/server/requirements#php-versions

    I will not add a “latest verified PHP” value to the installer. Somebody must update that number by hand at every PHP release, and a stale number warns about versions that work. The docs table changes when the CI matrix changes, so it stays correct.

    FOG sets no maximum PHP version. If a newer PHP gives you an error, please post the output of php -v and the last lines of the PHP-FPM error log.

34

Online

12.8k

Users

17.7k

Topics

157.6k

Posts