Upgrade 5.10 -> 5.12 works fine except LXD node fails monitor

I upgraded and my KVM hosts are fine but I get this in the monitor.log when I try to reenable an LXD node:

Fri Oct 23 17:01:36 2020 [Z0][MDP][W]: Start monitor failed for host 11: Error executing monitord-client_control.sh: /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- sqlite3 (LoadError)
        from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /var/tmp/one/im/lib/probe_db.rb:38:in `<top (required)>'
        from /var/tmp/one/im/lxd.d/monitord-client.rb:25:in `require_relative'
        from /var/tmp/one/im/lxd.d/monitord-client.rb:25:in `<main>'

I did a onehost sync which ran fine, and I get this on the LXD node:

# apt-get install --only-upgrade opennebula-node
Reading package lists... Done
Building dependency tree
Reading state information... Done
opennebula-node is already the newest version (5.10.1-1).
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

Should it be saying 5.12? I did a apt-get update first, no errors there.

After upgrading the frontend the only customization I had to put back was the MySQL configuration in oned.conf, so I don’t get why it’s mentioning sqlite3 in the error.

Any ideas? Thanks

—*** UPDATE ***—

Ah. never mind. I had to update the repository on the LXD node and do another apt-get update:

The first error is you are missing sqlite3 gem

apt search ruby-sqlite3
Sorting... Done
Full Text Search... Done
ruby-sqlite3/bionic,now 1.3.13-1build2 amd64 [installed,automatic]
  SQLite3 interface for Ruby

Install ruby-sqlite3 via apt

for the LXD node, you need to look for the package opennebula-node-lxd and make sure it is 5.12

apt show opennebula-node-lxd
Package: opennebula-node-lxd
Priority: Priority
Section: extra
Source: opennebula
Maintainer: OpenNebula Team <contact@opennebula.io>
Installed-Size: 215 kB
Depends: opennebula-common (=, kpartx, libvncserver1, e2fsprogs, xfsprogs, lxd (>= 3.0.0) | opennebula-lxd-snap (=, qemu-utils, adduser, ruby, vlan, ipset, pciutils, rsync, cron, ruby-sqlite3
Suggests: rbd-nbd
Conflicts: lxd (<< 3.0.0), lxd-client (<< 3.0.0)
Replaces: lxd (<< 3.0.0), lxd-client (<< 3.0.0)
Homepage: http://opennebula.org/
Download-Size: 23.5 kB
APT-Manual-Installed: yes
APT-Sources: http://services/build-dclavijo/ stable/opennebula amd64 Packages
Description: Services for OpenNebula LXD node (Community Edition)

Ah thanks Daniel! I just got it working- cheers.

1 Like