On Tue, May 5, 2009 at 7:00 PM, Michael DeHaan <[email protected]> wrote: > Stephen John Smoogen wrote: >> Well I was doing some house cleaning today.. in trying to add red hat >> distro 5.3 to the cobbler box etc. I did what I normally do >> >> >> >> cobbler import --breed=redhat --arch=i386 --mirror=/mnt/iso/ >> --name=rhel-5.3-server-i386 >> >> geta list of 5.2 systems and move them to 5.3 >> >> for i in cain1_unm_edu cain2_unm_edu cellini_unm_edu crux_unm_edu >> docbook-new_unm_edu enyo_unm_edu eprint_new_unm_edu megrez_unm_edu >> pallas_unm_edu quasi_unm_edu scheat_unm_edu sedna_unm_edu >> thrymr_unm_edu varuna_unm_edu vm-banana-t_unm_edu vortigern_unm_edu >> zimbra2_unm_edu; do cobbler system edit --name=$i >> --profile=rhel-5.3-server-i386; done >> > > This looks fine. >> cobbler list shows them pointing to the right profile. >> >> I am running out of space and need to update others so I did a >> >> cobbler profile remove --name=rhel-5.2-server-i386 >> cobbler distro remove --name=rhel-5.2-server-i386 >> > > Without specifying --recursive, even the above removal would not delete > any child systems. > >> and Pow.. no more systems when I do a cobbler systems list.. Not sure >> where they went or why they went away.. the directory >> /var/lib/cobbler/config/systems.d/ is empty. >> > > The above commands should not cause that result; short of "cobbler > reserialize" there is nothing in cobbler anymore that saves each and > every cobbler object > when something changes (assuming you are using serializer_catalog in > modules.conf, which nearly everything but the oldest of installations > would be using -- this is the one that uses systems.d, as opposed to the > ancient /var/lib/cobbler/systems file). >> What did I do wrong? >> >> > > Don't know. I really don't want there to be a bug this fundamental > anywhere; and I also think someone would have hit it already if there > was such a problem.
Ok the one thing is that is a system that has been pretty much upgraded to 1.x.y releases after some testing on other parts. It was a 1.2, then a 1.4 and now a 1.6. I found a backup directory after I emailed this with the old data in it. I am going to try and use it to recreate the machines tomorrow. > I'd be interested if you can replicate this. Did you install cobbler > systems after midnight or get them too close to water? > > (A good lesson regardless -- backup your /var/lib/cobbler dirs, as well > as /etc/cobbler.) > > Let me know if you can figure out anything else. Might be a good idea > to check /var/log/cobbler/*.log for any obvious exceptions just in case > there is anything there that could help shed some light on things. > > (Also, bash history, just in case there is something else missing?) > I copied and pasted from the bash history but I am wondering if it has something to do with the update from 1.4.3 to 1.6.3 I did this morning. I will restore from backups tomorrow and see if I can replicate on a different system. 2009-05-05 17:58:03,395 - api - serialize 2009-05-05 17:58:56,331 - api - saving profile UNM-serial-5-x86_64 2009-05-05 17:58:56,599 - api - deleted profile unm-serial-5.2-x86_64 2009-05-05 17:59:18,969 - api - saving profile UNM-serial-5-i386 2009-05-05 17:59:19,182 - api - deleted profile unm-serial-5.2-i386 2009-05-05 18:01:08,378 - api - saving system demeter-3_unm_edu 2009-05-05 18:01:41,021 - api - saving profile UNM-serial-3.9-i386 2009-05-05 18:02:01,898 - api - deleted profile rhel-3.9-base-i386 2009-05-05 18:02:28,468 - api - deleted distro rhel-3.9-base-i386 2009-05-05 18:02:35,304 - api - deleted distro rhel-3.9-base-dosutils-autoboot-i386 2009-05-05 18:03:35,204 - api - saving system alzir_unm_edu 2009-05-05 18:03:36,142 - api - saving system bellatrix_unm_edu 2009-05-05 18:03:37,088 - api - saving system bootes_unm_edu 2009-05-05 18:03:38,011 - api - saving system cp4_unm_edu 2009-05-05 18:03:38,969 - api - saving system demeter-4_unm_edu 2009-05-05 18:03:39,909 - api - saving system pandora_unm_edu 2009-05-05 18:03:40,856 - api - saving system wcs_unm_edu 2009-05-05 18:04:18,056 - api - deleted profile rhel-4.7-server-i386 Looking at cobblerd.log I see the following: 2009-05-05 18:04:18,162 - api - DEBUG: removing from profile, rhel-4.7-server-i386; user(?) 2009-05-05 18:04:18,163 - api - remove_profile; rhel-4.7-server-i386 2009-05-05 18:04:18,163 - api - remove_system; [u'alzir_unm_edu'] 2009-05-05 18:04:18,163 - api - remove_system; [u'bellatrix_unm_edu'] 2009-05-05 18:04:18,164 - api - remove_system; [u'bootes_unm_edu'] 2009-05-05 18:04:18,164 - api - remove_system; [u'cp4_unm_edu'] 2009-05-05 18:04:18,165 - api - remove_system; [u'demeter-4_unm_edu'] 2009-05-05 18:04:18,165 - api - remove_system; [u'pandora_unm_edu'] 2009-05-05 18:04:18,166 - api - remove_system; [u'wcs_unm_edu'] Looking for just alzir I see the following logs: cobbler.log:2009-05-05 18:03:35,204 - api - saving system alzir_unm_edu cobblerd.log:2009-05-05 18:03:35,324 - api - DEBUG: adding to system, alzir_unm_edu; user(?) cobblerd.log:2009-05-05 18:03:35,325 - api - add_system; [u'alzir_unm_edu'] cobblerd.log:2009-05-05 18:04:18,163 - api - remove_system; [u'alzir_unm_edu'] So I am guessing its saying it saved and deleted things? # this file was auto-generated by /usr/bin/cobbler-setup at #Mon Apr 20 19:07:12 2009 # the previous file is saved as /etc/cobbler/settings.backup # cobbler module configuration file # ================================= # serializers: # what file/data formats to use for metadata # choices: # serializer_catalog (VERY fast, uses .d directories in /var/lib/cobbler/config) # serializer_yaml (original serializer, uses a few text files, DEPRECATED) # for 99% or more of all installations, use serializer_catalog. [serializers] settings = serializer_catalog distro = serializer_catalog profile = serializer_catalog system = serializer_catalog repo = serializer_catalog image = serializer_catalog -- Stephen J Smoogen. -- BSD/GNU/Linux How far that little candle throws his beams! So shines a good deed in a naughty world. = Shakespeare. "The Merchant of Venice" _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
