Jarli01 / xenorchestra_updater

Xen Orchestra Update Script, used to keep current with the XO program developed by Olivier Lambert
GNU General Public License v3.0
233 stars 32 forks source link

Cloud Plugin #28

Closed kevdogg closed 5 years ago

kevdogg commented 5 years ago

Hi I'm consistently getting xo-server-cloud message within journalctl logs for the xo-server.service. Is this related to the cloud plugin?

Confirm XOCE services are running

● xo-server.service - XO Server
   Loaded: loaded (/lib/systemd/system/xo-server.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2019-10-07 13:55:02 CDT; 8min ago
 Main PID: 15987 (node)
    Tasks: 17 (limit: 2281)
   CGroup: /system.slice/xo-server.service
           ├─15987 /usr/local/bin/node ./bin/xo-server
           └─16022 /usr/bin/node /opt/xen-orchestra/node_modules/jest-worker/build/workers/processC

Oct 07 14:02:06 ubuntu_xo xo-server[15987]:      [Symbol(mutatedCallSite)]: [ CallSite {} ] } }
Oct 07 14:02:06 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 1047 ms
Oct 07 14:02:07 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 979 ms
Oct 07 14:02:08 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 2067 ms
Oct 07 14:02:10 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 3146 ms
Oct 07 14:02:13 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 4829 ms
Oct 07 14:02:18 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 8301 ms
Oct 07 14:02:26 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 12394 ms
Oct 07 14:02:39 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 20596 ms
Oct 07 14:02:59 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 32370 ms

Provide the output of journalctl logs

root@ubuntu_xo:~/bin# journalctl -u xo-server -f -n 50
-- Logs begin at Sun 2019-03-03 17:19:51 CST. --
Oct 07 14:02:10 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 3146 ms
Oct 07 14:02:13 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 4829 ms
Oct 07 14:02:18 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 8301 ms
Oct 07 14:02:26 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 12394 ms
Oct 07 14:02:39 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 20596 ms
Oct 07 14:02:59 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 32370 ms
Oct 07 14:03:32 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 54138 ms
Oct 07 14:04:26 ubuntu_xo xo-server[15987]: xo-server-cloud: fail to connect to updater ErrorEvent {
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:   target:
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:    WebSocket {
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      domain: null,
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      _events: {},
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      _eventsCount: 0,
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      _maxListeners: undefined,
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      readyState: 3,
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      protocol: '',
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      _binaryType: 'nodebuffer',
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      _closeFrameReceived: false,
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      _closeFrameSent: false,
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      _closeMessage: '',
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      _closeTimer: null,
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      _closeCode: 1006,
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      _extensions: {},
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      _receiver: null,
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      _sender: null,
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      _socket: null,
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      _isServer: false,
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      _redirects: 0,
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      url: 'ws://localhost:9001',
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      _req: null },
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:   type: 'error',
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:   message: 'connect ECONNREFUSED 127.0.0.1:9001',
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:   error:
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:    { Error: connect ECONNREFUSED 127.0.0.1:9001
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      errno: 'ECONNREFUSED',
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      code: 'ECONNREFUSED',
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      syscall: 'connect',
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      address: '127.0.0.1',
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      port: 9001,
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      [Symbol(originalCallSite)]: [ CallSite {} ],
Oct 07 14:04:26 ubuntu_xo xo-server[15987]:      [Symbol(mutatedCallSite)]: [ CallSite {} ] } }
Oct 07 14:04:26 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 1029 ms
Oct 07 14:04:27 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 1006 ms
Oct 07 14:04:28 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 1992 ms
Oct 07 14:04:30 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 3053 ms
Oct 07 14:04:33 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 4991 ms
Oct 07 14:04:38 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 7735 ms
Oct 07 14:04:46 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 12677 ms
Oct 07 14:04:58 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 20666 ms
Oct 07 14:05:19 ubuntu_xo xo-server[15987]: xo-server-cloud: next attempt in 35581 ms

Provide answers to these questions:

Here is a list of my listening processes

