This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
Bug 1392626 - ceph cinder prevents use of dns name for monitors
Summary: ceph cinder prevents use of dns name for monitors
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-os-brick
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: Cinder Bugs List
QA Contact: Yosi Ben Shimon
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-07 22:29 UTC by Sage Weil
Modified: 2024-01-05 09:04 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-01-05 09:01:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1452641 0 None None None 2016-11-07 22:56:24 UTC
Red Hat Issue Tracker OSP-31048 0 None None None 2024-01-05 09:04:10 UTC
Red Hat Issue Tracker   OSP-799 0 None None None 2024-01-05 09:01:57 UTC

Description Sage Weil 2016-11-07 22:29:57 UTC
Description of problem:

A recommended practice is to use DNS to resolve the list of monitors by setting up a single name with A records for each monitor.  This way the ceph.conf files simply say

  mon_host = monitors.mycluster.foo.com

and there is no need to update the list of IPs on all hosts when monitors are added or removed from the cluster.

This doesn't work with Cinder because (I am told) the driver generates a list of monitor IPs from the cluster and uses this to populate the libvirt XML for the RBD attachment.

Instead, we should either (1) pass through our own mon_host config value directly, or (2) have an option to do so.


Version-Release number of selected component (if applicable):

All versions.

How reproducible:

100%

Steps to Reproduce:
1. Set up DNS records for the mons
2. Set mon_host to the DNS record in ceph.conf's everywhere
3. Create a VM using RBD

Actual results:

The VM's XML will have the IP list explicitly enumerated in its config,

Expected results:

The VM's XML should use the DNS name record.

Additional info:

Comment 2 Jon Bernard 2016-11-08 18:13:09 UTC
The assessment is accurate, I'm not yet sure if a nova patch will also be required in addition to cinder (I'll try to not require one).

Comment 5 Jon Bernard 2019-10-08 16:55:20 UTC
SRV lookup support was added in 11:

https://docs.ceph.com/docs/mimic/rados/configuration/mon-lookup-dns/


Note You need to log in before you can comment on or make changes to this bug.