mgr/cephadm: Add migration to keep the service names consistent#36284
Conversation
c0c52a0 to
8e51ed5
Compare
mgfritch
left a comment
There was a problem hiding this comment.
seems like this PR applies to all specs? when it should only be this set of services:
| bad_specs = {} | ||
| for name, spec in self.mgr.spec_store.specs.items(): | ||
| if name != spec.service_name(): | ||
| bad_specs[name] = (spec.service_name(), spec) |
There was a problem hiding this comment.
hmm, because of #35839 (comment)
the bad specs won't be available via the spec_store when the mgr loads ..?
There was a problem hiding this comment.
I explicitly call load():
https://github.com/ceph/ceph/pull/36284/files#diff-d16ae9373a672ea79e66829f5093667fR64
8e51ed5 to
e1bc519
Compare
more like the other way around: all services that don't require an ID. Nevertheless. I think we're ok when running this for all specs |
|
Setting any affected spec to |
You're right. Do you have any other idea? |
I think this comes down the recurring topic of "How to display error/warning messages to the user?" But this is again another topic :) I'll set this on the agenda of the next weekly meeting |
ok. are you ok with the PR for now? |
jschmid1
left a comment
There was a problem hiding this comment.
ok. are you ok with the PR for now?
yes
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
After 15.2.4, we unified some service IDs: MONs, MGRs etc no longer have a service id. Which means, the service names changed: mon.foo -> mon mgr.foo -> mgr This fixes the data structure consistency Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
e1bc519 to
f2c0b2e
Compare
mgr/cephadm: Add migratoin to keep the service names consistent
After 15.2.4, we unified some service IDs: MONs, MGRs etc no longer have a service id.
Which means, the service names changed:
mon.foo -> mon
mgr.foo -> mgr
This fixes the data structure consistency
This is a follow up on #35839 Especially #35839 (comment)
Signed-off-by: Sebastian Wagner sebastian.wagner@suse.com
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard backendjenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox