Repository navigation
mgr/dashboard: improve the kcli bootstrap process - #60017
Conversation
Pegonzal
left a comment
There was a problem hiding this comment.
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:
de12f3b to
352fdb2
Compare
352fdb2 to
ac82b54
Compare
ac82b54 to
75287ab
Compare
nmunet
left a comment
There was a problem hiding this comment.
Tested locally, and it worked like a charm!
75287ab to
c2eccd3
Compare
There was a problem hiding this comment.
I would say lets have this option be provided externally.
for some cases we dont want to add osds while testing stuff.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
afreen23
left a comment
There was a problem hiding this comment.
Just one thingy, thanks for patience :)
There was a problem hiding this comment.
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.
c2eccd3 to
5db7353
Compare
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]>
5db7353 to
6f5612a
Compare
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:
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e