Ticket #420 (closed defect: fixed)
Problem with UUIDs and NAT in 0.9.3-pre3
Reported by: | [email protected]… | Owned by: | desai |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 0.9.3 Release |
Component: | bcfg2-server | Version: | |
Keywords: | Cc: |
Description
When multiple clients, each with a unique UUID, share a fixed NAT address, only one will successfully authenticate. For example, suppose clients.xml contains the following entries:
<Client profile="group1" pingable="N" pingtime="0" name="host1" uuid="uuid1" address="10.0.0.1"/>
<Client profile="group1" pingable="N" pingtime="0" name="host2" uuid="uuid2" address="10.0.0.1"/>
Client host2 will authenticate; host1 will not. For host1, the server reports
Got request for non-floating UUID uuid1 from 10.0.0.1
If the Client entry for host1 is changed to replace the 'address' attribute with the attribute location="floating", host1 will then authenticate, but the server reports that it generated the configuration for host2.
There was a bad assumption in Metadata.py that each address would only be included once. I've fixed this in r3007, which will be included in 0.9.3pre4, to be released later today.