From 8cd78ccca87ceaa66799013db0fa214eab470550 Mon Sep 17 00:00:00 2001 From: xiulin yin Date: Thu, 12 Jan 2017 16:09:15 +0800 Subject: [PATCH] Fail to boot vm in network with az-hint specified 1. What is the problem Creates a network and specifies az-hint, then boot an instance in this network, error occured in the neutron client: AvailabilityZone could not be found. 2. What is the solution to the problem Remove az_hints which were obtained from the central neutron in local plugin. 3. What the features need to be implemented to the Tricircle No new features Change-Id: I52f56a3fa0a4c642c20e70f4e842a2a5228fadfa Closes-Bug: #1655583 --- tricircle/network/local_plugin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tricircle/network/local_plugin.py b/tricircle/network/local_plugin.py index e574e6d8..539c812b 100644 --- a/tricircle/network/local_plugin.py +++ b/tricircle/network/local_plugin.py @@ -84,6 +84,9 @@ class TricirclePlugin(plugin.Ml2Plugin): elif network_type == t_constants.NT_SHARED_VLAN: network['provider:network_type'] = 'vlan' + # remove az_hint from network + network.pop('availability_zone_hints', None) + @staticmethod def _adapt_port_body_for_client(port): port.pop('port_security_enabled', None)