• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Image sharing via Storage Groups - Primary group issue.

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    2
    6
    1.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Wayne WorkmanW
      Wayne Workman
      last edited by

      Server
      • FOG Version: 1.3.0 RC-18
      • OS: CentOS 7
      Description

      We use the location plugin.

      For an image that exists on one storage group and you want to share it with another storage group,
      Image Management -> pick image -> Storage Group -> Add Storage Group

      The storage group that originally was assigned does not automatically become primary, so replication doesn’t happen.

      Because replication doesn’t happen, the image doesn’t exist yet on the other storage group. So when someone at the other location tries to image with the image, FOG assigns the image to only the storage group that has a copy of the image, which then of course doesn’t work because it’s not in the right location, and the additional storage group is un-done.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
      Daily Clean Installation Results:
      https://fogtesting.fogproject.us/
      FOG Reporting:
      https://fog-external-reporting-results.fogproject.us/

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        I’ve modified the code so storage groups will be defined as master on new image creation as you can only select one group.

        I’ve also modified the schema so upgrades should have their relevant images auto populated to contain their relevant storage group set as the master group.

        I’m still doing testing to ensure all is well, first, just wanted to give a heads up.

        As for the group being lost from the image, I’m not sure where the issue is occurring currently.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • Tom ElliottT
          Tom Elliott
          last edited by

          Confirmed the schema changes are working as intended, now. (Upgrades will set all images to be primary master automatically).

          Only need help, potentially, with the removing of another group.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott
            last edited by

            For what it’s worth, I’m not seeing anything in the code that removes groups unless an action was indeed taken prior. I’m still sifting just in case, just wanted to give a heads up.

            I believe it was fixed here, though:

            https://github.com/FOGProject/fogproject/commit/3e2ccc37fcb2c36be5bcf1392ec5d593ffd2d4ae#diff-9fd94662ccd5d20ea2b02921b594f0e9L349

            I don’t know what I was thinking there. Ultimately, though, it was setting the group to the “lowest ID” stored. That said, this was just a “sanity” setter, and nothing (in regards to imaging) updates the image definition itself (which would in-turn update the storage groups). At least not within RC-19, (I didn’t test against RC-18 sorry).

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            1 Reply Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott
              last edited by

              I’m thinking this is now safe to solve, can you verify first?

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              Wayne WorkmanW 1 Reply Last reply Reply Quote 0
              • Wayne WorkmanW
                Wayne Workman @Tom Elliott
                last edited by

                @Tom-Elliott Yes solved. We need to make an SQL statement though that will set all images that only have one storage group to make that group primary. Because we have a ton of images that have no primary group but also only have one group.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                Daily Clean Installation Results:
                https://fogtesting.fogproject.us/
                FOG Reporting:
                https://fog-external-reporting-results.fogproject.us/

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post

                198

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project