You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by "Caleb Call (JIRA)" <ji...@apache.org> on 2012/09/14 19:22:08 UTC
[jira] [Created] (CLOUDSTACK-105) /tmp/stream-unix.####.######
stale sockets causing inodes to run out on Xenserver
Caleb Call created CLOUDSTACK-105:
-------------------------------------
Summary: /tmp/stream-unix.####.###### stale sockets causing inodes to run out on Xenserver
Key: CLOUDSTACK-105
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-105
Project: CloudStack
Issue Type: Bug
Components: XenServer
Affects Versions: pre-4.0.0
Environment: Xenserver 6.0.2
Cloudstack 3.0.2
Reporter: Caleb Call
We came across an interesting issue in one of our clusters. We ran out of inodes on all of our cluster members (since when does this happen in 2012?). When this happened, it in turn made the / filesystem a read-only filesystem which in turn made all the hosts go in to emergency maintenance mode and as a result get marked down by Cloudstack. We found that it was caused by hundreds of thousands of stale socket files in /tmp named "stream-unix.####.######". To resolve the issue, we had to delete those stale socket files (find /tmp -name "*stream*" -mtime +7 -exec rm -v {} \;), then kill and restart xapi, then correct the emergency maintenance mode. These hosts had only been up for 45 days before this issue occurred.
In our scouring of the interwebs, the only other instance we've been able to find of this (or similar) happening is in the same setup we are currently running. Xenserver 6.0.2 with CS 3.0.2. Do these stream-unix sockets have anything to do with Cloudstack? I would think if this was a Xenserver issue (bug), there would be a lot more on the internet about this happening. For a temporary workaround, we've added a cronjob to cleanup these files but we'd really like to address the actual issue that's causing these sockets to become stale and not get cleaned-up.
--
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
Re: [jira] [Comment Edited] (CLOUDSTACK-105) /tmp/stream-unix.####.######
stale sockets causing inodes to run out on Xenserver
Posted by Dave Dunaway <da...@gmail.com>.
Ooops... somehow I managed to reply to an existing thread about something
else instead of a new email to the list. My apologies. I will file this bug
with my brain and apply the prepared patch 'beer.patch' ASAP!
On Fri, Mar 15, 2013 at 10:41 AM, Dave Dunaway <da...@gmail.com>wrote:
>
>
> Hey guys,
>
> We ran across a bug in Cloudplatform from Citrix that may exist in the
> Apache version as well, so here's my attempt to throw this out there for
> someone to verify.
>
> We had someone add a network where he entered the gateway IP as
> 192.168.100.08 ... note the last octet... '.08'. Cloudstack/CloudPortal ate
> the IP OK and processed the request and created an interface on the VR with
> that IP, but hosts on that network, when attempting to get a DHCP lease
> would never get answers as dnsmasq didn't like the IP address
> 192.168.100.08 ... it was freaking out due to syntax failure.
>
> so there's two issues I see that need to be checked:
>
> 1) That Cloudstack validates IPs for correctness (how 90's is that?!
> sigh...)
> 2) Error checking on the /root/edithosts.sh needs to be better as it
> appears to not exist.
>
> Anyhoot, I'll skip the QA rant, but hopefully these silly simple bug don't
> exist in the apache version.
> But it may be useful to check if they do. I would think there's a lot of
> places where IPs should validated
> and likely aren't. And I won't get into other data that a user may enter
> (ie: 'banana; drop database cloud;' :P)
>
> FRIDAY! WOO!
>
> evad
>
>
>
>
> On Fri, Mar 15, 2013 at 12:49 AM, Jason Davis <sc...@gmail.com> wrote:
>
>> Bumping this thread. Adding in users to see if anyone else has seen this.
>>
>> I am running into the exact same issue. XenServer 6.0.2, Basic networking
>> with bridging with CSP installed. However I am using CS 4.0.1.
>>
>> My issues arised after I rebooted my XS host outside of CS (I believe this
>> was due to inode exhaustion although i didn't realize this until later)
>> Upon start CS seemingly connects to the host for an indefinite amount of
>> time. Unfortunately nothing in logs explains why its behaving like this
>> (CS
>> management-server.log)
>>
>> So far I've tried setting the networking from bridge->ovs->bridge and
>> reinstalling the CSP with no success.
>>
>>
>> On Wed, Dec 5, 2012 at 6:08 PM, Jason Bausewein (JIRA) <jira@apache.org
>> >wrote:
>>
>> >
>> > [
>> >
>> https://issues.apache.org/jira/browse/CLOUDSTACK-105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13510950#comment-13510950
>> ]
>> >
>> > Jason Bausewein edited comment on CLOUDSTACK-105 at 12/6/12 12:07 AM:
>> > ----------------------------------------------------------------------
>> >
>> > I am able to reproduce this issue consistently. I have a single xen
>> host
>> > in a basic zone. I tracked it down to the following process creating
>> the
>> > stream-unix.****.**** files about every 10 seconds.
>> >
>> > root 8237 8223 0 09:59 ? 00:00:00 ovs-vsctl add-br xapi0
>> >
>> > Dec 5 09:59:15 xenserver1 ovs-vsctl: 00001|vsctl|INFO|Called as
>> ovs-vsctl
>> > add-br xapi0
>> > Dec 5 09:59:15 xenserver1 ovs-vsctl:
>> > 00002|stream_unix|ERR|/tmp/stream-unix.8237.0: connection to
>> > /var/run/openvswitch/db.sock failed: No such file or directory
>> > Dec 5 09:59:15 xenserver1 ovs-vsctl:
>> > 00003|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection
>> attempt
>> > failed (No such file or directory)
>> > Dec 5 09:59:16 xenserver1 ovs-vsctl:
>> > 00004|stream_unix|ERR|/tmp/stream-unix.8237.1: connection to
>> > /var/run/openvswitch/db.sock failed: No such file or directory
>> > Dec 5 09:59:16 xenserver1 ovs-vsctl:
>> > 00005|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection
>> attempt
>> > failed (No such file or directory)
>> > Dec 5 09:59:18 xenserver1 ovs-vsctl:
>> > 00006|stream_unix|ERR|/tmp/stream-unix.8237.2: connection to
>> > /var/run/openvswitch/db.sock failed: No such file or directory
>> > Dec 5 09:59:18 xenserver1 ovs-vsctl:
>> > 00007|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection
>> attempt
>> > failed (No such file or directory)
>> >
>> > These messages start immediately on boot. I attached my messages log
>> file.
>> >
>> > I am not using openvswitch. Is there something I need to turn off?
>> >
>> >
>> > was (Author: jbausewein):
>> > I am able to reproduce this issue consistently. I have a single xen
>> > host in a basic zone. I tracked it down to the following process
>> creating
>> > the stream-unix.****.**** files about every 10 seconds.
>> >
>> > root 8237 8223 0 09:59 ? 00:00:00 ovs-vsctl add-br xapi0
>> >
>> > Dec 5 09:59:15 xenserver1 ovs-vsctl: 00001|vsctl|INFO|Called as
>> ovs-vsctl
>> > add-br xapi0
>> > Dec 5 09:59:15 xenserver1 ovs-vsctl:
>> > 00002|stream_unix|ERR|/tmp/stream-unix.8237.0: connection to
>> > /var/run/openvswitch/db.sock failed: No such file or directory
>> > Dec 5 09:59:15 xenserver1 ovs-vsctl:
>> > 00003|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection
>> attempt
>> > failed (No such file or directory)
>> > Dec 5 09:59:16 xenserver1 ovs-vsctl:
>> > 00004|stream_unix|ERR|/tmp/stream-unix.8237.1: connection to
>> > /var/run/openvswitch/db.sock failed: No such file or directory
>> > Dec 5 09:59:16 xenserver1 ovs-vsctl:
>> > 00005|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection
>> attempt
>> > failed (No such file or directory)
>> > Dec 5 09:59:18 xenserver1 ovs-vsctl:
>> > 00006|stream_unix|ERR|/tmp/stream-unix.8237.2: connection to
>> > /var/run/openvswitch/db.sock failed: No such file or directory
>> > Dec 5 09:59:18 xenserver1 ovs-vsctl:
>> > 00007|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection
>> attempt
>> > failed (No such file or directory)
>> >
>> > I am not using openvswitch. Is there something I need to turn off?
>> >
>> >
>> > > /tmp/stream-unix.####.###### stale sockets causing inodes to run out
>> on
>> > Xenserver
>> > >
>> >
>> ---------------------------------------------------------------------------------
>> > >
>> > > Key: CLOUDSTACK-105
>> > > URL:
>> > https://issues.apache.org/jira/browse/CLOUDSTACK-105
>> > > Project: CloudStack
>> > > Issue Type: Bug
>> > > Security Level: Public(Anyone can view this level - this is the
>> > default.)
>> > > Components: XenServer
>> > > Affects Versions: pre-4.0.0
>> > > Environment: Xenserver 6.0.2
>> > > Cloudstack 3.0.2
>> > > Reporter: Caleb Call
>> > > Assignee: Devdeep Singh
>> > > Fix For: 4.1.0
>> > >
>> > > Attachments: messages
>> > >
>> > >
>> > > We came across an interesting issue in one of our clusters. We ran
>> out
>> > of inodes on all of our cluster members (since when does this happen in
>> > 2012?). When this happened, it in turn made the / filesystem a
>> read-only
>> > filesystem which in turn made all the hosts go in to emergency
>> maintenance
>> > mode and as a result get marked down by Cloudstack. We found that it
>> was
>> > caused by hundreds of thousands of stale socket files in /tmp named
>> > "stream-unix.####.######". To resolve the issue, we had to delete those
>> > stale socket files (find /tmp -name "*stream*" -mtime +7 -exec rm -v {}
>> > \;), then kill and restart xapi, then correct the emergency maintenance
>> > mode. These hosts had only been up for 45 days before this issue
>> occurred.
>> > > In our scouring of the interwebs, the only other instance we've been
>> > able to find of this (or similar) happening is in the same setup we are
>> > currently running. Xenserver 6.0.2 with CS 3.0.2. Do these stream-unix
>> > sockets have anything to do with Cloudstack? I would think if this was
>> a
>> > Xenserver issue (bug), there would be a lot more on the internet about
>> this
>> > happening. For a temporary workaround, we've added a cronjob to cleanup
>> > these files but we'd really like to address the actual issue that's
>> causing
>> > these sockets to become stale and not get cleaned-up.
>> >
>> > --
>> > 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
>> >
>>
>
>
Re: [jira] [Comment Edited] (CLOUDSTACK-105) /tmp/stream-unix.####.######
stale sockets causing inodes to run out on Xenserver
Posted by Dave Dunaway <da...@gmail.com>.
Hey guys,
We ran across a bug in Cloudplatform from Citrix that may exist in the
Apache version as well, so here's my attempt to throw this out there for
someone to verify.
We had someone add a network where he entered the gateway IP as
192.168.100.08 ... note the last octet... '.08'. Cloudstack/CloudPortal ate
the IP OK and processed the request and created an interface on the VR with
that IP, but hosts on that network, when attempting to get a DHCP lease
would never get answers as dnsmasq didn't like the IP address
192.168.100.08 ... it was freaking out due to syntax failure.
so there's two issues I see that need to be checked:
1) That Cloudstack validates IPs for correctness (how 90's is that?!
sigh...)
2) Error checking on the /root/edithosts.sh needs to be better as it
appears to not exist.
Anyhoot, I'll skip the QA rant, but hopefully these silly simple bug don't
exist in the apache version.
But it may be useful to check if they do. I would think there's a lot of
places where IPs should validated
and likely aren't. And I won't get into other data that a user may enter
(ie: 'banana; drop database cloud;' :P)
FRIDAY! WOO!
evad
On Fri, Mar 15, 2013 at 12:49 AM, Jason Davis <sc...@gmail.com> wrote:
> Bumping this thread. Adding in users to see if anyone else has seen this.
>
> I am running into the exact same issue. XenServer 6.0.2, Basic networking
> with bridging with CSP installed. However I am using CS 4.0.1.
>
> My issues arised after I rebooted my XS host outside of CS (I believe this
> was due to inode exhaustion although i didn't realize this until later)
> Upon start CS seemingly connects to the host for an indefinite amount of
> time. Unfortunately nothing in logs explains why its behaving like this (CS
> management-server.log)
>
> So far I've tried setting the networking from bridge->ovs->bridge and
> reinstalling the CSP with no success.
>
>
> On Wed, Dec 5, 2012 at 6:08 PM, Jason Bausewein (JIRA) <jira@apache.org
> >wrote:
>
> >
> > [
> >
> https://issues.apache.org/jira/browse/CLOUDSTACK-105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13510950#comment-13510950
> ]
> >
> > Jason Bausewein edited comment on CLOUDSTACK-105 at 12/6/12 12:07 AM:
> > ----------------------------------------------------------------------
> >
> > I am able to reproduce this issue consistently. I have a single xen host
> > in a basic zone. I tracked it down to the following process creating the
> > stream-unix.****.**** files about every 10 seconds.
> >
> > root 8237 8223 0 09:59 ? 00:00:00 ovs-vsctl add-br xapi0
> >
> > Dec 5 09:59:15 xenserver1 ovs-vsctl: 00001|vsctl|INFO|Called as
> ovs-vsctl
> > add-br xapi0
> > Dec 5 09:59:15 xenserver1 ovs-vsctl:
> > 00002|stream_unix|ERR|/tmp/stream-unix.8237.0: connection to
> > /var/run/openvswitch/db.sock failed: No such file or directory
> > Dec 5 09:59:15 xenserver1 ovs-vsctl:
> > 00003|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection
> attempt
> > failed (No such file or directory)
> > Dec 5 09:59:16 xenserver1 ovs-vsctl:
> > 00004|stream_unix|ERR|/tmp/stream-unix.8237.1: connection to
> > /var/run/openvswitch/db.sock failed: No such file or directory
> > Dec 5 09:59:16 xenserver1 ovs-vsctl:
> > 00005|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection
> attempt
> > failed (No such file or directory)
> > Dec 5 09:59:18 xenserver1 ovs-vsctl:
> > 00006|stream_unix|ERR|/tmp/stream-unix.8237.2: connection to
> > /var/run/openvswitch/db.sock failed: No such file or directory
> > Dec 5 09:59:18 xenserver1 ovs-vsctl:
> > 00007|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection
> attempt
> > failed (No such file or directory)
> >
> > These messages start immediately on boot. I attached my messages log
> file.
> >
> > I am not using openvswitch. Is there something I need to turn off?
> >
> >
> > was (Author: jbausewein):
> > I am able to reproduce this issue consistently. I have a single xen
> > host in a basic zone. I tracked it down to the following process
> creating
> > the stream-unix.****.**** files about every 10 seconds.
> >
> > root 8237 8223 0 09:59 ? 00:00:00 ovs-vsctl add-br xapi0
> >
> > Dec 5 09:59:15 xenserver1 ovs-vsctl: 00001|vsctl|INFO|Called as
> ovs-vsctl
> > add-br xapi0
> > Dec 5 09:59:15 xenserver1 ovs-vsctl:
> > 00002|stream_unix|ERR|/tmp/stream-unix.8237.0: connection to
> > /var/run/openvswitch/db.sock failed: No such file or directory
> > Dec 5 09:59:15 xenserver1 ovs-vsctl:
> > 00003|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection
> attempt
> > failed (No such file or directory)
> > Dec 5 09:59:16 xenserver1 ovs-vsctl:
> > 00004|stream_unix|ERR|/tmp/stream-unix.8237.1: connection to
> > /var/run/openvswitch/db.sock failed: No such file or directory
> > Dec 5 09:59:16 xenserver1 ovs-vsctl:
> > 00005|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection
> attempt
> > failed (No such file or directory)
> > Dec 5 09:59:18 xenserver1 ovs-vsctl:
> > 00006|stream_unix|ERR|/tmp/stream-unix.8237.2: connection to
> > /var/run/openvswitch/db.sock failed: No such file or directory
> > Dec 5 09:59:18 xenserver1 ovs-vsctl:
> > 00007|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection
> attempt
> > failed (No such file or directory)
> >
> > I am not using openvswitch. Is there something I need to turn off?
> >
> >
> > > /tmp/stream-unix.####.###### stale sockets causing inodes to run out on
> > Xenserver
> > >
> >
> ---------------------------------------------------------------------------------
> > >
> > > Key: CLOUDSTACK-105
> > > URL:
> > https://issues.apache.org/jira/browse/CLOUDSTACK-105
> > > Project: CloudStack
> > > Issue Type: Bug
> > > Security Level: Public(Anyone can view this level - this is the
> > default.)
> > > Components: XenServer
> > > Affects Versions: pre-4.0.0
> > > Environment: Xenserver 6.0.2
> > > Cloudstack 3.0.2
> > > Reporter: Caleb Call
> > > Assignee: Devdeep Singh
> > > Fix For: 4.1.0
> > >
> > > Attachments: messages
> > >
> > >
> > > We came across an interesting issue in one of our clusters. We ran out
> > of inodes on all of our cluster members (since when does this happen in
> > 2012?). When this happened, it in turn made the / filesystem a read-only
> > filesystem which in turn made all the hosts go in to emergency
> maintenance
> > mode and as a result get marked down by Cloudstack. We found that it was
> > caused by hundreds of thousands of stale socket files in /tmp named
> > "stream-unix.####.######". To resolve the issue, we had to delete those
> > stale socket files (find /tmp -name "*stream*" -mtime +7 -exec rm -v {}
> > \;), then kill and restart xapi, then correct the emergency maintenance
> > mode. These hosts had only been up for 45 days before this issue
> occurred.
> > > In our scouring of the interwebs, the only other instance we've been
> > able to find of this (or similar) happening is in the same setup we are
> > currently running. Xenserver 6.0.2 with CS 3.0.2. Do these stream-unix
> > sockets have anything to do with Cloudstack? I would think if this was a
> > Xenserver issue (bug), there would be a lot more on the internet about
> this
> > happening. For a temporary workaround, we've added a cronjob to cleanup
> > these files but we'd really like to address the actual issue that's
> causing
> > these sockets to become stale and not get cleaned-up.
> >
> > --
> > 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
> >
>
Re: [jira] [Comment Edited] (CLOUDSTACK-105) /tmp/stream-unix.####.######
stale sockets causing inodes to run out on Xenserver
Posted by Jason Davis <sc...@gmail.com>.
Bumping this thread. Adding in users to see if anyone else has seen this.
I am running into the exact same issue. XenServer 6.0.2, Basic networking
with bridging with CSP installed. However I am using CS 4.0.1.
My issues arised after I rebooted my XS host outside of CS (I believe this
was due to inode exhaustion although i didn't realize this until later)
Upon start CS seemingly connects to the host for an indefinite amount of
time. Unfortunately nothing in logs explains why its behaving like this (CS
management-server.log)
So far I've tried setting the networking from bridge->ovs->bridge and
reinstalling the CSP with no success.
On Wed, Dec 5, 2012 at 6:08 PM, Jason Bausewein (JIRA) <ji...@apache.org>wrote:
>
> [
> https://issues.apache.org/jira/browse/CLOUDSTACK-105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13510950#comment-13510950]
>
> Jason Bausewein edited comment on CLOUDSTACK-105 at 12/6/12 12:07 AM:
> ----------------------------------------------------------------------
>
> I am able to reproduce this issue consistently. I have a single xen host
> in a basic zone. I tracked it down to the following process creating the
> stream-unix.****.**** files about every 10 seconds.
>
> root 8237 8223 0 09:59 ? 00:00:00 ovs-vsctl add-br xapi0
>
> Dec 5 09:59:15 xenserver1 ovs-vsctl: 00001|vsctl|INFO|Called as ovs-vsctl
> add-br xapi0
> Dec 5 09:59:15 xenserver1 ovs-vsctl:
> 00002|stream_unix|ERR|/tmp/stream-unix.8237.0: connection to
> /var/run/openvswitch/db.sock failed: No such file or directory
> Dec 5 09:59:15 xenserver1 ovs-vsctl:
> 00003|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt
> failed (No such file or directory)
> Dec 5 09:59:16 xenserver1 ovs-vsctl:
> 00004|stream_unix|ERR|/tmp/stream-unix.8237.1: connection to
> /var/run/openvswitch/db.sock failed: No such file or directory
> Dec 5 09:59:16 xenserver1 ovs-vsctl:
> 00005|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt
> failed (No such file or directory)
> Dec 5 09:59:18 xenserver1 ovs-vsctl:
> 00006|stream_unix|ERR|/tmp/stream-unix.8237.2: connection to
> /var/run/openvswitch/db.sock failed: No such file or directory
> Dec 5 09:59:18 xenserver1 ovs-vsctl:
> 00007|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt
> failed (No such file or directory)
>
> These messages start immediately on boot. I attached my messages log file.
>
> I am not using openvswitch. Is there something I need to turn off?
>
>
> was (Author: jbausewein):
> I am able to reproduce this issue consistently. I have a single xen
> host in a basic zone. I tracked it down to the following process creating
> the stream-unix.****.**** files about every 10 seconds.
>
> root 8237 8223 0 09:59 ? 00:00:00 ovs-vsctl add-br xapi0
>
> Dec 5 09:59:15 xenserver1 ovs-vsctl: 00001|vsctl|INFO|Called as ovs-vsctl
> add-br xapi0
> Dec 5 09:59:15 xenserver1 ovs-vsctl:
> 00002|stream_unix|ERR|/tmp/stream-unix.8237.0: connection to
> /var/run/openvswitch/db.sock failed: No such file or directory
> Dec 5 09:59:15 xenserver1 ovs-vsctl:
> 00003|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt
> failed (No such file or directory)
> Dec 5 09:59:16 xenserver1 ovs-vsctl:
> 00004|stream_unix|ERR|/tmp/stream-unix.8237.1: connection to
> /var/run/openvswitch/db.sock failed: No such file or directory
> Dec 5 09:59:16 xenserver1 ovs-vsctl:
> 00005|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt
> failed (No such file or directory)
> Dec 5 09:59:18 xenserver1 ovs-vsctl:
> 00006|stream_unix|ERR|/tmp/stream-unix.8237.2: connection to
> /var/run/openvswitch/db.sock failed: No such file or directory
> Dec 5 09:59:18 xenserver1 ovs-vsctl:
> 00007|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt
> failed (No such file or directory)
>
> I am not using openvswitch. Is there something I need to turn off?
>
>
> > /tmp/stream-unix.####.###### stale sockets causing inodes to run out on
> Xenserver
> >
> ---------------------------------------------------------------------------------
> >
> > Key: CLOUDSTACK-105
> > URL:
> https://issues.apache.org/jira/browse/CLOUDSTACK-105
> > Project: CloudStack
> > Issue Type: Bug
> > Security Level: Public(Anyone can view this level - this is the
> default.)
> > Components: XenServer
> > Affects Versions: pre-4.0.0
> > Environment: Xenserver 6.0.2
> > Cloudstack 3.0.2
> > Reporter: Caleb Call
> > Assignee: Devdeep Singh
> > Fix For: 4.1.0
> >
> > Attachments: messages
> >
> >
> > We came across an interesting issue in one of our clusters. We ran out
> of inodes on all of our cluster members (since when does this happen in
> 2012?). When this happened, it in turn made the / filesystem a read-only
> filesystem which in turn made all the hosts go in to emergency maintenance
> mode and as a result get marked down by Cloudstack. We found that it was
> caused by hundreds of thousands of stale socket files in /tmp named
> "stream-unix.####.######". To resolve the issue, we had to delete those
> stale socket files (find /tmp -name "*stream*" -mtime +7 -exec rm -v {}
> \;), then kill and restart xapi, then correct the emergency maintenance
> mode. These hosts had only been up for 45 days before this issue occurred.
> > In our scouring of the interwebs, the only other instance we've been
> able to find of this (or similar) happening is in the same setup we are
> currently running. Xenserver 6.0.2 with CS 3.0.2. Do these stream-unix
> sockets have anything to do with Cloudstack? I would think if this was a
> Xenserver issue (bug), there would be a lot more on the internet about this
> happening. For a temporary workaround, we've added a cronjob to cleanup
> these files but we'd really like to address the actual issue that's causing
> these sockets to become stale and not get cleaned-up.
>
> --
> 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
>
Re: [jira] [Comment Edited] (CLOUDSTACK-105) /tmp/stream-unix.####.######
stale sockets causing inodes to run out on Xenserver
Posted by Jason Davis <sc...@gmail.com>.
Bumping this thread. Adding in users to see if anyone else has seen this.
I am running into the exact same issue. XenServer 6.0.2, Basic networking
with bridging with CSP installed. However I am using CS 4.0.1.
My issues arised after I rebooted my XS host outside of CS (I believe this
was due to inode exhaustion although i didn't realize this until later)
Upon start CS seemingly connects to the host for an indefinite amount of
time. Unfortunately nothing in logs explains why its behaving like this (CS
management-server.log)
So far I've tried setting the networking from bridge->ovs->bridge and
reinstalling the CSP with no success.
On Wed, Dec 5, 2012 at 6:08 PM, Jason Bausewein (JIRA) <ji...@apache.org>wrote:
>
> [
> https://issues.apache.org/jira/browse/CLOUDSTACK-105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13510950#comment-13510950]
>
> Jason Bausewein edited comment on CLOUDSTACK-105 at 12/6/12 12:07 AM:
> ----------------------------------------------------------------------
>
> I am able to reproduce this issue consistently. I have a single xen host
> in a basic zone. I tracked it down to the following process creating the
> stream-unix.****.**** files about every 10 seconds.
>
> root 8237 8223 0 09:59 ? 00:00:00 ovs-vsctl add-br xapi0
>
> Dec 5 09:59:15 xenserver1 ovs-vsctl: 00001|vsctl|INFO|Called as ovs-vsctl
> add-br xapi0
> Dec 5 09:59:15 xenserver1 ovs-vsctl:
> 00002|stream_unix|ERR|/tmp/stream-unix.8237.0: connection to
> /var/run/openvswitch/db.sock failed: No such file or directory
> Dec 5 09:59:15 xenserver1 ovs-vsctl:
> 00003|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt
> failed (No such file or directory)
> Dec 5 09:59:16 xenserver1 ovs-vsctl:
> 00004|stream_unix|ERR|/tmp/stream-unix.8237.1: connection to
> /var/run/openvswitch/db.sock failed: No such file or directory
> Dec 5 09:59:16 xenserver1 ovs-vsctl:
> 00005|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt
> failed (No such file or directory)
> Dec 5 09:59:18 xenserver1 ovs-vsctl:
> 00006|stream_unix|ERR|/tmp/stream-unix.8237.2: connection to
> /var/run/openvswitch/db.sock failed: No such file or directory
> Dec 5 09:59:18 xenserver1 ovs-vsctl:
> 00007|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt
> failed (No such file or directory)
>
> These messages start immediately on boot. I attached my messages log file.
>
> I am not using openvswitch. Is there something I need to turn off?
>
>
> was (Author: jbausewein):
> I am able to reproduce this issue consistently. I have a single xen
> host in a basic zone. I tracked it down to the following process creating
> the stream-unix.****.**** files about every 10 seconds.
>
> root 8237 8223 0 09:59 ? 00:00:00 ovs-vsctl add-br xapi0
>
> Dec 5 09:59:15 xenserver1 ovs-vsctl: 00001|vsctl|INFO|Called as ovs-vsctl
> add-br xapi0
> Dec 5 09:59:15 xenserver1 ovs-vsctl:
> 00002|stream_unix|ERR|/tmp/stream-unix.8237.0: connection to
> /var/run/openvswitch/db.sock failed: No such file or directory
> Dec 5 09:59:15 xenserver1 ovs-vsctl:
> 00003|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt
> failed (No such file or directory)
> Dec 5 09:59:16 xenserver1 ovs-vsctl:
> 00004|stream_unix|ERR|/tmp/stream-unix.8237.1: connection to
> /var/run/openvswitch/db.sock failed: No such file or directory
> Dec 5 09:59:16 xenserver1 ovs-vsctl:
> 00005|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt
> failed (No such file or directory)
> Dec 5 09:59:18 xenserver1 ovs-vsctl:
> 00006|stream_unix|ERR|/tmp/stream-unix.8237.2: connection to
> /var/run/openvswitch/db.sock failed: No such file or directory
> Dec 5 09:59:18 xenserver1 ovs-vsctl:
> 00007|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt
> failed (No such file or directory)
>
> I am not using openvswitch. Is there something I need to turn off?
>
>
> > /tmp/stream-unix.####.###### stale sockets causing inodes to run out on
> Xenserver
> >
> ---------------------------------------------------------------------------------
> >
> > Key: CLOUDSTACK-105
> > URL:
> https://issues.apache.org/jira/browse/CLOUDSTACK-105
> > Project: CloudStack
> > Issue Type: Bug
> > Security Level: Public(Anyone can view this level - this is the
> default.)
> > Components: XenServer
> > Affects Versions: pre-4.0.0
> > Environment: Xenserver 6.0.2
> > Cloudstack 3.0.2
> > Reporter: Caleb Call
> > Assignee: Devdeep Singh
> > Fix For: 4.1.0
> >
> > Attachments: messages
> >
> >
> > We came across an interesting issue in one of our clusters. We ran out
> of inodes on all of our cluster members (since when does this happen in
> 2012?). When this happened, it in turn made the / filesystem a read-only
> filesystem which in turn made all the hosts go in to emergency maintenance
> mode and as a result get marked down by Cloudstack. We found that it was
> caused by hundreds of thousands of stale socket files in /tmp named
> "stream-unix.####.######". To resolve the issue, we had to delete those
> stale socket files (find /tmp -name "*stream*" -mtime +7 -exec rm -v {}
> \;), then kill and restart xapi, then correct the emergency maintenance
> mode. These hosts had only been up for 45 days before this issue occurred.
> > In our scouring of the interwebs, the only other instance we've been
> able to find of this (or similar) happening is in the same setup we are
> currently running. Xenserver 6.0.2 with CS 3.0.2. Do these stream-unix
> sockets have anything to do with Cloudstack? I would think if this was a
> Xenserver issue (bug), there would be a lot more on the internet about this
> happening. For a temporary workaround, we've added a cronjob to cleanup
> these files but we'd really like to address the actual issue that's causing
> these sockets to become stale and not get cleaned-up.
>
> --
> 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
>
[jira] [Commented] (CLOUDSTACK-105) /tmp/stream-unix.####.######
stale sockets causing inodes to run out on Xenserver
Posted by "Rajesh Battala (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13462892#comment-13462892 ]
Rajesh Battala commented on CLOUDSTACK-105:
-------------------------------------------
CSP means Cloudstack Supplementary Pack. supplementary packages installed on your xenserver hosts are the cloudstack supplementary packages?
> /tmp/stream-unix.####.###### stale sockets causing inodes to run out on Xenserver
> ---------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-105
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-105
> Project: CloudStack
> Issue Type: Bug
> Components: XenServer
> Affects Versions: pre-4.0.0
> Environment: Xenserver 6.0.2
> Cloudstack 3.0.2
> Reporter: Caleb Call
> Assignee: Devdeep Singh
> Fix For: pre-4.0.0
>
>
> We came across an interesting issue in one of our clusters. We ran out of inodes on all of our cluster members (since when does this happen in 2012?). When this happened, it in turn made the / filesystem a read-only filesystem which in turn made all the hosts go in to emergency maintenance mode and as a result get marked down by Cloudstack. We found that it was caused by hundreds of thousands of stale socket files in /tmp named "stream-unix.####.######". To resolve the issue, we had to delete those stale socket files (find /tmp -name "*stream*" -mtime +7 -exec rm -v {} \;), then kill and restart xapi, then correct the emergency maintenance mode. These hosts had only been up for 45 days before this issue occurred.
> In our scouring of the interwebs, the only other instance we've been able to find of this (or similar) happening is in the same setup we are currently running. Xenserver 6.0.2 with CS 3.0.2. Do these stream-unix sockets have anything to do with Cloudstack? I would think if this was a Xenserver issue (bug), there would be a lot more on the internet about this happening. For a temporary workaround, we've added a cronjob to cleanup these files but we'd really like to address the actual issue that's causing these sockets to become stale and not get cleaned-up.
--
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
[jira] [Commented] (CLOUDSTACK-105) /tmp/stream-unix.####.######
stale sockets causing inodes to run out on Xenserver
Posted by "Devdeep Singh (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13462811#comment-13462811 ]
Devdeep Singh commented on CLOUDSTACK-105:
------------------------------------------
One way I could trigger creation of stale scoket files in a Xenserver host was to have host part of a zone that uses basic networking and CSP packages installed. Open vswitch is disabled. If the host is part of a pool and a new master is designated (probably triggered by cloudstack), stale socket files are left behind.
Caleb, can you look up the management server logs and see if CloudStack is sending commands to designate a new master? If this is the case, the issue would be with Xenserver leaving behind stale files. We can follow up accordingly.
> /tmp/stream-unix.####.###### stale sockets causing inodes to run out on Xenserver
> ---------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-105
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-105
> Project: CloudStack
> Issue Type: Bug
> Components: XenServer
> Affects Versions: pre-4.0.0
> Environment: Xenserver 6.0.2
> Cloudstack 3.0.2
> Reporter: Caleb Call
> Assignee: Devdeep Singh
> Fix For: pre-4.0.0
>
>
> We came across an interesting issue in one of our clusters. We ran out of inodes on all of our cluster members (since when does this happen in 2012?). When this happened, it in turn made the / filesystem a read-only filesystem which in turn made all the hosts go in to emergency maintenance mode and as a result get marked down by Cloudstack. We found that it was caused by hundreds of thousands of stale socket files in /tmp named "stream-unix.####.######". To resolve the issue, we had to delete those stale socket files (find /tmp -name "*stream*" -mtime +7 -exec rm -v {} \;), then kill and restart xapi, then correct the emergency maintenance mode. These hosts had only been up for 45 days before this issue occurred.
> In our scouring of the interwebs, the only other instance we've been able to find of this (or similar) happening is in the same setup we are currently running. Xenserver 6.0.2 with CS 3.0.2. Do these stream-unix sockets have anything to do with Cloudstack? I would think if this was a Xenserver issue (bug), there would be a lot more on the internet about this happening. For a temporary workaround, we've added a cronjob to cleanup these files but we'd really like to address the actual issue that's causing these sockets to become stale and not get cleaned-up.
--
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
[jira] [Commented] (CLOUDSTACK-105) /tmp/stream-unix.####.######
stale sockets causing inodes to run out on Xenserver
Posted by "Caleb Call (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13462882#comment-13462882 ]
Caleb Call commented on CLOUDSTACK-105:
---------------------------------------
Our setup is using basic networking and I'm not 100% certain by what you mean with having CSP packages installed. We don't have Cloudstack Platform anything installed if that's what you mean. We do have the supplemental package installed on our Xenserver hosts. This is observed on all hosts in all zones. We have three separate zones, one with three hosts, and two with single hosts. The single node zones have currently ~10-15 instances running on them and the three node zone has ~30-40 instances running on it.
I will look through our management server logs and see if a new master is being designated by Cloudstack. For the single node zones, I don't see that being the issue though.
> /tmp/stream-unix.####.###### stale sockets causing inodes to run out on Xenserver
> ---------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-105
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-105
> Project: CloudStack
> Issue Type: Bug
> Components: XenServer
> Affects Versions: pre-4.0.0
> Environment: Xenserver 6.0.2
> Cloudstack 3.0.2
> Reporter: Caleb Call
> Assignee: Devdeep Singh
> Fix For: pre-4.0.0
>
>
> We came across an interesting issue in one of our clusters. We ran out of inodes on all of our cluster members (since when does this happen in 2012?). When this happened, it in turn made the / filesystem a read-only filesystem which in turn made all the hosts go in to emergency maintenance mode and as a result get marked down by Cloudstack. We found that it was caused by hundreds of thousands of stale socket files in /tmp named "stream-unix.####.######". To resolve the issue, we had to delete those stale socket files (find /tmp -name "*stream*" -mtime +7 -exec rm -v {} \;), then kill and restart xapi, then correct the emergency maintenance mode. These hosts had only been up for 45 days before this issue occurred.
> In our scouring of the interwebs, the only other instance we've been able to find of this (or similar) happening is in the same setup we are currently running. Xenserver 6.0.2 with CS 3.0.2. Do these stream-unix sockets have anything to do with Cloudstack? I would think if this was a Xenserver issue (bug), there would be a lot more on the internet about this happening. For a temporary workaround, we've added a cronjob to cleanup these files but we'd really like to address the actual issue that's causing these sockets to become stale and not get cleaned-up.
--
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
[jira] [Comment Edited] (CLOUDSTACK-105)
/tmp/stream-unix.####.###### stale sockets causing inodes to run out on
Xenserver
Posted by "Jason Bausewein (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13510950#comment-13510950 ]
Jason Bausewein edited comment on CLOUDSTACK-105 at 12/6/12 12:07 AM:
----------------------------------------------------------------------
I am able to reproduce this issue consistently. I have a single xen host in a basic zone. I tracked it down to the following process creating the stream-unix.****.**** files about every 10 seconds.
root 8237 8223 0 09:59 ? 00:00:00 ovs-vsctl add-br xapi0
Dec 5 09:59:15 xenserver1 ovs-vsctl: 00001|vsctl|INFO|Called as ovs-vsctl add-br xapi0
Dec 5 09:59:15 xenserver1 ovs-vsctl: 00002|stream_unix|ERR|/tmp/stream-unix.8237.0: connection to /var/run/openvswitch/db.sock failed: No such file or directory
Dec 5 09:59:15 xenserver1 ovs-vsctl: 00003|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory)
Dec 5 09:59:16 xenserver1 ovs-vsctl: 00004|stream_unix|ERR|/tmp/stream-unix.8237.1: connection to /var/run/openvswitch/db.sock failed: No such file or directory
Dec 5 09:59:16 xenserver1 ovs-vsctl: 00005|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory)
Dec 5 09:59:18 xenserver1 ovs-vsctl: 00006|stream_unix|ERR|/tmp/stream-unix.8237.2: connection to /var/run/openvswitch/db.sock failed: No such file or directory
Dec 5 09:59:18 xenserver1 ovs-vsctl: 00007|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory)
These messages start immediately on boot. I attached my messages log file.
I am not using openvswitch. Is there something I need to turn off?
was (Author: jbausewein):
I am able to reproduce this issue consistently. I have a single xen host in a basic zone. I tracked it down to the following process creating the stream-unix.****.**** files about every 10 seconds.
root 8237 8223 0 09:59 ? 00:00:00 ovs-vsctl add-br xapi0
Dec 5 09:59:15 xenserver1 ovs-vsctl: 00001|vsctl|INFO|Called as ovs-vsctl add-br xapi0
Dec 5 09:59:15 xenserver1 ovs-vsctl: 00002|stream_unix|ERR|/tmp/stream-unix.8237.0: connection to /var/run/openvswitch/db.sock failed: No such file or directory
Dec 5 09:59:15 xenserver1 ovs-vsctl: 00003|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory)
Dec 5 09:59:16 xenserver1 ovs-vsctl: 00004|stream_unix|ERR|/tmp/stream-unix.8237.1: connection to /var/run/openvswitch/db.sock failed: No such file or directory
Dec 5 09:59:16 xenserver1 ovs-vsctl: 00005|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory)
Dec 5 09:59:18 xenserver1 ovs-vsctl: 00006|stream_unix|ERR|/tmp/stream-unix.8237.2: connection to /var/run/openvswitch/db.sock failed: No such file or directory
Dec 5 09:59:18 xenserver1 ovs-vsctl: 00007|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory)
I am not using openvswitch. Is there something I need to turn off?
> /tmp/stream-unix.####.###### stale sockets causing inodes to run out on Xenserver
> ---------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-105
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-105
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the default.)
> Components: XenServer
> Affects Versions: pre-4.0.0
> Environment: Xenserver 6.0.2
> Cloudstack 3.0.2
> Reporter: Caleb Call
> Assignee: Devdeep Singh
> Fix For: 4.1.0
>
> Attachments: messages
>
>
> We came across an interesting issue in one of our clusters. We ran out of inodes on all of our cluster members (since when does this happen in 2012?). When this happened, it in turn made the / filesystem a read-only filesystem which in turn made all the hosts go in to emergency maintenance mode and as a result get marked down by Cloudstack. We found that it was caused by hundreds of thousands of stale socket files in /tmp named "stream-unix.####.######". To resolve the issue, we had to delete those stale socket files (find /tmp -name "*stream*" -mtime +7 -exec rm -v {} \;), then kill and restart xapi, then correct the emergency maintenance mode. These hosts had only been up for 45 days before this issue occurred.
> In our scouring of the interwebs, the only other instance we've been able to find of this (or similar) happening is in the same setup we are currently running. Xenserver 6.0.2 with CS 3.0.2. Do these stream-unix sockets have anything to do with Cloudstack? I would think if this was a Xenserver issue (bug), there would be a lot more on the internet about this happening. For a temporary workaround, we've added a cronjob to cleanup these files but we'd really like to address the actual issue that's causing these sockets to become stale and not get cleaned-up.
--
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
[jira] [Updated] (CLOUDSTACK-105) /tmp/stream-unix.####.######
stale sockets causing inodes to run out on Xenserver
Posted by "Alex Huang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Huang updated CLOUDSTACK-105:
----------------------------------
Fix Version/s: (was: pre-4.0.0)
4.1.0
> /tmp/stream-unix.####.###### stale sockets causing inodes to run out on Xenserver
> ---------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-105
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-105
> Project: CloudStack
> Issue Type: Bug
> Components: XenServer
> Affects Versions: pre-4.0.0
> Environment: Xenserver 6.0.2
> Cloudstack 3.0.2
> Reporter: Caleb Call
> Assignee: Devdeep Singh
> Fix For: 4.1.0
>
>
> We came across an interesting issue in one of our clusters. We ran out of inodes on all of our cluster members (since when does this happen in 2012?). When this happened, it in turn made the / filesystem a read-only filesystem which in turn made all the hosts go in to emergency maintenance mode and as a result get marked down by Cloudstack. We found that it was caused by hundreds of thousands of stale socket files in /tmp named "stream-unix.####.######". To resolve the issue, we had to delete those stale socket files (find /tmp -name "*stream*" -mtime +7 -exec rm -v {} \;), then kill and restart xapi, then correct the emergency maintenance mode. These hosts had only been up for 45 days before this issue occurred.
> In our scouring of the interwebs, the only other instance we've been able to find of this (or similar) happening is in the same setup we are currently running. Xenserver 6.0.2 with CS 3.0.2. Do these stream-unix sockets have anything to do with Cloudstack? I would think if this was a Xenserver issue (bug), there would be a lot more on the internet about this happening. For a temporary workaround, we've added a cronjob to cleanup these files but we'd really like to address the actual issue that's causing these sockets to become stale and not get cleaned-up.
--
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
[jira] [Commented] (CLOUDSTACK-105) /tmp/stream-unix.####.######
stale sockets causing inodes to run out on Xenserver
Posted by "Devdeep Singh (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13463594#comment-13463594 ]
Devdeep Singh commented on CLOUDSTACK-105:
------------------------------------------
Besides looking into the management server logs, can you also look into the /var/log/xensource.log on the Xenserver host to identify the commands that may be getting executed on the host. Please look for the xapi commands being run around the time the stale socket files are created.
Can you also confirm the out of /etc/xensource/network.conf file; whether it is "openvswitch" or "bridge"?
> /tmp/stream-unix.####.###### stale sockets causing inodes to run out on Xenserver
> ---------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-105
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-105
> Project: CloudStack
> Issue Type: Bug
> Components: XenServer
> Affects Versions: pre-4.0.0
> Environment: Xenserver 6.0.2
> Cloudstack 3.0.2
> Reporter: Caleb Call
> Assignee: Devdeep Singh
> Fix For: pre-4.0.0
>
>
> We came across an interesting issue in one of our clusters. We ran out of inodes on all of our cluster members (since when does this happen in 2012?). When this happened, it in turn made the / filesystem a read-only filesystem which in turn made all the hosts go in to emergency maintenance mode and as a result get marked down by Cloudstack. We found that it was caused by hundreds of thousands of stale socket files in /tmp named "stream-unix.####.######". To resolve the issue, we had to delete those stale socket files (find /tmp -name "*stream*" -mtime +7 -exec rm -v {} \;), then kill and restart xapi, then correct the emergency maintenance mode. These hosts had only been up for 45 days before this issue occurred.
> In our scouring of the interwebs, the only other instance we've been able to find of this (or similar) happening is in the same setup we are currently running. Xenserver 6.0.2 with CS 3.0.2. Do these stream-unix sockets have anything to do with Cloudstack? I would think if this was a Xenserver issue (bug), there would be a lot more on the internet about this happening. For a temporary workaround, we've added a cronjob to cleanup these files but we'd really like to address the actual issue that's causing these sockets to become stale and not get cleaned-up.
--
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
[jira] [Commented] (CLOUDSTACK-105) /tmp/stream-unix.####.######
stale sockets causing inodes to run out on Xenserver
Posted by "Caleb Call (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13455964#comment-13455964 ]
Caleb Call commented on CLOUDSTACK-105:
---------------------------------------
Primary storage is on SAN (fiber attached), Secondary is on NFS.
> /tmp/stream-unix.####.###### stale sockets causing inodes to run out on Xenserver
> ---------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-105
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-105
> Project: CloudStack
> Issue Type: Bug
> Components: XenServer
> Affects Versions: pre-4.0.0
> Environment: Xenserver 6.0.2
> Cloudstack 3.0.2
> Reporter: Caleb Call
>
> We came across an interesting issue in one of our clusters. We ran out of inodes on all of our cluster members (since when does this happen in 2012?). When this happened, it in turn made the / filesystem a read-only filesystem which in turn made all the hosts go in to emergency maintenance mode and as a result get marked down by Cloudstack. We found that it was caused by hundreds of thousands of stale socket files in /tmp named "stream-unix.####.######". To resolve the issue, we had to delete those stale socket files (find /tmp -name "*stream*" -mtime +7 -exec rm -v {} \;), then kill and restart xapi, then correct the emergency maintenance mode. These hosts had only been up for 45 days before this issue occurred.
> In our scouring of the interwebs, the only other instance we've been able to find of this (or similar) happening is in the same setup we are currently running. Xenserver 6.0.2 with CS 3.0.2. Do these stream-unix sockets have anything to do with Cloudstack? I would think if this was a Xenserver issue (bug), there would be a lot more on the internet about this happening. For a temporary workaround, we've added a cronjob to cleanup these files but we'd really like to address the actual issue that's causing these sockets to become stale and not get cleaned-up.
--
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
[jira] [Assigned] (CLOUDSTACK-105) /tmp/stream-unix.####.######
stale sockets causing inodes to run out on Xenserver
Posted by "Sudha Ponnaganti (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sudha Ponnaganti reassigned CLOUDSTACK-105:
-------------------------------------------
Assignee: Devdeep Singh
Devdeep, can anyone from Xen server team help with this fix
> /tmp/stream-unix.####.###### stale sockets causing inodes to run out on Xenserver
> ---------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-105
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-105
> Project: CloudStack
> Issue Type: Bug
> Components: XenServer
> Affects Versions: pre-4.0.0
> Environment: Xenserver 6.0.2
> Cloudstack 3.0.2
> Reporter: Caleb Call
> Assignee: Devdeep Singh
>
> We came across an interesting issue in one of our clusters. We ran out of inodes on all of our cluster members (since when does this happen in 2012?). When this happened, it in turn made the / filesystem a read-only filesystem which in turn made all the hosts go in to emergency maintenance mode and as a result get marked down by Cloudstack. We found that it was caused by hundreds of thousands of stale socket files in /tmp named "stream-unix.####.######". To resolve the issue, we had to delete those stale socket files (find /tmp -name "*stream*" -mtime +7 -exec rm -v {} \;), then kill and restart xapi, then correct the emergency maintenance mode. These hosts had only been up for 45 days before this issue occurred.
> In our scouring of the interwebs, the only other instance we've been able to find of this (or similar) happening is in the same setup we are currently running. Xenserver 6.0.2 with CS 3.0.2. Do these stream-unix sockets have anything to do with Cloudstack? I would think if this was a Xenserver issue (bug), there would be a lot more on the internet about this happening. For a temporary workaround, we've added a cronjob to cleanup these files but we'd really like to address the actual issue that's causing these sockets to become stale and not get cleaned-up.
--
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
[jira] [Commented] (CLOUDSTACK-105) /tmp/stream-unix.####.######
stale sockets causing inodes to run out on Xenserver
Posted by "Devdeep Singh (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13462703#comment-13462703 ]
Devdeep Singh commented on CLOUDSTACK-105:
------------------------------------------
I have been trying to reproduce this issue but I am unable to do so. Can you share some more details of the setup; that is, whether the CloudStack setup is in Basic or Advanced mode; whether CSP packages are installed or not, if this issue is observed only on one host in the cluster or it is seen across the cluster, how many instances are deployed and how many virtual machines are running on each host in the cluster.
> /tmp/stream-unix.####.###### stale sockets causing inodes to run out on Xenserver
> ---------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-105
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-105
> Project: CloudStack
> Issue Type: Bug
> Components: XenServer
> Affects Versions: pre-4.0.0
> Environment: Xenserver 6.0.2
> Cloudstack 3.0.2
> Reporter: Caleb Call
> Assignee: Devdeep Singh
> Fix For: pre-4.0.0
>
>
> We came across an interesting issue in one of our clusters. We ran out of inodes on all of our cluster members (since when does this happen in 2012?). When this happened, it in turn made the / filesystem a read-only filesystem which in turn made all the hosts go in to emergency maintenance mode and as a result get marked down by Cloudstack. We found that it was caused by hundreds of thousands of stale socket files in /tmp named "stream-unix.####.######". To resolve the issue, we had to delete those stale socket files (find /tmp -name "*stream*" -mtime +7 -exec rm -v {} \;), then kill and restart xapi, then correct the emergency maintenance mode. These hosts had only been up for 45 days before this issue occurred.
> In our scouring of the interwebs, the only other instance we've been able to find of this (or similar) happening is in the same setup we are currently running. Xenserver 6.0.2 with CS 3.0.2. Do these stream-unix sockets have anything to do with Cloudstack? I would think if this was a Xenserver issue (bug), there would be a lot more on the internet about this happening. For a temporary workaround, we've added a cronjob to cleanup these files but we'd really like to address the actual issue that's causing these sockets to become stale and not get cleaned-up.
--
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
[jira] [Commented] (CLOUDSTACK-105) /tmp/stream-unix.####.######
stale sockets causing inodes to run out on Xenserver
Posted by "Caleb Call (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13471641#comment-13471641 ]
Caleb Call commented on CLOUDSTACK-105:
---------------------------------------
Our servers are all in bridge mode (per the setup instructions in the Cloudstack setup guide).
[root@cloud-hv01 log]# cat /etc/xensource/network.conf
bridge
[root@cloud-hv01 log]#
I also noticed in /var/log/messages, the following are being logged over and over. Looks like this is something related to openvswitch.
Oct 8 10:06:54 cloud-hv01 syslogd 1.4.1: restart.
Oct 8 10:06:57 cloud-hv01 ovs-vsctl: 1568403|stream_unix|ERR|/tmp/stream-unix.9679.784180: connection to /var/run/openvswitch/db.sock failed: No such file or directory
Oct 8 10:06:57 cloud-hv01 ovs-vsctl: 1568404|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory)
Oct 8 10:07:05 cloud-hv01 ovs-vsctl: 1568405|stream_unix|ERR|/tmp/stream-unix.9679.784181: connection to /var/run/openvswitch/db.sock failed: No such file or directory
Oct 8 10:07:05 cloud-hv01 ovs-vsctl: 1568406|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory)
Oct 8 10:07:13 cloud-hv01 ovs-vsctl: 1568407|stream_unix|ERR|/tmp/stream-unix.9679.784182: connection to /var/run/openvswitch/db.sock failed: No such file or directory
Oct 8 10:07:13 cloud-hv01 ovs-vsctl: 1568408|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory)
I've also noticed this same behavior of leaving these stale socket files behind on a completely different Cloudstack cluster using Xenserver in bridge mode.
> /tmp/stream-unix.####.###### stale sockets causing inodes to run out on Xenserver
> ---------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-105
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-105
> Project: CloudStack
> Issue Type: Bug
> Components: XenServer
> Affects Versions: pre-4.0.0
> Environment: Xenserver 6.0.2
> Cloudstack 3.0.2
> Reporter: Caleb Call
> Assignee: Devdeep Singh
> Fix For: 4.1.0
>
>
> We came across an interesting issue in one of our clusters. We ran out of inodes on all of our cluster members (since when does this happen in 2012?). When this happened, it in turn made the / filesystem a read-only filesystem which in turn made all the hosts go in to emergency maintenance mode and as a result get marked down by Cloudstack. We found that it was caused by hundreds of thousands of stale socket files in /tmp named "stream-unix.####.######". To resolve the issue, we had to delete those stale socket files (find /tmp -name "*stream*" -mtime +7 -exec rm -v {} \;), then kill and restart xapi, then correct the emergency maintenance mode. These hosts had only been up for 45 days before this issue occurred.
> In our scouring of the interwebs, the only other instance we've been able to find of this (or similar) happening is in the same setup we are currently running. Xenserver 6.0.2 with CS 3.0.2. Do these stream-unix sockets have anything to do with Cloudstack? I would think if this was a Xenserver issue (bug), there would be a lot more on the internet about this happening. For a temporary workaround, we've added a cronjob to cleanup these files but we'd really like to address the actual issue that's causing these sockets to become stale and not get cleaned-up.
--
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
[jira] [Updated] (CLOUDSTACK-105) /tmp/stream-unix.####.######
stale sockets causing inodes to run out on Xenserver
Posted by "Sudha Ponnaganti (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sudha Ponnaganti updated CLOUDSTACK-105:
----------------------------------------
Fix Version/s: pre-4.0.0
> /tmp/stream-unix.####.###### stale sockets causing inodes to run out on Xenserver
> ---------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-105
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-105
> Project: CloudStack
> Issue Type: Bug
> Components: XenServer
> Affects Versions: pre-4.0.0
> Environment: Xenserver 6.0.2
> Cloudstack 3.0.2
> Reporter: Caleb Call
> Assignee: Devdeep Singh
> Fix For: pre-4.0.0
>
>
> We came across an interesting issue in one of our clusters. We ran out of inodes on all of our cluster members (since when does this happen in 2012?). When this happened, it in turn made the / filesystem a read-only filesystem which in turn made all the hosts go in to emergency maintenance mode and as a result get marked down by Cloudstack. We found that it was caused by hundreds of thousands of stale socket files in /tmp named "stream-unix.####.######". To resolve the issue, we had to delete those stale socket files (find /tmp -name "*stream*" -mtime +7 -exec rm -v {} \;), then kill and restart xapi, then correct the emergency maintenance mode. These hosts had only been up for 45 days before this issue occurred.
> In our scouring of the interwebs, the only other instance we've been able to find of this (or similar) happening is in the same setup we are currently running. Xenserver 6.0.2 with CS 3.0.2. Do these stream-unix sockets have anything to do with Cloudstack? I would think if this was a Xenserver issue (bug), there would be a lot more on the internet about this happening. For a temporary workaround, we've added a cronjob to cleanup these files but we'd really like to address the actual issue that's causing these sockets to become stale and not get cleaned-up.
--
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
[jira] [Updated] (CLOUDSTACK-105) /tmp/stream-unix.####.######
stale sockets causing inodes to run out on Xenserver
Posted by "Jason Bausewein (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Bausewein updated CLOUDSTACK-105:
---------------------------------------
Attachment: messages
errors in messages log
> /tmp/stream-unix.####.###### stale sockets causing inodes to run out on Xenserver
> ---------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-105
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-105
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the default.)
> Components: XenServer
> Affects Versions: pre-4.0.0
> Environment: Xenserver 6.0.2
> Cloudstack 3.0.2
> Reporter: Caleb Call
> Assignee: Devdeep Singh
> Fix For: 4.1.0
>
> Attachments: messages
>
>
> We came across an interesting issue in one of our clusters. We ran out of inodes on all of our cluster members (since when does this happen in 2012?). When this happened, it in turn made the / filesystem a read-only filesystem which in turn made all the hosts go in to emergency maintenance mode and as a result get marked down by Cloudstack. We found that it was caused by hundreds of thousands of stale socket files in /tmp named "stream-unix.####.######". To resolve the issue, we had to delete those stale socket files (find /tmp -name "*stream*" -mtime +7 -exec rm -v {} \;), then kill and restart xapi, then correct the emergency maintenance mode. These hosts had only been up for 45 days before this issue occurred.
> In our scouring of the interwebs, the only other instance we've been able to find of this (or similar) happening is in the same setup we are currently running. Xenserver 6.0.2 with CS 3.0.2. Do these stream-unix sockets have anything to do with Cloudstack? I would think if this was a Xenserver issue (bug), there would be a lot more on the internet about this happening. For a temporary workaround, we've added a cronjob to cleanup these files but we'd really like to address the actual issue that's causing these sockets to become stale and not get cleaned-up.
--
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
[jira] [Commented] (CLOUDSTACK-105) /tmp/stream-unix.####.######
stale sockets causing inodes to run out on Xenserver
Posted by "Caleb Call (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13471909#comment-13471909 ]
Caleb Call commented on CLOUDSTACK-105:
---------------------------------------
I happened across this ticket today http://bugs.cloudstack.org/browse/CS-14902 which looks like it's the same (or very similar). Since I'm running CS 3.0.2 and that looks like it affects 3.0.3, it may already have a fix checked in for this.
Thanks
> /tmp/stream-unix.####.###### stale sockets causing inodes to run out on Xenserver
> ---------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-105
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-105
> Project: CloudStack
> Issue Type: Bug
> Components: XenServer
> Affects Versions: pre-4.0.0
> Environment: Xenserver 6.0.2
> Cloudstack 3.0.2
> Reporter: Caleb Call
> Assignee: Devdeep Singh
> Fix For: 4.1.0
>
>
> We came across an interesting issue in one of our clusters. We ran out of inodes on all of our cluster members (since when does this happen in 2012?). When this happened, it in turn made the / filesystem a read-only filesystem which in turn made all the hosts go in to emergency maintenance mode and as a result get marked down by Cloudstack. We found that it was caused by hundreds of thousands of stale socket files in /tmp named "stream-unix.####.######". To resolve the issue, we had to delete those stale socket files (find /tmp -name "*stream*" -mtime +7 -exec rm -v {} \;), then kill and restart xapi, then correct the emergency maintenance mode. These hosts had only been up for 45 days before this issue occurred.
> In our scouring of the interwebs, the only other instance we've been able to find of this (or similar) happening is in the same setup we are currently running. Xenserver 6.0.2 with CS 3.0.2. Do these stream-unix sockets have anything to do with Cloudstack? I would think if this was a Xenserver issue (bug), there would be a lot more on the internet about this happening. For a temporary workaround, we've added a cronjob to cleanup these files but we'd really like to address the actual issue that's causing these sockets to become stale and not get cleaned-up.
--
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
[jira] [Commented] (CLOUDSTACK-105) /tmp/stream-unix.####.######
stale sockets causing inodes to run out on Xenserver
Posted by "Jason Bausewein (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13510950#comment-13510950 ]
Jason Bausewein commented on CLOUDSTACK-105:
--------------------------------------------
I am able to reproduce this issue consistently. I have a single xen host in a basic zone. I tracked it down to the following process creating the stream-unix.****.**** files about every 10 seconds.
root 8237 8223 0 09:59 ? 00:00:00 ovs-vsctl add-br xapi0
Dec 5 09:59:15 xenserver1 ovs-vsctl: 00001|vsctl|INFO|Called as ovs-vsctl add-br xapi0
Dec 5 09:59:15 xenserver1 ovs-vsctl: 00002|stream_unix|ERR|/tmp/stream-unix.8237.0: connection to /var/run/openvswitch/db.sock failed: No such file or directory
Dec 5 09:59:15 xenserver1 ovs-vsctl: 00003|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory)
Dec 5 09:59:16 xenserver1 ovs-vsctl: 00004|stream_unix|ERR|/tmp/stream-unix.8237.1: connection to /var/run/openvswitch/db.sock failed: No such file or directory
Dec 5 09:59:16 xenserver1 ovs-vsctl: 00005|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory)
Dec 5 09:59:18 xenserver1 ovs-vsctl: 00006|stream_unix|ERR|/tmp/stream-unix.8237.2: connection to /var/run/openvswitch/db.sock failed: No such file or directory
Dec 5 09:59:18 xenserver1 ovs-vsctl: 00007|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory)
I am not using openvswitch. Is there something I need to turn off?
> /tmp/stream-unix.####.###### stale sockets causing inodes to run out on Xenserver
> ---------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-105
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-105
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the default.)
> Components: XenServer
> Affects Versions: pre-4.0.0
> Environment: Xenserver 6.0.2
> Cloudstack 3.0.2
> Reporter: Caleb Call
> Assignee: Devdeep Singh
> Fix For: 4.1.0
>
>
> We came across an interesting issue in one of our clusters. We ran out of inodes on all of our cluster members (since when does this happen in 2012?). When this happened, it in turn made the / filesystem a read-only filesystem which in turn made all the hosts go in to emergency maintenance mode and as a result get marked down by Cloudstack. We found that it was caused by hundreds of thousands of stale socket files in /tmp named "stream-unix.####.######". To resolve the issue, we had to delete those stale socket files (find /tmp -name "*stream*" -mtime +7 -exec rm -v {} \;), then kill and restart xapi, then correct the emergency maintenance mode. These hosts had only been up for 45 days before this issue occurred.
> In our scouring of the interwebs, the only other instance we've been able to find of this (or similar) happening is in the same setup we are currently running. Xenserver 6.0.2 with CS 3.0.2. Do these stream-unix sockets have anything to do with Cloudstack? I would think if this was a Xenserver issue (bug), there would be a lot more on the internet about this happening. For a temporary workaround, we've added a cronjob to cleanup these files but we'd really like to address the actual issue that's causing these sockets to become stale and not get cleaned-up.
--
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