Installing LMX and Ceph multimode on Ubuntu 18.04 (Octopus / Train)

From Define Wiki
Jump to navigation Jump to search
  • Most of this page is just notes from error encounters, follow the lentos guide and check here for problems

deploy node with multiple ip addr

root@ausyd-mha1-lc01:~/scratch/scripts# cat /etc/netplan/00-installer-config.yaml 
# This is the network config written by 'subiquity'
network:
  ethernets: 

     eno1:
        dhcp4: no
        addresses:
           - 10.14.11.31/24
           - 10.14.14.1/24
           - 10.14.15.1/24
        #gateway4: 10.14.11.254
        nameservers:
           addresses: [8.8.8.8, 8.8.4.4]

     eno3:
        dhcp4: no
        addresses:
           - 10.14.13.1/24
        gateway4: 10.14.13.254
        nameservers:
           addresses: [8.8.8.8, 8.8.4.4]

     enp94s0f0:
        dhcp4: false
        optional: true
     enp94s0f1:
        dhcp4: false
        optional: true


  version: 2

Bonding setup on Ubuntu

root@ausyd-mha1-lc02-api:/etc/netplan# cat 00-installer-config.yaml 
# This is the network config written by 'subiquity'
network:
  ethernets:
     eno1:
        dhcp4: no
        addresses:
           - 10.14.11.32/24
       #gateway4: 10.14.11.254
        nameservers:
           addresses: [8.8.8.8, 8.8.4.4]

     eno3:
        dhcp4: no
        addresses:
           - 10.14.13.2/24
        gateway4: 10.14.13.254
        nameservers:
           addresses: [8.8.8.8, 8.8.4.4]




     enp59s0f0:
        dhcp4: false
        optional: true
     enp59s0f1:
        dhcp4: false
        optional: true

     enp94s0f0:
        dhcp4: false
        optional: true
     enp94s0f1:
        dhcp4: false
        optional: true



          
  version: 2

and the bonding.yaml file

root@ausyd-mha1-lc02-api:/etc/netplan# cat 02-bondings.yaml 
# This is the network config written by 'subiquity'
network:
  bonds:
        bond0:
            interfaces: [enp59s0f0, enp59s0f1]
            parameters:
                mode: 802.3ad

            dhcp4: false
            optional: true

        bond1:
            interfaces: [enp94s0f0, enp94s0f1]
            parameters:
                mode: 802.3ad

            dhcp4: false
            optional: true
  vlans:
        bond0.100:
            id: 1414
            link: bond0
            addresses : [10.14.14.2/24]
            #gateway4: 10.14.14.254
            #mtu: 9000
        bond0.200:
            id: 1415
            link: bond0
            addresses : [10.14.15.2/24]
        bond0.1486:
            id: 1486
            link: bond0   
            addresses : [206.148.6.129/27]

  version: 2

once done

sudo netplan apply

Docker login seems to want X11 access

root@ausyd-mha1-lc01:~/kolla/config/cinder# docker login https://registry.define-technology.com:443
Username: definetech
Password: 
Error saving credentials: error storing credentials - err: exit status 1, out: `Cannot autolaunch D-Bus without X11 $DISPLAY`

Workaround:

apt install gnupg2 pass
gpg2 --full-generate-key # go with defaults, give name etc
<pre>

Lets list the key and init the store
<pre>
root@ausyd-mha1-lc01:~/kolla/config/cinder# gpg -k
gpg: checking the trustdb
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
/root/.gnupg/pubring.kbx
------------------------
pub   rsa3072 2021-03-23 [SC]
      64398445E82540E7CA00C95AC7A72172060C32CB
uid           [ultimate] David Power (DefineTech) <david@define-technology.com>
sub   rsa3072 2021-03-23 [E]

root@ausyd-mha1-lc01:~/kolla/config/cinder# pass init "[ultimate] David Power (DefineTech) <david@define-technology.com>"
mkdir: created directory '/root/.password-store/'
Password store initialized for [ultimate] David Power (DefineTech) <david@define-technology.com>

Now login should work

root@ausyd-mha1-lc01:~/kolla/config/cinder# docker login https://registry.define-technology.com:443
Username: definetech
Password: 
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded