[opensuse-buildservice] Migrating source from OBS 1.X to 2.X
The structure of the source repos has changed significantly between OBS versions 1.X & 2.X. Does anyone know method to migrate source between the two versions, that preserves: - source history - commit counts - build counts ? Thanks - Jeff Glanz, Dell Inc. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Montag, 2. Mai 2011, 10:07:41 schrieb Jeff_Glanz@Dell.com:
The structure of the source repos has changed significantly between OBS versions 1.X & 2.X.
Does anyone know method to migrate source between the two versions, that preserves: - source history - commit counts - build counts
Why do you think that any of this could get lost ? -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Mon, May 02, 2011 at 10:07:41AM -0500, Jeff_Glanz@Dell.com wrote:
The structure of the source repos has changed significantly between OBS versions 1.X & 2.X.
Really? What do you think has changed? I can only think of $BSConfig::nosharedtrees, where the default is to be compatible to older versions. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
In 1.X, source was organized into two folders: /srv/obs/sources /srv/obs/projects In 2.X, source is organized into three folders, w/ the meta data occupying separate source files /srv/obs/sources /srv/obs/projects /srv/obs/trees Will the OBS 2.2 or 2.3 api recognize the older (1.X) source file arrangement? Thanks - JeffG -----Original Message----- From: Michael Schroeder [mailto:mls@suse.de] Sent: Monday, May 02, 2011 10:12 AM To: Glanz, Jeff Cc: opensuse-buildservice@opensuse.org Subject: Re: [opensuse-buildservice] Migrating source from OBS 1.X to 2.X On Mon, May 02, 2011 at 10:07:41AM -0500, Jeff_Glanz@Dell.com wrote:
The structure of the source repos has changed significantly between OBS versions 1.X & 2.X.
Really? What do you think has changed? I can only think of $BSConfig::nosharedtrees, where the default is to be compatible to older versions. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
So setting this in BSConfig.pm allows us to use - and to continue to use - the old file structure: $BSConfig::nosharedtrees = 0; Correct? Thanks - JeffG -----Original Message----- From: Glanz, Jeff Sent: Monday, May 02, 2011 10:20 AM To: mls@suse.de Cc: opensuse-buildservice@opensuse.org Subject: RE: [opensuse-buildservice] Migrating source from OBS 1.X to 2.X In 1.X, source was organized into two folders: /srv/obs/sources /srv/obs/projects In 2.X, source is organized into three folders, w/ the meta data occupying separate source files /srv/obs/sources /srv/obs/projects /srv/obs/trees Will the OBS 2.2 or 2.3 api recognize the older (1.X) source file arrangement? Thanks - JeffG -----Original Message----- From: Michael Schroeder [mailto:mls@suse.de] Sent: Monday, May 02, 2011 10:12 AM To: Glanz, Jeff Cc: opensuse-buildservice@opensuse.org Subject: Re: [opensuse-buildservice] Migrating source from OBS 1.X to 2.X On Mon, May 02, 2011 at 10:07:41AM -0500, Jeff_Glanz@Dell.com wrote:
The structure of the source repos has changed significantly between OBS versions 1.X & 2.X.
Really? What do you think has changed? I can only think of $BSConfig::nosharedtrees, where the default is to be compatible to older versions. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
A value of 2 allows compatibility to both structures? # 2: new trees are not shared, in case of a missing tree the shared # location is also tried (package default) Thanks - JeffG -----Original Message----- From: Glanz, Jeff Sent: Monday, May 02, 2011 10:24 AM To: mls@suse.de Cc: opensuse-buildservice@opensuse.org Subject: RE: [opensuse-buildservice] Migrating source from OBS 1.X to 2.X So setting this in BSConfig.pm allows us to use - and to continue to use - the old file structure: $BSConfig::nosharedtrees = 0; Correct? Thanks - JeffG -----Original Message----- From: Glanz, Jeff Sent: Monday, May 02, 2011 10:20 AM To: mls@suse.de Cc: opensuse-buildservice@opensuse.org Subject: RE: [opensuse-buildservice] Migrating source from OBS 1.X to 2.X In 1.X, source was organized into two folders: /srv/obs/sources /srv/obs/projects In 2.X, source is organized into three folders, w/ the meta data occupying separate source files /srv/obs/sources /srv/obs/projects /srv/obs/trees Will the OBS 2.2 or 2.3 api recognize the older (1.X) source file arrangement? Thanks - JeffG -----Original Message----- From: Michael Schroeder [mailto:mls@suse.de] Sent: Monday, May 02, 2011 10:12 AM To: Glanz, Jeff Cc: opensuse-buildservice@opensuse.org Subject: Re: [opensuse-buildservice] Migrating source from OBS 1.X to 2.X On Mon, May 02, 2011 at 10:07:41AM -0500, Jeff_Glanz@Dell.com wrote:
The structure of the source repos has changed significantly between OBS versions 1.X & 2.X.
Really? What do you think has changed? I can only think of $BSConfig::nosharedtrees, where the default is to be compatible to older versions. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Montag, 2. Mai 2011, 10:31:14 schrieb Jeff_Glanz@Dell.com:
A value of 2 allows compatibility to both structures? # 2: new trees are not shared, in case of a missing tree the shared # location is also tried (package default)
Yes, but you won't be able to downgrade to 1.x anymore.
Thanks - JeffG
-----Original Message----- From: Glanz, Jeff Sent: Monday, May 02, 2011 10:24 AM To: mls@suse.de Cc: opensuse-buildservice@opensuse.org Subject: RE: [opensuse-buildservice] Migrating source from OBS 1.X to 2.X
So setting this in BSConfig.pm allows us to use - and to continue to use - the old file structure: $BSConfig::nosharedtrees = 0;
Correct?
Thanks - JeffG
-----Original Message----- From: Glanz, Jeff Sent: Monday, May 02, 2011 10:20 AM To: mls@suse.de Cc: opensuse-buildservice@opensuse.org Subject: RE: [opensuse-buildservice] Migrating source from OBS 1.X to 2.X
In 1.X, source was organized into two folders: /srv/obs/sources /srv/obs/projects
In 2.X, source is organized into three folders, w/ the meta data occupying separate source files /srv/obs/sources /srv/obs/projects
/srv/obs/trees
Will the OBS 2.2 or 2.3 api recognize the older (1.X) source file arrangement?
Thanks - JeffG
-----Original Message----- From: Michael Schroeder [mailto:mls@suse.de] Sent: Monday, May 02, 2011 10:12 AM To: Glanz, Jeff Cc: opensuse-buildservice@opensuse.org Subject: Re: [opensuse-buildservice] Migrating source from OBS 1.X to 2.X
On Mon, May 02, 2011 at 10:07:41AM -0500, Jeff_Glanz@Dell.com wrote:
The structure of the source repos has changed significantly between OBS versions 1.X & 2.X.
Really? What do you think has changed? I can only think of $BSConfig::nosharedtrees, where the default is to be compatible to older
versions.
Cheers, Michael.
-- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Thanks Adrian. Once we move forward to OBS 2.X, we won't be moving back. Setting this to '2' will work well. This allows us to move the old projects & source folders safely - keeping source history, commit count, & build count state. It also allows us to stop sharing trees in new projects & packages. Thanks - JeffG -----Original Message----- From: Adrian Schröter [mailto:adrian@suse.de] Sent: Monday, May 02, 2011 10:34 AM To: opensuse-buildservice@opensuse.org Cc: Glanz, Jeff; mls@suse.de Subject: Re: [opensuse-buildservice] Migrating source from OBS 1.X to 2.X Am Montag, 2. Mai 2011, 10:31:14 schrieb Jeff_Glanz@Dell.com:
A value of 2 allows compatibility to both structures? # 2: new trees are not shared, in case of a missing tree the shared # location is also tried (package default)
Yes, but you won't be able to downgrade to 1.x anymore.
Thanks - JeffG
-----Original Message----- From: Glanz, Jeff Sent: Monday, May 02, 2011 10:24 AM To: mls@suse.de Cc: opensuse-buildservice@opensuse.org Subject: RE: [opensuse-buildservice] Migrating source from OBS 1.X to 2.X
So setting this in BSConfig.pm allows us to use - and to continue to use - the old file structure: $BSConfig::nosharedtrees = 0;
Correct?
Thanks - JeffG
-----Original Message----- From: Glanz, Jeff Sent: Monday, May 02, 2011 10:20 AM To: mls@suse.de Cc: opensuse-buildservice@opensuse.org Subject: RE: [opensuse-buildservice] Migrating source from OBS 1.X to 2.X
In 1.X, source was organized into two folders: /srv/obs/sources /srv/obs/projects
In 2.X, source is organized into three folders, w/ the meta data occupying separate source files /srv/obs/sources /srv/obs/projects
/srv/obs/trees
Will the OBS 2.2 or 2.3 api recognize the older (1.X) source file arrangement?
Thanks - JeffG
-----Original Message----- From: Michael Schroeder [mailto:mls@suse.de] Sent: Monday, May 02, 2011 10:12 AM To: Glanz, Jeff Cc: opensuse-buildservice@opensuse.org Subject: Re: [opensuse-buildservice] Migrating source from OBS 1.X to 2.X
On Mon, May 02, 2011 at 10:07:41AM -0500, Jeff_Glanz@Dell.com wrote:
The structure of the source repos has changed significantly between OBS versions 1.X & 2.X.
Really? What do you think has changed? I can only think of $BSConfig::nosharedtrees, where the default is to be compatible to older
versions.
Cheers, Michael.
-- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Mon, May 02, 2011 at 10:31:14AM -0500, Jeff_Glanz@Dell.com wrote:
A value of 2 allows compatibility to both structures? # 2: new trees are not shared, in case of a missing tree the shared # location is also tried (package default)
Thanks - JeffG
Yes, "2" will put new tree data into "trees", but also look for old tree data in "sources". If you're wondering what "nosharedtrees" is about, it's to prevent a security issue if access to sources is limited in a project or package configuration (with the "sourceaccess" element). If the trees are shared between projects, you can access trees from different projects by knowning the tree srcmd5 identifier. If you don't plan to use the "sourceaccess" feature, you can also use "0". If you set it to "2", old trees can be accessed even if "sourceaccess" is limited, but new trees are safe. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Thanks for the quick response Michael. - JeffG -----Original Message----- From: Michael Schroeder [mailto:mls@suse.de] Sent: Monday, May 02, 2011 10:39 AM To: Glanz, Jeff Cc: opensuse-buildservice@opensuse.org Subject: Re: [opensuse-buildservice] Migrating source from OBS 1.X to 2.X On Mon, May 02, 2011 at 10:31:14AM -0500, Jeff_Glanz@Dell.com wrote:
A value of 2 allows compatibility to both structures? # 2: new trees are not shared, in case of a missing tree the shared # location is also tried (package default)
Thanks - JeffG
Yes, "2" will put new tree data into "trees", but also look for old tree data in "sources". If you're wondering what "nosharedtrees" is about, it's to prevent a security issue if access to sources is limited in a project or package configuration (with the "sourceaccess" element). If the trees are shared between projects, you can access trees from different projects by knowning the tree srcmd5 identifier. If you don't plan to use the "sourceaccess" feature, you can also use "0". If you set it to "2", old trees can be accessed even if "sourceaccess" is limited, but new trees are safe. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (3)
-
Adrian Schröter
-
Jeff_Glanz@Dell.com
-
Michael Schroeder