• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Wayne Workman
    3. Posts
    • Profile
    • Following 11
    • Followers 31
    • Topics 425
    • Posts 12,326
    • Best 1,524
    • Controversial 0
    • Groups 2

    Posts made by Wayne Workman

    • RHEL 7 test

      For RHEL7 fully updated - with SELinux turned off, using the master branch of FOG…

      The fog installer wanted to install these packages:
      bc curl gcc gcc-c++ genisoimage gzip httpd lftp m4 make mod_ssl mtools mysql mysql-server net-tools nfs-utils php php-bcmath php-cli php-common php-fpm php-gd php-ldap php-mbstring php-mysqlnd php-process syslinux tar tftp-server unzip vsftpd wget xinetd xz-devel

      These packages weren’t found:

       * Skipping package: php-bcmath................................(Does not exist)
       * Skipping package: php-fpm...................................(Does not exist)
       * Skipping package: php-mbstring..............................(Does not exist)
      

      The installer fails and exits here:
      * Stopping web service........................................Failed!

      Fog error log:
      0_1543773229083_fog_error_1.5.5.log

      There was no Apache error log.

      posted in General
      Wayne WorkmanW
      Wayne Workman
    • RE: Fog Installer - Distro check

      @Sebastian-Roth I can do a quick manual run today.

      posted in General
      Wayne WorkmanW
      Wayne Workman
    • RE: Fog Installer - Distro check

      @Sebastian-Roth said in Fog Installer - Distro check:

      I guess there are people out there with a proper license using FOG. But we can’t actually test our installer as it’s impossible to even get a package (version) listing online.

      Once I’ve completed moving the install tests to AWS, we will have RHEL 7 in the tests. I’ve made a lot of progress. I have Terraform scripts that do a complete build-out of everything necessary for the tests to start running in an AWS account. This includes new Python scripts to replace what the old BASH scripts do at my house (interacting with the AWS API instead of interacting with libvirtd, as well as running the FOG installation tests). I’m still actively working on this, but it’s getting close to functional.

      posted in General
      Wayne WorkmanW
      Wayne Workman
    • RE: Fog Installer - Distro check

      @Tom-Elliott Just checked, It is in permissive mode.

      posted in General
      Wayne WorkmanW
      Wayne Workman
    • RE: Fog Installer - Distro check

      Fedora29 is still having issues, I looked at it this morning, the installer is failing on “Updating Database”. Here’s the log: http://fogtesting.theworkmans.us/Fedora29/fog/2018-12-01_04-41_fog.log

      Also - I’m going to remove Fedora 25, 26, and 27 from the tests. Patches aren’t released for some of those anymore, nobody should be freshly installing fog on those.

      posted in General
      Wayne WorkmanW
      Wayne Workman
    • RE: host not able to stay deleted.

      @jpaul I don’t know what to tell you other than what people in this thread have already said. The fog client is designed to report into the fog server. When you delete a host in FOG - it is completely and totally removed from the fog database, fog no longer has any knowledge of it (no soft delete). So when the fog client (that is still out there running, exactly as it is supposed to) checks into the fog server, the fog server treats it as a pending host (exactly as it’s designed to do). So again, I’ll tell you that what you’re calling a problem is not a problem, but is actually a feature and expected behavior. You shouldn’t be deleting these hosts anyway, you should be accepting them. FOG does way, way more than just imaging - and all of that other stuff requires accepted hosts - registered with the fog server.

      posted in General
      Wayne WorkmanW
      Wayne Workman
    • RE: Powershell script runs but......

      @BREIT Why are you running it as a process? Just call it normally and that should solve the waiting problem, and you can get rid of the loop.

      posted in FOG Problems
      Wayne WorkmanW
      Wayne Workman
    • RE: How do you create your image/s?

      @dylan You would probably be really interested in this post:
      https://forums.fogproject.org/topic/8906/to-sysprep-or-not-that-is-the-question

      Though, I haven’t used FOG at work for about 2 years now. I use it at home to create images of my Linux systems - and I do a lot of automated testing with fog. But I’m not doing much imaging anymore as I have no reason to do so.

      posted in General
      Wayne WorkmanW
      Wayne Workman
    • RE: Windows Users Passwords

      @datastream If your machines are joined to a domain, most likely this is a group policy setting on the domain. Fog wouldn’t have anything to do with this either way.

      posted in Windows Problems
      Wayne WorkmanW
      Wayne Workman
    • RE: Storage Node: Database Connection Unavailable

      @george1421 IMHO, if SELinux is set to enforcing, I think the installer should set it to permissive mode and just inform the user of this. When somebody comes up with a working SELinux policy, then that can change.

      posted in FOG Problems
      Wayne WorkmanW
      Wayne Workman
    • RE: Option to delete files when deleting multiple images / snapins.

      @Sebastian-Roth said in Option to delete files when deleting multiple images / snapins.:

      I really like the idea although it would mean that users need to confirm twice.

      I think it’s fine. It’s like Tom said, very serious to mass delete images.

      posted in Feature Request
      Wayne WorkmanW
      Wayne Workman
    • RE: Fog Installer - Distro check

      Seems Fedora29 is having some problem related to apache.
      These are in the logs:

      [Thu Nov 29 05:20:30.553661 2018] [proxy_fcgi:error] [pid 8980:tid 140162887972608] [client 10.0.0.48:40096] AH01067: Failed to read FastCGI header
      [Thu Nov 29 05:20:30.553706 2018] [proxy_fcgi:error] [pid 8980:tid 140162887972608] (104)Connection reset by peer: [client 10.0.0.48:40096] AH01075: Error dispatching request to : 
      

      Also - these logs and the dashboard are in AWS s3 now. The bash scripts that makes this stuff is adding an extra / somewhere and s3 does not handle this like Apache. So when you click the links and it says “page not found” you just need to remove the extra slash.

      posted in General
      Wayne WorkmanW
      Wayne Workman
    • RE: Issues during installation on Debian 9.6 stretch

      @Sebastian-Roth said in Issues during installation on Debian 9.6 stretch:

      We haven’t tested Debian 9.6 yet I think.

      The automated installation tests use the latest version of both debian 8 and 9. Before the fog installer runs, basically something like this runs:
      apt-get update;apt-get -y dist-upgrade
      Same for the other OSs. The daily tests are hitting a moving target every day.

      posted in FOG Problems
      Wayne WorkmanW
      Wayne Workman
    • RE: Option to delete files when deleting multiple images / snapins.

      @Tom-Elliott said in Option to delete files when deleting multiple images / snapins.:

      Let’s say, for example, you selected 12 images

      In that case, the admin has selected 12 images for deletion. A confirmation would be appropriate to confirm. In some other softwares concerning deleting something very important, the interface usually prompts for the user to enter in something to confirm beyond doubt.
      For example:

      • Github requires you to type in the full repo path to delete a repo.
      • Terraform requires you to type in ‘yes’ to destroy infrastructure. (and warns you there is no undo)

      Perhaps fog can tell you how many images you’re about to delete, and ask you to confirm that by entering the number of images it’s displaying. Say it’s 12 images, so you’d have to type 12 into a textbox to confirm.

      posted in Feature Request
      Wayne WorkmanW
      Wayne Workman
    • RE: Script/Program to Batch Copy ISO Contents for PXE Boot?

      @Zer0Cool said in Script/Program to Batch Copy ISO Contents for PXE Boot?:

      From my perspective, the tricky part in a bash script would be how to identify each iso and properly “categorize” it to create the desired dir/subdirs.

      That is exactly the most difficult part. Let’s use the Debian DVD ISOs as an example, and let’s use Python instead of bash.

      Here’s the debian DVD download page, it’s just basic HTML. This won’t be the same for other sites. You’ll need to code your own parsing for each site. You can see the ISO links at the bottom. https://cdimage.debian.org/debian-cd/current/amd64/iso-dvd/

      Scripting to find the links in here is somewhat challenging because it’s html instead of something designed to be programmatically read like JSON.

      But anyway, install python2 and pip on your fog server. Then use pip to install requests like pip install requests Then create this file:

      import requests
      import os
      
      result = requests.get('https://cdimage.debian.org/debian-cd/current/amd64/iso-dvd/')
      
      # Get just the text from the page.
      text = result.text
      
      # Split text on new lines into a list.
      lines = text.splitlines()
      
      # Iterate through each line, see if it has .iso in it or not. If so, add it to the ISOs list.
      isos = []
      for line in lines:
          if '.iso' in line:
              isos.append(line)
      
      # Done with the lines list, delete it.
      del lines
      
      # Further splitting. Cut off first unneeded text from the link.
      trimmedIsoText = []
      for iso in isos:
          iso = iso.split('<a href="')[1]
          # Cut off the last unnecessary part of the line.
          iso = iso.split('">')[0]
          trimmedIsoText.append(iso)
      
      # Done with the isos list, delete it.
      del isos
      
      # Define a downloads directory.
      downloadDir = "/root"
      
      # Create a list called isos.
      isos = []
      # Going to put objects into the list.
      for iso in trimmedIsoText:
          
          # Create a full link
          link = 'https://cdimage.debian.org/debian-cd/current/amd64/iso-dvd/' + iso
          # Add the link to the list, along with it's filename.
          downloadPath = os.path.join(downloadDir,iso)
          isos.append({"link":link,"filename":downloadPath})
      
      # Done with the trimmed isos text, delete it.
      del trimmedIsoText
      
      for iso in isos:
          # Download the link to the filesystem.
          response = requests.get(iso["link"], stream=True)
      
          total_size = int(response.headers.get('content-length', 0))
          print "Downloading '" + str(total_size) + "' bytes from " + iso["link"]
          with open(iso["filename"], 'wb') as writer:
              for chunk in response.iter_content(chunk_size=128):
                  writer.write(chunk)
      

      Run that file with python, and it should start downloading to root’s home directory. The way you’d run it with python would be python <file>

      Of course, there is more logic needed to determine if you already have a particular ISO or not, putting it into the right spot, mounting the ISO (use python’s subprocess.popen() for that), and adding it to FOG’s boot menu maybe. All that other stuff, I leave up to you. Go learn some python and enjoy the fruits it’ll bring you.

      posted in General
      Wayne WorkmanW
      Wayne Workman
    • RE: host not able to stay deleted.

      @jpaul said in host not able to stay deleted.:

      We had a dns issue with one of our machines yesterday and I made sure it was out of the host list.

      Fog does not affect DNS.

      Does the fog service have to be stopped to solve these issues with the host list?

      What your calling an issue is actually a feature. The FOG Client is designed to report into it’s FOG Server.

      If you have a domain configured in the FOG Server, and several of your hosts are set to use this domain, then the FOG Client is going to try to use those domain settings. But if you’ve set none of that in FOG, then the FOG Client is not interfering with your domain joining.

      posted in General
      Wayne WorkmanW
      Wayne Workman
    • RE: Are "Smart" Snapins possible (e.g. only install if target application isn't running)?

      @numericOverflow You should research/test what happens if you run the update while the application is installed or not, running or not. Maybe it’s fine.

      posted in General
      Wayne WorkmanW
      Wayne Workman
    • RE: Storage Node: Database Connection Unavailable

      @atessin Great job triaging the issue, it’s good to see that. Are you aware that the storage nodes do not have a web UI for administration? All the things done with storage nodes use the master server’s web interface.

      Does the storage node actually image? Does it work?

      Have you tried this link on the storage node? What does it say?
      http://node_ip/fog/service/getversion.php

      posted in FOG Problems
      Wayne WorkmanW
      Wayne Workman
    • RE: host not able to stay deleted.

      @jpaul Don’t delete the hosts, accept them.

      posted in General
      Wayne WorkmanW
      Wayne Workman
    • RE: Cant pxe boot to fog.

      @blindcat420 said in Cant pxe boot to fog.:

      I went ahead and reran the fog installer.
      That seems to have fixed it.

      Sometimes it’s the simplest things… I need to remember to suggest rerunning the installer when there is strange things happening.

      posted in FOG Problems
      Wayne WorkmanW
      Wayne Workman
    • 1
    • 2
    • 18
    • 19
    • 20
    • 21
    • 22
    • 616
    • 617
    • 20 / 617