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
systemd: set up environment in rbdmap unit file #8222
Conversation
The bug report says "/usr/bin/rbdmap requires the RBDMAPFILE variable to be set," which doesn't sound right. Shouldn't the code default to a sensible value if the environment variable is not set? |
http://tracker.ceph.com/issues/14984 Fixes: ceph#14984 Signed-off-by: Nathan Cutler <ncutler@suse.com>
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Since init-rbdmap is sysvinit-specific, tagging log lines "init-rbdmap" is potentially misleading. In systemd- and upstart-based systems, /usr/bin/rbdmap is run directly. Signed-off-by: Nathan Cutler <ncutler@suse.com>
I looked in |
Spawning a cluster for manual testing with: (See #8228 for an explanation of how this works.) |
Scope of test: on the cluster deployed with packages built from this PR, run The test did not include creating an RBD image or using Test result: passed |
3fdf1f7
to
62ad0c3
Compare
Before a7a3658 the rbdmap script was logging bogus messages and not working on systemd platforms because the unit file was not defining the RBDMAPFILE environment variable. This workunit asserts that the bug has been fixed. http://tracker.ceph.com/issues/14984 References: ceph#14984 Signed-off-by: Nathan Cutler <ncutler@suse.com>
Cherry-picked 0effb9e (the commit containing the new workunit) to Running the workunit as a standalone test against this modified jewel branch to demonstrate that the workunit fails (for the right reason) when the bug is present. failed for the right reason http://149.202.177.104:8081/ubuntu-2016-03-20_23:45:18-rbd:singleton:all:rbdmap_RBDMAPFILE.yaml-jewel-wip-workunit---basic-openstack/
Command used: |
Running the workunit as a standalone test against this PR to validate the bugfix.
|
Associated |
# that require processing. | ||
# | ||
set -ex | ||
|
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.
here we could add a packaging test that would check which rbdmap
(just to verify that the shell script is packaged)
lgtm |
http://tracker.ceph.com/issues/14984 Fixes: #14984
Signed-off-by: Nathan Cutler ncutler@suse.com