[opensuse-buildservice] How to create a snapshot of a repository?
Hi,
I've been trying to create a snapshot repository for a project in a local build service instance. When I run the following command:
$ cd /usr/lib/obs/server
$ sudo ./bs_admin --clone-repository Foo standard snapshot
Destination repo must get created by scheduler first!
I later edited the project's meta data and defined a snapshot repository *exactly* as used in openSUSE:Factory in OBS:
$ osc meta prj Foo
<project name="Foo">
...
<build>
<disable/>
<enable repository="standard"/>
<disable repository="snapshot"/>
</build>
<publish>
<enable repository="images"/>
<disable/>
<disable repository="snapshot"/>
</publish>
<repository name="images">
<arch>local</arch>
<arch>i586</arch>
<arch>x86_64</arch>
</repository>
<repository name="snapshot">
<arch>x86_64</arch>
<arch>i586</arch>
</repository>
<repository name="standard">
<path project="SUSE:SLE-11-SP1" repository="standard"/>
<arch>i586</arch>
<arch>x86_64</arch>
</repository>
</project>
After making this change, schedulers kept saying the following in the logs:
2011-01-24 00:22:21: looking at low prio Foo/snapshot (0/0/56/0/298)
- Foo/snapshot: bad config (Foo)
and the "snapshot" repository was never created inside /srv/obs/build/Foo/ - where bs_admin looks for the source and destination repositories.
What am I doing wrong? If I have to include a "
On Sunday 23 January 2011 20:26:19 Srinidhi B wrote: ...
After making this change, schedulers kept saying the following in the logs:
2011-01-24 00:22:21: looking at low prio Foo/snapshot (0/0/56/0/298) - Foo/snapshot: bad config (Foo)
and the "snapshot" repository was never created inside /srv/obs/build/Foo/ - where bs_admin looks for the source and destination repositories.
What am I doing wrong? If I have to include a "
" entry for snapshot, then how is working in OBS for openSUSE:Factory? How do I create a "snapshot" of an existing repository?
You need a base prjconf for that project. This can come via a path element from a foreign project. This makes sense, if your project is anyway not a selfhosted one. Or add it to your project directly, this is why it works for openSUSE:Factory. But you should also remove the path of the other repository as consequence then. bye adrian
Srinidhi.
-- 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 1/24/2011 at 01:21 PM, Adrian Schröter
wrote: On Sunday 23 January 2011 20:26:19 Srinidhi B wrote: ... After making this change, schedulers kept saying the following in the logs: 2011-01-24 00:22:21: looking at low prio Foo/snapshot (0/0/56/0/298) - Foo/snapshot: bad config (Foo)
and the "snapshot" repository was never created inside /srv/obs/build/Foo/ - where bs_admin looks for the source and destination repositories.
What am I doing wrong? If I have to include a "
" entry for snapshot, then how is working in OBS for openSUSE:Factory? How do I create a "snapshot" of an existing repository? You need a base prjconf for that project. This can come via a path element from a foreign project. This makes sense, if your project is anyway not a selfhosted one.
By base prjconf, do you mean the following? $ osc meta prjconf Foo Patterntype: rpm-md ymp Prefer: kdelibs4-branding-SLED ...
Or add it to your project directly, this is why it works for openSUSE:Factory. But you should also remove the path of the other repository as consequence then.
I'm sorry, I did not understand this part. :( Srinidhi.
Srinidhi.
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 1/24/2011 at 05:03 PM, "Srinidhi B"
wrote: On 1/24/2011 at 01:21 PM, Adrian Schröter
wrote: On Sunday 23 January 2011 20:26:19 Srinidhi B wrote: ... After making this change, schedulers kept saying the following in the logs: 2011-01-24 00:22:21: looking at low prio Foo/snapshot (0/0/56/0/298) - Foo/snapshot: bad config (Foo)
and the "snapshot" repository was never created inside /srv/obs/build/Foo/
where bs_admin looks for the source and destination repositories.
What am I doing wrong? If I have to include a "
" entry for snapshot, then how is working in OBS for openSUSE:Factory? How do I create a "snapshot" of an existing repository?
You need a base prjconf for that project. This can come via a path element from a foreign project. This makes sense, if your project is anyway not a selfhosted one.
<snip>
Or add it to your project directly, this is why it works for openSUSE:Factory. But you should also remove the path of the other repository as consequence then.
I've solved the problem right now by having the following: $ osc meta prj Foo <project name="Foo"> ... <build> <disable/> <enable repository="standard"/> <disable repository="snapshot"/> </build> <publish> <enable repository="images"/> <disable/> <disable repository="snapshot"/> </publish> <repository name="images"> <arch>local</arch> <arch>i586</arch> <arch>x86_64</arch> </repository> <repository name="snapshot"> <path project="Foo" repository="standard"/> <arch>x86_64</arch> <arch>i586</arch> </repository> <repository name="standard"> <path project="SUSE:SLE-11-SP1" repository="standard"/> <arch>i586</arch> <arch>x86_64</arch> </repository> </project> Though I'm not too sure if what I'm doing is right or not, but schedulers seem to be happy with this setup and bs_admin was able to clone the "standard" repo to "snapshot". I really hope this works out fine in the long run! This mail is for anyone else who might find this useful. Srinidhi. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Adrian Schröter
-
Srinidhi B