Skip to content

Instantly share code, notes, and snippets.

1. Integrate with existing validation hook in the service class http://git.openstack.org/cgit/openstack/nova/tree/nova/service.py#n283
2. Minimize performance effect on CI gate tests
3. Consider upgrade implications, integrate with upgrade testing tools
4. Stand-alone tool which will also work across services
5. Discover components to validate configurations for (e.g. if Neutron is configured, then check Neutron credentials are correct)
6. Stand-alone tool which will be run after initial deployment
7. Track validated configurations and only revalidate if needed
8. Run validation during service startup unless that affects performance
9. catch following error types: a) duplicate/nonexistant options; b) invalid mix of settings
10. generic standalone tool for case a) is in nova/tools: https://git.openstack.org/cgit/openstack/nova/tree/tools/config/analyze_opts.py
10.0.0.4:comp3
nova-compute-inst-175
nova-compute-inst-190 10.0.0.22, 10.49.252.89
nova-compute-inst-201
nova-compute-inst-209
nova-compute-inst-127
10.0.0.4:comp4
nova-compute-inst-27
nova-compute-inst-182
(drbd-node1)# vgs
VG #PV #LV #SN Attr VSize VFree
vg_shared 1 3 0 wz--nc 1.29t 1.04t
vg_sys 1 2 0 wz--n- 19.97g 5.97g
(drbd-node1)# vgchange -c y vg_shared
(drbd-node1)# service cman start
Starting cluster:
Checking if cluster has been disabled at boot... [ OK ]
Checking Network Manager... [ OK ]
Global setup... [ OK ]
Loading kernel modules... [ OK ]
Mounting configfs... [ OK ]
Starting cman... [ OK ]
Waiting for quorum... [ OK ]
Starting fenced... [ OK ]
global {
...
locking_type = 3
...
}
compatibility: whitetank
totem {
version: 2
secauth: off
threads: 0
# fail_recv_const: 5000
interface {
ringnumber: 0
bindnetaddr: 10.0.0.0
mcastaddr: 226.94.1.1
<?xml version="1.0"?>
<cluster name="cluster" config_version="1">
<!-- post_join_delay: number of seconds the daemon will wait before
fencing any victims after a node joins the domain
post_fail_delay: number of seconds the daemon will wait before
fencing any victims after a domain member fails
clean_start : prevent any startup fencing the daemon might do.
It indicates that the daemon should assume all nodes
are in a clean state to start. -->
<fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="3"/>
(drbd-node1)# yum install clvmd
...
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
lvm2-cluster x86_64 2.02.84-1.fc15 fedora 331 k
Installing for dependencies:
@ogelbukh
ogelbukh / gist:988389
Created May 24, 2011 09:04
lvm activate volume
# vgchange -a y nova
1 logical volume(s) in volume group "nova" now active