]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: add only_bind_port_on_networks support for rgw
authorAdam King <adking@redhat.com>
Mon, 31 Mar 2025 23:24:28 +0000 (19:24 -0400)
committerAdam King <adking@redhat.com>
Mon, 31 Mar 2025 23:24:28 +0000 (19:24 -0400)
commit2a3213b3add1fbe7d11e866aeac6f50d853f891f
tree547707103e6b78cee94fa92c65395f8d8e62ae1e
parentc3b9e1c125bec33fbf4183e929ed11f0d93bd8ee
mgr/cephadm: add only_bind_port_on_networks support for rgw

This means with a spec like

```
service_type: rgw
service_id: foo
service_name: rgw.foo
placement:
  hosts:
  - vm-00
networks:
- 192.168.122.0/24
spec:
  only_bind_port_on_networks: true
```

cephadm will search for an IP address within 192.168.122.0/24
and have the RGW daemon only bind on that IP rather than on
all networks. What RGW binds to is controlled by the
"rgw_frontends" setting for the rgw daemon, so what cephadm
write there is all that is modified by this commit.

Signed-off-by: Adam King <adking@redhat.com>
src/pybind/mgr/cephadm/services/cephadmservice.py
src/python-common/ceph/deployment/service_spec.py