Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mgr/influx: Only split string on first occurence of dot (.) #21795

Merged
merged 1 commit into from May 3, 2018

Conversation

wido
Copy link
Member

@wido wido commented May 3, 2018

Service names are not always osd.X or mon.X, they might be
rgw.radosgw.rgw1

This would lead to:

Unhandled exception from module 'influx' while running on mgr.mon01: too many values to unpack

Only split on the first dot as the rest is the service name

Signed-off-by: Wido den Hollander wido@42on.com

@wido wido added the mgr label May 3, 2018
@wido wido requested review from tchaikov and jcsp May 3, 2018 10:17
@wido
Copy link
Member Author

wido commented May 3, 2018

This breaks when going from Luminous 12.2.4 to .5

If this merges I'll make a larger backport PR for the Influx module as it needs some more fixes in Luminous.

@jcsp jcsp added the bug-fix label May 3, 2018
@jcsp
Copy link
Contributor

jcsp commented May 3, 2018

@wido would you mind also creating a redmine ticket + adding a Fixes: here so that we have a place to track the backport?

@tchaikov tchaikov added this to the mimic milestone May 3, 2018
Service names are not always osd.X or mon.X, they might be
rgw.radosgw.rgw1

This would lead to:

  Unhandled exception from module 'influx' while running on mgr.mon01: too many values to unpack

Only split on the first dot as the rest is the service name

Fixes: http://tracker.ceph.com/issues/23996

Signed-off-by: Wido den Hollander <wido@42on.com>
@wido
Copy link
Member Author

wido commented May 3, 2018

Done, added @jcsp

@liewegas liewegas changed the base branch from master to mimic May 3, 2018 18:16
@liewegas liewegas merged commit 489c609 into ceph:mimic May 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants