Skip to content

vstart: make -k with optional mon_num. - #8251

Merged
tchaikov merged 1 commit into
ceph:masterfrom
majianpeng:vstart
Mar 24, 2016
Merged

tchaikov merged 1 commit into
ceph:masterfrom
majianpeng:vstart

Conversation

@majianpeng

Copy link
Copy Markdown
Contributor

Default mon_num=3, if we change this and using -k to create a new
cluster. It don't work. So we must record the old mon_num.
The same for osd_num/mds_num/rgw_num.

Signed-off-by: Jianpeng Ma [email protected]

Comment thread src/vstart.sh Outdated

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.

nit, could just put

CEPH_NUM_MON=`awk -F= '/CEPH_NUM_MON/{print $2}' $conf_fn`

@tchaikov

Copy link
Copy Markdown
Contributor

lgtm apart from a nit.

@majianpeng
majianpeng force-pushed the vstart branch 2 times, most recently from 6b94882 to 81fa2ca Compare March 24, 2016 01:21
@tchaikov
tchaikov merged commit 518c238 into ceph:master Mar 24, 2016
@tchaikov tchaikov self-assigned this Mar 24, 2016
Default mon_num=3, if we change this and using -k to create a new
cluster. It don't work. So we must record the old mon_num.
The same for osd_num/mds_num/rgw_num.

Signed-off-by: Jianpeng Ma <[email protected]>
@dillaman

Copy link
Copy Markdown

This PR now causes MON=1 OSD=1 MDS=0 ./vstart.sh -k to fail:

./vstart.sh: line 428: [: 1: unary operator expected

Comment thread src/vstart.sh
done

if [ "$overwrite_conf" -eq 0 ]; then
CEPH_NUM_MON=`awk -F= '/CEPH_NUM_MON/{print $2}' $conf_fn`

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can we default these if the awk fails?

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.

ahh, sorry, i overlooked this. will fix it tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants