[opensuse-buildservice] Mass import of packages from another OBS instance

Hi all, I'm setting up a private OBS instance to replace an existing instance which is several years old. There are only 5 or 6 projects, and I have manually created those in the new instance without much difficulty. But we have hundreds of packages, and I would like to import them en masse to the new instance -- preferably with full history intact. Are there existing tools to do that? Thanks! Greg -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On Mittwoch, 22. Februar 2017, 14:22:20 CET wrote Greg Ward:
Hi all,
I'm setting up a private OBS instance to replace an existing instance which is several years old. There are only 5 or 6 projects, and I have manually created those in the new instance without much difficulty. But we have hundreds of packages, and I would like to import them en masse to the new instance -- preferably with full history intact.
Are there existing tools to do that?
Not a good one at least ... We have a planned feature for a remote copy project support including binaries and history, but that won't help you now. Can't you just rsync the backend data and clone the database to your new host and run the usual migration? -- Adrian Schroeter email: adrian@suse.de SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On Thu, Feb 23, 2017, at 01:59, Adrian Schröter wrote:
On Mittwoch, 22. Februar 2017, 14:22:20 CET wrote Greg Ward:
But we have hundreds of packages, and I would like to import them en masse to the new instance -- preferably with full history intact.
Are there existing tools to do that?
Not a good one at least ... We have a planned feature for a remote copy project support including binaries and history, but that won't help you now.
I'll cheer you on from a distance. ;-)
Can't you just rsync the backend data and clone the database to your new host and run the usual migration?
There's a usual migration? That's good to know! I don't recall seeing it mentioned in either the Reference Guide or Admin Guide. Just double-checked, and I still don't see it. I google'd for "obs migration" and "obs upgrade", and nothing obvious jumps out at me. So... how do I migrate data from an old OBS (originally set up in 2008, last updated around 2011) to v2.7? Also, I have been unable to figure out how to get into the database, which could be useful. Is that documented anywhere? Or do I just have to find the right config file and figure it out from that. (I know nothing about Rails or Ruby or configuring databases for Rails apps.) Thanks! Greg -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On Donnerstag, 23. Februar 2017, 21:11:21 CET wrote Greg Ward:
On Thu, Feb 23, 2017, at 01:59, Adrian Schröter wrote:
On Mittwoch, 22. Februar 2017, 14:22:20 CET wrote Greg Ward:
But we have hundreds of packages, and I would like to import them en masse to the new instance -- preferably with full history intact.
Are there existing tools to do that?
Not a good one at least ... We have a planned feature for a remote copy project support including binaries and history, but that won't help you now.
I'll cheer you on from a distance. ;-)
Can't you just rsync the backend data and clone the database to your new host and run the usual migration?
There's a usual migration? That's good to know! I don't recall seeing it mentioned in either the Reference Guide or Admin Guide. Just double-checked, and I still don't see it.
I google'd for "obs migration" and "obs upgrade", and nothing obvious jumps out at me.
So... how do I migrate data from an old OBS (originally set up in 2008, last updated around 2011) to v2.7?
Read the README.Updaters file in first place: https://github.com/openSUSE/open-build-service/blob/master/dist/README.UPDAT... Please note that you can not jump directly to 2.7 (or even 2.8, it is about to get released) from before 2.5. So you need to do the upgrade incremental.
Also, I have been unable to figure out how to get into the database, which could be useful. Is that documented anywhere? Or do I just have to find the right config file and figure it out from that. (I know nothing about Rails or Ruby or configuring databases for Rails apps.)
Thanks!
Greg
-- Adrian Schroeter email: adrian@suse.de SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On Fri, Feb 24, 2017, at 02:18, Adrian Schröter wrote:
So... how do I migrate data from an old OBS (originally set up in 2008, last updated around 2011) to v2.7?
Read the README.Updaters file in first place:
https://github.com/openSUSE/open-build-service/blob/master/dist/README.UPDAT...
Ah-ha! Thank you, that is what I was looking for.
Please note that you can not jump directly to 2.7 (or even 2.8, it is about to get released) from before 2.5. So you need to do the upgrade incremental.
I have now learned that our old OBS instance is running 2.3.8. So here is my scenario: * old instance: a VM running openSUSE 12.1 and OBS 2.3.8 * new instance: a VM running openSUSE 42.1 and OBS 2.7.3 Key requirements: * don't break the old OBS until the new one is ready to replace it * new OBS reflects the current state of old OBS (i.e. the same packages are present, with the same sources, and the same package config) Secondary requirements: * preserve history from old OBS Also, I don't mind trashing my new OBS and creating a new one running 2.8. Planning to trash this one anyways in order to automate the process of creating a new VM. So, if I want to preserve history, it sounds like I have to do this: * clone the old OBS VM * upgrade the clone to OBS 2.4 (replace system image with OBS 2.4 image? zypper update?) * upgrade the clone to OBS 2.5 * upgrade the clone to OBS 2.6 * upgrade the clone to OBS 2.7 which all sounds like a lot of work for a small gain. Hmmmm. If there is an easier way, I'd love to hear about it! Thanks again for your help, Greg -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (2)
-
Adrian Schröter
-
Greg Ward