Seagate / halon

High availability solution
Apache License 2.0
1 stars 0 forks source link

[HALON-873] Multi-node `h0` script #1506

Closed 1468ca0b-2a64-4fb4-8e52-ea5806644b4c closed 5 years ago

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: vvv

CLI differences from the traditional (single-node) h0 script:

Sample configuration

(Tested with m0vg setup.)

$ cat ~/.m0-cluster.yaml
confds: [ cmu.local ]
ssus:
  - host:  ssu1.local
    disks: /dev/sd[b-g]
  - host:  ssu2.local
    disks: /dev/sd[b-g]
clients:     [ client1.local ]
clovis-apps: [ client1.local ]

Known issues

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: vvv

I'd prefer not to make h0 dependent on m0vg if we can help it.

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: chumakd

On VirtualBox, the first network interface (eth0) is not accessible outside of VM. The second interface is configured by m0vg specifically to be accessible among all VMs.

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: chumakd

is it necessary for facter to be installed on client1?

@vvv It is. Though, it is installed with m0vg up|provision automatically on every VM. If facter is missing on your client1 VM that means it must've been provisioned incorrectly.

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: chumakd

It was needed mostly because of m0provision:cmd_genfacts() func that does sudo m0genfacts. I think current implementation of m0genfacts does sudo internally so the script itself doesn't need to be called with sudo any more. I suppose we can drop sudo in front of m0genfacts and don't generate /root/.ssh/known_hosts, but that should tested.

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: chumakd

done, I've restarted Jenkins job: http://jenkins.mero.colo.seagate.com:8080/job/halon_github_trigger/138/

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: vvv

This breaks Jenkins CI. h0 setup call should be removed from Xperior script.

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: vvv

@chumakd Is modification of /root/.ssh/known_hosts really needed?