Skip to content

mgr/dashboard: improve the kcli bootstrap process - #60017

Merged
afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:kcli-quick-install
Nov 5, 2024
Merged

afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:kcli-quick-install

Conversation

@nizamial09

@nizamial09 nizamial09 commented Sep 27, 2024 •

Copy link
Copy Markdown
Member

I have a new script added for starting the kcli cluster called quick-bootstrap.sh

The goal is to use that script to download the ceph image on local (rather than inside vm) and then copy them over to all the vms that is being spawned by the kcli. This way all the hosts will get the ceph image which will make the deployment loads faster.

Another thing I added is to add some dnf.conf to improve parallel_downlaods and get the fastest server to install deps

eg:

╰─$ ./quick-bootstrap.sh -h                                                                                    255 ↵
+ set +x
Usage: ./quick-bootstrap.sh [OPTIONS]

Options:
  -u, --use-cached-image     Uses the existing podman image in local. Only use this if there is such an image present.
  -dir, --ceph-dir             Use this to provide the local ceph directory. eg. --ceph-dir=/path/to/ceph
  -e, --expanded-cluster     To add all the hosts and deploy OSDs on top of it.
  -h, --help             Display this help message.

Example:
  ./quick-bootstrap.sh --use-cached-image

./quick-bootstrap.sh -u --ceph-dir=/home/nia/projects/ceph

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

@nizamial09
nizamial09 requested a review from a team as a code owner September 27, 2024 06:55
@nizamial09
nizamial09 requested review from Pegonzal and afreen23 and removed request for a team September 27, 2024 06:55

@Pegonzal Pegonzal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @nizamial09!

Looks promising, I'll try to take a better look and test it later on, left you a couple comments for now of what I saw:

@nizamial09

Copy link
Copy Markdown
Member Author

@Pegonzal @epuertat @afreen23 address your comments, please take a look again. thanks

@nmunet nmunet left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, and it worked like a charm!

@afreen23 afreen23 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @nizamial09

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say lets have this option be provided externally.
for some cases we dont want to add osds while testing stuff.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably that involves changes in the bootstrap-cluster.sh file itself because as it is right now if you provide the expanded_cluster its going to deploy a fully functional expanded cluster with osds on it.

If we want, later on we can introduce flags like --deploy-all-hosts, --deploy-rgw and so on. Or even look into something like the vstart does. MGR=2 RGW=1 quick-bootstrap.sh.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay even if I dont pass this flag I am getting all osds scheduled.
And after looking I see the bootsrap.sh just check whether this flag is defined, ehnce even if we pass false it goes on creating.

So we need to update that or not pass this option if falsy.

@nizamial09
nizamial09 requested a review from afreen23 November 4, 2024 07:10

@afreen23 afreen23 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one thingy, thanks for patience :)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay even if I dont pass this flag I am getting all osds scheduled.
And after looking I see the bootsrap.sh just check whether this flag is defined, ehnce even if we pass false it goes on creating.

So we need to update that or not pass this option if falsy.

I have a new script added for starting the kcli cluster called
quick-bootstrap.sh

The goal is to use that script to download the ceph image on local
(rather than inside vm) and then copy them over to all the vms that is
being spawned by the kcli. This way all the hosts will get the ceph
image which will make the deployment loads faster.

Another thing I added is to add some dnf.conf to improve
parallel_downlaods and get the fastest server to install deps

eg:
```
╰─$ ./quick-bootstrap.sh -h                                                                                    255 ↵
+ set +x
Usage: ./quick-bootstrap.sh [OPTIONS]

Options:
  -u, --use-cached-image     Uses the existing podman image in local. Only use this if there is such an image present.
  -dir, --ceph-dir             Use this to provide the local ceph directory. eg. --ceph-dir=/path/to/ceph
  -e, --expanded-cluster     To add all the hosts and deploy OSDs on top of it.
  -h, --help             Display this help message.

Example:
  ./quick-bootstrap.sh --use-cached-image

```

```
./quick-bootstrap.sh -u --ceph-dir=/home/nia/projects/ceph
```

Signed-off-by: Nizamudeen A <[email protected]>
@afreen23
afreen23 merged commit 66e6a86 into ceph:main Nov 5, 2024
@afreen23
afreen23 deleted the kcli-quick-install branch November 5, 2024 07:11
@github-actions github-actions Bot mentioned this pull request Aug 3, 2026
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants