File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
tests/functional/agent/ovn/agent Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,7 @@ def resync(self):
161
161
Reload the configuration and sync the agent again.
162
162
"""
163
163
self .agent_api .load_config ()
164
+ self ._update_chassis_private_config ()
164
165
self .agent_api .update_neutron_sb_cfg_key ()
165
166
self .sync ()
166
167
@@ -178,6 +179,7 @@ def start(self):
178
179
179
180
# Register the agent with its corresponding Chassis
180
181
self .register_metadata_agent ()
182
+ self ._update_chassis_private_config ()
181
183
self .agent_api .update_neutron_sb_cfg_key ()
182
184
183
185
# Start the metadata server.
Original file line number Diff line number Diff line change @@ -135,10 +135,12 @@ def test_check_metadata_started(self):
135
135
# Check the metadata extension is registered.
136
136
chassis_id = uuid .UUID (self .chassis_name )
137
137
agent_id = uuid .uuid5 (chassis_id , 'metadata_agent' )
138
+ ext_ids = {ovn_const .OVN_AGENT_METADATA_ID_KEY : str (agent_id ),
139
+ ovn_const .OVN_AGENT_OVN_BRIDGE : 'br-int' ,
140
+ ovn_const .OVN_AGENT_NEUTRON_SB_CFG_KEY : '0' ,
141
+ }
138
142
ch_private = self .sb_api .lookup ('Chassis_Private' , self .chassis_name )
139
- self .assertEqual (
140
- ch_private .external_ids [ovn_const .OVN_AGENT_METADATA_ID_KEY ],
141
- str (agent_id ))
143
+ self .assertEqual (ext_ids , ch_private .external_ids )
142
144
143
145
# Check Unix proxy is running.
144
146
metadata_extension = self .ovn_agent [METADATA_EXTENSION ]
You can’t perform that action at this time.
0 commit comments