You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Ronelle Landy (JIRA)" <ji...@apache.org> on 2013/04/16 09:43:15 UTC

[jira] [Created] (DTACLOUD-546) Errno::EPIPE: Broken pipe - when connecting to ec2 provider

Ronelle Landy created DTACLOUD-546:
--------------------------------------

             Summary: Errno::EPIPE: Broken pipe - <STDERR> when connecting to ec2 provider 
                 Key: DTACLOUD-546
                 URL: https://issues.apache.org/jira/browse/DTACLOUD-546
             Project: DeltaCloud
          Issue Type: Bug
          Components: Native/Frontend
         Environment: deltacloud-core gem 1.1.3 - under test
ec2 provider
            Reporter: Ronelle Landy


CAVEAT ... this may be a provider connection issue .... logging for tracking either way.

The automated testing has been tripping over a number of Broken pipe issues when connecting to ec2 - where the '-r' option is used. For example, see the two operations copied below to create a firewall. The first uses a server that was created using the -r option on a specified port and the second uses localhost. Note that the first errors out (reproducible) while the second passes.

[root@cloud-qe-4 ~]# curl -X POST -F "instance_id=i-5f338537" -F "name=myFirewall_xml" -F "description=test firewall" -F "owner_id=421842149539" --user "un:pw" "http://cloud-qe-4.idm.lab.bos.redhat.com:3003/api/firewalls?format=xml"
Errno::EPIPE: Broken pipe - <STDERR>
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1113:in `write'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1113:in `puts'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1113:in `dump_errors!'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1080:in `handle_exception!'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1056:in `block in dispatch!'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1035:in `block in invoke'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1035:in `catch'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1035:in `invoke'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1056:in `rescue in dispatch!'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1063:in `dispatch!'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:878:in `block in call!'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1035:in `block in invoke'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1035:in `catch'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1035:in `invoke'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:878:in `call!'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:864:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/xss_header.rb:18:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/path_traversal.rb:16:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/json_csrf.rb:18:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/frame_options.rb:31:in `call'
	/usr/local/share/gems/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
	/usr/local/share/gems/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/showexceptions.rb:21:in `call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:172:in `call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1947:in `call'
	/usr/local/share/gems/gems/deltacloud-core-1.1.3/lib/sinatra/rack_accept.rb:164:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/xss_header.rb:18:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/path_traversal.rb:16:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/json_csrf.rb:18:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/frame_options.rb:31:in `call'
	/usr/local/share/gems/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
	/usr/local/share/gems/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/showexceptions.rb:21:in `call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:172:in `call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1947:in `call'
	/usr/local/share/gems/gems/rack-accept-0.4.5/lib/rack/accept/context.rb:22:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/xss_header.rb:18:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/path_traversal.rb:16:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/json_csrf.rb:18:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/frame_options.rb:31:in `call'
	/usr/local/share/gems/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
	/usr/local/share/gems/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
	/usr/local/share/gems/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:172:in `call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1947:in `call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:925:in `forward'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:994:in `route_missing'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:955:in `route!'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:951:in `route!'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:951:in `route!'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1053:in `block in dispatch!'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1035:in `block in invoke'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1035:in `catch'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1035:in `invoke'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1050:in `dispatch!'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:878:in `block in call!'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1035:in `block in invoke'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1035:in `catch'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1035:in `invoke'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:878:in `call!'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:864:in `call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:925:in `forward'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:994:in `route_missing'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:955:in `route!'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:951:in `route!'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:951:in `route!'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:951:in `route!'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1053:in `block in dispatch!'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1035:in `block in invoke'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1035:in `catch'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1035:in `invoke'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1050:in `dispatch!'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:878:in `block in call!'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1035:in `block in invoke'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1035:in `catch'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1035:in `invoke'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:878:in `call!'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:864:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/xss_header.rb:18:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/path_traversal.rb:16:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/json_csrf.rb:18:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/frame_options.rb:31:in `call'
	/usr/local/share/gems/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
	/usr/local/share/gems/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/showexceptions.rb:21:in `call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:172:in `call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1947:in `call'
	/usr/local/share/gems/gems/deltacloud-core-1.1.3/lib/sinatra/rack_accept.rb:164:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/xss_header.rb:18:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/path_traversal.rb:16:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/json_csrf.rb:18:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/frame_options.rb:31:in `call'
	/usr/local/share/gems/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
	/usr/local/share/gems/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/showexceptions.rb:21:in `call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:172:in `call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1947:in `call'
	/usr/local/share/gems/gems/rack-accept-0.4.5/lib/rack/accept/context.rb:22:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/xss_header.rb:18:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/path_traversal.rb:16:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/json_csrf.rb:18:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/frame_options.rb:31:in `call'
	/usr/local/share/gems/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
	/usr/local/share/gems/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
	/usr/local/share/gems/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:172:in `call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1947:in `call'
	/usr/local/share/gems/gems/deltacloud-core-1.1.3/lib/sinatra/rack_driver_select.rb:45:in `call'
	/usr/local/share/gems/gems/deltacloud-core-1.1.3/lib/sinatra/rack_etag.rb:41:in `call'
	/usr/local/share/gems/gems/deltacloud-core-1.1.3/lib/sinatra/rack_date.rb:31:in `call'
	/usr/local/share/gems/gems/deltacloud-core-1.1.3/lib/sinatra/rack_logger.rb:87:in `call'
	/usr/local/share/gems/gems/deltacloud-core-1.1.3/lib/sinatra/rack_accept.rb:164:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/xss_header.rb:18:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/path_traversal.rb:16:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/json_csrf.rb:18:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/frame_options.rb:31:in `call'
	/usr/local/share/gems/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
	/usr/local/share/gems/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/showexceptions.rb:21:in `call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:172:in `call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1947:in `call'
	/usr/local/share/gems/gems/rack-accept-0.4.5/lib/rack/accept/context.rb:22:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/xss_header.rb:18:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/path_traversal.rb:16:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/json_csrf.rb:18:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in `call'
	/usr/local/share/gems/gems/rack-protection-1.5.0/lib/rack/protection/frame_options.rb:31:in `call'
	/usr/local/share/gems/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
	/usr/local/share/gems/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
	/usr/local/share/gems/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:172:in `call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1947:in `call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1610:in `block in call'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1693:in `synchronize'
	/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1610:in `call'
	/usr/local/share/gems/gems/rack-1.5.2/lib/rack/urlmap.rb:65:in `block in call'
	/usr/local/share/gems/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `each'
	/usr/local/share/gems/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `call'
	/usr/local/share/gems/gems/deltacloud-core-1.1.3/lib/sinatra/rack_matrix_params.rb:104:in `call'
	/usr/local/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:138:in `call'
	/usr/local/share/gems/gems/thin-1.5.1/lib/thin/connection.rb:81:in `block in pre_process'
	/usr/local/share/gems/gems/thin-1.5.1/lib/thin/connection.rb:79:in `catch'
	/usr/local/share/gems/gems/thin-1.5.1/lib/thin/connection.rb:79:in `pre_process'
	/usr/local/share/gems/gems/eventmachine-1.0.3/lib/eventmachine.rb:1037:in `call'
	/usr/local/share/gems/gems/eventmachine-1.0.3/lib/eventmachine.rb:1037:in `block in spawn_threadpool'[root@cloud-qe-4 ~]# 


Now let's create the same firewall using localhost:3001:

[root@cloud-qe-4 ~]# curl -X POST -F "instance_id=i-5f338537" -F "name=myFirewall_xml" -F "description=test firewall" -F "owner_id=421842149539" --user "un:pw" "http://localhost:3001/api/firewalls?format=xml"
<?xml version='1.0' encoding='utf-8' ?>
<firewall href='http://localhost:3001/api/firewalls/myFirewall_xml' id='myFirewall_xml'>
  <actions>
    <link href='http://localhost:3001/api/firewalls/myFirewall_xml' method='delete' rel='destroy' />
    <link href='http://localhost:3001/api/firewalls/myFirewall_xml/rules' method='post' rel='update' />
  </actions>
  <name><![CDATA[myFirewall_xml]]></name>
  <description><![CDATA[test firewall]]></description>
  <owner_id></owner_id>
  <rules>
  </rules>
</firewall>
[root@cloud-qe-4 ~]# 


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira