<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">Le 09/03/2017 à 10:25, Gianluca Cecchi
      a écrit :<br>
    </div>
    <blockquote
cite="mid:CAG2kNCy-F6KF0ckEbFqWuXYQkroMZRVigPHvuhsrK=EvBBOTpQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">On Wed, Mar 8, 2017 at 6:05 PM,
            Gianluca Cecchi <span dir="ltr">&lt;<a
                moz-do-not-send="true"
                href="mailto:gianluca.cecchi@gmail.com" target="_blank">gianluca.cecchi@gmail.com</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div dir="ltr">
                <div class="gmail_extra">
                  <div class="gmail_quote"><br>
                    <div><br>
                    </div>
                    <div>NOTE: during the snapshot creation I see in web
                      admin console the VM in paused state and also not
                      responsive in both console and ssh session.</div>
                    <div>After a couple of seconds it comes back and as
                      a confirmation I see this in its messages:</div>
                    <div><br>
                    </div>
                    <div>Mar  8 17:38:57 T-ORACLE73 chronyd[616]: System
                      clock wrong by 19.077230 seconds, adjustment
                      started<br>
                    </div>
                    <div><br>
                    </div>
                    <div>Is this expected?</div>
                    <div><br>
                    </div>
                    <span class="gmail-HOEnZb"><font color="#888888">
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                      </font></span></div>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
        <div class="gmail_extra">Possibly the default changed at some
          point in time, so that now it saves memory and so this implies
          pause of VM</div>
      </div>
    </blockquote>
    Saving memory is essential in some apàplications like DB, so you
    won't bypass vm pauses for such a stuff<br>
    <blockquote
cite="mid:CAG2kNCy-F6KF0ckEbFqWuXYQkroMZRVigPHvuhsrK=EvBBOTpQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">In the mean time I verified changing
          backup.py this way solves the problem (the 3.6 api deprecation
          still in place... ;-):</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">
          <div class="gmail_extra">$ diff backup.py backup.py.orig </div>
          <div class="gmail_extra">123c123</div>
          <div class="gmail_extra">&lt;                    
vm.snapshots.add(params.Snapshot(description=config.get_snapshot_description(),
            vm=vm,persist_memorystate=False))</div>
          <div class="gmail_extra">---</div>
          <div class="gmail_extra">&gt;                    
vm.snapshots.add(params.Snapshot(description=config.get_snapshot_description(),
            vm=vm))</div>
          <div class="gmail_extra"><br>
          </div>
          <div class="gmail_extra">The snapshot doesn't include memory
            and no problem at VM OS side now</div>
          <div class="gmail_extra"><br>
          </div>
          <div class="gmail_extra">Tested also getting the parameter
            from config file</div>
          <div class="gmail_extra"><br>
          </div>
          <div class="gmail_extra">Modifications needed in this case:</div>
          <div class="gmail_extra"><br>
          </div>
          <div class="gmail_extra">1)</div>
          <div class="gmail_extra">$ diff backup.py backup.py.orig <br>
          </div>
          <div class="gmail_extra">
            <div class="gmail_extra">123c123</div>
            <div class="gmail_extra">&lt;                    
vm.snapshots.add(params.Snapshot(description=config.get_snapshot_description(),
vm=vm,persist_memorystate=config.get_persist_memorystate()))</div>
            <div class="gmail_extra">---</div>
            <div class="gmail_extra">&gt;                    
vm.snapshots.add(params.Snapshot(description=config.get_snapshot_description(),
              vm=vm))</div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>2)</div>
            <div>
              <div>$ diff config.py config.py.orig </div>
              <div>34d33</div>
              <div>&lt;             self.__persist_memorystate =
                config_parser.getboolean(section, "persist_memorystate")</div>
              <div>113,116d111</div>
              <div>&lt; </div>
              <div>&lt; </div>
              <div>&lt;     def get_persist_memorystate(self):</div>
              <div>&lt;         return self.__persist_memorystate</div>
            </div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>And in config file called add:</div>
            <div><br>
            </div>
          </div>
          <div>
            <div># Save Memory in snapshot</div>
            <div>persist_memorystate=False</div>
          </div>
          <div><br>
          </div>
          <div>It could be further improved if one wants to
            differentiate save memory for some VMs and not for other
            ones....</div>
          <div><br>
          </div>
          <div>HIH other ones,</div>
          <div>Gianluca</div>
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Nathanaël Blanchet

Supervision réseau
Pôle Infrastrutures Informatiques
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5         
Tél. 33 (0)4 67 54 84 55
Fax  33 (0)4 67 54 84 14
<a class="moz-txt-link-abbreviated" href="mailto:blanchet@abes.fr">blanchet@abes.fr</a> </pre>
  </body>
</html>