SOLVED IOCAGE Jails Network Issue

Status
Not open for further replies.

kranzel

Explorer
Joined
Jul 21, 2011
Messages
71
Hello all,


I have upgraded to 11.1-U2 and like others had the network issue surrounding my jails.


I had executed the following line within each of my jails.


iocage exec plex 'sysrc ifconfig_epair0_name="epair0b"'


restarted the jails and everything worked well.


Last night, my systems powered down due to a power outage. Everything has booted back up but non of my IOCAGE jails have networking. I ran the above line again, with no success. I verified in the rc.conf file that the entry is there. If I turn off VNET My jails appear to work. However, plex is inaccessible from outside my network.


I logged into the new UI and got the following errors.


Code:
Traceback (most recent call last):

  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 150, in call_method

	result = await self.middleware.call_method(self, message)

  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__

	return self.gen.send(None)

  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 908, in call_method

	return await self._call(message['method'], serviceobj, methodobj, params, app=app)

  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__

	return self.gen.send(None)

  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 876, in _call

	return await methodobj(*args)

  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__

	return self.gen.send(None)

  File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 491, in nf

	return await f(*args, **kwargs)

  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__

	return self.gen.send(None)

  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/stats.py", line 111, in get_data

	raise ValueError('rrdtool failed: {}'.format(err.decode()))

ValueError: rrdtool failed: ERROR: opening '/var/db/collectd/rrd/localhost//disk-da3/disk_ops.rrd': No such file or directory



And


Code:
Traceback (most recent call last):

  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 893, in _method_lookup

	serviceobj = self.get_service(service)

  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 822, in get_service

	return self.__services[name]

KeyError: 'network.general'


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 150, in call_method

	result = await self.middleware.call_method(self, message)

  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__

	return self.gen.send(None)

  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 902, in call_method

	serviceobj, methodobj = self._method_lookup(message['method'])

  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 896, in _method_lookup

	raise CallError(f'Method "{method_name}" not found in "{service}"', CallError.ENOMETHOD)

middlewared.service_exception.CallError: [ENOMETHOD] Method "summary" not found in "network.general"



Any ideas?
 

kranzel

Explorer
Joined
Jul 21, 2011
Messages
71
Not sure if this helps.

Here is the ifconfig from my plex jail
Code:
root@plex:~ # ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
		options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
		inet6 ::1 prefixlen 128
		inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
		inet 127.0.0.1 netmask 0xff000000
		nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
		groups: lo
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
		options=8<VLAN_MTU>
		ether 02:ff:60:14:fa:0a
		hwaddr 02:ea:a0:00:06:0b
		inet 10.0.1.55 netmask 0xffffff00 broadcast 10.0.1.255
		nd6 options=1<PERFORMNUD>
		media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
		status: active
		groups: epair


Here is the if config from my freenas shell

Code:
gb0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
		options=2400b9<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO,RXCSUM_IPV6>
		ether 0c:c4:7a:e3:b8:96
		hwaddr 0c:c4:7a:e3:b8:96
		inet 10.0.1.48 netmask 0xffffff00 broadcast 10.0.1.255
		nd6 options=9<PERFORMNUD,IFDISABLED>
		media: Ethernet autoselect (1000baseT <full-duplex>)
		status: active
igb1: flags=8c02<BROADCAST,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500
		options=6403bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
		ether 0c:c4:7a:e3:b8:97
		hwaddr 0c:c4:7a:e3:b8:97
		nd6 options=9<PERFORMNUD,IFDISABLED>
		media: Ethernet autoselect (1000baseT <full-duplex>)
		status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
		options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
		inet6 ::1 prefixlen 128
		inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
		inet 127.0.0.1 netmask 0xff000000
		nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
		groups: lo
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
		ether 02:23:c8:01:50:00
		nd6 options=9<PERFORMNUD,IFDISABLED>
		groups: bridge
		id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
		maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
		root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
		member: vnet0:4 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
				ifmaxaddr 0 port 8 priority 128 path cost 2000
		member: vnet0:3 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
				ifmaxaddr 0 port 7 priority 128 path cost 2000
		member: vnet0:2 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
				ifmaxaddr 0 port 6 priority 128 path cost 2000
		member: vnet0:1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
				ifmaxaddr 0 port 5 priority 128 path cost 2000
vnet0:1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
		description: associated with jail: plex
		options=8<VLAN_MTU>
		ether 02:ff:60:14:fa:09
		hwaddr 02:ea:50:00:05:0a
		nd6 options=1<PERFORMNUD>
		media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
		status: active
		groups: epair
vnet0:2: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
		description: associated with jail: radarr
		options=8<VLAN_MTU>
		ether 02:ff:60:c1:df:ca
		hwaddr 02:ea:50:00:06:0a
		nd6 options=1<PERFORMNUD>
		media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
		status: active
		groups: epair
vnet0:3: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
		description: associated with jail: sonarr
		options=8<VLAN_MTU>
		ether 02:ff:60:a5:a4:7e
		hwaddr 02:ea:50:00:07:0a
		nd6 options=1<PERFORMNUD>
		media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
		status: active
		groups: epair
vnet0:4: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
		description: associated with jail: sabnzbd
		options=8<VLAN_MTU>
		ether 02:ff:60:ef:4d:38
		hwaddr 02:ea:50:00:08:0a
		nd6 options=1<PERFORMNUD>
		media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
		status: active
		groups: epair
bridge1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
		ether 02:23:c8:01:50:01
		nd6 options=9<PERFORMNUD,IFDISABLED>
		groups: bridge
		id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
		maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
		root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
		member: epair6a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
				ifmaxaddr 0 port 12 priority 128 path cost 2000
		member: epair5a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
				ifmaxaddr 0 port 11 priority 128 path cost 2000
		member: epair4a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
				ifmaxaddr 0 port 10 priority 128 path cost 2000
		member: igb0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
				ifmaxaddr 0 port 1 priority 128 path cost 20000
epair4a: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
		options=8<VLAN_MTU>
		ether 02:ea:50:00:0a:0a
		hwaddr 02:ea:50:00:0a:0a
		nd6 options=1<PERFORMNUD>
		media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
		status: active
		groups: epair
epair5a: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
		options=8<VLAN_MTU>
		ether 02:ea:50:00:0b:0a
		hwaddr 02:ea:50:00:0b:0a
		nd6 options=1<PERFORMNUD>
		media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
		status: active
		groups: epair
epair6a: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
		options=8<VLAN_MTU>
		ether 02:ea:50:00:0c:0a
		hwaddr 02:ea:50:00:0c:0a
		nd6 options=1<PERFORMNUD>
		media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
		status: active
		groups: epair
 

kranzel

Explorer
Joined
Jul 21, 2011
Messages
71
Hi all,


I appear to have fixed the issue.


After digging around a bit I noticed that on the ifconfig for my system I saw a “bridge0” and a “”bridge1”.


After looking at my jails in the new UI under the “network Properties” section. I noticed all of my jails said “vnet0:bridge0”. However, looking at the ifconfig for my system, all the interfaces where under “bridge1”. I modified “vnet0:bridge0” to “vnet0:bridge1” and restarted my jails.


Everything is working now.


Anyone have any idea what happened here? I think I would remember if I created a new bridge or if I went into each jail and made that change. Which I did not.


Could the update to 11.1-U2 have done this?
 
D

dlavigne

Guest
Hi, Im getting simillar / same error everytime logging in in the new UI. Im on 11.1.U4 now.

Correct, as the next update (the target version in that ticket) is 11.2-BETA1, due out in a few weeks.
 
Status
Not open for further replies.
Top