[opensuse-buildservice] zombie packages or how to *really* clean up?

Hi! I'm experimenting with mass producing R packages for opensuse using some scripts. Therefore I set up a test project home:dsteuer:CRANtest . Experiments work ok so far, but if I have to start from scratch for a package there are problems I don't understand. A current package with problems is "abe" in OBS it is called "R-abe". It worked *once* to put it into the OBS. Then I wanted to test my script and tried to delete it from OBS. I did: osc delete R-abe checked in the webinterface and it was gone there. I now can't (how I expected) osc co R-abe any longer without an error: steuer@gaia:~/OBS/home:dsteuer:CRANtest> osc co R-abe Server returned an error: HTTP Error 404: Not Found Error getting meta for project 'home%3Adsteuer%3ACRANtest' package 'R-abe' When I try steuer@gaia:~/OBS/home:dsteuer:CRANtest> osc rdelete R-abe I get steuer@gaia:~/OBS/home:dsteuer:CRANtest> osc rdelete R-abe Waiting for Emacs... Server returned an error: HTTP Error 404: Not Found R-abe So the package is somehow gone, but somehow still there. As probably expected it is possible to do osc mkpac R-abe (the directory is created and empty) but copying files there and than osc addremove osc ci results in steuer@gaia:~/OBS/home:dsteuer:CRANtest/R-abe> osc ci Deleting R-abe Server returned an error: HTTP Error 404: Not Found home:dsteuer:CRANtest/R-abe Why that Deleting line? My questions now: How to clean up the test project? (I can start over, but there must be a proper way.) There is a handful of packages with that problem. What is the correct dance of commands to reliably remove a package from a project such that it can be recreated later. Thx Detlef -- 'People who say "I have nothing to hide" misunderstand the purpose of surveillance. It was never about privacy. It's about power.' E. Snowden -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On 19/04/18 14:29, Detlef Steuer wrote:
Hi!
I'm experimenting with mass producing R packages for opensuse using some scripts.
Therefore I set up a test project home:dsteuer:CRANtest .
Experiments work ok so far, but if I have to start from scratch for a package there are problems I don't understand.
A current package with problems is "abe" in OBS it is called "R-abe".
It worked *once* to put it into the OBS. Then I wanted to test my script and tried to delete it from OBS.
I did:
osc delete R-abe
checked in the webinterface and it was gone there.
I now can't (how I expected)
osc co R-abe
any longer without an error:
steuer@gaia:~/OBS/home:dsteuer:CRANtest> osc co R-abe Server returned an error: HTTP Error 404: Not Found Error getting meta for project 'home%3Adsteuer%3ACRANtest' package 'R-abe'
When I try
steuer@gaia:~/OBS/home:dsteuer:CRANtest> osc rdelete R-abe
I get
steuer@gaia:~/OBS/home:dsteuer:CRANtest> osc rdelete R-abe Waiting for Emacs... Server returned an error: HTTP Error 404: Not Found R-abe
So the package is somehow gone, but somehow still there.
As probably expected it is possible to do
osc mkpac R-abe
(the directory is created and empty)
but copying files there and than
osc addremove osc ci
results in
steuer@gaia:~/OBS/home:dsteuer:CRANtest/R-abe> osc ci Deleting R-abe Server returned an error: HTTP Error 404: Not Found home:dsteuer:CRANtest/R-abe
Why that Deleting line? My questions now:
How to clean up the test project? (I can start over, but there must be a proper way.) There is a handful of packages with that problem.
What is the correct dance of commands to reliably remove a package from a project such that it can be recreated later.
Thx Detlef
I think this is https://bugzilla.novell.com/show_bug.cgi?id=958899 I suspect it is the result of deleting a package with publishing disabled. To delete them you have to "osc meta pkg -e [pkgname]" and edit a comment. Dave P -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

steuer@gaia:~/OBS/home:dsteuer:CRANtest/R-abe> osc ci Deleting R-abe Server returned an error: HTTP Error 404: Not Found home:dsteuer:CRANtest/R-abe
Why that Deleting line? My questions now:
How to clean up the test project? (I can start over, but there must be a proper way.) There is a handful of packages with that problem.
What is the correct dance of commands to reliably remove a package from a project such that it can be recreated later.
Thx Detlef
I think this is https://bugzilla.novell.com/show_bug.cgi?id=958899 I suspect it is the result of deleting a package with publishing disabled. To delete them you have to "osc meta pkg -e [pkgname]" and edit a comment.
Dave P
Thx, the trick works, but only for making the package visible again. Now, if a package is in a sane state again, what is the correct sequence of commands to remove a package locally and on the server? Detlef -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On 19/04/18 15:32, Detlef Steuer wrote:
I think this ishttps://bugzilla.novell.com/show_bug.cgi?id=958899 I suspect it is the result of deleting a package with publishing disabled. To delete them you have to "osc meta pkg -e [pkgname]" and edit a comment.
Dave P
Thx, the trick works, but only for making the package visible again.
Now, if a package is in a sane state again, what is the correct sequence of commands to remove a package locally and on the server?
Detlef
AFAIR make sure that publishing is enabled for all repos and simply use the web ui or "osc rdelete [-r] [-f] PROJECT [PACKAGE]" to delete the package. For your local copy use rm -rf. Dave P -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On Apr 19 2018, Detlef Steuer <steuer@hsu-hh.de> wrote:
steuer@gaia:~/OBS/home:dsteuer:CRANtest> osc rdelete R-abe
osc rdelete expects a project name as the first argument. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (3)
-
Andreas Schwab
-
Dave Plater
-
Detlef Steuer