• Alma 9, RHEL 9, Fedora 36, Ubuntu 22.04 added to daily tests

    7
    0 Votes
    7 Posts
    3k Views
    S

    @Wayne-Workman Thanks!

  • /opt/fog/.fogsettings MySQL user can't make changes

    4
    0 Votes
    4 Posts
    807 Views
    D

    @sebastian-roth
    Update I was able to make progress by fixing up the code per-say. I think the OP of the code (ch3i) wrote up something from memory and not from actual tests, and possibly update or make note of any changes in syntax as programs update.

    For instance, hostname --fqdn gives an error “hostname: unrecognized option ‘–fqdn’ BusyBox v1.31.1” so I changed to ‘hostname -f’.

    I was able to get pass the original MySQL errors using your advice, and using the fogstorage account instead. Running both scripts on ubuntu still stops without reason at “checking hostname/domain configurations”. When I run it on FOG (As a postdownloadscript), and it runs after cloning the image,it stops at :
    “Check Mysql Configuration: Done
    Check FOG Mysql Database Status: Done
    Checking hostname/domain configurations *Rebooting system as task is completed”
    Reboot: restarting system

    but upon reboot, I have the same hostname I myself set prior to capturing the image. Fog has a different hostname set to the MAC that I never changed, so if the script worked my hostname should reflect what FOG has.

    IT never makes it to the next part which should say “updating /etc/hostname” nor saying “Done” or “host not found in fog database”. So I am thinking it’s stuck at these lines:

    ######################################################### # Get interfaces ######################################################### NETWORK_CARDS=($(ls /sys/class/net | grep eth)) ######################################################### # Get host name and domain from FoG database ######################################################### FUNC_DOTS "Checking hostname/domain configurations" for ETH in ${NETWORK_CARDS[*]} do # read mac address MAC=$(cat /sys/class/net/$ETH/address) # get mac address information from fog web server wget http://$FOG_SERVER/$FOG_WEBROOT/service/hostname.php?mac=$MAC -O /tmp/hostname_check 2>/dev/null HOST_NAME="$(grep 'ok=' /tmp/hostname_check | cut -d "=" -f2)" HOST_DOMAIN_NAME="$(grep 'ADDom' /tmp/hostname_check | cut -d "=" -f2)" if [ "$HOST_NAME" != "" ] then echo "Done ($HOST_NAME.$HOST_DOMAIN_NAME)" sleep 3 # A hostname is found - quit the loop break else echo "Error" FUNC_DOTS "Host not found in FOG database" echo "exiting" sleep 3 exit fi done

    Final Update
    I got it to work!
    As first mentioned, I had to update the syntax as it’s been over 7 years since the code was written by OP (ch3i). The update that crashed the above code was :

    NETWORK_CARDS=($(ls /sys/class/net | grep eth))

    To get it to work I swapped it to :

    NETWORK_CARDS=($(ls /sys/class/net ))

    I learned thru google there was a change (systemd?) that made ls /sys/class/net not use ETH anymore, rather showing something like “enp0s31f6” which is the same as ETH0, but showing the exact location. The code was looking for ETH so just removing that line fixed it.

    Now that it works, I feel I can turn the code into a snap-in or post-download script.

  • Change FOG Client language

    3
    0 Votes
    3 Posts
    1k Views
    D

    @Sebastian-Roth Thank you!

    I did what you suggested (stopped FOG services on client, moved \pl folder to other place and restarted the PC) and after that FOG Client become english-speaking.

    English notifications look a way better than with mixed languages.

  • Full spec screen before injecting image

    1
    0 Votes
    1 Posts
    320 Views
    No one has replied
  • Thank you!

    1
    7 Votes
    1 Posts
    349 Views
    No one has replied
  • Debian has surpassed Ubuntu

    1
    1 Votes
    1 Posts
    503 Views
    No one has replied
  • FOG External Reporting

    19
    0 Votes
    19 Posts
    4k Views
    Wayne WorkmanW

    The count on working branch and dev-branch as of today is 718 fog servers.

  • [Feedback Requested] Adding kernel info to FOG Reporting

    11
    0 Votes
    11 Posts
    2k Views
    Wayne WorkmanW

    Putting a bow-tie on this thread: This feature is complete. Link to the external reporting is in my signature, the kernels in use are beginning to show up, these figures will increase and show a bigger picture over time.

  • Control Access plugin

    Solved
    17
    2 Votes
    17 Posts
    10k Views
    G

    @fernando-gietz Hello,

    I would like to know about the “Searches: Limit the range of the search to the resources of one or more locations. The restricted user only can see the hosts, groups, images that are link or associated to his/her location/locations.”

    How is it possible to do it? In the Location plugin, we can only put informations about Storage.

  • working-1.6 Ubuntu 18 & 20 potential issue - March 28, 2022

    1
    0 Votes
    1 Posts
    477 Views
    No one has replied
  • PHP 8 support

    10
    1 Votes
    10 Posts
    3k Views
    S

    @Fog_Newb Awesome! Thanks for testing 1.5.9.138. This was meant to fix another issue reported on github but looks like the same problem in the code was causing the issue you saw.

    Please keep an eye open and try as many things as you can (capture/deploy, fog-client, maybe plugins).

  • Fedora 35 & FOG

    9
    0 Votes
    9 Posts
    2k Views
    Wayne WorkmanW

    I see Fedora 35 tests are now passing on dev-branch as well as working-1.6.

  • Error building FOS

    9
    0 Votes
    9 Posts
    2k Views
    S

    @peirkern Sorry for the delay. I have tried to think about what could cause this new error you see but still have not found a good answer to this yet. I checked logs of a good compile on one of my servers and don’t see this error:

    linux-5.10.83.tar.xz: OK (sha256: ef259a43f33ddb56001283f4f4e50af29b8a48fa066aed7371a90ebf38c29b70) ESC[7m>>> linux-headers 5.10.83 ExtractingESC[27m xzcat /var/lib/.../fssourcex64/dl/linux/linux-5.10.83.tar.xz | tar --strip-components=1 -C /var/lib/.../fssourcex64/output/build/linux-headers-5.10.83 -xf - ESC[7m>>> linux-headers 5.10.83 PatchingESC[27m ESC[7m>>> linux-headers 5.10.83 ConfiguringESC[27m ...

    I can only suggest you start playing with the commands within docker and see what happens:

    mkdir ~/test xzcat /home/builder/fos/fssourcex64/dl/linux/linux-5.10.83.tar.xz | tar --strip-components=1 -C ~/test -xf -
  • Debian 11

    3
    0 Votes
    3 Posts
    761 Views
    Wayne WorkmanW

    It appears to be fixed. Great work @Sebastian-Roth

  • Removed from tests: RHEL 7, CentOS 8

    1
    1 Votes
    1 Posts
    343 Views
    No one has replied
  • External Reporting & Testing - usage

    1
    0 Votes
    1 Posts
    401 Views
    No one has replied
  • New release?

    9
    1 Votes
    9 Posts
    2k Views
    S

    Now, time flies and it’s been another two months. I’ve had very little time due to other projects but things are calming down a little bit right now. So I hope we can get this done in the next few weeks. I can take the lead on this but I can’t do it all on my own. I would really need some help by others to do some testing and so on.

    So please get involved, contact me or post here.

  • Supporting LVM

    6
    0 Votes
    6 Posts
    2k Views
    Wayne WorkmanW

    Another thing I just now thought of - versioning the partition file we keep with the images. We can start out with v1.0.0. And if we change how we store that file, we simply increment the version. This would give us some more flexibility in regard to changes.

    Thinking further, the scripts that collect the physical partitions are fine, we can just add JSON output for those.

    And really, the LVM describing tools are what needs JSON output, so the effort there is targeted to just those.

    I think I’m going to take a swing at adding JSON to an LVM describing tool (there are several).

  • Alma 8, Rocky 8, Fedora 35, Debian 11 - Now being tested

    2
    1 Votes
    2 Posts
    510 Views
    S

    @Wayne-Workman Really awesome work. Thank you so much for all this as well as new ideas!

    I definitely vote for more testing as it’s still mostly manual work. Though I have to admit that I can’t see me working on this.

  • OS Support - the numbers are in

    9
    0 Votes
    9 Posts
    3k Views
    A

    One option for limiting support to reduce workload would be to limit to LTS branches only. So only 18.04 and 20.04 for Ubuntu and skipping the intermediary releases and dropping those that go out of support by their vendor (eg ubuntu 14.04, 16.04).

110

Online

12.4k

Users

17.5k

Topics

156.0k

Posts