Bug #2473
closedPT Hosts management seems to be deleting entries even when not asked to
Description
Francois Bayart just raised an error on IRC :
He uses the PT Host with the parameters here : http://content.screencast.com/users/frbayart-lbox/folders/Jing/media/f2814889-27d3-44a7-a68f-85482eccc3e6/2012-04-25_1040.png (so no enforce hosts content)
He previously had a hosts files which contained lines :
127.0.0.1 localhost
ipadressmachine longhostname shorthostname
After the application of the PI, he has : http://content.screencast.com/users/frbayart-lbox/folders/Jing/media/d6630180-6115-4b9b-a22c-6071e4127292/2012-04-25_1040.png
So no more official IP for this server ...
Files
Updated by Nicolas PERRON over 12 years ago
- Status changed from New to In progress
Updated by Nicolas PERRON over 12 years ago
The logic of this PT is to erase before replace.
If the line already exists, this will no change anything in the file, else that will considered as repaired. To fix this bug, we will have to change this logic of edition.
Updated by Nicolas CHARLES over 12 years ago
The original IP adress of the host is 10.108.24.169
Updated by Jonathan CLARKE over 12 years ago
Might this actually be #2456 appearing in a different form?
Updated by Matthieu CERDA over 12 years ago
Well looking at the second image, this is clearly and enforced content pattern.
Either the PT was enforced some time ago, or there is something wrong in it that makes the enforce part trigger without valid reason.
Updated by Francois BAYART over 12 years ago
- File hostsConfiguration.cf hostsConfiguration.cf added
I have make a new test (new node) and I get the same problem !
As requested by John you could find the hostsConfiguration.cf file in attachment.
Updated by Francois BAYART over 12 years ago
- File hostsConfiguration.st hostsConfiguration.st added
- File policy.xml policy.xml added
Francois BAYART wrote:
I have make a new test (new node) and I get the same problem !
As requested by John you could find the hostsConfiguration.cf file in attachment.
Ask requested by Nicolas P. I join the files inside
/var/rudder/configuration-repository/policy-templates/systemSettings/networking/hostsConfiguration/1.0 directory
Updated by Francois BAYART over 12 years ago
- File ScreenShot018.png ScreenShot018.png added
Francois BAYART wrote:
Francois BAYART wrote:
I have make a new test (new node) and I get the same problem !
As requested by John you could find the hostsConfiguration.cf file in attachment.
Ask requested by Nicolas P. I join the files inside
/var/rudder/configuration-repository/policy-templates/systemSettings/networking/hostsConfiguration/1.0 directory
And now the ApacheDS screenshot for this PI
Updated by Nicolas PERRON over 12 years ago
There are two attributes which should not be here and seems to have been introduced by #2374:
- HOST_ENFORCE[ 1 ]:false
- HOST_ENFORCE[ 2 ]:false
Removing them should fix the problem. Could your confirm, please ?
Thanks for your bug report ! Your effort is strongly appreciated
Updated by Nicolas PERRON over 12 years ago
- Status changed from In progress to Pending technical review
- % Done changed from 0 to 100
Updated by Nicolas CHARLES over 12 years ago
- Status changed from Pending technical review to Released
I'm closing this bug, since the problem is solved, and was du to earlier buggy version of the PT/Technique