<div dir="ltr">Would it be hard and worthwhile to write a 'migration assessment' script that can be run on a labs instance and that would give you warnings if you have data in your home folder, puppet does not run properly, etc. Owners of a labs instance could then be notified by email that their instance is probably not ready for migration. If this would make sense, what kind of checks should such a script make?<div>
D</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 20, 2013 at 1:09 PM, Andrew Bogott <span dir="ltr"><<a href="mailto:abogott@wikimedia.org" target="_blank">abogott@wikimedia.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><div class="im">
<div>On 11/20/13 10:01 AM, Petr Bena wrote:<br>
</div>
<blockquote type="cite">
<pre>Can you please elaborate more on what we need to do in case we have
instances with selfhosted puppet master?</pre>
</blockquote>
<br></div>
Yep! Also note that I do not at all mind doing this myself, so if
you have a problematic instance just let me know and I can clean
things up. I recently visited almost all of the self-hosted
instances and organized things, so probably your instances are in
reasonable shape already.<br>
<br>
To update yourself: <br>
<br>
First, figure out if you have local changes, and if they're already
organized into patches:<br>
<br>
$ cd /var/lib/git/operations/puppet<br>
$ git diff .<br>
<br>
Is there a diff? If so you need to organize it into one or more
patches and get them committed. Until 'git diff' runs cleanly the
next step will fail.<br>
<br>
Now that your local repo is organized, we want to rebase against
gerrit. Assuming you haven't done anything dramatic, this should do
the trick:<br>
<br>
$ sudo GIT_SSH=/var/lib/git/ssh git pull --rebase
<br>
<br>
That rebase may fail with conflicts, depending on what local patches
you have. If so, you need to resolve the conflicts as you would
with any git rebase.<br>
<br>
Once things are rebasing properly...<br>
<br>
$ sudo puppetd -tv<br>
<br>
And look for errors or warnings, and fix them :)<br>
<br>
Doing all of this will get your instance so that it's clean and
ready for updates, but we'll still need to repeat the rebase by hand
when the actual migration happens. I'm not yet entirely sure how
that procedure will go, but I guarantee it will be much easier if
you follow the above steps ahead of time.<span class="HOEnZb"><font color="#888888"><br>
<br>
-Andrew<br>
<br>
<br>
</font></span></div>
<br>_______________________________________________<br>
Labs-l mailing list<br>
<a href="mailto:Labs-l@lists.wikimedia.org">Labs-l@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/labs-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/labs-l</a><br>
<br></blockquote></div><br></div>