Compatibility fix of centos release version#494
Compatibility fix of centos release version#494Zhiwei-Dai wants to merge 1 commit intoceph:masterfrom Zhiwei-Dai:wip-fix-release-compatibility
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 daizhiwei3@huawei.com Signed-off-by: luo rixin luorixin@huawei.com
|
@HacKanCuBa Well, when I switch to use context manager to open file, exception handling prompts me to catch the |
|
|
||
| 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.
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 daizhiwei3@huawei.com
Signed-off-by: luo rixin luorixin@huawei.com