Modify

Ticket #465 (closed defect: fixed)

Opened 15 years ago

Last modified 15 years ago

Bcfg2 destroys symbolic links when installing files

Reported by: dclark Owned by: desai
Priority: critical Milestone: Bcfg2 0.9.5 Release
Component: bcfg2-client Version: 0.9.x
Keywords: Cc:

Description

  • Have a box where /usr/local -> /local2/local (a filesystem with more space)
  • Have a config file under /usr/local/etc/somename.conf
  • After a "bcfg2" run, /usr/local will be a directory, and the only file in it will be /usr/local/etc/somename.conf (/local2/local will be untouched).

Attachments

Change History

comment:1 Changed 15 years ago by dclark

Here are the pertinent bits of a "bcfg2 -dv" log for a run that causes the issue:

Before:

lug:root{636}# pwd
/usr
lug:root{637}# ls -l | grep local
lrwxrwxrwx   1 root     other         13 Jul 17 03:40 local -> /local2/local

During:

[...]

ConfigFile /usr/local/var/bcfg2/metadata.txt does not exist
Failed to read /usr/local/var/bcfg2/metadata.txt: No such file or directory
ConfigFile /usr/local/etc/sudoers does not exist
Failed to read /usr/local/etc/sudoers: No such file or directory

[...]

Installing ConfigFile /usr/local/var/bcfg2/metadata.txt
Creating parent path for config file /usr/local/var/bcfg2/metadata.txt
/usr/local/ is not a directory; recreating
Creating non-existent path /usr/local/var/
Creating non-existent path /usr/local/var/bcfg2/
Installing ConfigFile /usr/local/etc/sudoers
Creating parent path for config file /usr/local/etc/sudoers
Creating non-existent path /usr/local/etc/
The Following Bundles have been modified:
 bcfg2-client  sudo

[...]

After:

lug:root{632}# pwd
/usr
lug:root{633}# ls -l | grep local
drwxr-xr-x   4 root     other        512 Jul 17 03:36 local

comment:2 Changed 15 years ago by desai

  • Status changed from new to closed
  • Resolution set to fixed

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.