我有一个安装了 GlusterFS 存储的 OpenShift Origin 3.11 集群。这是一个单一的主设置,我的初始库存如下所示:
[nodes]
console.example.com openshift_ip=1.2.3.4 openshift_schedulable=true openshift_node_group_name='node-config-all-in-one'
node-01.example.com openshift_ip=1.2.3.1 openshift_schedulable=true openshift_node_group_name='node-config-compute'
node-02.example.com openshift_ip=1.2.3.2 openshift_schedulable=true openshift_node_group_name='node-config-compute'
[glusterfs]
console.example.com glusterfs_devices='[ "/dev/sda" ]'
node-01.example.com glusterfs_devices='[ "/dev/sda" ]'
node-02.example.com glusterfs_devices='[ "/dev/sda" ]'
我通过将库存修改为:
[nodes]
console.example.com openshift_ip=1.2.3.4 openshift_schedulable=true openshift_node_group_name='node-config-all-in-one'
node-01.example.com openshift_ip=1.2.3.1 openshift_schedulable=true openshift_node_group_name='node-config-compute'
node-02.example.com openshift_ip=1.2.3.2 openshift_schedulable=true openshift_node_group_name='node-config-compute'
[glusterfs]
console.example.com glusterfs_devices='[ "/dev/sda" ]'
node-01.example.com glusterfs_devices='[ "/dev/sda" ]'
node-02.example.com glusterfs_devices='[ "/dev/sda" ]'
[new_nodes]
node-03.example.com openshift_ip=1.2.3.3 openshift_schedulable=true openshift_node_group_name='node-config-compute'
并运行:
ansible-playbook playbooks/openshift-node/scaleup.yml
哪个运行成功。现在,要将这个新节点添加为 GlusterFS 卷,我将此节点添加到glusterfs
组中,
[nodes]
console.example.com openshift_ip=1.2.3.4 openshift_schedulable=true openshift_node_group_name='node-config-all-in-one'
node-01.example.com openshift_ip=1.2.3.1 openshift_schedulable=true openshift_node_group_name='node-config-compute'
node-02.example.com openshift_ip=1.2.3.2 openshift_schedulable=true openshift_node_group_name='node-config-compute'
node-03.example.com openshift_ip=1.2.3.3 openshift_schedulable=true openshift_node_group_name='node-config-compute'
[glusterfs]
console.example.com glusterfs_devices='[ "/dev/sda" ]'
node-01.example.com glusterfs_devices='[ "/dev/sda" ]'
node-02.example.com glusterfs_devices='[ "/dev/sda" ]'
node-03.example.com glusterfs_devices='[ "/dev/sda" ]'
[new_nodes]
并运行相应的剧本,
ansible-playbook playbooks/openshift-glusterfs/config.yml
但这失败了
TASK [openshift_storage_glusterfs : Wait for GlusterFS pods] *******************
步。我错过了运行任何其他剧本吗?