sodafoundation / installer

provides easy installation and basic deployment based on specific configurations for SODA Projects
Apache License 2.0
35 stars 68 forks source link

Improvement of ansible ceph integration #270

Open thatsdone opened 5 years ago

thatsdone commented 5 years ago

Is your suggestion related to a problem? Please describe.

To improve ceph integration process via opensds-installer in order to avoid troubles (e.g. #255).

Describe the solution you'd like

I would suggest step-by-step improvement like below.

ceph-ansible branch required ansible ceph version notes
stable-3.0 ansible-2.4 jewel/luminous we use this currently.
stable-3.1 ansible-2.4 luminous/mimic suggested update
stable-3.2 ansible-2.6 luminous/mimic
stable-4.0 ansible-2.8 nautilus bionic target?
wisererik commented 5 years ago

@thatsdone it's a good suggestion. My friend Joseph will check it. Or are you intereted at implementing this feature?

thatsdone commented 5 years ago

@wisererik I have some working codes for (a part of) step 1 and step 2, and I'm creating PRs. As for step 3, I think it's better discussing details first.

wisererik commented 5 years ago

Sure, we can discuss on slack, it's more efficient.

thatsdone commented 5 years ago

FYI. You can find my working branch below.

https://github.com/thatsdone/opensds-installer/commits/refactor-ceph-ansible

wisererik commented 5 years ago

Sure, it's better you submit a PR so that I can know the code changes well

thatsdone commented 5 years ago

After adding waiting logic for ceph stabilization, it turned out that we still get the same symptom. So, I looked into osdsdock side, and I noticed one potential (?) issue there. The below is the issue I filed.

https://github.com/opensds/opensds/issues/991

thatsdone commented 5 years ago

Sure, it's better you submit a PR so that I can know the code changes well

I submitted a PR (https://github.com/opensds/opensds-installer/pull/271) for this, implementing step1 and step2. Hope this PR makes sense.

Please note that I updated my original suggestion at the top, and this PR covers all the points from 1a to 2b there.

Regarding step3, I'd like to have a consensus on the priority of installation scenarios at first.

thatsdone commented 5 years ago

So far, @himanshuvar gave me very useful feedbacks, and at the moment this PR has a problem when the target Ubuntu box has existing ceph packages and/or /etc/ceph. Please note if you begin from a fresh Ubuntu 16.04 box WITHOUT any ceph packages, it actually worked including ceph-ansible stable-3.1+mimic. But, anyway in general, it's desirable to take care of existing ceph packages (mostly upgraded).

I'm working on the (new additional sub)issues and submitting another PR soon (hopefully?).

himanshuvar commented 5 years ago

@thatsdone Thank you Please update your PR with the changes you find it relevant to fix now

thatsdone commented 5 years ago

@himanshuvar I submitted updated PR. https://github.com/opensds/opensds-installer/pull/273