Repository navigation
mgr/rook: select InternalIP for HostSpec.addr instead of slash-joinin… - #69250
Conversation
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
16 similar comments
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
bec590f to
0dbefc9
Compare
* Update openstack-helm from branch 'master'
to d3fa14f5129df62a449dd466f0f09e99bf5c291f
- Merge "[manila] Add optional StatefulSet for manila-share"
- [manila] Add optional StatefulSet for manila-share
The static host value (conf.manila.DEFAULT.host) keeps the manila-share
service identity stable across pod restarts, but it is only safe with
a single replica: every pod registers under the same host and competes
for the same RPC queue, periodic tasks, and (without a Tooz backend)
uncoordinated locks.
Add an optional StatefulSet manifest for manila-share, gated by
manifests.statefulset_share (disabled by default). When enabled, the
existing deployment_share manifest is suppressed and each pod gets a
stable, unique hostname (manila-share-0, manila-share-1, ...). The
manila-share.sh script now derives the host from ${HOSTNAME} and
appends a per-pod --config-file when conf.manila.DEFAULT.host is left
empty, so each replica registers under its own pod name. The HOSTNAME
env var is sourced from metadata.name so it is correct even with the
existing hostNetwork: true on share pods.
Comments are added in values.yaml next to the host field and the new
manifests.statefulset_share flag to document the single-replica caveat
and how to switch to the StatefulSet for predictable hostnames.
- The manila deployment test job is added that deploys Manila with
CephFS as backend. The Ceph MGR Rook module is patched. See details
ceph/ceph#69250
- The helm-toolkit utility template _to_oslo_conf.tpl is updated to
stop rendering nil values. Now users can explicitly set some values to
null and they will not be rendered at all instead of to be rendered as
invalid "<no value>".
Signed-off-by: Vladimir Kozhukalov <[email protected]>
Change-Id: Id0185812dea09200ce4310127b79a2731b68efaa
The static host value (conf.manila.DEFAULT.host) keeps the manila-share
service identity stable across pod restarts, but it is only safe with
a single replica: every pod registers under the same host and competes
for the same RPC queue, periodic tasks, and (without a Tooz backend)
uncoordinated locks.
Add an optional StatefulSet manifest for manila-share, gated by
manifests.statefulset_share (disabled by default). When enabled, the
existing deployment_share manifest is suppressed and each pod gets a
stable, unique hostname (manila-share-0, manila-share-1, ...). The
manila-share.sh script now derives the host from ${HOSTNAME} and
appends a per-pod --config-file when conf.manila.DEFAULT.host is left
empty, so each replica registers under its own pod name. The HOSTNAME
env var is sourced from metadata.name so it is correct even with the
existing hostNetwork: true on share pods.
Comments are added in values.yaml next to the host field and the new
manifests.statefulset_share flag to document the single-replica caveat
and how to switch to the StatefulSet for predictable hostnames.
- The manila deployment test job is added that deploys Manila with
CephFS as backend. The Ceph MGR Rook module is patched. See details
ceph/ceph#69250
- The helm-toolkit utility template _to_oslo_conf.tpl is updated to
stop rendering nil values. Now users can explicitly set some values to
null and they will not be rendered at all instead of to be rendered as
invalid "<no value>".
Signed-off-by: Vladimir Kozhukalov <[email protected]>
Change-Id: Id0185812dea09200ce4310127b79a2731b68efaa
|
ok - to - test |
|
ok to test |
travisn
left a comment
There was a problem hiding this comment.
@kozhukalov Can you provide more background for how this impacts Rook clusters? Does it impact the dashboard, or something else? The rook mgr module is often not even enabled in Rook, since we don't have good testing.
@travisn Sure. I am working mostly with the Openstack-Helm project which deploys Openstack on top of Kubernetes. One of our test jobs deploys Openstack Manila (File Storage as a Service). This particular test job configures Manila to utilize CephFS as its backend with Rook managed Ceph cluster. The Manila CephFS driver tries to run the command See the line [2]. When it constructs the list of HostSpec instances it sets the addr of every item as The PR suggests to use the internal IP and fallback to first address from the list. Also for nfs it updates the resolve_ip to make it tolerant to "<ip>/<hostname>". [1] https://opendev.org/openstack/manila/src/branch/master/manila/share/drivers/cephfs/driver.py#L1597 |
|
@travisn Is there anything else I could do regarding this PR to help the review? |
|
The explanation sounds good to me, I don't have other feedback, thanks. |
|
@ShwetaBhosale1, can you please take a look at the PR? Is there anything I can do to help with the review? |
gregsfortytwo
left a comment
There was a problem hiding this comment.
This looks fine to me and @travisn is okay with it.
Adding needs-qa and CephFS labels so we can pick it up and make sure the nfs module didn't break anything before merge.
|
ok to test |
|
@vshankar @ShwetaBhosale1 What else can I do to help merge the PR? |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
Yes, though it needs a rebase now. |
…g all node addresses get_hosts() built HostSpec.addr with '/'.join() over every entry in node.status.addresses, producing strings like "10.248.0.3/np6b438a15bf1a4" (InternalIP + Hostname). The orchestrator interface documents addr as a single "dns name or IP", and consumers treat it as one resolvable address. Concrete symptom: mgr/nfs resolve_ip() calls socket.getaddrinfo() on the joined string and fails with: Error EINVAL: Cannot resolve IP for host 10.248.0.3/np6b438a15bf1a4: [Errno -2] Name or service not known (seen via Manila's CephFS driver calling `ceph nfs cluster info`). The malformed value is also visible directly in `ceph orch host ls`. Any consumer of HostSpec.addr that resolves it as an IP is affected. Fix get_hosts() to pick a single address: prefer InternalIP (always present on managed nodes and routable cluster-internally), falling back to the first address. The hostname is already carried as HostSpec's name, so nothing is lost. Also harden mgr/nfs resolve_ip() to strip the legacy "<ip>/<hostname>" format, so a newer mgr keeps working against older Rook backends still emitting it. Add unit tests for get_hosts() covering InternalIP preference, the fallback path, and the empty-address case. Fixes: https://tracker.ceph.com/issues/77100 Signed-off-by: Vladimir Kozhukalov <[email protected]>
0dbefc9 to
7ac3211
Compare
|
@travisn |
Ships the RWX half of the tenant storage story. The driver published a Manila StorageClass only when the cluster carried a manila_csi_share_network_id label, so on this DHSS=False cloud the Manila CSI plugin was installed, running, healthy and useless: nine Cinder RWO StorageClasses and no RWX one. It now gates on the share type's driver_handles_share_servers instead, and omits shareNetworkID when unset. Held back until now on purpose. Manila could not serve an NFS share at all while ceph/ceph#69250 broke `ceph nfs cluster info`, and shipping this earlier would only have moved the failure from "no StorageClass" to "a StorageClass whose PVCs never bind". That is fixed as of today: the cluster runs ghcr.io/fivetime/ceph:v20.2.4-fivetime-201f4994d34f, Manila has a cephfsnfs backend up beside cephfsnative, and a test NFS share came back with export location 10.32.16.68:/volumes/_nogroup/... and a live Ganesha export. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_017xWtySCN31tS8CrJWo3sRo
The three mgr Python files are copied unconditionally, and they are cut from v20.2.4. Rebuilding this against a newer base -- which is what anyone would do to pick up an unrelated fix in v20.2.5 -- would overwrite files upstream had already fixed with stale ones, silently. That is exactly the trap that makes a throwaway overlay outlive its usefulness. So inspect the base first and fail, naming the part that has become redundant: ERROR: base image quay.io/ceph/ceph:v20.2.5 already carries: ceph#69250(mgr/rook) This overlay has outlived that part. Retire it instead of rebuilding. Verified both directions, because a guard that cannot fire proves nothing: against quay.io/ceph/ceph:v20.2.4 it prints "base still needs all three fixes" and the build completes; against this overlay's own output it names all three (ceph#69250, ceph#70967, nfs-ganesha 9.16) and exits 1. BASE_IMAGE is re-declared after FROM: an ARG from before the first FROM is out of scope inside the stage, so the error would otherwise name no image. README gains the retirement procedure and the one command that decides it, which needs no knowledge of which PRs merged. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_017xWtySCN31tS8CrJWo3sRo
|
ok to test |
|
ok to test |
|
Teuthology run was successful. Failing Test cases are not related to this PR: |
|
This is an automated message by src/script/redmine-upkeep.py. I found one or more
The referenced tickets are: Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them. |
mgr/rook: select InternalIP for HostSpec.addr instead of slash-joining all node addresses
get_hosts() built HostSpec.addr with '/'.join() over every entry in node.status.addresses, producing strings like "10.248.0.3/np6b438a15bf1a4" (InternalIP + Hostname). The orchestrator interface documents addr as a single "dns name or IP", and consumers treat it as one resolvable address.
Concrete symptom: mgr/nfs resolve_ip() calls socket.getaddrinfo() on the joined string and fails with:
Error EINVAL: Cannot resolve IP for host 10.248.0.3/np6b438a15bf1a4:
[Errno -2] Name or service not known
(seen via Manila's CephFS driver calling
ceph nfs cluster info). The malformed value is also visible directly inceph orch host ls. Any consumer of HostSpec.addr that resolves it as an IP is affected.Fix get_hosts() to pick a single address: prefer InternalIP (always present on managed nodes and routable cluster-internally), falling back to the first address. The hostname is already carried as HostSpec's name, so nothing is lost.
Also harden mgr/nfs resolve_ip() to strip the legacy "/" format, so a newer mgr keeps working against older Rook backends still emitting it.
Add unit tests for get_hosts() covering InternalIP preference, the fallback path, and the empty-address case.
Fixes: https://tracker.ceph.com/issues/77100
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.