Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Filter loopback IPs from VM metadata to prevent SSH related test flakes #581

Merged
merged 1 commit into from
Apr 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pkg/operations/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,11 @@ func StartVM(vm *api.VM, debug bool) error {
startTime := apiruntime.Timestamp()
vm.Status.StartTime = &startTime

// Append the runtime IP address of the VM to its state
// Append non-loopback runtime IP addresses of the VM to its state
for _, addr := range result.Addresses {
vm.Status.IPAddresses = append(vm.Status.IPAddresses, addr.IP)
if !addr.IP.IsLoopback() {
vm.Status.IPAddresses = append(vm.Status.IPAddresses, addr.IP)
}
}

// Set the VM's status to running
Expand Down