summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-05-13 18:41:38 +0000
committerGerrit Code Review <review@openstack.org>2016-05-13 18:41:39 +0000
commit6dc99aaaf7d699d17a0001b8291372dcfaf90703 (patch)
tree6ad933c93e4167a4233cbe8cf866ab6dec001a69
parentb9a1440fb6a50924d1571ef686909d0aa9149e92 (diff)
parent3a713f8bf49821c8941e5dc9ec7d9b91dea3b8ec (diff)
downloadnova-6dc99aaaf7d699d17a0001b8291372dcfaf90703.tar.gz
Merge "Fix serial console worker blocking Nova" into stable/liberty
-rw-r--r--nova/virt/hyperv/ioutils.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/nova/virt/hyperv/ioutils.py b/nova/virt/hyperv/ioutils.py
index e28deb84ff..ed79d150f3 100644
--- a/nova/virt/hyperv/ioutils.py
+++ b/nova/virt/hyperv/ioutils.py
@@ -13,14 +13,11 @@
# License for the specific language governing permissions and limitations
# under the License.
-import errno
import os
from eventlet import patcher
from oslo_log import log as logging
-from nova.i18n import _LE
-
LOG = logging.getLogger(__name__)
native_threading = patcher.original('threading')
@@ -39,13 +36,8 @@ class IOThread(native_threading.Thread):
def run(self):
try:
self._copy()
- except IOError as err:
+ except Exception:
self._stopped.set()
- # Invalid argument error means that the vm console pipe was closed,
- # probably the vm was stopped. The worker can stop it's execution.
- if err.errno != errno.EINVAL:
- LOG.error(_LE("Error writing vm console log file from "
- "serial console pipe. Error: %s") % err)
def _copy(self):
with open(self._src, 'rb') as src: