• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. jgurka
    3. Best
    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 13
    • Best 5
    • Controversial 0
    • Groups 0

    Best posts made by jgurka

    • RE: Multcasting - Hosts Do Not Contain the Same Image Assignments

      @Tom-Elliott

      Just had a chance to try out your latest revision – working like a charm. 👍

      After writing all that up and re-reading your post, I get what you’re saying now. Really, all you’re doing is retrieving two sets of items:

      1. ID of the manager
      2. IDs of all images in the specified group

      Since ‘Host’ isn’t included in the following array call (where array_count_values is now located), it is only counting the values that it pulled from imageID that are members of the group. It then counts up how many of each imageID there is (should only be one) and sets the variable equal to that.

      I also see what you’re saying about $array[0] not being an actual array but the output number now that I can see that you’re really only interested in counting imageIDs – not multiple items like I thought.

      Thanks for the explanation & fix!

      posted in Bug Reports
      J
      jgurka
    • RE: Could Not Mount Image

      I ran into this before too. Check that nfs-server is running by running:

      systemctl status nfs-server
      

      If it’s not, you can manually start it with:

      systemctl start nfs-server
      

      This enables the service to start automatically on next boot, but it should already be enabled…

      systemctl enable nfs-server
      

      Which brings me to telling you to follow this guide on delaying the FOG services to fix the problem:
      https://wiki.fogproject.org/wiki/index.php/Fedora_21_Server#Set_the_FOG_services_to_start_30_seconds_after_boot

      I needed to also add “systemctl start FOGPingHosts” to the rc.local on my CentOS 7 installation.

      Two commands you can use to easily see what is/isn’t running on your CentOS 7 installation are:

      pstree
      

      &

      systemctl list-units --type=service
      
      posted in FOG Problems
      J
      jgurka
    • RE: Multcasting - Hosts Do Not Contain the Same Image Assignments

      @Tom-Elliott

      I’m not well-versed at all in OOP, but from what I understand, the way you had it setup was that it was taking the highest key in the output array and then adding one onto the value. Apparently that’s how PHP interprets it.

      Your latest code, as noted by Hanz, is still broken. I was able to alter your previous version of group.class.php (6128) to get both pieces of the validation working properly (at least it appears):

          public function doMembersHaveUniformImages() {
              $images = array_count_values($this->getSubObjectIDs('Host',array('id'=>$this->get('hosts')),'imageID'));
              return (count($images) == 1 && count($images['Host'] == $this->getHostCount()));
      

      -JG

      posted in Bug Reports
      J
      jgurka
    • RE: Could Not Mount Image

      @Vasahond

      Also ensure that all of the FOG services are running by entering:

      systemctl list-units --type=service
      

      You should see see all five Fog services in my screenshot as loaded, active, and running:

      alt text

      Another issue I’ve seen is the nfs-server service will show that it is running, but will be inactive and exited. Also double check that isn’t the case, because it will at a glance look as though it is loaded when you check status.

      To verify the Images directory exists, try the following:

      cd
      cd /images
      ls
      

      You should be within the directory and able to see at least a directory called dev and postdownloadscripts.

      posted in FOG Problems
      J
      jgurka
    • RE: Could Not Mount Image

      @Vasahond

      It looks like you’re on CentOS 6 – I was assuming you were on 7 earlier. Is this the latest trunk build of FOG, btw?

      I don’t think the stopped FOG services are crucial for what your problem is, but I’d start them back up anyway:

      service FOGPingHosts start
      service FOGSnapinReplicator start
      

      It looks like you have the IPv6 firewall still enabled…this might potentially be causing the problem? I’d go ahead and disable it:

      service ip6tables stop
      chkconfig ip6tables off
      

      Try it again and see if it made any difference.

      posted in FOG Problems
      J
      jgurka
    • 1 / 1