-
Notifications
You must be signed in to change notification settings - Fork 56
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
ncm-openstack: add ceilometer service #1383
Conversation
5cab54a
to
a79eef3
Compare
a79eef3
to
fb47ad9
Compare
67100db
to
393e368
Compare
4a49bfc
to
45669bb
Compare
# db_version is slow when not initialised | ||
# (lots of retries before it gives up; can take up to 90s) | ||
if ($self->_do([$self->{manage}, @{$self->{db_version}}], 'determine database version', test => 1)) { | ||
if ($self->_do(['/bin/bash', '-c', join(' ', $self->{manage}, @{$self->{db_version}})], 'determine database version', test => 1)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stdweird this is just a workaround to avoid the execution issue with ceilometer-upgrade
.
I have changed the unittests as well but now it is a bit messy, some commands are using /bin/bash
workaround some of them are not.
We should provide a better solution (maybe just adding a new flag into CAF::Process
to use the "right" environment?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've created a CAF issue for this, could you fill it in with more details of what would be required to avoid this workaround?
quattor/CAF#272
$self->verbose("Found existing db_version"); | ||
return 1 if ($self->{flavour} eq "rabbitmq"); | ||
} else { | ||
$self->verbose("Database not yet available for service $self->{flavour}"); | ||
}; | ||
|
||
# Always populate/sync the databases | ||
$self->pre_populate_service_database(); | ||
if ($self->_do([$self->{manage}, @{$self->{db_sync}}], 'populate database')) { | ||
if ($self->_do(['/bin/bash', '-c', join(' ', $self->{manage}, @{$self->{db_sync}})], 'populate database')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same env issue with ceilometer-upgrade
execution
3b22cb0
to
3600bac
Compare
This looks good to me on the proviso that I havent really checked the perl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me
Include ceilometer server Resolves: quattor#1381
Rebased on master to avoid conflicts now that #1354 has been merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still LGTM
NOTE: This PR requires #1354 to work, #1354 should be reviewed/merged first.