Hi all, Today i have rename a repo in cobbler. The rename works but all data of this repository has been deleted.
Is it a normal behavior of "cobbler repo rename --name=myoldname --newname=mynewname" ?
Thanks for your answers.
Baptiste.
Baptiste AGASSE wrote:
Hi all, Today i have rename a repo in cobbler. The rename works but all data of this repository has been deleted.
Is it a normal behavior of "cobbler repo rename --name=myoldname --newname=mynewname" ?
Thanks for your answers.
Baptiste. _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
We probably should tweak cobbler to make it try to rename directories in /var/www/cobbler/repo_mirror when doing repo renames.
Your data wasn't deleted, it's just not where it should be.
Running reposync again would fix it, as would cp'ing the data.
File a bug in Trac if you don't mind.
Thanks!
cobbler-1.6.6-1.fc10.i386
I just did the same thing. I haven't run reposync again yet because even if I restrict it to just the repository in question (using the old name or the new one?) that could be an expensive command if it does have to download the entire repository in question from scratch.
Neither the old name nor the new one are present in /var/www/cobbler/ after the repo rename, but the rest of my repositories are. If the data wasn't deleted, where could I look to verify it still exists?
Bryan Schneiders bschneiders@woti.com 301-562-1900 ext 305
Michael DeHaan wrote:
Baptiste AGASSE wrote:
Hi all, Today i have rename a repo in cobbler. The rename works but all data of this repository has been deleted.
Is it a normal behavior of "cobbler repo rename --name=myoldname --newname=mynewname" ?
Thanks for your answers.
Baptiste. _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
We probably should tweak cobbler to make it try to rename directories in /var/www/cobbler/repo_mirror when doing repo renames.
Your data wasn't deleted, it's just not where it should be.
Running reposync again would fix it, as would cp'ing the data.
File a bug in Trac if you don't mind.
Thanks!
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
On 09/28/2009 02:12 PM, Bryan Schneiders wrote:
cobbler-1.6.6-1.fc10.i386
I just did the same thing. I haven't run reposync again yet because even if I restrict it to just the repository in question (using the old name or the new one?) that could be an expensive command if it does have to download the entire repository in question from scratch.
Neither the old name nor the new one are present in /var/www/cobbler/ after the repo rename, but the rest of my repositories are. If the data wasn't deleted, where could I look to verify it still exists?
I think you mean '/var/www/cobbler/repo_mirror/', right? I'm sure you do. That sounds like a bug.
Anyway, run "cobbler reposync" and things should be good to go, in case. Though, true, we don't users to have to do that.
Anyway, all new development is being done against 2.0, so if you can test to see whether 2.0 removes your repo (or does not rename it), that would be helpful.
One idea might be to keep an internal field for the repo names and not have them named after the repo... and the same for the imports. We already do this for imports today (distro imports, not repos... which work differently) by storing the address of the tree in the distro. If we did the same for repos, we could keep the names auto-generated and it wouldn't be required that we rename them.
--Michael
cobbler@lists.fedorahosted.org