-
Notifications
You must be signed in to change notification settings - Fork 307
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
Compatibility fix of centos release version #494
base: master
Are you sure you want to change the base?
Conversation
Can one of the admins verify this patch? |
@alfredodeza, i was wondering if u could review the pr, ths |
Hello! Quick question: why are you printing the file error? I mean, what is the user supposed to do with that information? PS: not a maintainer, just someone like you. |
Ths your question.
Well, context manager is a nice choice.
|
Well, another thing I forgot to ask was: whenever that file exists and has the string |
Usually, this file
in euleros 2.0:
So, I mean different system files have different aspects. If something like |
modified: ceph_deploy/hosts/centos/__init__.py Fix: https://tracker.ceph.com/issues/44365 Signed-off-by: Dai Zhiwei [email protected] Signed-off-by: luo rixin [email protected]
@HacKanCuBa Well, when I switch to use context manager to open file, exception handling prompts me to catch the |
@@ -18,6 +18,13 @@ def choose_init(module): | |||
|
|||
Returns the name of a init system (upstart, sysvinit ...). | |||
""" | |||
with open("/etc/rpm/macros.dist", 'r') as file: |
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 don't think we should rely on an rpm macro for determining the distro's release version. user does not necessarily have this package installed.
I have some problem. I am used ceph storage for my CloudStack primary storage pool but after create vm then reboot ceph server osd service can't start. How can I solve this. this is ceph issue or cloudstack issue ? I am not sure. Please help me....Thanks. |
@alamintech you might want to send you questions to ceph-user mailing list or the |
Fix: https://tracker.ceph.com/issues/44365
Signed-off-by: Dai Zhiwei [email protected]
Signed-off-by: luo rixin [email protected]