AWS: Error listing internet gateways

47 views
Skip to first unread message

James Masson

unread,
May 12, 2014, 10:47:38 AM5/12/14
to ruby...@googlegroups.com

Hi,

We're using fog to create complete VPC configurations programatically.

We regularly get into a state where fog refuses to operate on internet gateway objects.

eg.

    def connection
      @connection ||= Fog::Compute.new(parse_environment)
    end


connection.internet_gateways.first

Excon::Errors::SocketError: EndTag: '</' not found (Nokogiri::XML::SyntaxError)
from /home/jmasson/.rvm/gems/ruby-2.0.0-p353@fog/gems/nokogiri-1.6.1/lib/nokogiri/xml/sax/push_parser.rb:47:in `native_write'

There are plenty of internet gateways visible in the Web UI, but fog can't do any operations on them. This state persists across runs of fog.

Any ideas?    -   we're using  'fog', '~> 1.22.0'

thanks

James M

James Masson

unread,
May 12, 2014, 12:18:45 PM5/12/14
to ruby...@googlegroups.com
As a quick workaround, we found that...

connection.internet_gateways.all(filter_goes_here)

...works as it should.

James M

geemus (Wesley Beary)

unread,
May 12, 2014, 2:51:28 PM5/12/14
to ruby...@googlegroups.com
To clarify, it sometimes fails to work or never works? Could you open an issue on the repo for it?


--
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

James Masson

unread,
May 13, 2014, 11:26:26 AM5/13/14
to ruby...@googlegroups.com

Issue opened - https://github.com/fog/fog/issues/2920

The problem doesn't always occur - but once it does, it's persistent
across fog connections on multiple machines.

I'm assuming we get AWS IG config into a state that's valid on AWS, and
to the AWS Web-UI, but that fog/nokogiri choke on.

Our code to generate VPC configs is purely fog. The IGs are created and
bound to a VPC - though we do have quite a few VPCs!

thanks

James M

On 12/05/14 19:51, geemus (Wesley Beary) wrote:
> To clarify, it sometimes fails to work or never works? Could you open an
> issue on the repo for it?
>
>
> On Mon, May 12, 2014 at 11:18 AM, James Masson <ja...@cloudcredo.com
> <mailto:ja...@cloudcredo.com>> wrote:
>
> As a quick workaround, we found that...
>
> connection.internet_gateways.all(filter_goes_here)
>
> ...works as it should.
>
> James M
>
>
> On Monday, May 12, 2014 3:47:38 PM UTC+1, James Masson wrote:
>
>
> Hi,
>
> We're using fog to create complete VPC configurations
> programatically.
>
> We regularly get into a state where fog refuses to operate on
> internet gateway objects.
>
> eg.
>
> def connection
> @connection ||= Fog::Compute.new(parse___environment)
> end
>
>
> connection.internet_gateways.__first
>
> Excon::Errors::SocketError: EndTag: '</' not found
> (Nokogiri::XML::SyntaxError)
> from
> /home/jmasson/.rvm/gems/ruby-__2.0.0-p353@fog/gems/nokogiri-__1.6.1/lib/nokogiri/xml/sax/__push_parser.rb:47:in
> `native_write'
>
> There are plenty of internet gateways visible in the Web UI, but
> fog can't do any operations on them. This state persists across
> runs of fog.
>
> Any ideas? - we're using 'fog', '~> 1.22.0'
>
> thanks
>
> James M
>
> --
> You received this message because you are subscribed to the Google
> Groups "ruby-fog" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to ruby-fog+u...@googlegroups.com
> <mailto:ruby-fog+u...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "ruby-fog" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ruby-fog/kpqRJwhG7_k/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> ruby-fog+u...@googlegroups.com
> <mailto:ruby-fog+u...@googlegroups.com>.

geemus (Wesley Beary)

unread,
May 13, 2014, 1:19:46 PM5/13/14
to ruby...@googlegroups.com
Definitely strange, I'll try to dig in and offer feedback on the issue.



    For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to a topic in the
Google Groups "ruby-fog" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/ruby-fog/kpqRJwhG7_k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages