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

    Image doesn't replicate after updating to RC19

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    3
    15
    3.2k
    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.
    • mosesM
      moses
      last edited by moses

      Server
      • FOG Version: 1.3.0-RC-19
      • OS: Centos 7
      Description

      After updating all my nodes and database server to RC 19, a newly created image (created after the update), doesn’t replicate. Replication is turned on for the image, and I have another node listed where it should be copying to. The replicator log only lists this:

      [11-04-16 4:01:37 pm]  | Not syncing Image: W7P-Universal-x64-STANDARD
      [11-04-16 4:01:37 pm]  | This is not the primary group.
      

      But it is the primary group!

      alt text

      It should be replicated from the database server on the “HQ” group to another master storage group node in another group.

      Any ideas?

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

        This is now fixed for RC-21. (RC-21 has not been released yet.)

        it addresses a few different things.

        For sure, now, it address the set primary setting. Fix for it was to scan which group (if any) is set as primary. and reset it if it was after applying our settings to the image/snapin.

        yes, this exact same error would’ve shown up for the snapins as well.

        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

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

          Go into the storage group area and check the box for the group that is your primary master. Enjoy as the image starts to replicate.

          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

          mosesM 1 Reply Last reply Reply Quote 0
          • mosesM
            moses @Tom Elliott
            last edited by moses

            @Tom-Elliott When I do that and save the changes, the checkbox disappears. Probably should have mentioned that, but since it was listed on the side (in the screenshot), I thought the UI had changed slightly.

            mosesM 1 Reply Last reply Reply Quote 0
            • mosesM
              moses @moses
              last edited by moses

              @moses Nothing of use is showing in the PHP logs, but mysql shows that value is left at null (last entry):

              +-------+------------+-------------------+------------+
              | igaID | igaImageID | igaStorageGroupID | igaPrimary |
              +-------+------------+-------------------+------------+
              |    23 |          4 |                 1 |          0 |
              |    57 |         10 |                 2 |          0 |
              |    58 |         10 |                 1 |          0 |
              |    68 |         10 |                 7 |          1 |
              |    71 |         10 |                 8 |          0 |
              |    70 |          4 |                 7 |          1 |
              |    75 |         10 |                 9 |          0 |
              |    77 |         10 |                10 |          0 |
              |    79 |          4 |                 8 |          0 |
              |    80 |          4 |                 9 |          0 |
              |    81 |          4 |                10 |          0 |
              |   103 |         17 |                10 |          0 |
              |   114 |         17 |                 7 |       NULL |
              +-------+------------+-------------------+------------+
              
              

              Changing it manually to a 1 fixes the issue and replication starts, but still can’t update it using the UI.

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

                Please run:

                ALTER TABLE `imageGroupAssoc` CHANGE `igaPrimary` `igaPrimary` ENUM('0','1') NOT NULL;
                

                And update the field again?

                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

                mosesM 1 Reply Last reply Reply Quote 0
                • mosesM
                  moses @Tom Elliott
                  last edited by

                  @Tom-Elliott See the bottom of my post below; changing it manually worked and replication starts, however can’t change it in the webgui. If you need any specific logs on that let me know.

                  Tom ElliottT 2 Replies Last reply Reply Quote 0
                  • Tom ElliottT
                    Tom Elliott @moses
                    last edited by

                    @moses The code that handles it is working from what I can see.

                    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 @moses
                      last edited by

                      @moses I ask you to run the code to ensure it gets loaded up and updates as appropriate ( a null value should not be allowed at all ). Then try in the GUI.

                      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’ve updated the schema files to at least define the is primary portions for images and snapins to use the enum allowing only 0 and 1 as the entries here. I’ve also added the equivalent alter flags for these fields as well to ensure those without it will be updated.

                        I doubt, however, that this will fix the issue though it could. The original entry only allowed a tiny integer having a max character length of 1 ( 0 - 9). It is strangely odd that the is primary field was not being set properly for you while I could see it fine.

                        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

                        mosesM 1 Reply Last reply Reply Quote 0
                        • mosesM
                          moses @Tom Elliott
                          last edited by moses

                          @Tom-Elliott Unfortunately, I can’t change it the GUI still. It doesn’t change from a 0.

                          Worse still, I can’t change it manually in the DB:

                          I’m using:

                          UPDATE imageGroupAssoc SET igaPrimary = 1 WHERE igaID = 118;
                          

                          It now results in:

                          Query OK, 0 rows affected (0.00 sec)
                          Rows matched: 1  Changed: 0  Warnings: 0
                          

                          The table is here:

                           +-------+------------+-------------------+------------+
                          | igaID | igaImageID | igaStorageGroupID | igaPrimary |
                          +-------+------------+-------------------+------------+
                          |    23 |          4 |                 1 | 0          |
                          |    57 |         10 |                 2 | 0          |
                          |    58 |         10 |                 1 | 0          |
                          |    68 |         10 |                 7 | 1          |
                          |    71 |         10 |                 8 | 0          |
                          |    70 |          4 |                 7 | 1          |
                          |    75 |         10 |                 9 | 0          |
                          |    77 |         10 |                10 | 0          |
                          |    79 |          4 |                 8 | 0          |
                          |    80 |          4 |                 9 | 0          |
                          |    81 |          4 |                10 | 0          |
                          |   103 |         17 |                10 | 0          |
                          |   118 |         17 |                 7 | 0          |
                          +-------+------------+-------------------+------------+
                          13 rows in set (0.01 sec)
                          

                          Is my query correct? This issue only appears to happen with this image, so if I can set it correctly manually I’ll just ignore it from here on.

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

                            @moses Your query is correct, except it’s now an ENUM not an integer. The ENUm is a string value.

                            Try:

                            UPDATE imageGroupAssoc SET igaPrimary = '1' WHERE igaID = 118;

                            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

                            mosesM 1 Reply Last reply Reply Quote 0
                            • Wayne WorkmanW
                              Wayne Workman
                              last edited by

                              Cross-linking similar threads:
                              https://forums.fogproject.org/topic/8911/can-t-set-image-s-primary-group
                              https://forums.fogproject.org/topic/8899/image-doesn-t-replicate-after-updating-to-rc19

                              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
                              • mosesM
                                moses @Tom Elliott
                                last edited by moses

                                @Tom-Elliott Ah, yes, didn’t look at the value type, thought it was an integer. That worked.

                                As I said, I’ll personally just ignore this for now, since this only seems to be a problem with this particular image. You can mark it as solved if you want, or track it if the other posts Wayne referenced are relevant/needs further investigation. I can provide any logs/info you might need if you want to look into it further.

                                If it matters, I updated this morning to RC20 and the issue persists.

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

                                  This is now fixed for RC-21. (RC-21 has not been released yet.)

                                  it addresses a few different things.

                                  For sure, now, it address the set primary setting. Fix for it was to scan which group (if any) is set as primary. and reset it if it was after applying our settings to the image/snapin.

                                  yes, this exact same error would’ve shown up for the snapins as well.

                                  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

                                  mosesM 1 Reply Last reply Reply Quote 1
                                  • mosesM
                                    moses @Tom Elliott
                                    last edited by

                                    @Tom-Elliott You’re the man, Tom!

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

                                    158

                                    Online

                                    12.0k

                                    Users

                                    17.3k

                                    Topics

                                    155.2k

                                    Posts
                                    Copyright © 2012-2024 FOG Project