[Windows docker] vswitch name wildcard

Bug #1788171 reported by Michał Kostrzewa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Undecided
Unassigned
OpenContrail
Fix Committed
Undecided
Unassigned

Bug Description

Got the following logs:

WARN[2018-08-17T10:33:01-07:00] Keystone variable empty: Os_token
INFO[2018-08-17T10:33:15-07:00] Inspecting Hyper-V Extension for property: Running
DEBU[2018-08-17T10:33:15-07:00] Running powershell: -NonInteractive Get-VMSwitchExtension -VMSwitchName "Layered?Ethernet1" -Name "vRouter forwarding extension" | Select -Expand "Running".
DEBU[2018-08-17T10:33:32-07:00] Inspect result:
ERRO[2018-08-17T10:33:32-07:00] Before trying to initialize vRouter: Extension is stopped, when it should be running - possible fix involves reinstallation of the vRouter Forwarding Extension

Inspect result is nil, when it should probably error like "vswitch was not found". This is probably due to passing a vswitch name containing a wildcard - powershell ignores errors then and acts like a dumb filter.

Tags: windows
description: updated
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/45682
Submitter: Michal Kostrzewa (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/45682
Committed: http://github.com/Juniper/contrail-windows-docker-driver/commit/bafc2fd8dd35bd0f157cd6b7a49d7c3d351bfc83
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit bafc2fd8dd35bd0f157cd6b7a49d7c3d351bfc83
Author: Michal Kostrzewa <email address hidden>
Date: Tue Aug 21 14:57:11 2018 +0200

Check for vswitch existence every time.

If vswitch name contains a wildcard and the vswitch doesn't exist, then driver doesn't return proper
error message. This PR improves logging and error handling in above
scenario.

Change-Id: I3b6f64196616a4110683c3f8ae019801e4b7a132
Closes-Bug: #1788171

Changed in opencontrail:
status: New → Incomplete
status: Incomplete → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.