root@ubuntu_xo:~/bin# sudo netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 localhost:domain        0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:ssh             0.0.0.0:*               LISTEN
tcp        0      0 localhost.localdom:6010 0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:41065           0.0.0.0:*               LISTEN
tcp        0      0 localhost.localdom:6379 0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:sunrpc          0.0.0.0:*               LISTEN
tcp6       0      0 [::]:http               [::]:*                  LISTEN
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN
tcp6       0      0 localhost6.localdo:6010 [::]:*                  LISTEN
tcp6       0      0 [::]:https              [::]:*                  LISTEN
tcp6       0      0 [::]:46467              [::]:*                  LISTEN
tcp6       0      0 localhost6.localdo:6379 [::]:*                  LISTEN
tcp6       0      0 [::]:sunrpc             [::]:*                  LISTEN
udp        0      0 0.0.0.0:717             0.0.0.0:*
udp        0      0 localhost.localdoma:818 0.0.0.0:*
udp        0      0 localhost:domain        0.0.0.0:*
udp        0      0 0.0.0.0:sunrpc          0.0.0.0:*
udp        0      0 0.0.0.0:48566           0.0.0.0:*
udp6       0      0 [::]:717                [::]:*
udp6       0      0 [::]:43101              [::]:*
udp6       0      0 [::]:sunrpc             [::]:*
raw6       0      0 [::]:ipv6-icmp          [::]:*                  7
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node   Path
unix  2      [ ACC ]     SEQPACKET  LISTENING     21055    /run/udev/control
unix  2      [ ACC ]     STREAM     LISTENING     32898    /run/user/1000/systemd/private
unix  2      [ ACC ]     STREAM     LISTENING     32902    /run/user/1000/gnupg/S.dirmngr
unix  2      [ ACC ]     STREAM     LISTENING     32903    /run/user/1000/gnupg/S.gpg-agent.extra
unix  2      [ ACC ]     STREAM     LISTENING     32904    /run/user/1000/gnupg/S.gpg-agent
unix  2      [ ACC ]     STREAM     LISTENING     32905    /run/user/1000/gnupg/S.gpg-agent.browser
unix  2      [ ACC ]     STREAM     LISTENING     32906    /run/user/1000/gnupg/S.gpg-agent.ssh
unix  2      [ ACC ]     STREAM     LISTENING     25829    /run/uuidd/request
unix  2      [ ACC ]     STREAM     LISTENING     25833    /run/snapd.socket
unix  2      [ ACC ]     STREAM     LISTENING     25835    /run/snapd-snap.socket
unix  2      [ ACC ]     STREAM     LISTENING     21036    /run/systemd/private
unix  2      [ ACC ]     STREAM     LISTENING     25838    /var/run/dbus/system_bus_socket
unix  2      [ ACC ]     STREAM     LISTENING     25508    @irqbalance682.sock
unix  2      [ ACC ]     STREAM     LISTENING     21051    /run/lvm/lvmpolld.socket
unix  2      [ ACC ]     STREAM     LISTENING     21053    /run/rpcbind.sock
unix  2      [ ACC ]     STREAM     LISTENING     21057    /run/systemd/journal/stdout
unix  2      [ ACC ]     STREAM     LISTENING     21124    /run/lvm/lvmetad.socket
unix  2      [ ACC ]     STREAM     LISTENING     25849    /var/lib/lxd/unix.socket
unix  2      [ ACC ]     STREAM     LISTENING     113483   /var/lib/xo-server/data/leveldb/level-party.sock
unix  2      [ ACC ]     STREAM     LISTENING     25842    /run/acpid.socket
unix  2      [ ACC ]     STREAM     LISTENING     25851    @ISCSIADM_ABSTRACT_NAMESPACE
Jarli01 commented 5 years ago

The cloud plugin is for XOSAN. If you disable the plugin manually do you have any issues?

kevdogg commented 5 years ago

@Jarli01 Disabling the plugin and restarting the server -- seems those messages went away. Seems like XOSAN is loaded and enabled by default. I've read about XOSAN and it sound pretty cool. Is there something with either the XO or xcp-ng installation I need to do to make it work properly --- seems like it was listening for a connection on localhost on port 9001. Should something be running on that port?

Jarli01 commented 5 years ago

To clarify, this script installs a default set of add-ons, but it shouldn't enable them.

XOSAN is open source, so you can build it yourself, the Vatesfr team hasn't released a click to use type solution for the XOSAN setup.

The plug-in is there to administer it, that's all.

To find out more you'd have to check on the xo forums.