Skip to content

Commit 0a2d836

Browse files
committed
CA-242706: Add "warning" comment explaining issue
Signed-off-by: Gabor Igloi <[email protected]>
1 parent a3ed80a commit 0a2d836

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ocaml/xapi/xapi_mgmt_iface.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ let on_dom0_networking_change ~__context =
183183
Db.Host.set_name_label ~__context ~self:localhost ~value:new_hostname;
184184
begin match Helpers.get_management_ip_addr ~__context with
185185
| Some ip ->
186+
(* WARNING: this does NOT detect IP address changes that happen before
187+
xapi's startup (see CA-242706) *)
186188
if Db.Host.get_address ~__context ~self:localhost <> ip then begin
187189
debug "Changing Host.address in database to: %s" ip;
188190
Db.Host.set_address ~__context ~self:localhost ~value:ip;

0 commit comments

Comments
 (0)