Skip to content

Commit d9a1ed5

Browse files
committed
CCM: Fix improper display of ip prefix.
When passing `NetPrefix` as an argument to `ccm populate` it is formatted using `.to_string()` method. Result of this is then concatenated with the node id, and the result is an "ip" that ccm tries to find in Scylla logs to determine that the node is UP. `.to_string()` implementation was displaying the whole ip, instead of it's first 3 octets, resulting in CCM looking for ips like `127.0.1.02`. Instead the `to_str()` method should be used, that produces ccm-compatible form of the ip range.
1 parent f1de757 commit d9a1ed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scylla/tests/ccm_integration/ccm/ip_allocator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl NetPrefix {
5757

5858
impl std::fmt::Display for NetPrefix {
5959
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
60-
write!(f, "{}", self.0)
60+
write!(f, "{}", self.to_str())
6161
}
6262
}
6363

0 commit comments

Comments
 (0)