Skip to content

Commit

Permalink
[Doc] correct ceph adoption prerequisites
Browse files Browse the repository at this point in the history
update ceph rgw and rbd prerequisites steps in
the adoption document.

Jira: https://issues.redhat.com/browse/OSPRH-11896
  • Loading branch information
katarimanojk committed Nov 25, 2024
1 parent 36b4b13 commit 8f3364e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ endif::[]
* The {Ceph} cluster is healthy, and the `ceph -s` command returns `HEALTH_OK`.
* Run `os-net-config` on the bare metal node and configure additional networks:
.. If target nodes are `CephStorage`, ensure that the network is defined in the
`metalsmith.yaml` for the `CephStorage` nodes:
baremetal file for the `CephStorage` nodes, for example, `/home/stack/composable_roles/network/baremetal_deployment.yaml`:
+
[source,yaml]
----
Expand All @@ -28,7 +28,7 @@ name: oc0-ceph-0
- hostname: oc0-ceph-1
name: oc0-ceph-1
defaults:
/networks:
networks:
- network: ctlplane
vif: true
- network: storage_cloud_0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ Full List of Resources:
2: enp1s0 inet 192.168.24.45/24 brd 192.168.24.255 scope global enp1s0\ valid_lft forever preferred_lft forever
2: enp1s0 inet 192.168.24.46/32 brd 192.168.24.255 scope global enp1s0\ valid_lft forever preferred_lft forever
7: br-ex inet 10.0.0.122/24 brd 10.0.0.255 scope global br-ex\ valid_lft forever preferred_lft forever <1>
8: vlan70 inet 172.17.5.22/24 brd 172.17.5.255 scope global vlan70\ valid_lft forever preferred_lft forever <2>
8: vlan70 inet 172.17.5.22/24 brd 172.17.5.255 scope global vlan70\ valid_lft forever preferred_lft forever
8: vlan70 inet 172.17.5.94/32 brd 172.17.5.255 scope global vlan70\ valid_lft forever preferred_lft forever
9: vlan50 inet 172.17.2.140/24 brd 172.17.2.255 scope global vlan50\ valid_lft forever preferred_lft forever
10: vlan30 inet 172.17.3.73/24 brd 172.17.3.255 scope global vlan30\ valid_lft forever preferred_lft forever
10: vlan30 inet 172.17.3.73/24 brd 172.17.3.255 scope global vlan30\ valid_lft forever preferred_lft forever <2>
10: vlan30 inet 172.17.3.68/32 brd 172.17.3.255 scope global vlan30\ valid_lft forever preferred_lft forever
11: vlan20 inet 172.17.1.88/24 brd 172.17.1.255 scope global vlan20\ valid_lft forever preferred_lft forever
12: vlan40 inet 172.17.4.24/24 brd 172.17.4.255 scope global vlan40\ valid_lft forever preferred_lft forever
Expand Down Expand Up @@ -99,10 +99,11 @@ listen ceph_rgw
7: br-ex inet 10.0.0.106/24 brd 10.0.0.255 scope global br-ex\ valid_lft forever preferred_lft forever
...
----
.Note: When target nodes are not managed by Director, it's not possible to use this procedure/tool to configure the network. All the required networks must be manually configured by the administrator.

. Propagate the HAProxy front-end network to {CephCluster} nodes.

.. Change the NIC template that you use to define the `ceph-storage` network interfaces and add the new config section:
.. Change the NIC template that you use to define the `ceph-storage` network interfaces and add the new config section in the ceph network configuration template file, for example `/home/stack/composable_roles/network/nic-configs/ceph-storage.j2`:
+
[source,yaml]
----
Expand Down Expand Up @@ -139,13 +140,13 @@ network_config:
addresses:
- ip_netmask: {{ external_ip }}/{{ external_cidr }}
routes: {{ external_host_routes }}
members:
members: []
- type: interface
name: nic3
primary: true
----

.. Add the External Network to the `baremetal.yaml` file that is used by `metalsmith`:
.. Add the External Network to the baremetal file, for example, `/home/stack/composable_roles/network/baremetal_deployment.yaml` that is used by `metalsmith`. Also 'network_config_update' should be enabled for network propogation to target nodes during `os-net-config`:
+
[source,yaml]
----
Expand All @@ -163,6 +164,7 @@ network_config:
profile: ceph-storage
network_config:
template: /home/stack/composable_roles/network/nic-configs/ceph-storage.j2
network_config_update: true
networks:
- network: ctlplane
vif: true
Expand All @@ -177,10 +179,10 @@ network_config:
(undercloud) [stack@undercloud-0]$
openstack overcloud node provision
-o overcloud-baremetal-deployed-0.yaml
--stack overcloud
--network-config -y
$PWD/network/baremetal_deployment.yaml
-o overcloud-baremetal-deployed-0.yaml \
--stack overcloud \
--network-config -y \
$PWD/composable_roles/network/baremetal_deployment.yaml
----

.. Verify that the new network is configured on the {CephCluster} nodes:
Expand Down

0 comments on commit 8f3364e

Please sign in to comment.