Luminous: osd_crush_location_hook renamed to crush_location_hook
Hi,
I completely overread this, but I just found out that osd_crush_location_hook was renamed to crush_location_hook in the new config style.
When upgrading from Jewel to Luminous without touching your configuration OSDs will move to the default CRUSH location due to the hook not being executed.
Was this an oversight with Luminous or was it intentional?
Wido
Hi Wido,
Unexpected crush location changes can indeed be quite nasty.
With this in mind, I wonder if a crush lock would be useful.
ceph osd set nocrushchange
With that flag set, osds could still go in and out, but crush move/add/remove/etc..., also tunables changes, would be blocked.
Thoughts?
-- Dan
Quoted 13 lines · Wido den Hollander
Hi,
I completely overread this, but I just found out that
osd_crush_location_hookwas renamed tocrush_location_hookin the new config style.When upgrading from Jewel to Luminous without touching your configuration OSDs will move to the default CRUSH location due to the hook not being executed.
Was this an oversight with Luminous or was it intentional?
Wido
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 10 lines · Dan van der Ster
Hi Wido,
Unexpected crush location changes can indeed be quite nasty.
With this in mind, I wonder if a crush lock would be useful.
ceph osd set nocrushchange
With that flag set, osds could still go in and out, but crush move/add/remove/etc..., also tunables changes, would be blocked.
The problem I see with this is that it would prevent new OSD additions or other changes.. and if you went to unset the flag in order to allow a new node to be adjusted or brought online then you might get an avalance of blocked changes.
I think what we actually want is a more targetted variation of osd_crush_update_on_start that only updates teh location if it has never been set (i.e., it is a new osd). Like, osd_crush_update_on_create. Then it's left to the admin to move OSDs?
Quoted 8 lines · Wido den Hollander
Quoted 7 lines
Hi,
I completely overread this, but I just found out that
osd_crush_location_hookwas renamed tocrush_location_hookin the new config style.When upgrading from Jewel to Luminous without touching your configuration OSDs will move to the default CRUSH location due to the hook not being executed.
Was this an oversight with Luminous or was it intentional?
The implications are an oversight.. I didn't think about customized hooks that would get reverted if the config option wasn't changed. Otherwise the item in the release notes would have read more like a warning:
* The osd crush location config option is no longer supported. Please update your ceph.conf to use the crush location option instead.
Sorry about that!
sage
Quoted 33 lines
Op 19 oktober 2017 om 15:34 schreef Sage Weil <[email protected]>:
Quoted 10 lines · Dan van der Ster
Hi Wido,
Unexpected crush location changes can indeed be quite nasty.
With this in mind, I wonder if a crush lock would be useful.
ceph osd set nocrushchange
With that flag set, osds could still go in and out, but crush move/add/remove/etc..., also tunables changes, would be blocked.
The problem I see with this is that it would prevent new OSD additions or other changes.. and if you went to unset the flag in order to allow a new node to be adjusted or brought online then you might get an avalance of blocked changes.
I think what we actually want is a more targetted variation of
osd_crush_update_on_startthat only updates teh location if it has never been set (i.e., it is a new osd). Like,osd_crush_update_on_create. Then it's left to the admin to move OSDs?Quoted 7 lines · Wido den Hollander
Quoted 6 lines
Hi,
I completely overread this, but I just found out that
osd_crush_location_hookwas renamed tocrush_location_hookin the new config style.When upgrading from Jewel to Luminous without touching your configuration OSDs will move to the default CRUSH location due to the hook not being executed.
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Was this an oversight with Luminous or was it intentional?
The implications are an oversight.. I didn't think about customized hooks that would get reverted if the config option wasn't changed. Otherwise the item in the release notes would have read more like a warning:
* The
osd crush locationconfig option is no longer supported. Please update your ceph.conf to use thecrush locationoption instead.
Yes, we probably need a big warning for this in the ReleaseNotes.
Are you going to make sure it goes in?
Wido
Quoted 3 lines
Sorry about that!
sage
Quoted 38 lines · Wido den Hollander
Quoted 38 lines
Op 19 oktober 2017 om 15:34 schreef Sage Weil <[email protected]>:
Quoted 10 lines · Dan van der Ster
Hi Wido,
Unexpected crush location changes can indeed be quite nasty.
With this in mind, I wonder if a crush lock would be useful.
ceph osd set nocrushchange
With that flag set, osds could still go in and out, but crush move/add/remove/etc..., also tunables changes, would be blocked.
The problem I see with this is that it would prevent new OSD additions or other changes.. and if you went to unset the flag in order to allow a new node to be adjusted or brought online then you might get an avalance of blocked changes.
I think what we actually want is a more targetted variation of
osd_crush_update_on_startthat only updates teh location if it has never been set (i.e., it is a new osd). Like,osd_crush_update_on_create. Then it's left to the admin to move OSDs?Quoted 8 lines · Wido den Hollander
Quoted 7 lines
Hi,
I completely overread this, but I just found out that
osd_crush_location_hookwas renamed tocrush_location_hookin the new config style.When upgrading from Jewel to Luminous without touching your configuration OSDs will move to the default CRUSH location due to the hook not being executed.
Was this an oversight with Luminous or was it intentional?
The implications are an oversight.. I didn't think about customized hooks that would get reverted if the config option wasn't changed. Otherwise the item in the release notes would have read more like a warning:
Quoted 7 lines
Quoted 3 lines
* The
osd crush locationconfig option is no longer supported. Please update your ceph.conf to use thecrush locationoption instead.Yes, we probably need a big warning for this in the ReleaseNotes.
Are you going to make sure it goes in?
https://github.com/ceph/ceph/pull/18482
I think we also want to make the old config option work too; that isn't done yet. John, I wonder if it is worth adding an 'alias' mechanism into the options framework, so that all users of the option don't have to check for the old and new?
sage
Quoted 45 lines · Sage Weil
Quoted 44 lines · Wido den Hollander
Quoted 32 lines
Op 19 oktober 2017 om 15:34 schreef Sage Weil <[email protected]>:
Quoted 10 lines · Dan van der Ster
Hi Wido,
Unexpected crush location changes can indeed be quite nasty.
With this in mind, I wonder if a crush lock would be useful.
ceph osd set nocrushchange
With that flag set, osds could still go in and out, but crush move/add/remove/etc..., also tunables changes, would be blocked.
The problem I see with this is that it would prevent new OSD additions or other changes.. and if you went to unset the flag in order to allow a new node to be adjusted or brought online then you might get an avalance of blocked changes.
I think what we actually want is a more targetted variation of
osd_crush_update_on_startthat only updates teh location if it has never been set (i.e., it is a new osd). Like,osd_crush_update_on_create. Then it's left to the admin to move OSDs?Quoted 7 lines · Wido den Hollander
Quoted 6 lines
Hi,
I completely overread this, but I just found out that
osd_crush_location_hookwas renamed tocrush_location_hookin the new config style.When upgrading from Jewel to Luminous without touching your configuration OSDs will move to the default CRUSH location due to the hook not being executed.
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Was this an oversight with Luminous or was it intentional?
The implications are an oversight.. I didn't think about customized hooks that would get reverted if the config option wasn't changed. Otherwise the item in the release notes would have read more like a warning:
* The
osd crush locationconfig option is no longer supported. Please update your ceph.conf to use thecrush locationoption instead.Yes, we probably need a big warning for this in the ReleaseNotes.
Quoted 8 lines
Quoted 1 line
Are you going to make sure it goes in?
https://github.com/ceph/ceph/pull/18482
I think we also want to make the old config option work too; that isn't done yet. John, I wonder if it is worth adding an 'alias' mechanism into the options framework, so that all users of the option don't have to check for the old and new?
The thought crossed my mind -- it's a little awkward for someone who dumps back their config, as they'll see a differently named option than the one they thought they set. However, I think it's worth it on
balance: I'm a fan of thing that enable us to sanitize the naming.
The alias field should come with a mandatory version field that says which version the old alias was from, so that we can systematically remove them a couple versions later.
John
Quoted 3 lines
sage
Quoted 7 lines · Wido den Hollander
Hi,
I completely overread this, but I just found out that
osd_crush_location_hookwas renamed tocrush_location_hookin the new config style.When upgrading from Jewel to Luminous without touching your configuration OSDs will move to the default CRUSH location due to the hook not being executed.
Was this an oversight with Luminous or was it intentional?
Hmm, that setting wasn't part of the existing schema config_opts.h schema. The init script was effectively treating it as a "magic" value that ceph-conf would be able to read out of the text ceph.conf. Not that that matters from a user POV!
It looks like the init-ceph.in is still referring to the old magic config setting's name as well.
I would vote that we treat this as a bug and change the setting name back to osd_crush_location_hook, even if the name isn't quite descriptive any more -- Sage?
John
Quoted 2 lines
Wido
Quoted 13 lines
Op 19 oktober 2017 om 14:22 schreef John Spray <[email protected]>:
Quoted 7 lines · Wido den Hollander
Hi,
I completely overread this, but I just found out that
osd_crush_location_hookwas renamed tocrush_location_hookin the new config style.When upgrading from Jewel to Luminous without touching your configuration OSDs will move to the default CRUSH location due to the hook not being executed.
Was this an oversight with Luminous or was it intentional?
Quoted 7 lines
Hmm, that setting wasn't part of the existing schema
config_opts.hschema. The init script was effectively treating it as a "magic" value that ceph-conf would be able to read out of the text ceph.conf. Not that that matters from a user POV!It looks like the init-ceph.in is still referring to the old magic config setting's name as well.
Yes, it was done by *ceph-osd-prestart.sh* which is executed by systemd under Jewel.
Quoted 5 lines
I would vote that we treat this as a bug and change the setting name back to
osd_crush_location_hook, even if the name isn't quite descriptive any more -- Sage?
Can't we alias it somehow? I ran into this with a pre-production cluster before we started the upgrade of two production systems.
Problem is that this setting is usually only touched by large deployments so not very much tested nor used.
Wido
Quoted 4 lines
John
Quoted 2 lines
Wido
Quoted 11 lines · Wido den Hollander
Quoted 5 lines
Op 19 oktober 2017 om 14:22 schreef John Spray <[email protected]>:
I would vote that we treat this as a bug and change the setting name back toosd_crush_location_hook, even if the name isn't quite descriptive any more -- Sage?Can't we alias it somehow? I ran into this with a pre-production cluster before we started the upgrade of two production systems.
Problem is that this setting is usually only touched by large deployments so not very much tested nor used.
Yeah, it is probably easiest and the least painful to make both option names work (with crush_location_hook taking precedence). Ideally we'd also issue a health warning after upgrade so they know to update it after so we can remove the osd_ option name later... although until we centralize config there isn't a great way to do that.
sage