Categories

  • 13k Topics
    115k Posts
    L

    @Tom-Elliott

    Thanks Tom, that explains both. I re-ran the same test with your fixes in place.

    Setup: server updated to dev-branch 4c426a799 (includes #2301, schema 492). Fresh BIOS image captured with agent 0.1.38, so there was no self-update during the run. Same host (test-bios), same package avast-business-agent 1.0.0 (the name check in its script is still there).

    Result: software now waits for the join. All times UTC (agent log is +01:00, minus one hour).

    Time Source Event 17:09:23 server Deploy task 16969 created 17:09:45 server PXE: boot.php, bzImage, init.xz 17:10:05 server Task check-in, copy starts 17:12:34 server Post_Stage3.php, copy done. softwareStatus for the host is empty (#2214 OK) 17:13:08 agent this state was made on another machine ... enrolling as this machine, host 667 17:14:20 agent Service starts after the next reboot (0.1.38, no update) 17:14:26 agent directory rejoin: blocked (directory_observation_required) and software: deferred; the server has not renamed this machine yet 17:14:29 server POST directory/rejoin/start 17:14:30.7 AD pwdLastSet of the computer account: joined 17:14:31 agent directory rejoin: native success; Windows restart and verification pending 17:14:33 agent software: deferred; a rename or domain join is waiting for its restart, then reboot: applied (directory-rejoin...) 17:14:56 agent directory rejoin: verified after Windows restart 17:15:40 agent Snapin 129 (before software): exit 0, success 17:15:40 agent software: Chocolatey is missing; bootstrapping from https://community.chocolatey.org/install.ps1 (done 17:15:52) 17:17:28 server Feed: avast-business-agent 1.0.0 downloaded 17:17:45 Avast console ANTIVIRUS: INSTALLING 17:18:34 agent 7 packages installed, exit 0, outcome success (googlechrome, vlc, 7zip, avast-business-agent, qemu-virtio-driver, qemu-guest-agent, chocolateygui). The server stored all 7 rows, Avast included 17:18:58 agent All 7 converged 17:21:15 Avast console ANTIVIRUS: ACTIVATED

    Compared with the earlier run (0.1.35, before your fix), software ran twice before the join and the Avast row was missing; now software runs once, after the join, and everything is stored.

    What I could not test: the Avast install succeeded, so the failure path (exit code -1 / 4294967295, your #2301) was not exercised, and the name check never had to act (the name was already final). Before I remove it I would like to test a package that fails on purpose and check that the row is stored with -1. Does that sound right?

    Two small questions:

    The join block (directory_observation_required) lasted about 5 minutes in the first run and about 6 seconds here. Is that expected, or did something change on the server side? At 17:14:26 and 17:14:33 the log says reconcile: a provider failed; will retry next poll. Which provider is that, and should I worry?

    One observation: the image has no Chocolatey installed, so the agent bootstraps it from the public site (12 seconds). That works, but a machine with no internet access would fail there.

    Thanks again for the quick fixes.

  • 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

    @lf88 Good point about the 8 reboots. Each snapin now has its own limit.

    The snapin edit page has a new field, Max reboot re-runs. The range is 1 to 20, and the default is 5. Existing snapins keep 5. There is no global setting, because the right number depends on the installer. For TIA Portal, set it to 10.

    This is on dev-branch now (schema 493). If you updated to dev-branch before this post, update once more, then run the schema update. The agent does not change: 0.1.38 is still the version you need.

    When a task uses up its limit, it fails with “Reboot and run again limit (N) reached.” in the task details.

    Details: https://docs.fogproject.org/management/web/snapins#return-codes

45

Online

12.8k

Users

17.7k

Topics

157.6k

Posts