Discussion:
AWS: Error listing internet gateways
James Masson
2014-05-12 14:47:38 UTC
Permalink
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-***@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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
James Masson
2014-05-12 16:18:45 UTC
Permalink
As a quick workaround, we found that...

connection.internet_gateways.all(filter_goes_here)

...works as it should.

James M
Post by James Masson
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
`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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
geemus (Wesley Beary)
2014-05-12 18:51:28 UTC
Permalink
To clarify, it sometimes fails to work or never works? Could you open an
issue on the repo for it?
Post by James Masson
As a quick workaround, we found that...
connection.internet_gateways.all(filter_goes_here)
...works as it should.
James M
Post by James Masson
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)
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
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-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
James Masson
2014-05-13 15:26:26 UTC
Permalink
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
Post by geemus (Wesley Beary)
To clarify, it sometimes fails to work or never works? Could you open an
issue on the repo for it?
As a quick workaround, we found that...
connection.internet_gateways.all(filter_goes_here)
...works as it should.
James M
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
`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,
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-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
geemus (Wesley Beary)
2014-05-13 17:19:46 UTC
Permalink
Definitely strange, I'll try to dig in and offer feedback on the issue.
Post by James Masson
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
Post by geemus (Wesley Beary)
To clarify, it sometimes fails to work or never works? Could you open an
issue on the repo for it?
As a quick workaround, we found that...
connection.internet_gateways.all(filter_goes_here)
...works as it should.
James M
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
__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,
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
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-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Loading...