Created
March 12, 2015 02:06
-
-
Save cwolferh/b2b7c5320ab451731f27 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NOTE: In tests below c1a1 is one of 3 HA controllers and c1a5 is a nova compute node. Testing PR https://github.com/redhat-openstack/astapor/pull/489 | |
[samurai@baremetal ha]# ## TEST manage_ceph_conf | |
[samurai@baremetal ha]# VMSET=fore1a vftool.bash run /mnt/vm-share/mcs/foreman/config/ha/ha-params.bash >/dev/null | |
Warning: Permanently added 'fore1a,192.168.7.186' (ECDSA) to the list of known hosts. | |
Connection to fore1a closed. | |
[samurai@baremetal ha]# VMSET=fore1a vftool.bash run '/mnt/vm-share/mcs/foreman/api/hosts.rb show_yaml c1a1' | grep manage_ceph | |
Warning: Permanently added 'fore1a,192.168.7.186' (ECDSA) to the list of known hosts. | |
manage_ceph_conf: false | |
Connection to fore1a closed. | |
[samurai@baremetal ha]# VMSET='c1a1 c1a5' vftool.bash run 'cp /etc/ceph/ceph.conf /vs/tmp/$(hostname -s).ceph.conf' | |
Warning: Permanently added 'c1a1,192.168.7.97' (ECDSA) to the list of known hosts. | |
Warning: Permanently added 'c1a5,192.168.7.82' (ECDSA) to the list of known hosts. | |
Connection to c1a1 closed. | |
Connection to c1a5 closed. | |
[samurai@baremetal ha]# diff /vs/tmp/c1a1.ceph.conf /vs/tmp/c1a5.ceph.conf | |
[samurai@baremetal ha]# cp /vs/tmp/c1a1.ceph.conf /vs/tmp/test.ceph.conf | |
[samurai@baremetal ha]# echo 'EXTRA BITS' >> /vs/tmp/test.ceph.conf | |
[samurai@baremetal ha]# VMSET='c1a1 c1a5' vftool.bash run 'cp /vs/tmp/test.ceph.conf /etc/ceph/ceph.conf | |
> ' | |
Warning: Permanently added 'c1a5,192.168.7.82' (ECDSA) to the list of known hosts. | |
Warning: Permanently added 'c1a1,192.168.7.97' (ECDSA) to the list of known hosts. | |
Connection to c1a1 closed. | |
Connection to c1a5 closed. | |
[samurai@baremetal ha]# VMSET='c1a1 c1a5' vftool.bash run 'puppet agent -t' | |
<snip> | |
[samurai@baremetal ha]# VMSET='c1a1 c1a5' vftool.bash run 'tail /etc/ceph/ceph.conf' | |
Warning: Permanently added 'c1a1,192.168.7.97' (ECDSA) to the list of known hosts. | |
Warning: Permanently added 'c1a5,192.168.7.82' (ECDSA) to the list of known hosts. | |
osd_mkfs_options_xfs = -f -i size=2048 -n size=64k | |
osd_mount_options_xfs = -o inode64,noatime,logbsize=256k | |
[client.images] | |
keyring = /etc/ceph/ceph.client.images.keyring | |
[client.volumes] | |
keyring = /etc/ceph/ceph.client.volumes.keyring | |
EXTRA BITS | |
Connection to c1a1 closed. | |
osd_mkfs_options_xfs = -f -i size=2048 -n size=64k | |
osd_mount_options_xfs = -o inode64,noatime,logbsize=256k | |
[client.images] | |
keyring = /etc/ceph/ceph.client.images.keyring | |
[client.volumes] | |
keyring = /etc/ceph/ceph.client.volumes.keyring | |
EXTRA BITS | |
Connection to c1a5 closed. | |
[samurai@baremetal ha]# ## VERIFIED ceph.conf was not updated, now toggle manage_ceph_conf | |
[samurai@baremetal ha]# VMSET=fore1a vftool.bash run /mnt/vm-share/mcs/foreman/config/ha/ha-params.bash >/dev/null | |
Warning: Permanently added 'fore1a,192.168.7.186' (ECDSA) to the list of known hosts. | |
Connection to fore1a closed. | |
[samurai@baremetal ha]# VMSET='c1a1 c1a5' vftool.bash run 'puppet agent -t' | |
<snip> | |
--- /etc/ceph/ceph.conf 2015-03-11 15:41:54.588752888 -0700 | |
+++ /tmp/puppet-file20150311-23314-1p1cne5 2015-03-11 15:48:08.715752888 -0700 | |
@@ -22,4 +22,3 @@ | |
[client.volumes] | |
keyring = /etc/ceph/ceph.client.volumes.keyring | |
-EXTRA BITS | |
--- /etc/ceph/ceph.conf 2015-03-11 15:41:54.603155760 -0700 | |
+++ /tmp/puppet-file20150311-3286-1a0676k 2015-03-11 15:48:18.384155760 -0700 | |
@@ -22,4 +22,3 @@ | |
[client.volumes] | |
keyring = /etc/ceph/ceph.client.volumes.keyring | |
-EXTRA BITS | |
<snip> | |
[samurai@baremetal ha]# VMSET=fore1a vftool.bash run '/mnt/vm-share/mcs/foreman/api/hosts.rb show_yaml c1a1' | grep manage_ceph | |
Warning: Permanently added 'fore1a,192.168.7.186' (ECDSA) to the list of known hosts. | |
manage_ceph_conf: true | |
Connection to fore1a closed. | |
[samurai@baremetal ha]# VMSET='c1a1 c1a5' vftool.bash run 'tail /etc/ceph/ceph.conf' | |
Warning: Permanently added 'c1a1,192.168.7.97' (ECDSA) to the list of known hosts. | |
Warning: Permanently added 'c1a5,192.168.7.82' (ECDSA) to the list of known hosts. | |
osd_journal_size = 1000 | |
osd_mkfs_options_xfs = -f -i size=2048 -n size=64k | |
osd_mount_options_xfs = -o inode64,noatime,logbsize=256k | |
[client.images] | |
keyring = /etc/ceph/ceph.client.images.keyring | |
[client.volumes] | |
keyring = /etc/ceph/ceph.client.volumes.keyring | |
Connection to c1a1 closed. | |
osd_journal_size = 1000 | |
osd_mkfs_options_xfs = -f -i size=2048 -n size=64k | |
osd_mount_options_xfs = -o inode64,noatime,logbsize=256k | |
[client.images] | |
keyring = /etc/ceph/ceph.client.images.keyring | |
[client.volumes] | |
keyring = /etc/ceph/ceph.client.volumes.keyring | |
Connection to c1a5 closed. | |
[samurai@baremetal ha]# ## CONFIRMED THAT TOGGLING manage_ceph_conf BACK TO TRUE CAUSES ceph.conf TO BE MANAGED | |
[samurai@baremetal ha]# | |
[samurai@baremetal ha]# ## TEST SETTING ceph_rgw_key TO NON EMPTY CREATES the rgw keyring file | |
[samurai@baremetal ha]# VMSET=fore1a vftool.bash run '/mnt/vm-share/mcs/foreman/api/hosts.rb show_yaml c1a1' | grep rgw_key | |
Warning: Permanently added 'fore1a,192.168.7.186' (ECDSA) to the list of known hosts. | |
ceph_rgw_key: '' | |
ceph_rgw_keyring_filename: /etc/ceph/ceph.client.radosgw.keyring | |
Connection to fore1a closed. | |
[samurai@baremetal ha]# VMSET=fore1a vftool.bash run /mnt/vm-share/mcs/foreman/config/ha/ha-params.bash >/dev/null | |
Warning: Permanently added 'fore1a,192.168.7.186' (ECDSA) to the list of known hosts. | |
Connection to fore1a closed. | |
[samurai@baremetal ha]# VMSET=fore1a vftool.bash run '/mnt/vm-share/mcs/foreman/api/hosts.rb show_yaml c1a1' | grep rgw_key | |
Warning: Permanently added 'fore1a,192.168.7.186' (ECDSA) to the list of known hosts. | |
ceph_rgw_key: AQAPxwBVMKMcARAACVY+3/3n0EfCoQQnsaoTXg== | |
ceph_rgw_keyring_filename: /etc/ceph/ceph.client.radosgw.keyring | |
Connection to fore1a closed. | |
[samurai@baremetal ha]# VMSET='c1a1 c1a5' vftool.bash run 'ls /etc/ceph' | |
Warning: Permanently added 'c1a1,192.168.7.97' (ECDSA) to the list of known hosts. | |
Warning: Permanently added 'c1a5,192.168.7.82' (ECDSA) to the list of known hosts. | |
ceph.client.admin.keyring ceph.client.volumes.keyring rbdmap | |
ceph.client.images.keyring ceph.conf tmpp6d50e | |
Connection to c1a1 closed. | |
ceph.client.admin.keyring ceph.client.volumes.keyring rbdmap | |
ceph.client.images.keyring ceph.conf tmpukw1y1 | |
Connection to c1a5 closed. | |
[samurai@baremetal ha]# VMSET='c1a1 c1a5' vftool.bash run 'puppet agent -t' | |
<snip> | |
Connection to c1a1 closed. | |
[samurai@baremetal ha]# VMSET='c1a1 c1a5' vftool.bash run 'ls /etc/ceph' | |
Warning: Permanently added 'c1a1,192.168.7.97' (ECDSA) to the list of known hosts. | |
Warning: Permanently added 'c1a5,192.168.7.82' (ECDSA) to the list of known hosts. | |
ceph.client.admin.keyring ceph.client.radosgw.keyring ceph.conf tmpp6d50e | |
ceph.client.images.keyring ceph.client.volumes.keyring rbdmap | |
Connection to c1a1 closed. | |
ceph.client.admin.keyring ceph.client.radosgw.keyring ceph.conf tmpukw1y1 | |
ceph.client.images.keyring ceph.client.volumes.keyring rbdmap | |
Connection to c1a5 closed. | |
[samurai@baremetal ha]# VMSET='c1a1 c1a5' vftool.bash run 'cat /etc/ceph/ceph.client.radosgw.keyring' | |
Warning: Permanently added 'c1a1,192.168.7.97' (ECDSA) to the list of known hosts. | |
Warning: Permanently added 'c1a5,192.168.7.82' (ECDSA) to the list of known hosts. | |
[client.radosgw.gateway] | |
key = AQAPxwBVMKMcARAACVY+3/3n0EfCoQQnsaoTXg== | |
caps mon = "allow rwx" | |
caps osd = "allow rwx" | |
Connection to c1a1 closed. | |
[client.radosgw.gateway] | |
key = AQAPxwBVMKMcARAACVY+3/3n0EfCoQQnsaoTXg== | |
caps mon = "allow rwx" | |
caps osd = "allow rwx" | |
Connection to c1a5 closed. | |
[samurai@baremetal ha]# ## VERIFIED ceph_rgw_key populates keyring as expected | |
[samurai@baremetal ha]# | |
[samurai@baremetal ha]# ## TEST CHANGING ceph_conf_include_rgw FROM false TO true CAUSES STANZA TO BE ADDED TO ceph.conf | |
[samurai@baremetal ha]# VMSET=fore1a vftool.bash run '/mnt/vm-share/mcs/foreman/api/hosts.rb show_yaml c1a1' | grep ceph_conf_include_rgw | |
Warning: Permanently added 'fore1a,192.168.7.186' (ECDSA) to the list of known hosts. | |
ceph_conf_include_rgw: false | |
Connection to fore1a closed. | |
[samurai@baremetal ha]# VMSET=fore1a vftool.bash run '/mnt/vm-share/mcs/foreman/api/hosts.rb show_yaml c1a5' | grep ceph_conf_include_rgw | |
Warning: Permanently added 'fore1a,192.168.7.186' (ECDSA) to the list of known hosts. | |
ceph_conf_include_rgw: false | |
Connection to fore1a closed. | |
[samurai@baremetal ha]# VMSET='c1a1 c1a5' vftool.bash run 'cat /etc/ceph/ceph.conf' | |
Warning: Permanently added 'c1a1,192.168.7.97' (ECDSA) to the list of known hosts. | |
Warning: Permanently added 'c1a5,192.168.7.82' (ECDSA) to the list of known hosts. | |
[global] | |
fsid = 904c8491-5c16-4dae-9cc3-6ce633a7f4cc | |
mon_initial_members = c1a1, c1a2, c1a3 | |
mon_host = 192.168.200.10, 192.168.200.20, 192.168.200.30 | |
auth_cluster_required = cephx | |
auth_service_required = cephx | |
auth_client_required = cephx | |
filestore_xattr_use_omap = true | |
public_network = 192.168.200.0/24 | |
cluster_network = 192.168.201.0/24 | |
[osd] | |
osd_pool_default_size = 1 | |
osd_journal_size = 1000 | |
osd_mkfs_options_xfs = -f -i size=2048 -n size=64k | |
osd_mount_options_xfs = -o inode64,noatime,logbsize=256k | |
[client.images] | |
keyring = /etc/ceph/ceph.client.images.keyring | |
[client.volumes] | |
keyring = /etc/ceph/ceph.client.volumes.keyring | |
Connection to c1a1 closed. | |
[global] | |
fsid = 904c8491-5c16-4dae-9cc3-6ce633a7f4cc | |
mon_initial_members = c1a1, c1a2, c1a3 | |
mon_host = 192.168.200.10, 192.168.200.20, 192.168.200.30 | |
auth_cluster_required = cephx | |
auth_service_required = cephx | |
auth_client_required = cephx | |
filestore_xattr_use_omap = true | |
public_network = 192.168.200.0/24 | |
cluster_network = 192.168.201.0/24 | |
[osd] | |
osd_pool_default_size = 1 | |
osd_journal_size = 1000 | |
osd_mkfs_options_xfs = -f -i size=2048 -n size=64k | |
osd_mount_options_xfs = -o inode64,noatime,logbsize=256k | |
[client.images] | |
keyring = /etc/ceph/ceph.client.images.keyring | |
[client.volumes] | |
keyring = /etc/ceph/ceph.client.volumes.keyring | |
Connection to c1a5 closed. | |
[samurai@baremetal ha]# VMSET=fore1a vftool.bash run /mnt/vm-share/mcs/foreman/config/ha/ha-params.bash >/dev/null | |
Warning: Permanently added 'fore1a,192.168.7.186' (ECDSA) to the list of known hosts. | |
Connection to fore1a closed. | |
[samurai@baremetal ha]# VMSET=fore1a vftool.bash run '/mnt/vm-share/mcs/foreman/api/hosts.rb show_yaml c1a1' | grep ceph_conf_include_rgw | |
Warning: Permanently added 'fore1a,192.168.7.186' (ECDSA) to the list of known hosts. | |
ceph_conf_include_rgw: true | |
Connection to fore1a closed. | |
[samurai@baremetal ha]# VMSET='c1a1 c1a5' vftool.bash run 'puppet agent -t' | |
<snip> --- /etc/ceph/ceph.conf 2015-03-11 15:48:08.868752888 -0700 | |
+++ /tmp/puppet-file20150311-25235-10wg3di 2015-03-11 16:15:10.342752888 -0700 | |
@@ -22,3 +22,10 @@ | |
[client.volumes] | |
keyring = /etc/ceph/ceph.client.volumes.keyring | |
+[client.radosgw.gateway] | |
+host = c1a5 | |
+keyring = /etc/ceph/ceph.client.radosgw.keyring | |
+rgw socket path = /var/run/ceph/ceph.radosgw.gateway.fastcgi.sock | |
+log file = /var/log/radosgw/client.radosgw.gateway.log | |
+rgw print continue = false | |
+ | |
.... | |
+[client.radosgw.gateway] | |
+host = c1a1 | |
+keyring = /etc/ceph/ceph.client.radosgw.keyring | |
+rgw socket path = /var/run/ceph/ceph.radosgw.gateway.fastcgi.sock | |
+log file = /var/log/radosgw/client.radosgw.gateway.log | |
+rgw print continue = false | |
+ <snip> | |
[samurai@baremetal ha]# VMSET='c1a1 c1a5' vftool.bash run 'cat /etc/ceph/ceph.conf' | |
Warning: Permanently added 'c1a1,192.168.7.97' (ECDSA) to the list of known hosts. | |
Warning: Permanently added 'c1a5,192.168.7.82' (ECDSA) to the list of known hosts. | |
[global] | |
fsid = 904c8491-5c16-4dae-9cc3-6ce633a7f4cc | |
mon_initial_members = c1a1, c1a2, c1a3 | |
mon_host = 192.168.200.10, 192.168.200.20, 192.168.200.30 | |
auth_cluster_required = cephx | |
auth_service_required = cephx | |
auth_client_required = cephx | |
filestore_xattr_use_omap = true | |
public_network = 192.168.200.0/24 | |
cluster_network = 192.168.201.0/24 | |
[osd] | |
osd_pool_default_size = 1 | |
osd_journal_size = 1000 | |
osd_mkfs_options_xfs = -f -i size=2048 -n size=64k | |
osd_mount_options_xfs = -o inode64,noatime,logbsize=256k | |
[client.images] | |
keyring = /etc/ceph/ceph.client.images.keyring | |
[client.volumes] | |
keyring = /etc/ceph/ceph.client.volumes.keyring | |
[client.radosgw.gateway] | |
host = c1a1 | |
keyring = /etc/ceph/ceph.client.radosgw.keyring | |
rgw socket path = /var/run/ceph/ceph.radosgw.gateway.fastcgi.sock | |
log file = /var/log/radosgw/client.radosgw.gateway.log | |
rgw print continue = false | |
Connection to c1a1 closed. | |
[global] | |
fsid = 904c8491-5c16-4dae-9cc3-6ce633a7f4cc | |
mon_initial_members = c1a1, c1a2, c1a3 | |
mon_host = 192.168.200.10, 192.168.200.20, 192.168.200.30 | |
auth_cluster_required = cephx | |
auth_service_required = cephx | |
auth_client_required = cephx | |
filestore_xattr_use_omap = true | |
public_network = 192.168.200.0/24 | |
cluster_network = 192.168.201.0/24 | |
[osd] | |
osd_pool_default_size = 1 | |
osd_journal_size = 1000 | |
osd_mkfs_options_xfs = -f -i size=2048 -n size=64k | |
osd_mount_options_xfs = -o inode64,noatime,logbsize=256k | |
[client.images] | |
keyring = /etc/ceph/ceph.client.images.keyring | |
[client.volumes] | |
keyring = /etc/ceph/ceph.client.volumes.keyring | |
[client.radosgw.gateway] | |
host = c1a5 | |
keyring = /etc/ceph/ceph.client.radosgw.keyring | |
rgw socket path = /var/run/ceph/ceph.radosgw.gateway.fastcgi.sock | |
log file = /var/log/radosgw/client.radosgw.gateway.log | |
rgw print continue = false | |
Connection to c1a5 closed. | |
[samurai@baremetal ha]# ## VERIFIED, [client.radosgw.gateway] sections now appear | |
[samurai@baremetal ha]# | |
[samurai@baremetal ha]# ## TEST CHANGING ceph_conf_include_osd_global FROM true TO false CAUSES [osd] STANZA TO BE REMOVED TO ceph.conf | |
[samurai@baremetal ha]# VMSET=fore1a vftool.bash run /mnt/vm-share/mcs/foreman/config/ha/ha-params.bash >/dev/null | |
Warning: Permanently added 'fore1a,192.168.7.186' (ECDSA) to the list of known hosts. | |
Connection to fore1a closed. | |
[samurai@baremetal ha]# VMSET=fore1a vftool.bash run '/mnt/vm-share/mcs/foreman/api/hosts.rb show_yaml c1a1' | grep ceph_conf_include_osd | |
Warning: Permanently added 'fore1a,192.168.7.186' (ECDSA) to the list of known hosts. | |
ceph_conf_include_osd_global: true | |
Connection to fore1a closed. | |
[samurai@baremetal ha]# VMSET=fore1a vftool.bash run /mnt/vm-share/mcs/foreman/config/ha/ha-params.bash >/dev/null | |
Warning: Permanently added 'fore1a,192.168.7.186' (ECDSA) to the list of known hosts. | |
Connection to fore1a closed. | |
[samurai@baremetal ha]# VMSET=fore1a vftool.bash run '/mnt/vm-share/mcs/foreman/api/hosts.rb show_yaml c1a1' | grep ceph_conf_include_osd | |
Warning: Permanently added 'fore1a,192.168.7.186' (ECDSA) to the list of known hosts. | |
ceph_conf_include_osd_global: false | |
Connection to fore1a closed. | |
[samurai@baremetal ha]# VMSET='c1a1 c1a5' vftool.bash run 'puppet agent -t' | |
<snip>--- /etc/ceph/ceph.conf 2015-03-11 16:15:10.514752888 -0700 | |
+++ /tmp/puppet-file20150311-26171-1ohhnia 2015-03-11 16:34:44.324752888 -0700 | |
@@ -10,12 +10,6 @@ | |
public_network = 192.168.200.0/24 | |
cluster_network = 192.168.201.0/24 | |
-[osd] | |
-osd_pool_default_size = 1 | |
-osd_journal_size = 1000 | |
-osd_mkfs_options_xfs = -f -i size=2048 -n size=64k | |
-osd_mount_options_xfs = -o inode64,noatime,logbsize=256k | |
- | |
[client.images] | |
keyring = /etc/ceph/ceph.client.images.keyring | |
--- /etc/ceph/ceph.conf 2015-03-11 16:15:25.170155760 -0700 | |
+++ /tmp/puppet-file20150311-1443-r9ztfd 2015-03-11 16:34:59.420155760 -0700 | |
@@ -10,12 +10,6 @@ | |
public_network = 192.168.200.0/24 | |
cluster_network = 192.168.201.0/24 | |
-[osd] | |
-osd_pool_default_size = 1 | |
-osd_journal_size = 1000 | |
-osd_mkfs_options_xfs = -f -i size=2048 -n size=64k | |
-osd_mount_options_xfs = -o inode64,noatime,logbsize=256k | |
- | |
[client.images] | |
keyring = /etc/ceph/ceph.client.images.keyring | |
<snip> | |
[samurai@baremetal ha]# VMSET='c1a1 c1a5' vftool.bash run 'cat /etc/ceph/ceph.conf' | |
Warning: Permanently added 'c1a1,192.168.7.97' (ECDSA) to the list of known hosts. | |
Warning: Permanently added 'c1a5,192.168.7.82' (ECDSA) to the list of known hosts. | |
[global] | |
fsid = 904c8491-5c16-4dae-9cc3-6ce633a7f4cc | |
mon_initial_members = c1a1, c1a2, c1a3 | |
mon_host = 192.168.200.10, 192.168.200.20, 192.168.200.30 | |
auth_cluster_required = cephx | |
auth_service_required = cephx | |
auth_client_required = cephx | |
filestore_xattr_use_omap = true | |
public_network = 192.168.200.0/24 | |
cluster_network = 192.168.201.0/24 | |
[client.images] | |
keyring = /etc/ceph/ceph.client.images.keyring | |
[client.volumes] | |
keyring = /etc/ceph/ceph.client.volumes.keyring | |
[client.radosgw.gateway] | |
host = c1a1 | |
keyring = /etc/ceph/ceph.client.radosgw.keyring | |
rgw socket path = /var/run/ceph/ceph.radosgw.gateway.fastcgi.sock | |
log file = /var/log/radosgw/client.radosgw.gateway.log | |
rgw print continue = false | |
Connection to c1a1 closed. | |
[global] | |
fsid = 904c8491-5c16-4dae-9cc3-6ce633a7f4cc | |
mon_initial_members = c1a1, c1a2, c1a3 | |
mon_host = 192.168.200.10, 192.168.200.20, 192.168.200.30 | |
auth_cluster_required = cephx | |
auth_service_required = cephx | |
auth_client_required = cephx | |
filestore_xattr_use_omap = true | |
public_network = 192.168.200.0/24 | |
cluster_network = 192.168.201.0/24 | |
[client.images] | |
keyring = /etc/ceph/ceph.client.images.keyring | |
[client.volumes] | |
keyring = /etc/ceph/ceph.client.volumes.keyring | |
[client.radosgw.gateway] | |
host = c1a5 | |
keyring = /etc/ceph/ceph.client.radosgw.keyring | |
rgw socket path = /var/run/ceph/ceph.radosgw.gateway.fastcgi.sock | |
log file = /var/log/radosgw/client.radosgw.gateway.log | |
rgw print continue = false | |
Connection to c1a5 closed. | |
[samurai@baremetal ha]# # VERIFIED [osd] stanza is removed | |
[samurai@baremetal ha]# | |
[samurai@baremetal ha]# # TEST SETTING OTHER OSD PARAMS | |
[samurai@baremetal ha]# VMSET=fore1a vftool.bash run /mnt/vm-share/mcs/foreman/config/ha/ha-params.bash >/dev/null | |
Warning: Permanently added 'fore1a,192.168.7.186' (ECDSA) to the list of known hosts. | |
Connection to fore1a closed. | |
[samurai@baremetal ha]# VMSET=fore1a vftool.bash run '/mnt/vm-share/mcs/foreman/api/hosts.rb show_yaml c1a1' | grep 'ceph.*osd' | |
Warning: Permanently added 'fore1a,192.168.7.186' (ECDSA) to the list of known hosts. | |
ceph_conf_include_osd_global: true | |
ceph_osd_journal_size: '1000' | |
ceph_osd_mkfs_options_xfs: '' | |
ceph_osd_mount_options_xfs: just a test | |
ceph_osd_pool_size: '1' | |
Connection to fore1a closed. | |
[samurai@baremetal ha]# VMSET='c1a1 c1a5' vftool.bash run 'puppet agent -t' | |
<snip> | |
+[osd] | |
+osd_pool_default_size = 1 | |
+osd_journal_size = 1000 | |
+osd_mount_options_xfs = just a test | |
+ | |
[client.images] | |
keyring = /etc/ceph/ceph.client.images.keyring | |
--- /etc/ceph/ceph.conf 2015-03-11 16:34:59.450155760 -0700 | |
+++ /tmp/puppet-file20150311-16985-sq7jpk 2015-03-11 16:40:08.564155760 -0700 | |
@@ -10,6 +10,11 @@ | |
public_network = 192.168.200.0/24 | |
cluster_network = 192.168.201.0/24 | |
+[osd] | |
+osd_pool_default_size = 1 | |
+osd_journal_size = 1000 | |
+osd_mount_options_xfs = just a test | |
+ | |
[client.images] | |
keyring = /etc/ceph/ceph.client.images.keyring | |
<snip> | |
[samurai@baremetal ha]# VMSET='c1a1 c1a5' vftool.bash run 'cat /etc/ceph/ceph.conf' | |
Warning: Permanently added 'c1a1,192.168.7.97' (ECDSA) to the list of known hosts. | |
Warning: Permanently added 'c1a5,192.168.7.82' (ECDSA) to the list of known hosts. | |
[global] | |
fsid = 904c8491-5c16-4dae-9cc3-6ce633a7f4cc | |
mon_initial_members = c1a1, c1a2, c1a3 | |
mon_host = 192.168.200.10, 192.168.200.20, 192.168.200.30 | |
auth_cluster_required = cephx | |
auth_service_required = cephx | |
auth_client_required = cephx | |
filestore_xattr_use_omap = true | |
public_network = 192.168.200.0/24 | |
cluster_network = 192.168.201.0/24 | |
[osd] | |
osd_pool_default_size = 1 | |
osd_journal_size = 1000 | |
osd_mount_options_xfs = just a test | |
[client.images] | |
keyring = /etc/ceph/ceph.client.images.keyring | |
[client.volumes] | |
keyring = /etc/ceph/ceph.client.volumes.keyring | |
[client.radosgw.gateway] | |
host = c1a1 | |
keyring = /etc/ceph/ceph.client.radosgw.keyring | |
rgw socket path = /var/run/ceph/ceph.radosgw.gateway.fastcgi.sock | |
log file = /var/log/radosgw/client.radosgw.gateway.log | |
rgw print continue = false | |
Connection to c1a1 closed. | |
[global] | |
fsid = 904c8491-5c16-4dae-9cc3-6ce633a7f4cc | |
mon_initial_members = c1a1, c1a2, c1a3 | |
mon_host = 192.168.200.10, 192.168.200.20, 192.168.200.30 | |
auth_cluster_required = cephx | |
auth_service_required = cephx | |
auth_client_required = cephx | |
filestore_xattr_use_omap = true | |
public_network = 192.168.200.0/24 | |
cluster_network = 192.168.201.0/24 | |
[osd] | |
osd_pool_default_size = 1 | |
osd_journal_size = 1000 | |
osd_mount_options_xfs = just a test | |
[client.images] | |
keyring = /etc/ceph/ceph.client.images.keyring | |
[client.volumes] | |
keyring = /etc/ceph/ceph.client.volumes.keyring | |
[client.radosgw.gateway] | |
host = c1a5 | |
keyring = /etc/ceph/ceph.client.radosgw.keyring | |
rgw socket path = /var/run/ceph/ceph.radosgw.gateway.fastcgi.sock | |
log file = /var/log/radosgw/client.radosgw.gateway.log | |
rgw print continue = false | |
Connection to c1a5 closed. | |
[samurai@baremetal ha]# # VERIFIED. NOTE THAT EMPTY PARAM ceph_osd_mkfs_options_xfs IMPLIES IT SHOULD NOT BE PRESENT IN ceph.conf | |
[samurai@baremetal ha]# | |
[samurai@baremetal ha]# # TEST SETTING ceph_extra_conf_lines TO NON-EMPTY ARRAY APPENDS TO ceph.conf | |
[samurai@baremetal ha]# [samurai@baremetal ha]# VMSET=fore1a vftool.bash run /mnt/vm-share/mcs/foreman/config/ha/ha-params.bash >/dev/null | |
Warning: Permanently added 'fore1a,192.168.7.186' (ECDSA) to the list of known hosts. | |
Connection to fore1a closed. | |
[samurai@baremetal ha]# VMSET=fore1a vftool.bash run '/mnt/vm-share/mcs/foreman/api/hosts.rb show_yaml c1a1' | grep -A 3 extra_conf | |
Warning: Permanently added 'fore1a,192.168.7.186' (ECDSA) to the list of known hosts. | |
ceph_extra_conf_lines: | |
- ! '[hello]' | |
- do you know where you are | |
ceph_fsid: 904c8491-5c16-4dae-9cc3-6ce633a7f4cc | |
Connection to fore1a closed. | |
[samurai@baremetal ha]# VMSET='c1a1 c1a5' vftool.bash run 'puppet agent -t' | |
[samurai@baremetal ha]# VMSET='c1a1 c1a5' vftool.bash run 'cat /etc/ceph/ceph.conf' | |
Warning: Permanently added 'c1a1,192.168.7.97' (ECDSA) to the list of known hosts. | |
Warning: Permanently added 'c1a5,192.168.7.82' (ECDSA) to the list of known hosts. | |
[global] | |
fsid = 904c8491-5c16-4dae-9cc3-6ce633a7f4cc | |
mon_initial_members = c1a1, c1a2, c1a3 | |
mon_host = 192.168.200.10, 192.168.200.20, 192.168.200.30 | |
auth_cluster_required = cephx | |
auth_service_required = cephx | |
auth_client_required = cephx | |
filestore_xattr_use_omap = true | |
public_network = 192.168.200.0/24 | |
cluster_network = 192.168.201.0/24 | |
[osd] | |
osd_pool_default_size = 1 | |
osd_journal_size = 1000 | |
osd_mount_options_xfs = just a test | |
[client.images] | |
keyring = /etc/ceph/ceph.client.images.keyring | |
[client.volumes] | |
keyring = /etc/ceph/ceph.client.volumes.keyring | |
[client.radosgw.gateway] | |
host = c1a5 | |
keyring = /etc/ceph/ceph.client.radosgw.keyring | |
rgw socket path = /var/run/ceph/ceph.radosgw.gateway.fastcgi.sock | |
log file = /var/log/radosgw/client.radosgw.gateway.log | |
rgw print continue = false | |
[hello] | |
do you know where you are | |
Connection to c1a5 closed. | |
[global] | |
fsid = 904c8491-5c16-4dae-9cc3-6ce633a7f4cc | |
mon_initial_members = c1a1, c1a2, c1a3 | |
mon_host = 192.168.200.10, 192.168.200.20, 192.168.200.30 | |
auth_cluster_required = cephx | |
auth_service_required = cephx | |
auth_client_required = cephx | |
filestore_xattr_use_omap = true | |
public_network = 192.168.200.0/24 | |
cluster_network = 192.168.201.0/24 | |
[osd] | |
osd_pool_default_size = 1 | |
osd_journal_size = 1000 | |
osd_mount_options_xfs = just a test | |
[client.images] | |
keyring = /etc/ceph/ceph.client.images.keyring | |
[client.volumes] | |
keyring = /etc/ceph/ceph.client.volumes.keyring | |
[client.radosgw.gateway] | |
host = c1a1 | |
keyring = /etc/ceph/ceph.client.radosgw.keyring | |
rgw socket path = /var/run/ceph/ceph.radosgw.gateway.fastcgi.sock | |
log file = /var/log/radosgw/client.radosgw.gateway.log | |
rgw print continue = false | |
[hello] | |
do you know where you are | |
Connection to c1a1 closed. | |
[samurai@baremetal ha]# # VERIFIED two lines added | |
[samurai@baremetal ha]# | |
[samurai@baremetal ha]# # TEST CHANGING ceph_rgw_hostname | |
[samurai@baremetal ha]# VMSET=fore1a vftool.bash run '/mnt/vm-share/mcs/foreman/api/hosts.rb show_yaml c1a1' | grep ceph_rgw_hostname | |
Warning: Permanently added 'fore1a,192.168.7.186' (ECDSA) to the list of known hosts. | |
ceph_rgw_hostname: '' | |
Connection to fore1a closed. | |
[samurai@baremetal ha]# VMSET=fore1a vftool.bash run /mnt/vm-share/mcs/foreman/config/ha/ha-params.bash >/dev/null | |
Warning: Permanently added 'fore1a,192.168.7.186' (ECDSA) to the list of known hosts. | |
Connection to fore1a closed. | |
[samurai@baremetal ha]# VMSET=fore1a vftool.bash run '/mnt/vm-share/mcs/foreman/api/hosts.rb show_yaml c1a1' | grep ceph_rgw_hostname | |
Warning: Permanently added 'fore1a,192.168.7.186' (ECDSA) to the list of known hosts. | |
ceph_rgw_hostname: TEST-HOSTNAME | |
Connection to fore1a closed. | |
[samurai@baremetal ha]# VMSET='c1a1 c1a5' vftool.bash run 'puppet agent -t' | |
--- /etc/ceph/ceph.conf 2015-03-11 16:55:24.442752888 -0700 | |
+++ /tmp/puppet-file20150311-30396-14j4p8q 2015-03-11 17:19:16.258752888 -0700 | |
@@ -22,7 +22,7 @@ | |
keyring = /etc/ceph/ceph.client.volumes.keyring | |
[client.radosgw.gateway] | |
-host = c1a5 | |
+host = TEST-HOSTNAME | |
keyring = /etc/ceph/ceph.client.radosgw.keyring | |
rgw socket path = /var/run/ceph/ceph.radosgw.gateway.fastcgi.sock | |
log file = /var/log/radosgw/client.radosgw.gateway.log | |
--- /etc/ceph/ceph.conf 2015-03-11 16:55:35.464155760 -0700 | |
+++ /tmp/puppet-file20150311-30651-yybdw8 2015-03-11 17:19:25.341155760 -0700 | |
@@ -22,7 +22,7 @@ | |
keyring = /etc/ceph/ceph.client.volumes.keyring | |
[client.radosgw.gateway] | |
-host = c1a1 | |
+host = TEST-HOSTNAME | |
keyring = /etc/ceph/ceph.client.radosgw.keyring | |
rgw socket path = /var/run/ceph/ceph.radosgw.gateway.fastcgi.sock | |
log file = /var/log/radosgw/client.radosgw.gateway.log | |
[samurai@baremetal ha]# VMSET='c1a1 c1a5' vftool.bash run 'cat /etc/ceph/ceph.conf' | |
Warning: Permanently added 'c1a1,192.168.7.97' (ECDSA) to the list of known hosts. | |
Warning: Permanently added 'c1a5,192.168.7.82' (ECDSA) to the list of known hosts. | |
[global] | |
fsid = 904c8491-5c16-4dae-9cc3-6ce633a7f4cc | |
mon_initial_members = c1a1, c1a2, c1a3 | |
mon_host = 192.168.200.10, 192.168.200.20, 192.168.200.30 | |
auth_cluster_required = cephx | |
auth_service_required = cephx | |
auth_client_required = cephx | |
filestore_xattr_use_omap = true | |
public_network = 192.168.200.0/24 | |
cluster_network = 192.168.201.0/24 | |
[osd] | |
osd_pool_default_size = 1 | |
osd_journal_size = 1000 | |
osd_mount_options_xfs = just a test | |
[client.images] | |
keyring = /etc/ceph/ceph.client.images.keyring | |
[client.volumes] | |
keyring = /etc/ceph/ceph.client.volumes.keyring | |
[client.radosgw.gateway] | |
host = TEST-HOSTNAME | |
keyring = /etc/ceph/ceph.client.radosgw.keyring | |
rgw socket path = /var/run/ceph/ceph.radosgw.gateway.fastcgi.sock | |
log file = /var/log/radosgw/client.radosgw.gateway.log | |
rgw print continue = false | |
[hello] | |
do you know where you are | |
Connection to c1a1 closed. | |
[global] | |
fsid = 904c8491-5c16-4dae-9cc3-6ce633a7f4cc | |
mon_initial_members = c1a1, c1a2, c1a3 | |
mon_host = 192.168.200.10, 192.168.200.20, 192.168.200.30 | |
auth_cluster_required = cephx | |
auth_service_required = cephx | |
auth_client_required = cephx | |
filestore_xattr_use_omap = true | |
public_network = 192.168.200.0/24 | |
cluster_network = 192.168.201.0/24 | |
[osd] | |
osd_pool_default_size = 1 | |
osd_journal_size = 1000 | |
osd_mount_options_xfs = just a test | |
[client.images] | |
keyring = /etc/ceph/ceph.client.images.keyring | |
[client.volumes] | |
keyring = /etc/ceph/ceph.client.volumes.keyring | |
[client.radosgw.gateway] | |
host = TEST-HOSTNAME | |
keyring = /etc/ceph/ceph.client.radosgw.keyring | |
rgw socket path = /var/run/ceph/ceph.radosgw.gateway.fastcgi.sock | |
log file = /var/log/radosgw/client.radosgw.gateway.log | |
rgw print continue = false | |
[hello] | |
do you know where you are | |
Connection to c1a5 closed. | |
[samurai@baremetal ha]# # VERIFIED TEST-HOSTNAME APPEARS IN CEPH.CONF ON BOTH NODES |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment