On 18/11/2011, at 13:55, Michael Mraka wrote: > # rhncfg-client get /teste > Using server name test04-64 > Deploying /teste > > It works for me even for the second, third, etc. time. > > # rpm -q rhncfg-client > rhncfg-client-5.10.18-1.el5.noarch > > What's version of your rhncfg-client? > > Regards, > > -- > Michael Mráka > Satellite Engineering, Red Hat
Hello Michael, I'm running rhncfg-client-5.10.19-1.el5. Note that the /var is a partition. Look further details: # df -h Sist. Arq. Tam Usad Disp Uso% Montado em /dev/mapper/myvg-rootvol 6,7G 1,2G 5,2G 19% / /dev/mapper/myvg-varvol 3,8G 165M 3,5G 5% /var /dev/hda1 190M 20M 161M 11% /boot # rpm -aq | grep rhncfg rhncfg-management-5.10.19-1.el5 rhncfg-5.10.19-1.el5 rhncfg-actions-5.10.19-1.el5 rhncfg-client-5.10.19-1.el5 # rhncfg-client verify Using server name server.example.com missing /boot/cross-dir missing /boot/cross-link missing /etc/test-file-regular missing /root/sym-link-same-part missing /teste # ls -lad /teste /boot/cross-dir /boot/cross-link /etc/test-file-regular /root/sym-link-same-part ls: /teste: Arquivo ou diretório não encontrado ls: /boot/cross-dir: Arquivo ou diretório não encontrado ls: /boot/cross-link: Arquivo ou diretório não encontrado ls: /etc/test-file-regular: Arquivo ou diretório não encontrado ls: /root/sym-link-same-part: Arquivo ou diretório não encontrado # rhncfg-client get Using server name server.example.com Deploying /etc/test-file-regular Deploying /boot/cross-link Deploying /root/sym-link-same-part Deploying /teste Deploying /boot/cross-dir # ls -lad /teste /boot/cross-dir /boot/cross-link /etc/test-file-regular /root/sym-link-same-part lrwxrwxrwx 1 root root 14 Nov 18 19:19 /boot/cross-dir -> /usr/local/bin lrwxrwxrwx 1 root root 11 Nov 18 19:19 /boot/cross-link -> /etc/passwd -rw-r--r-- 1 root root 15 Nov 18 19:19 /etc/test-file-regular lrwxrwxrwx 1 root root 10 Nov 18 19:19 /root/sym-link-same-part -> /etc/hosts lrwxrwxrwx 1 root root 4 Nov 18 19:19 /teste -> /tmp --> Re-deployment fails # rhncfg-client get Using server name server.example.com Deploy failed, rollback successful Looking the logs: 2011-11-18 19:22:08 transactions.deploy: deploying transaction 2011-11-18 19:22:08 transactions.deploy: changed_dir_info: {} 2011-11-18 19:22:08 transactions.deploy: new_dirs: [] 2011-11-18 19:22:08 transactions.deploy: done with directory creation, moving on to files 2011-11-18 19:22:08 transactions._rename_to_backup: renaming /etc/test-file-regular to backup /var/lib/rhncfg/backups/etc/test-file-regular.rhn-cfg-backup ... 2011-11-18 19:22:08 transactions._rename_to_backup: trying to use os.renames 2011-11-18 19:22:08 transactions._rename_to_backup: os.renames failed, using shutil functions 2011-11-18 19:22:08 transactions._rename_to_backup: backup directory /var/lib/rhncfg/backups/etc exists, copying test-file-regular.rhn-cfg-backup to it 2011-11-18 19:22:08 transactions._rename_to_backup: backed up to /var/lib/rhncfg/backups/etc/test-file-regular.rhn-cfg-backup 2011-11-18 19:22:08 transactions.deploy: backup file /var/lib/rhncfg/backups/etc/test-file-regular.rhn-cfg-backup written 2011-11-18 19:22:08 transactions._rename_to_backup: renaming /boot/cross-link to backup /var/lib/rhncfg/backups/boot/cross-link.rhn-cfg-backup ... 2011-11-18 19:22:08 transactions._rename_to_backup: trying to use os.renames 2011-11-18 19:22:08 transactions._rename_to_backup: os.renames failed, using shutil functions 2011-11-18 19:22:08 transactions._rename_to_backup: backup directory /var/lib/rhncfg/backups/boot exists, copying cross-link.rhn-cfg-backup to it 2011-11-18 19:22:08 transactions.rollback: rolling back 2011-11-18 19:22:08 transactions.rollback: restoring /etc/test-file-regular from /var/lib/rhncfg/backups/etc/test-file-regular.rhn-cfg-backup ... 2011-11-18 19:22:08 transactions.rollback: os.rename failed, using shutil.copy 2011-11-18 19:22:08 transactions.rollback: /etc/test-file-regular restored 2011-11-18 19:22:08 transactions.rollback: removing tmp file //etc/.rhn-cfg-tmp-12883-cfx-c3 ... 2011-11-18 19:22:08 transactions.rollback: tmp file removed 2011-11-18 19:22:08 transactions.rollback: removing tmp file //boot/.rhn-cfg-tmp-12883-bkBnag ... 2011-11-18 19:22:08 transactions.rollback: tmp file removed 2011-11-18 19:22:08 transactions.rollback: removing tmp file //root/.rhn-cfg-tmp-12883-lZAJSl ... 2011-11-18 19:22:08 transactions.rollback: tmp file removed 2011-11-18 19:22:08 transactions.rollback: removing tmp file //.rhn-cfg-tmp-12883-z7PWDY ... 2011-11-18 19:22:08 transactions.rollback: tmp file removed 2011-11-18 19:22:08 transactions.rollback: removing tmp file //boot/.rhn-cfg-tmp-12883-gbmlLs ... 2011-11-18 19:22:08 transactions.rollback: tmp file removed 2011-11-18 19:22:08 transactions.rollback: rollback successful Deploy failed, rollback successful ---> Applying the patch proposed: # rpm -V rhncfg S.5....T /usr/share/rhn/config_common/transactions.py # rhncfg-client get Using server name server.example.com Deploying /etc/test-file-regular Deploying /boot/cross-link Deploying /root/sym-link-same-part Deploying /teste Deploying /boot/cross-dir # ls -lad /teste /boot/cross-dir /boot/cross-link /etc/test-file-regular /root/sym-link-same-part lrwxrwxrwx 1 root root 14 Nov 18 19:33 /boot/cross-dir -> /usr/local/bin lrwxrwxrwx 1 root root 11 Nov 18 19:33 /boot/cross-link -> /etc/passwd -rw-r--r-- 1 root root 15 Nov 18 19:33 /etc/test-file-regular lrwxrwxrwx 1 root root 10 Nov 18 19:33 /root/sym-link-same-part -> /etc/hosts lrwxrwxrwx 1 root root 4 Nov 18 19:33 /teste -> /tmp As we can see above the re-deployment worked. Michael, if you want I can send you the reproducer information then you can test using that box. Please, let me know. Best Regards, mmello
_______________________________________________ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel