Giter Site home page Giter Site logo

Comments (9)

mavenugo avatar mavenugo commented on August 18, 2024

Socketplane by default uses OpenVSwitch as the datapath.
We can troubleshoot OVS using the ovs-vsctl, ovs-ofctl & ovs-dpctl commands.
Since we use just the Normal-mode, I will be surprised if OVS has anything to do with it.

BTW, are these containers in the same Host (or) they are in different hosts connected via VXLAN tunnel?

from socketplane.

mffrench avatar mffrench commented on August 18, 2024

hello @mavenugo

I set up a cluster of 3 socketplane nodes...

Sometimes ping are not working even between containers on the same node, IE :

on the master node I configured network mbrfsrv 10.13.0.0/16 - so I have a mbrfsrv interface on the master - and I run t31 and t32 on it. Some time pings between t31 or t32 to the mbrfsrv gateway are failing ... seems to get better if you wait but as I don't understand the first failures I think the failure coulds come again ...

So the comportment is really unpredictable in fact and I've the impression more you add nodes more it is ...

Do you see any system conf which could help to stabilize the system ?

from socketplane.

mffrench avatar mffrench commented on August 18, 2024

on example when connecting on the socketplane container :

root@tradeflow-front02:/# ifconfig 
docker0   Link encap:Ethernet  HWaddr 56:84:7a:fe:97:99  
          inet addr:172.17.42.1  Bcast:0.0.0.0  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0      Link encap:Ethernet  HWaddr 52:54:00:ca:b9:40  
          inet addr:192.168.33.23  Bcast:192.168.33.255  Mask:255.255.255.0
          inet6 addr: fe80::5054:ff:feca:b940/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:949708 errors:0 dropped:0 overruns:0 frame:0
          TX packets:328007 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1364645693 (1.2 GiB)  TX bytes:31745447 (30.2 MiB)

front02   Link encap:Ethernet  HWaddr f6:6e:70:22:b7:10  
          inet addr:10.12.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
          inet6 addr: fe80::f46e:70ff:fe22:b710/64 Scope:Link
          UP BROADCAST RUNNING  MTU:1440  Metric:1
          RX packets:302 errors:0 dropped:0 overruns:0 frame:0
          TX packets:268 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:17232 (16.8 KiB)  TX bytes:15484 (15.1 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:47487 errors:0 dropped:0 overruns:0 frame:0
          TX packets:47487 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:29595217 (28.2 MiB)  TX bytes:29595217 (28.2 MiB)

root@tradeflow-front02:/# ping 10.12.0.3
PING 10.12.0.3 (10.12.0.3): 56 data bytes
^C--- 10.12.0.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss

When I traceroute 10.12.0.3 it's look like a stimulation and the ping is working again

root@tradeflow-front02:/# traceroute 10.12.0.3
traceroute to 10.12.0.3 (10.12.0.3), 30 hops max, 60 byte packets
 1  10.12.0.3 (10.12.0.3)  0.167 ms  0.031 ms  0.018 ms

root@tradeflow-front02:/# ping 10.12.0.3
PING 10.12.0.3 (10.12.0.3): 56 data bytes
64 bytes from 10.12.0.3: icmp_seq=0 ttl=64 time=0.285 ms
64 bytes from 10.12.0.3: icmp_seq=1 ttl=64 time=0.069 ms
64 bytes from 10.12.0.3: icmp_seq=2 ttl=64 time=0.065 ms
^C--- 10.12.0.3 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.065/0.140/0.285/0.103 ms

I notice the instability is coming when I add a new network or a new container ...

from socketplane.

mavenugo avatar mavenugo commented on August 18, 2024

Thanks for more info. a few obvious questions.

  1. I dont see docker0-ovs bridge in the host (tradeflow-front02). This is the OVS bridge that I would expect to be present when Socketplane is installed and launched. Not seeing that in here is a turn-off for me.
  2. Are you by any chance using docker-ovs container ? We havent enabled that support yet. Rather we still rely on the OVS user-space to create and manage OVS bridges.
  3. Can you paste the output of : "sudo docker logs socketplane"

from socketplane.

mffrench avatar mffrench commented on August 18, 2024

year you're right there is no docker-ovs on tradeflow-front02. I was thinking this was because it is a non bootstrap node ...

here's my logs :

╭─mffrench@tradeflow-front02  ~  
╰─$ docker logs socketplane
INFO[0000] Non-Bootstrap node waiting on peer discovery 
INFO[0000] Binding to eth0                              
==> WARNING: It is highly recommended to set GOMAXPROCS higher than 1
==> Starting Consul agent...
==> Starting Consul agent RPC...
2015/03/17 16:03:24 consul.watch: Watch (type: nodes) errored: Unexpected response code: 500 (No known Consul servers), retry in 5s
==> Consul agent running!
         Node name: 'tradeflow-front02.lab01.dev.dekatonshivr.echinopsii.net'
        Datacenter: 'dc1'
            Server: false (bootstrap: false)
       Client Addr: 127.0.0.1 (HTTP: 8500, HTTPS: -1, DNS: 8600, RPC: 8400)
      Cluster Addr: 192.168.33.23 (LAN: 8301, WAN: 8302)
    Gossip encrypt: false, RPC-TLS: false, TLS-Incoming: false

==> Log data will now stream in as it occurs:

    2015/03/17 16:03:24 [INFO] serf: EventMemberJoin: tradeflow-front02.lab01.dev.dekatonshivr.echinopsii.net 192.168.33.23
    2015/03/17 16:03:24 [ERR] http: Request /v1/catalog/nodes, error: No known Consul servers
    2015/03/17 16:03:24 [ERR] agent: failed to sync remote state: No known Consul servers
INFO[0005] Non-Bootstrap node admitted into cluster     
2015/03/17 16:03:29 New Bonjour Member : tradeflow-mbrfsrv.lab01.dev.dekatonshivr.echinopsii.net, _docker._cluster, local, 192.168.33.24
INFO[0005] New Member Added : 192.168.33.24             
    2015/03/17 16:03:29 [INFO] agent.rpc: Accepted client: 127.0.0.1:34207
    2015/03/17 16:03:29 [INFO] serf: EventMemberJoin: tradeflow-mbrfsrv.lab01.dev.dekatonshivr.echinopsii.net 192.168.33.24
    2015/03/17 16:03:29 [INFO] consul: adding server tradeflow-mbrfsrv.lab01.dev.dekatonshivr.echinopsii.net (Addr: 192.168.33.24:8300) (DC: dc1)
    2015/03/17 16:03:29 [INFO] consul: New leader elected: tradeflow-mbrfsrv.lab01.dev.dekatonshivr.echinopsii.net
    2015/03/17 16:03:29 [INFO] agent: (LAN) joining: [192.168.33.24]
    2015/03/17 16:03:29 [INFO] agent: (LAN) joined: 1 Err: <nil>
Successfully joined cluster by contacting 1 nodes.
INFO[0005] New Node joined the cluster : 192.168.33.23  
INFO[0005] New Node joined the cluster : 192.168.33.24  
Transaction Failed due to an error : constraint violation
2015/03/17 16:03:30 Status of Get 200 OK 200 for http://localhost:8500/v1/kv/network/default
==> Newer Consul version available: 0.5.0
    2015/03/17 16:06:27 [INFO] serf: EventMemberJoin: tradeflow-front01.lab01.dev.dekatonshivr.echinopsii.net 192.168.33.22
INFO[0183] New Node joined the cluster : 192.168.33.22  
2015/03/17 16:08:11 Status of Get 404 Not Found 404 for http://localhost:8500/v1/kv/network/front02
2015/03/17 16:08:11 Status of Get 200 OK 200 for http://localhost:8500/v1/kv/vlan/vlan
2015/03/17 16:08:11 Status of Get 200 OK 200 for http://localhost:8500/v1/kv/vlan/vlan
2015/03/17 16:08:11 Updating KV pair for http://localhost:8500/v1/kv/vlan/vlan?cas=25 vlan � 25
2015/03/17 16:08:11 Status of Get 404 Not Found 404 for http://localhost:8500/v1/kv/ipam/10.12.0.0/16
2015/03/17 16:08:11 Status of Get 404 Not Found 404 for http://localhost:8500/v1/kv/ipam/10.12.0.0/16
2015/03/17 16:08:11 Updating KV pair for http://localhost:8500/v1/kv/ipam/10.12.0.0/16?cas=0 10.12.0.0/16 � 0
2015/03/17 16:08:12 Status of Get 404 Not Found 404 for http://localhost:8500/v1/kv/network/front02
2015/03/17 16:08:12 Updating KV pair for http://localhost:8500/v1/kv/network/front02?cas=0 front02 {"id":"front02","subnet":"10.12.0.0/16","gateway":"10.12.0.1","vlan":7} 0
    2015/03/17 16:09:11 [INFO] memberlist: Suspect tradeflow-front01.lab01.dev.dekatonshivr.echinopsii.net has failed, no acks received
    2015/03/17 16:09:14 [INFO] memberlist: Suspect tradeflow-front01.lab01.dev.dekatonshivr.echinopsii.net has failed, no acks received
    2015/03/17 16:09:15 [INFO] memberlist: Marking tradeflow-front01.lab01.dev.dekatonshivr.echinopsii.net as failed, suspect timeout reached
    2015/03/17 16:09:15 [INFO] serf: EventMemberFailed: tradeflow-front01.lab01.dev.dekatonshivr.echinopsii.net 192.168.33.22
    2015/03/17 16:09:21 [INFO] serf: EventMemberJoin: tradeflow-front01.lab01.dev.dekatonshivr.echinopsii.net 192.168.33.22
2015/03/17 16:09:26 New Bonjour Member : tradeflow-front01.lab01.dev.dekatonshivr.echinopsii.net, _docker._cluster, local, 192.168.33.22
INFO[0362] New Member Added : 192.168.33.22             
    2015/03/17 16:09:26 [INFO] agent.rpc: Accepted client: 127.0.0.1:34224
    2015/03/17 16:09:26 [INFO] agent: (LAN) joining: [192.168.33.22]
    2015/03/17 16:09:26 [INFO] agent: (LAN) joined: 1 Err: <nil>
Successfully joined cluster by contacting 1 nodes.
Transaction Failed due to an error : constraint violation
2015/03/17 16:09:48 Status of Get 200 OK 200 for http://localhost:8500/v1/kv/network?recurse
2015/03/17 16:11:57 Status of Get 200 OK 200 for http://localhost:8500/v1/kv/network/front02
2015/03/17 16:11:58 Status of Get 200 OK 200 for http://localhost:8500/v1/kv/ipam/10.12.0.0/16
2015/03/17 16:11:58 Status of Get 200 OK 200 for http://localhost:8500/v1/kv/ipam/10.12.0.0/16
2015/03/17 16:11:58 Updating KV pair for http://localhost:8500/v1/kv/ipam/10.12.0.0/16?cas=28 10.12.0.0/16 � 28
2015/03/17 16:12:04 Status of Get 200 OK 200 for http://localhost:8500/v1/kv/network/front02
2015/03/17 16:12:05 Status of Get 200 OK 200 for http://localhost:8500/v1/kv/ipam/10.12.0.0/16
2015/03/17 16:12:05 Status of Get 200 OK 200 for http://localhost:8500/v1/kv/ipam/10.12.0.0/16
2015/03/17 16:12:05 Updating KV pair for http://localhost:8500/v1/kv/ipam/10.12.0.0/16?cas=47 10.12.0.0/16  47
2015/03/17 16:28:19 Status of Get 200 OK 200 for http://localhost:8500/v1/kv/network?recurse

I just installed socketplane using following cmds depending the case :

curl -sSL http://get.socketplane.io/ | sudo BOOTSTRAP=true sh
curl -sSL http://get.socketplane.io/ | sudo sh

from socketplane.

mavenugo avatar mavenugo commented on August 18, 2024

OVS bridge must be created regardless of if it is a bootstrap node or not.
Can you please paste the outputs for the following

  1. lsmod | grep open
  2. ovs-vsctl show
  3. sudo ovs-vsctl list Bridge

from socketplane.

mffrench avatar mffrench commented on August 18, 2024

Yep sure !

tradeflow-front02 :

╭─mffrench@tradeflow-front02  ~  
╰─$ lsmod | grep open
openvswitch            66901  0 
gre                    13796  1 openvswitch
vxlan                  37619  1 openvswitch
libcrc32c              12644  4 xfs,btrfs,dm_persistent_data,openvswitch

╭─mffrench@tradeflow-front02  ~  
╰─$ sudo ovs-vsctl show
38ea3adf-dbc2-4d9f-be29-f37bdfdcb308
    Manager "ptcp:6640"
        is_connected: true
    Bridge "docker0-ovs"
        Port "vxlan-192.168.33.23"
            Interface "vxlan-192.168.33.23"
                type: vxlan
                options: {remote_ip="192.168.33.23"}
        Port "front02"
            tag: 3
            Interface "front02"
                type: internal
        Port "vxlan-192.168.33.24"
            Interface "vxlan-192.168.33.24"
                type: vxlan
                options: {remote_ip="192.168.33.24"}
        Port "docker0-ovs"
            Interface "docker0-ovs"
                type: internal
        Port "vxlan-192.168.33.22"
            Interface "vxlan-192.168.33.22"
                type: vxlan
                options: {remote_ip="192.168.33.22"}
    ovs_version: "2.3.1"

╭─mffrench@tradeflow-front02  ~  
╰─$ sudo ovs-vsctl list br
_uuid               : bbdde22d-776b-4984-8b89-094750d0e3ba
controller          : []
datapath_id         : "00002ee2ddbb8449"
datapath_type       : ""
external_ids        : {}
fail_mode           : []
flood_vlans         : []
flow_tables         : {}
ipfix               : []
mirrors             : []
name                : "docker0-ovs"
netflow             : []
other_config        : {}
ports               : [0b4e8109-23ae-421b-9ec4-ffbb4cc12c81, 172d9054-3e94-479c-be9c-a47dc0120190, 44053e3a-e35e-4adf-82e4-122c77fa6cba, cb5faac2-2cb2-4f27-b794-d04ef90c9925, ffc574bc-4e66-4da2-b4c0-17fd9ba6620c]
protocols           : []
sflow               : []
status              : {stp_bridge_id="8000.2ee2ddbb8449", stp_designated_root="8000.02abc0a3c944", stp_root_path_cost="19"}
stp_enable          : true

tradeflow-mbrfsrv (bootstrap node)

╭─mffrench@tradeflow-mbrfsrv  ~  
╰─$ sudo lsmod| grep open
openvswitch            66901  0 
gre                    13796  1 openvswitch
vxlan                  37619  1 openvswitch
libcrc32c              12644  2 dm_persistent_data,openvswitch

╭─mffrench@tradeflow-mbrfsrv  ~  
╰─$ sudo ovs-vsctl show
cc64308a-c0e4-46df-a33f-f49b95216ec4
    Manager "ptcp:6640"
        is_connected: true
    Bridge "docker0-ovs"
        Port "vxlan-192.168.33.23"
            Interface "vxlan-192.168.33.23"
                type: vxlan
                options: {remote_ip="192.168.33.23"}
        Port "vxlan-192.168.33.24"
            Interface "vxlan-192.168.33.24"
                type: vxlan
                options: {remote_ip="192.168.33.24"}
        Port default
            tag: 1
            Interface default
                type: internal
        Port mbrfsrv
            tag: 2
            Interface mbrfsrv
                type: internal
        Port "ovseb8d064"
            tag: 2
            Interface "ovseb8d064"
                type: internal
        Port "vxlan-192.168.33.22"
            Interface "vxlan-192.168.33.22"
                type: vxlan
                options: {remote_ip="192.168.33.22"}
        Port "ovs76b9db9"
            tag: 2
            Interface "ovs76b9db9"
                type: internal
        Port "docker0-ovs"
            Interface "docker0-ovs"
                type: internal
    ovs_version: "2.3.1"

╭─mffrench@tradeflow-mbrfsrv  ~  
╰─$ sudo ovs-vsctl list br
_uuid               : a3c0ab02-c00d-44c9-88fe-fac1800bac56
controller          : []
datapath_id         : "000002abc0a3c944"
datapath_type       : ""
external_ids        : {}
fail_mode           : []
flood_vlans         : []
flow_tables         : {}
ipfix               : []
mirrors             : []
name                : "docker0-ovs"
netflow             : []
other_config        : {}
ports               : [14c4fd1d-82ad-44ee-8d09-0660491ad5d6, 398fabcf-926b-4fc9-b355-ab5e604a2235, 796a93fb-0d79-469c-ac83-abd3b93bee29, 94663457-ecda-4344-9161-bb202dfa6713, bad3d2e7-f39c-4ece-8aa6-de85f674069c, e24d6b7d-593c-4a92-a41d-e5804af856d0, ede44507-a3ae-467f-83fd-d5e5450d1b86, ee6c34e2-9274-4257-b928-4f50743aee98]
protocols           : []
sflow               : []
status              : {stp_bridge_id="8000.02abc0a3c944", stp_designated_root="8000.02abc0a3c944", stp_root_path_cost="0"}
stp_enable          : true

I've uninstalled / reinstalled socketplane on both node and before resinstall socketplane conf I cleaned ovs with sudo ovs-vsctl del-br docker0-ovs. After the reinstall I don't see the docker0-ovs interface on the both VM... I think I will re-create some new fresh VMs to start again from scratch ...

Cheers,

Mathilde

from socketplane.

mffrench avatar mffrench commented on August 18, 2024

FYI : I restarted the install proc. on a fresh VM (fedora21 - the other one was ubuntu 14.10) and I don't see any docker0-ovs interface :

╭─mffrench@tradeflow2-mbrfsrv01  ~  
╰─$ curl -sSL http://get.socketplane.io/ | sudo BOOTSTRAP=true sh
++ id -u
+ '[' 0 '!=' 0 ']'
+ command_exists socketplane
+ hash socketplane
+ curl=
+ command_exists curl
+ hash curl
+ curl='curl -sSL -o'
+ '[' '!' -d /opt/socketplane ']'
+ mkdir -p /opt/socketplane
+ '[' '!' -f /opt/socketplane/socketplane ']'
+ curl -sSL -o /opt/socketplane/socketplane https://raw.githubusercontent.com/socketplane/socketplane/master/scripts/socketplane.sh
+ '[' '!' -f /opt/socketplane/functions.sh ']'
+ curl -sSL -o /opt/socketplane/functions.sh https://raw.githubusercontent.com/socketplane/socketplane/master/scripts/functions.sh
+ '[' '!' -d /etc/socketplane ']'
+ mkdir -p /etc/socketplane
+ '[' '!' -f /etc/socketplane/socketplane.toml ']'
+ curl -sSL -o /etc/socketplane/socketplane.toml https://raw.githubusercontent.com/socketplane/socketplane/master/socketplane.toml
+ '[' '!' -f /etc/socketplane/adapters.yml ']'
+ curl -sSL -o /etc/socketplane/adapters.yml https://raw.githubusercontent.com/socketplane/socketplane/master/adapters.yml
+ chmod +x /opt/socketplane/socketplane
+ '[' '!' -f /usr/bin/socketplane ']'
+ ln -s /opt/socketplane/socketplane /usr/bin/socketplane
+ sleep 3
+ '[' -t 0 ']'
+ '[' -z true ']'
+ socketplane install unattended
Installing SocketPlane...
-----> Setting Linux Kernel Options
           net.ipv4.icmp_echo_ignore_broadcasts = 0
           net.ipv4.ip_forward = 1
-----> Curl already installed!
-----> Installing Open vSwitch..
-----> Setting OVSDB Listener
-----> Docker already installed!
-----> Starting the SocketPlane container
Unable to find image 'socketplane/socketplane:latest' locally
Pulling repository socketplane/socketplane
fe5c761a2ae4: Pulling image (latest) from socketplane/socketplane
fe5c761a2ae4: Pulling image (latest) from socketplane/socketplane, endpoint: https://registry-1.docker.io/v1/
fe5c761a2ae4: Pulling dependent layers
511136ea3c5a: Download complete
3b3a4796eef1: Pulling metadata
3b3a4796eef1: Pulling fs layer
3b3a4796eef1: Download complete
50ec2d202fe8: Pulling metadata
50ec2d202fe8: Pulling fs layer
50ec2d202fe8: Download complete
1073b544a1cb: Pulling metadata
1073b544a1cb: Pulling fs layer
1073b544a1cb: Download complete
6a7520a7fd8c: Pulling metadata
6a7520a7fd8c: Pulling fs layer
6a7520a7fd8c: Download complete
1febf72fd37d: Pulling metadata
1febf72fd37d: Pulling fs layer
1febf72fd37d: Download complete
82317e0a0aed: Pulling metadata
82317e0a0aed: Pulling fs layer
82317e0a0aed: Download complete
3ad0834893c9: Pulling metadata
3ad0834893c9: Pulling fs layer
3ad0834893c9: Download complete
6309cb864610: Pulling metadata
6309cb864610: Pulling fs layer
6309cb864610: Download complete
21fe9960cb2c: Pulling metadata
21fe9960cb2c: Pulling fs layer
21fe9960cb2c: Download complete
6b11a935b706: Pulling metadata
6b11a935b706: Pulling fs layer
6b11a935b706: Download complete
a32353a9f9f8: Pulling metadata
a32353a9f9f8: Pulling fs layer
a32353a9f9f8: Download complete
810270ff9860: Pulling metadata
810270ff9860: Pulling fs layer
810270ff9860: Download complete
8a7dcca2bca5: Pulling metadata
8a7dcca2bca5: Pulling fs layer
8a7dcca2bca5: Download complete
18b2a61158e4: Pulling metadata
18b2a61158e4: Pulling fs layer
18b2a61158e4: Download complete
f0fc5e19c188: Pulling metadata
f0fc5e19c188: Pulling fs layer
f0fc5e19c188: Download complete
878c70d656d4: Pulling metadata
878c70d656d4: Pulling fs layer
878c70d656d4: Download complete
59961dacee65: Pulling metadata
59961dacee65: Pulling fs layer
59961dacee65: Download complete
c59175f868f4: Pulling metadata
c59175f868f4: Pulling fs layer
c59175f868f4: Download complete
a4b4b199582b: Pulling metadata
a4b4b199582b: Pulling fs layer
a4b4b199582b: Download complete
1ed9d17657b6: Pulling metadata
1ed9d17657b6: Pulling fs layer
1ed9d17657b6: Download complete
cc0603fb1665: Pulling metadata
cc0603fb1665: Pulling fs layer
cc0603fb1665: Download complete
9e7607953fad: Pulling metadata
9e7607953fad: Pulling fs layer
9e7607953fad: Download complete
aa102193be12: Pulling metadata
aa102193be12: Pulling fs layer
aa102193be12: Download complete
444e51fdec3e: Pulling metadata
444e51fdec3e: Pulling fs layer
444e51fdec3e: Download complete
35c1c3f495d5: Pulling metadata
35c1c3f495d5: Pulling fs layer
35c1c3f495d5: Download complete
fe5c761a2ae4: Pulling metadata
fe5c761a2ae4: Pulling fs layer
fe5c761a2ae4: Download complete
fe5c761a2ae4: Download complete
Status: Downloaded newer image for socketplane/socketplane:latest
           A SocketPlane container was started
Unable to find image 'clusterhq/powerstrip:v0.0.1' locally
Pulling repository clusterhq/powerstrip
7c5e9d5231cf: Pulling image (v0.0.1) from clusterhq/powerstrip
7c5e9d5231cf: Pulling image (v0.0.1) from clusterhq/powerstrip, endpoint: https://registry-1.docker.io/v1/
7c5e9d5231cf: Pulling dependent layers
511136ea3c5a: Download complete
27d47432a69b: Pulling metadata
27d47432a69b: Pulling fs layer
27d47432a69b: Download complete
5f92234dcf1e: Pulling metadata
5f92234dcf1e: Pulling fs layer
5f92234dcf1e: Download complete
51a9c7c1f8bb: Pulling metadata
51a9c7c1f8bb: Pulling fs layer
51a9c7c1f8bb: Download complete
5ba9dab47459: Pulling metadata
5ba9dab47459: Pulling fs layer
5ba9dab47459: Download complete
8feea8bc01d8: Pulling metadata
8feea8bc01d8: Pulling fs layer
8feea8bc01d8: Download complete
1031c0e0fba8: Pulling metadata
1031c0e0fba8: Pulling fs layer
1031c0e0fba8: Download complete
14accb059b11: Pulling metadata
14accb059b11: Pulling fs layer
14accb059b11: Download complete
8583cfcfa555: Pulling metadata
8583cfcfa555: Pulling fs layer
8583cfcfa555: Download complete
d2ec462b4047: Pulling metadata
d2ec462b4047: Pulling fs layer
d2ec462b4047: Download complete
90fa7802aea5: Pulling metadata
90fa7802aea5: Pulling fs layer
90fa7802aea5: Download complete
6a6398365a3e: Pulling metadata
6a6398365a3e: Pulling fs layer
6a6398365a3e: Download complete
4fdbc4049324: Pulling metadata
4fdbc4049324: Pulling fs layer
4fdbc4049324: Download complete
7f3417d48a9d: Pulling metadata
7f3417d48a9d: Pulling fs layer
7f3417d48a9d: Download complete
62379ed318f3: Pulling metadata
62379ed318f3: Pulling fs layer
62379ed318f3: Download complete
0700a22928a9: Pulling metadata
0700a22928a9: Pulling fs layer
0700a22928a9: Download complete
dba162d5b0b7: Pulling metadata
dba162d5b0b7: Pulling fs layer
dba162d5b0b7: Download complete
7c5e9d5231cf: Pulling metadata
7c5e9d5231cf: Pulling fs layer
7c5e9d5231cf: Download complete
7c5e9d5231cf: Download complete
Status: Downloaded newer image for clusterhq/powerstrip:v0.0.1
Done!!!

╭─mffrench@tradeflow2-mbrfsrv01  ~  
╰─$ ifconfig 
docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.17.42.1  netmask 255.255.0.0  broadcast 0.0.0.0
        inet6 fe80::5484:7aff:fefe:9799  prefixlen 64  scopeid 0x20<link>
        ether 56:84:7a:fe:97:99  txqueuelen 0  (Ethernet)
        RX packets 103609  bytes 5569210 (5.3 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 195541  bytes 295283153 (281.6 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.33.33  netmask 255.255.255.0  broadcast 192.168.33.255
        inet6 fe80::5054:ff:fe40:c0b3  prefixlen 64  scopeid 0x20<link>
        ether 52:54:00:40:c0:b3  txqueuelen 1000  (Ethernet)
        RX packets 531035  bytes 793241168 (756.4 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 213377  bytes 16003680 (15.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.17  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::5054:ff:feaf:d107  prefixlen 64  scopeid 0x20<link>
        ether 52:54:00:af:d1:07  txqueuelen 1000  (Ethernet)
        RX packets 1155  bytes 714699 (697.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2070  bytes 229122 (223.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Boucle locale)
        RX packets 74  bytes 3700 (3.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 74  bytes 3700 (3.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

╭─mffrench@tradeflow2-mbrfsrv01  ~  
╰─$ docker ps -a                                  
CONTAINER ID        IMAGE                            COMMAND                CREATED             STATUS              PORTS               NAMES
7969dea9e605        clusterhq/powerstrip:v0.0.1      "twistd -noy powerst   3 minutes ago       Up 3 minutes                            powerstrip          
de43a2779fc0        socketplane/socketplane:latest   "socketplane --iface   4 minutes ago       Up 4 minutes                            socketplane      

╭─mffrench@tradeflow2-mbrfsrv01  ~  
╰─$ dockerConnect socketplane
root@tradeflow2-mbrfsrv01:/# ifconfig
-bash: ifconfig: command not found
root@tradeflow2-mbrfsrv01:/# apt-get install net-tools 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  net-tools
0 upgraded, 1 newly installed, 0 to remove and 12 not upgraded.
Need to get 225 kB of archives.
After this operation, 803 kB of additional disk space will be used.
Get:1 http://http.debian.net/debian/ jessie/main net-tools amd64 1.60-26+b1 [225 kB]
Fetched 225 kB in 2s (102 kB/s)                   
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "fr_FR.UTF-8",
    LANG = "fr_FR.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package net-tools.
(Reading database ... 14070 files and directories currently installed.)
Preparing to unpack .../net-tools_1.60-26+b1_amd64.deb ...
Unpacking net-tools (1.60-26+b1) ...
Setting up net-tools (1.60-26+b1) ...
root@tradeflow2-mbrfsrv01:/# ifconfig 
docker0   Link encap:Ethernet  HWaddr 56:84:7a:fe:97:99  
          inet addr:172.17.42.1  Bcast:0.0.0.0  Mask:255.255.0.0
          inet6 addr: fe80::5484:7aff:fefe:9799/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:103609 errors:0 dropped:0 overruns:0 frame:0
          TX packets:195541 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5569210 (5.3 MiB)  TX bytes:295283153 (281.6 MiB)

eth0      Link encap:Ethernet  HWaddr 52:54:00:40:c0:b3  
          inet addr:192.168.33.33  Bcast:192.168.33.255  Mask:255.255.255.0
          inet6 addr: fe80::5054:ff:fe40:c0b3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:532387 errors:0 dropped:0 overruns:0 frame:0
          TX packets:214505 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:794257502 (757.4 MiB)  TX bytes:16177222 (15.4 MiB)

eth1      Link encap:Ethernet  HWaddr 52:54:00:af:d1:07  
          inet addr:192.168.1.17  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::5054:ff:feaf:d107/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1171 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2148 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:715659 (698.8 KiB)  TX bytes:236578 (231.0 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:360 errors:0 dropped:0 overruns:0 frame:0
          TX packets:360 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:18000 (17.5 KiB)  TX bytes:18000 (17.5 KiB)

is that normal ?

Cheers,

Mathilde

from socketplane.

mffrench avatar mffrench commented on August 18, 2024

On the same fedora I checked the ovs-vsctl show and it alarms me :

╭─mffrench@tradeflow2-mbrfsrv01  ~  
╰─$ sudo ovs-vsctl show                                          
f6520886-3e7f-4368-96bf-ae7432a219bf
    Manager "ptcp:6640"
    ovs_version: "2.3.1-git3282e51"

then I thought selinux was the problem and I disable it. Much better for ovs but still no inteface docker0-ovs...

╭─mffrench@tradeflow2-mbrfsrv01  ~  
╰─$ sudo ovs-vsctl show                                          
f6520886-3e7f-4368-96bf-ae7432a219bf
    Manager "ptcp:6640"
        is_connected: true
    Bridge "docker0-ovs"
        Port default
            tag: 1
            Interface default
                type: internal
        Port "docker0-ovs"
            Interface "docker0-ovs"
                type: internal
    ovs_version: "2.3.1-git3282e51"
╭─mffrench@tradeflow2-mbrfsrv01  ~  
╰─$ ifconfig 
docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.17.42.1  netmask 255.255.0.0  broadcast 0.0.0.0
        ether 56:84:7a:fe:97:99  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.33.33  netmask 255.255.255.0  broadcast 192.168.33.255
        inet6 fe80::5054:ff:fe40:c0b3  prefixlen 64  scopeid 0x20<link>
        ether 52:54:00:40:c0:b3  txqueuelen 1000  (Ethernet)
        RX packets 137670  bytes 206641461 (197.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 52148  bytes 3789096 (3.6 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.17  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::5054:ff:feaf:d107  prefixlen 64  scopeid 0x20<link>
        ether 52:54:00:af:d1:07  txqueuelen 1000  (Ethernet)
        RX packets 19  bytes 1704 (1.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 10  bytes 1334 (1.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Boucle locale)
        RX packets 48  bytes 31103 (30.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 48  bytes 31103 (30.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

╭─mffrench@tradeflow2-mbrfsrv01  ~  
╰─$ docker logs -f socketplane
ERRO[0002] 0x464690                                     
mkdir /var/run/netns failed mkdir /var/run/netns: file exists
ERRO[0000] 0x464690                                     
INFO[0000] Binding to eth0                              
==> WARNING: Bootstrap mode enabled! Do not enable unless necessary
==> WARNING: It is highly recommended to set GOMAXPROCS higher than 1
==> Starting Consul agent...
==> Starting Consul agent RPC...
2015/03/18 19:03:00 consul.watch: Watch (type: nodes) errored: Unexpected response code: 500 (No cluster leader), retry in 5s
==> Consul agent running!
         Node name: 'tradeflow2-mbrfsrv01.lab01.dev.dekatonshivr.echinopsii.net'
        Datacenter: 'dc1'
            Server: true (bootstrap: true)
       Client Addr: 127.0.0.1 (HTTP: 8500, HTTPS: -1, DNS: 8600, RPC: 8400)
      Cluster Addr: 192.168.33.33 (LAN: 8301, WAN: 8302)
    Gossip encrypt: false, RPC-TLS: false, TLS-Incoming: false

==> Log data will now stream in as it occurs:

    2015/03/18 19:03:00 [INFO] serf: EventMemberJoin: tradeflow2-mbrfsrv01.lab01.dev.dekatonshivr.echinopsii.net 192.168.33.33
    2015/03/18 19:03:00 [INFO] serf: EventMemberJoin: tradeflow2-mbrfsrv01.lab01.dev.dekatonshivr.echinopsii.net.dc1 192.168.33.33
    2015/03/18 19:03:00 [INFO] raft: Node at 192.168.33.33:8300 [Follower] entering Follower state
    2015/03/18 19:03:00 [INFO] consul: adding server tradeflow2-mbrfsrv01.lab01.dev.dekatonshivr.echinopsii.net (Addr: 192.168.33.33:8300) (DC: dc1)
    2015/03/18 19:03:00 [INFO] consul: adding server tradeflow2-mbrfsrv01.lab01.dev.dekatonshivr.echinopsii.net.dc1 (Addr: 192.168.33.33:8300) (DC: dc1)
    2015/03/18 19:03:00 [ERR] http: Request /v1/catalog/nodes, error: No cluster leader
    2015/03/18 19:03:00 [ERR] agent: failed to sync remote state: No cluster leader
    2015/03/18 19:03:02 [WARN] raft: Heartbeat timeout reached, starting election
    2015/03/18 19:03:02 [INFO] raft: Node at 192.168.33.33:8300 [Candidate] entering Candidate state
    2015/03/18 19:03:02 [INFO] raft: Election won. Tally: 1
    2015/03/18 19:03:02 [INFO] raft: Node at 192.168.33.33:8300 [Leader] entering Leader state
    2015/03/18 19:03:02 [INFO] consul: cluster leadership acquired
    2015/03/18 19:03:02 [INFO] consul: New leader elected: tradeflow2-mbrfsrv01.lab01.dev.dekatonshivr.echinopsii.net
    2015/03/18 19:03:02 [INFO] raft: Disabling EnableSingleNode (bootstrap)
    2015/03/18 19:03:02 [INFO] consul: member 'tradeflow2-mbrfsrv01.lab01.dev.dekatonshivr.echinopsii.net' joined, marking health alive
==> Newer Consul version available: 0.5.0
    2015/03/18 19:03:04 [INFO] agent: Synced service 'consul'
INFO[0005] New Node joined the cluster : 192.168.33.33  
2015/03/18 19:03:05 Status of Get 404 Not Found 404 for http://localhost:8500/v1/kv/vlan/vlan
2015/03/18 19:03:05 Updating KV pair for http://localhost:8500/v1/kv/vlan/vlan?cas=0 vlan � 0
2015/03/18 19:03:05 Status of Get 404 Not Found 404 for http://localhost:8500/v1/kv/ipam/10.1.0.0/16
2015/03/18 19:03:05 Updating KV pair for http://localhost:8500/v1/kv/ipam/10.1.0.0/16?cas=0 10.1.0.0/16 � 0
2015/03/18 19:03:58 Status of Get 404 Not Found 404 for http://localhost:8500/v1/kv/network?recurse
2015/03/18 19:03:59 Status of Get 404 Not Found 404 for http://localhost:8500/v1/kv/network?recurse

There is also not default inteface and so no default network :

╭─mffrench@tradeflow2-mbrfsrv01  ~  
╰─$ sdocker network list                                               2 ↵
[]

from socketplane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.