<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Problem solved. I had initially moved rpms/srpms directories to
/var/lib/pulp/content/units<br>
instead of /var/lib/pulp/content. Putting these directories under
/var/lib/pulp/content,<br>
restoring the DB and running pulp-manage-db again allowed Pulp to
find the rpm packages<br>
and migrate them correctly.<br>
<br>
Thanks for the help!<br>
<br>
<div class="moz-cite-prefix">On 11/16/2016 05:57 PM, Alan
Evangelista wrote:<br>
</div>
<blockquote
cite="mid:207f3496-9dfa-03e8-16d2-e38f17280c71@linux.vnet.ibm.com"
type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<div class="moz-forward-container">-------- Forwarded Message
--------
<table class="moz-email-headers-table" border="0"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject:
</th>
<td>Re: [Pulp-list] /var/lib/pulp/content directory
structure changed from 2.4.0 to 2.9.1</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date:
</th>
<td>Wed, 16 Nov 2016 17:16:00 -0200</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">From:
</th>
<td>Alan Evangelista <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:alanoe@linux.vnet.ibm.com"><alanoe@linux.vnet.ibm.com></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
<td>Michael Hrivnak <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:mhrivnak@redhat.com"><mhrivnak@redhat.com></a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>On 11/16/2016 12:08 PM, Michael Hrivnak wrote:
> Despite the name, "pulp-manage-db" also handles migration of files on disk. So if you restore both
> the DB and /var/lib/pulp/content/ before running it, the files will get moved to the new locations.
Previously, I had (1) stopped pulp services, (2) restored DB, (3) run pulp-manage-db, (4) restored
/var/lib/pulp/content, (5) started pulp services. The migrations ran on an empty rpm pool.
I deleted current DB and did the following
(/var/lib/pulp/content is already restored)
(1) stop pulp services
(2) restore DB
(3) run pulp-manage-db
(4) start pulp services
Migrations run sucessfully, I only see some warnings about deprecated save/update commands. However,
after all migrations finish, I still see the old directory structure in /var/lib/pulp/content.
Have I done something wrong? pulp-manage-db logs the Mongo db queries it runs so I can understand
better what's going on?
Regards,
Alan
</pre>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Pulp-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/pulp-list">https://www.redhat.com/mailman/listinfo/pulp-list</a></pre>
</blockquote>
<br>
</body>
</html>