-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error check to pdsh function and other works to verify the deploying process #1
Open
xuechendi
wants to merge
5
commits into
ceph:master
Choose a base branch
from
xuechendi:wip-verify-deploy-process
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Commits on Mar 18, 2015
-
change the "pdsh" function to check stderr
1. change the pdsh function to with ".communicate()", and add error check there, with error, do sys.exit() 2. remove all ".communicate()" suffix of pdsh caller in benchmark/*.py cluster/ceph.py monitoring.py 3. add a parameter in pdsh function to skip error check if the cmd dosn't require 0 error like "pkill collectl" Signed-off-by: Chendi.Xue <chendi.xue@intel.com>
Configuration menu - View commit details
-
Copy full SHA for 0a6a035 - Browse repository at this point
Copy the full SHA 0a6a035View commit details -
add a check in setup_fs, if user specify the osd devices in yaml, will deploy osd on those device instead of /dev/disk/by-partlabel/osd-device-%s-data Example: === runtest.xfs.yaml === cluster: osds: [cceph01, cceph02] cceph01: [/dev/sda1, /dev/sdb1, /dev/sdc1, /dev/sdd1, /dev/sde1, /dev/sdf1, /dev/sdg1,/dev/sdh1] cceph02: [/dev/sda1, /dev/sdb1, /dev/sdc1, /dev/sdd1, /dev/sde1, /dev/sdf1, /dev/sdg1,/dev/sdh1] === deploy log === ['/dev/sda1', '/dev/sdb1', '/dev/sdc1', '/dev/sdd1', '/dev/sde1', '/dev/sdf1', '/dev/sdg1', '/dev/sdh1'] pdsh: ['pdsh', '-R', 'ssh', '-w', 'root@cceph01', 'sudo umount /dev/sda1'] pdsh: ['pdsh', '-R', 'ssh', '-w', 'root@cceph01', 'sudo rm -rf /tmp/cbt/mnt/osd-device-0-data'] pdsh: ['pdsh', '-R', 'ssh', '-w', 'root@cceph01', 'sudo mkdir -p -m0755 -- /tmp/cbt/mnt/osd-device-0-data'] pdsh: ['pdsh', '-R', 'ssh', '-w', 'root@cceph01', 'sudo mkfs.xfs -f -i size=2048 -n size=64k /dev/sda1'] pdsh: ['pdsh', '-R', 'ssh', '-w', 'root@cceph01', 'sudo mount -o inode64,noatime,logbsize=256k -t xfs /dev/sda1 /tmp/cbt/mnt/osd-device-0-data'] ... If not specify the osd device, will follow the original way using device /dev/disk/by-partlabel/osd-device-%s-data Signed-off-by: Chendi.Xue <chendi.xue@intel.com>
Configuration menu - View commit details
-
Copy full SHA for 6400544 - Browse repository at this point
Copy the full SHA 6400544View commit details -
Bug fix: Correct interruption when deploying ceph
After adding error check, ceph-osd and ceph-mon cmd will interrupt during deploying example: pdsh: ['pdsh', '-R', 'ssh', '-w', 'root@cceph01', 'sudo ceph -c /tmp/cbt/None/ceph.conf -i \ /tmp/cbt/mnt/osd-device-0-data/keyring auth add osd.0 osd "allow *" mon "allow profile osd"'] [ERROR]:cceph01: added key for osd.0 pdsh will get stderr msg "added key for osd.0", which should be stdout msg before fixing this bug in ceph-osd, will skip error check of these command firstly Signed-off-by: Chendi.Xue <chendi.xue@intel.com>
Configuration menu - View commit details
-
Copy full SHA for df798af - Browse repository at this point
Copy the full SHA df798afView commit details -
Change pdcp ceph.conf to tmp_dir function to scp
Currently using pdcp function to send ceph.conf to tmp_dir(/tmp/cbt/None), It seems it's better using scp here, to scp ceph.conf from the head node to all osd/mon/mds nodes. Signed-off-by: Chendi.Xue <chendi.xue@intel.com>
Configuration menu - View commit details
-
Copy full SHA for eb9f5df - Browse repository at this point
Copy the full SHA eb9f5dfView commit details
Commits on Mar 20, 2015
-
Change setup_fs disk id to osd_num
Current, when deploy osd to the second node, it will mount osd device from 0 again here, change to use the osd_id as the mount dir number Signed-off-by: Chendi.Xue <chendi.xue@intel.com>
Configuration menu - View commit details
-
Copy full SHA for ed88686 - Browse repository at this point
Copy the full SHA ed88686View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.