Have paramico to register the event pipe in time

paramiko is multi-thread package which has a dedicated thread for input
processing.
paramiko using a pipe trick to communicate his buffered_pipe state for
event based wait operations.
It is possible the reading (transport thread) gets an EOF (or CLOSE) message before
the event pipe created, unfourtunatly it leads to the EOF and CLOSE
messages not communicated correctly by the event pipe which is created later.

The applied change expected to be compatible with newer paramiko
versions, basically it haves the paramiko to create the pipe earlier.

test_integration_1 test case enabled.
Fixing bug ##1117555.

Change-Id: I5e7bff253ed21fc424acc426545cc48f22e96d74
diff --git a/tempest/common/ssh.py b/tempest/common/ssh.py
index 151060f..be6fe27 100644
--- a/tempest/common/ssh.py
+++ b/tempest/common/ssh.py
@@ -106,6 +106,7 @@
         ssh = self._get_ssh_connection()
         transport = ssh.get_transport()
         channel = transport.open_session()
+        channel.fileno()  # Register event pipe
         channel.exec_command(cmd)
         channel.shutdown_write()
         out_data = []
diff --git a/tempest/tests/boto/test_ec2_instance_run.py b/tempest/tests/boto/test_ec2_instance_run.py
index 4ad37b6..3293dea 100644
--- a/tempest/tests/boto/test_ec2_instance_run.py
+++ b/tempest/tests/boto/test_ec2_instance_run.py
@@ -142,7 +142,6 @@
     #NOTE(afazekas): doctored test case,
     # with normal validation it would fail
     @attr("slow", type='smoke')
-    @testtools.skip("Skipped until the Bug #1117555 is resolved")
     def test_integration_1(self):
         # EC2 1. integration test (not strict)
         image_ami = self.ec2_client.get_image(self.images["ami"]["image_id"])