<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Upgrade from 0.32 to 1.2]]></title><description><![CDATA[<p dir="auto">Hi,<br />
Upgrading from 0.32 to 1.2, it is well known usually that the fact that the OS is stored in the image info rather than the host will be an issue, but there is a function handling that in the schema updater. Problem is, I got all my images set with OSID 0… I’ll debug more about that, but I wonder why this wasn’t done in SQL rather than having to call some PHP like this (we’re talking schema upgrade 29).</p>
<p dir="auto">Here’s an example that tries to link the images with the OS of the host that was the last to finish a imaging task.</p>
<p dir="auto">UPDATE images<br />
SET imageOSID = (<br />
[INDENT=1]SELECT DISTINCT hostOS[/INDENT]<br />
[INDENT=1]FROM hosts LEFT JOIN imagingLog ON (imagingLog.ilHostID = hosts.hostID)[/INDENT]<br />
[INDENT=1]WHERE hosts.hostImage = images.imageID[/INDENT]<br />
[INDENT=1]ORDER BY ilFinishTime DESC[/INDENT]<br />
[INDENT=1])[/INDENT]<br />
WHERE imageOSID = 0</p>
<p dir="auto">And that works, if you apply it before deleting the hostOS, whereas the PHP code leaves the images set to 0 for imageOSID…</p>
]]></description><link>http://forums.fogproject.org/topic/4115/upgrade-from-0-32-to-1-2</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 06:56:24 GMT</lastBuildDate><atom:link href="http://forums.fogproject.org/topic/4115.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 10 Nov 2014 14:26:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Upgrade from 0.32 to 1.2 on Fri, 13 Jan 2017 03:51:24 GMT]]></title><description><![CDATA[<p dir="auto">For future readers: <a href="https://wiki.fogproject.org/wiki/index.php?title=Migrate_FOG" target="_blank" rel="noopener noreferrer nofollow ugc">https://wiki.fogproject.org/wiki/index.php?title=Migrate_FOG</a></p>
]]></description><link>http://forums.fogproject.org/post/86566</link><guid isPermaLink="true">http://forums.fogproject.org/post/86566</guid><dc:creator><![CDATA[Wayne Workman]]></dc:creator><pubDate>Fri, 13 Jan 2017 03:51:24 GMT</pubDate></item><item><title><![CDATA[Reply to Upgrade from 0.32 to 1.2 on Sat, 03 Jan 2015 00:09:21 GMT]]></title><description><![CDATA[<p dir="auto">the “And new things, now my hosts don’t appear in the list, great… They do in the report, but because of the MACs, it seems they won’t get displayed…” one was due to me using a schema from SVN when I tried to pinpoint the problem. But the schema updater thing I reported first was consistent… But I’d need to try again on an old .32 file to see it happening… I haven’t kept all those <img src="http://forums.fogproject.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=fsgu5qsff2i" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>http://forums.fogproject.org/post/33102</link><guid isPermaLink="true">http://forums.fogproject.org/post/33102</guid><dc:creator><![CDATA[Gilou]]></dc:creator><pubDate>Sat, 03 Jan 2015 00:09:21 GMT</pubDate></item><item><title><![CDATA[Reply to Upgrade from 0.32 to 1.2 on Thu, 01 Jan 2015 15:15:50 GMT]]></title><description><![CDATA[<p dir="auto">So this problem really isn’t/wasn’t a problem?</p>
]]></description><link>http://forums.fogproject.org/post/33092</link><guid isPermaLink="true">http://forums.fogproject.org/post/33092</guid><dc:creator><![CDATA[Tom Elliott]]></dc:creator><pubDate>Thu, 01 Jan 2015 15:15:50 GMT</pubDate></item><item><title><![CDATA[Reply to Upgrade from 0.32 to 1.2 on Mon, 10 Nov 2014 16:07:35 GMT]]></title><description><![CDATA[<p dir="auto">OK, that’s my fault, I used the schema updater from SVN in the end… not clever.</p>
]]></description><link>http://forums.fogproject.org/post/31783</link><guid isPermaLink="true">http://forums.fogproject.org/post/31783</guid><dc:creator><![CDATA[Gilou]]></dc:creator><pubDate>Mon, 10 Nov 2014 16:07:35 GMT</pubDate></item><item><title><![CDATA[Reply to Upgrade from 0.32 to 1.2 on Mon, 10 Nov 2014 15:59:14 GMT]]></title><description><![CDATA[<p dir="auto">And new things, now my hosts don’t appear in the list, great… They do in the report, but because of the MACs, it seems they won’t get displayed…</p>
]]></description><link>http://forums.fogproject.org/post/31780</link><guid isPermaLink="true">http://forums.fogproject.org/post/31780</guid><dc:creator><![CDATA[Gilou]]></dc:creator><pubDate>Mon, 10 Nov 2014 15:59:14 GMT</pubDate></item><item><title><![CDATA[Reply to Upgrade from 0.32 to 1.2 on Mon, 10 Nov 2014 15:37:25 GMT]]></title><description><![CDATA[<p dir="auto">And another bug (we need a mailing list, or a bug tracker):<br />
all my upgrades were configured as: “DHCP will NOT be setup but you must setup your…”</p>
<p dir="auto">And the process overwrote the config (backing them up before doing so, but still, annoying.)</p>
]]></description><link>http://forums.fogproject.org/post/31781</link><guid isPermaLink="true">http://forums.fogproject.org/post/31781</guid><dc:creator><![CDATA[Gilou]]></dc:creator><pubDate>Mon, 10 Nov 2014 15:37:25 GMT</pubDate></item><item><title><![CDATA[Reply to Upgrade from 0.32 to 1.2 on Mon, 10 Nov 2014 14:59:47 GMT]]></title><description><![CDATA[<p dir="auto">I can’t really figure why the -&gt;save() doesn’t work, so here’s the patch to make it work using pure SQL.</p>
<p dir="auto">[url=“/_imported_xf_attachments/1/1496_schemav29.patch.txt?:”]schemav29.patch.txt[/url]</p>
]]></description><link>http://forums.fogproject.org/post/31782</link><guid isPermaLink="true">http://forums.fogproject.org/post/31782</guid><dc:creator><![CDATA[Gilou]]></dc:creator><pubDate>Mon, 10 Nov 2014 14:59:47 GMT</pubDate></item></channel></rss>