From ab4636ae0f9aff508f1c4649dcd04c5b119d76d2 Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Sat, 10 Jun 2017 04:11:52 +0900 Subject: [PATCH] Explicitly specify `zoneid` in CloudStack's `associateIpAddress` call (#4995) Generally speaking, this must be harmless since the IP address and the virtual machine need to be deployed to the same zone. --- builder/cloudstack/step_configure_networking.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builder/cloudstack/step_configure_networking.go b/builder/cloudstack/step_configure_networking.go index ae736a07f..9d525c255 100644 --- a/builder/cloudstack/step_configure_networking.go +++ b/builder/cloudstack/step_configure_networking.go @@ -74,6 +74,8 @@ func (s *stepSetupNetworking) Run(state multistep.StateBag) multistep.StepAction p.SetNetworkid(network.Id) } + p.SetZoneid(config.Zone) + // Associate a new public IP address. ipAddr, err := client.Address.AssociateIpAddress(p) if err != nil {