Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ubuntu@cephnode0:~$ kubectl logs -n ceph ceph-osd-device-iscsi-cephosd-0-cephjournal-0-wfbrc osd-prepare-pod
- + export LC_ALL=C
- + LC_ALL=C
- + source variables_entrypoint.sh
- ++ ALL_SCENARIOS='osd osd_directory osd_directory_single osd_ceph_disk osd_ceph_disk_prepare osd_ceph_disk_activate osd_ceph_activate_journal mgr'
- ++ : ceph
- ++ : ceph-config/ceph
- ++ :
- ++ : osd_ceph_disk_prepare
- ++ : 1
- ++ : cephnode0
- ++ : cephnode0
- ++ : /etc/ceph/monmap-ceph
- ++ : /var/lib/ceph/mon/ceph-cephnode0
- ++ : 0
- ++ : 0
- ++ : mds-cephnode0
- ++ : 1
- ++ : 100
- ++ : 0
- ++ : 0
- +++ uuidgen
- ++ : 5abec06f-846b-4a45-9c38-fd2610c6f393
- +++ uuidgen
- ++ : fcd56a49-f0a4-4571-adc8-0f065a3a9207
- ++ : root=default host=cephnode0
- ++ : 0
- ++ : cephfs
- ++ : cephfs_data
- ++ : 8
- ++ : cephfs_metadata
- ++ : 8
- ++ : cephnode0
- ++ :
- ++ :
- ++ : 8080
- ++ : 0
- ++ : 9000
- ++ : 0.0.0.0
- ++ : cephnfs
- ++ : cephnode0
- ++ : 1
- ++ : 0.0.0.0
- ++ : 7000
- ++ : 128
- ++ CLI_OPTS='--cluster ceph'
- ++ DAEMON_OPTS='--cluster ceph --setuser ceph --setgroup ceph -d'
- ++ MOUNT_OPTS='-t xfs -o noatime,inode64'
- ++ MDS_KEYRING=/var/lib/ceph/mds/ceph-mds-cephnode0/keyring
- ++ ADMIN_KEYRING=/etc/ceph/ceph.client.admin.keyring
- ++ MON_KEYRING=/etc/ceph/ceph.mon.keyring
- ++ RGW_KEYRING=/var/lib/ceph/radosgw/cephnode0/keyring
- ++ MGR_KEYRING=/var/lib/ceph/mgr/ceph-cephnode0/keyring
- ++ MDS_BOOTSTRAP_KEYRING=/var/lib/ceph/bootstrap-mds/ceph.keyring
- ++ RGW_BOOTSTRAP_KEYRING=/var/lib/ceph/bootstrap-rgw/ceph.keyring
- ++ OSD_BOOTSTRAP_KEYRING=/var/lib/ceph/bootstrap-osd/ceph.keyring
- ++ OSD_PATH_BASE=/var/lib/ceph/osd/ceph
- + source common_functions.sh
- ++ set -ex
- + is_available rpm
- + command -v rpm
- + is_available dpkg
- + command -v dpkg
- + OS_VENDOR=ubuntu
- + source /etc/default/ceph
- ++ TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES=134217728
- + case "$CEPH_DAEMON" in
- + OSD_TYPE=prepare
- + start_osd
- + [[ ! -e /etc/ceph/ceph.conf ]]
- + '[' 1 -eq 1 ']'
- + [[ ! -e /etc/ceph/ceph.client.admin.keyring ]]
- + case "$OSD_TYPE" in
- + source osd_disk_prepare.sh
- ++ set -ex
- + osd_disk_prepare
- + [[ -z iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd:0 ]]
- ++ hardware_to_block iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd:0
- ++ local DEV=iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd:0
- ++ '[' '!' -b iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd:0 ']'
- +++ echo iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd:0
- +++ awk -F@ '{print $1}'
- +++ tr '[A-Z]' '[a-z]'
- ++ local DEVTYPE=iscsi
- ++ local SDEV=
- ++ case ${DEVTYPE} in
- +++ sed 's/.*@//;s/\///g'
- +++ echo iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd:0
- ++ local ISCSI=127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd:0
- ++ IFS=:
- ++ read TGTIP TGTPORT TGTIQN TGTUNIT TGTLUN
- +++ xargs basename
- +++ readlink -f /dev/disk/by-path/ip-127.0.0.1:3260-iscsi-iqn.2017-12.org.openstack.openstack-helm:cephosd-lun-0
- ++ SDEV=sda
- ++ '[' '!' -z sda -a -b /dev/sda ']'
- ++ echo /dev/sda
- ++ return
- + OSD_DEVICE=/dev/sda
- ++ readlink -f /dev/sda
- + OSD_DEVICE=/dev/sda
- + [[ ! -b /dev/sda ]]
- + '[' '!' -e /var/lib/ceph/bootstrap-osd/ceph.keyring ']'
- + timeout 10 ceph --cluster ceph --name client.bootstrap-osd --keyring /var/lib/ceph/bootstrap-osd/ceph.keyring health
- HEALTH_OK
- + parted --script /dev/sda print
- ++ egrep '^ 1.*ceph data'
- ++ parted --script /dev/sda print
- + [[ -n '' ]]
- + '[' 0 -ne 1 ']'
- + '[' -n iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal:0 ']'
- ++ hardware_to_block iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal:0
- ++ local DEV=iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal:0
- ++ '[' '!' -b iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal:0 ']'
- +++ tr '[A-Z]' '[a-z]'
- +++ awk -F@ '{print $1}'
- +++ echo iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal:0
- ++ local DEVTYPE=iscsi
- ++ local SDEV=
- ++ case ${DEVTYPE} in
- +++ sed 's/.*@//;s/\///g'
- +++ echo iscsi@127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal:0
- ++ local ISCSI=127.0.0.1:3260:iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal:0
- ++ IFS=:
- ++ read TGTIP TGTPORT TGTIQN TGTUNIT TGTLUN
- +++ xargs basename
- +++ readlink -f /dev/disk/by-path/ip-127.0.0.1:3260-iscsi-iqn.2017-12.org.openstack.openstack-helm:cephjournal-lun-0
- ++ SDEV=sdb
- ++ '[' '!' -z sdb -a -b /dev/sdb ']'
- ++ echo /dev/sdb
- ++ return
- + OSD_JOURNAL=/dev/sdb
- + '[' -b /dev/sdb ']'
- ++ readlink -f /dev/sdb
- + OSD_JOURNAL=/dev/sdb
- ++ sed 's/[^0-9]//g'
- ++ echo
- + OSD_JOURNAL_PARTITION=
- + '[' -z '' ']'
- ++ sed 's/\(.*[^0-9]\)[0-9]*$/\1/'
- ++ echo /dev/sdb
- + local JDEV=/dev/sdb
- ++ basename /dev/sdb
- ++ basename /dev/sdb
- + '[' -d /sys/block/sdb/sdb ']'
- + chown ceph. /dev/sdb
- + CLI_OPTS='--cluster ceph --filestore'
- + '[' -b /dev/sdb -a 1 -eq 1 ']'
- + log 'OSD_FORCE_ZAP is set, so we will erase the journal device /dev/sdb'
- + '[' -z 'OSD_FORCE_ZAP is set, so we will erase the journal device /dev/sdb' ']'
- ++ date '+%F %T'
- + TIMESTAMP='2018-01-11 16:11:07'
- + echo '2018-01-11 16:11:07 /start_osd.sh: OSD_FORCE_ZAP is set, so we will erase the journal device /dev/sdb'
- + return 0
- + mkfs -t xfs -f /dev/sdb
- 2018-01-11 16:11:07 /start_osd.sh: OSD_FORCE_ZAP is set, so we will erase the journal device /dev/sdb
- meta-data=/dev/sdb isize=512 agcount=4, agsize=327808 blks
- = sectsz=512 attr=2, projid32bit=1
- = crc=1 finobt=1, sparse=0
- data = bsize=4096 blocks=1311232, imaxpct=25
- = sunit=0 swidth=0 blks
- naming =version 2 bsize=4096 ascii-ci=0 ftype=1
- log =internal log bsize=4096 blocks=2560, version=2
- = sectsz=512 sunit=0 blks, lazy-count=1
- realtime =none extsz=4096 blocks=0, rtextents=0
- + [[ 0 -eq 1 ]]
- + ceph-disk -v prepare --cluster ceph --filestore --journal-uuid 5abec06f-846b-4a45-9c38-fd2610c6f393 /dev/sda /dev/sdb
- /usr/lib/python2.7/dist-packages/ceph_disk/main.py:5653: UserWarning:
- *******************************************************************************
- This tool is now deprecated in favor of ceph-volume.
- It is recommended to use ceph-volume for OSD deployments. For details see:
- http://docs.ceph.com/docs/master/ceph-volume/#migrating
- *******************************************************************************
- warnings.warn(DEPRECATION_WARNING)
- command: Running command: /usr/bin/ceph-osd --cluster=ceph --show-config-value=fsid
- command: Running command: /usr/bin/ceph-osd --check-allows-journal -i 0 --log-file $run_dir/$cluster-osd-check.log --cluster ceph --setuser ceph --setgroup ceph
- command: Running command: /usr/bin/ceph-osd --check-wants-journal -i 0 --log-file $run_dir/$cluster-osd-check.log --cluster ceph --setuser ceph --setgroup ceph
- command: Running command: /usr/bin/ceph-osd --check-needs-journal -i 0 --log-file $run_dir/$cluster-osd-check.log --cluster ceph --setuser ceph --setgroup ceph
- get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
- command: Running command: /usr/bin/ceph-osd --cluster=ceph --show-config-value=osd_journal_size
- get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
- get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
- get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
- command: Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_mkfs_type
- command: Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_mkfs_options_xfs
- command: Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_mount_options_xfs
- command: Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_fs_mount_options_xfs
- get_dm_uuid: get_dm_uuid /dev/sdb uuid path is /sys/dev/block/8:16/dm/uuid
- prepare_device: OSD will not be hot-swappable if journal is not the same device as the osd data
- get_dm_uuid: get_dm_uuid /dev/sdb uuid path is /sys/dev/block/8:16/dm/uuid
- ptype_tobe_for_name: name = journal
- get_dm_uuid: get_dm_uuid /dev/sdb uuid path is /sys/dev/block/8:16/dm/uuid
- command: Running command: /sbin/parted --machine -- /dev/sdb print
- get_free_partition_index: get_free_partition_index: analyzing BYT;
- /dev/sdb:5371MB:scsi:512:512:loop:LIO-ORG FILEIO:;
- 1:0.00B:5371MB:5371MB:xfs::;
- create_partition: Creating journal partition num 2 size 5120 on /dev/sdb
- command_check_call: Running command: /sbin/sgdisk --new=2:0:+5120M --change-name=2:ceph journal --partition-guid=2:5abec06f-846b-4a45-9c38-fd2610c6f393 --typecode=2:45b0969e-9b03-4f30-b4c6-b4b80ceff106 --mbrtogpt -- /dev/sdb
- Creating new GPT entries.
- Setting name!
- partNum is 1
- REALLY setting name!
- The operation has completed successfully.
- update_partition: Calling partprobe on created device /dev/sdb
- command_check_call: Running command: /sbin/udevadm settle --timeout=600
- command: Running command: /usr/bin/flock -s /dev/sdb /sbin/partprobe /dev/sdb
- command_check_call: Running command: /sbin/udevadm settle --timeout=600
- get_dm_uuid: get_dm_uuid /dev/sdb uuid path is /sys/dev/block/8:16/dm/uuid
- get_dm_uuid: get_dm_uuid /dev/sdb uuid path is /sys/dev/block/8:16/dm/uuid
- get_dm_uuid: get_dm_uuid /dev/sdb2 uuid path is /sys/dev/block/8:18/dm/uuid
- prepare_device: Journal is GPT partition /dev/disk/by-partuuid/5abec06f-846b-4a45-9c38-fd2610c6f393
- command_check_call: Running command: /sbin/sgdisk --typecode=2:45b0969e-9b03-4f30-b4c6-b4b80ceff106 -- /dev/sdb
- The operation has completed successfully.
- update_partition: Calling partprobe on prepared device /dev/sdb
- command_check_call: Running command: /sbin/udevadm settle --timeout=600
- command: Running command: /usr/bin/flock -s /dev/sdb /sbin/partprobe /dev/sdb
- command_check_call: Running command: /sbin/udevadm settle --timeout=600
- prepare_device: Journal is GPT partition /dev/disk/by-partuuid/5abec06f-846b-4a45-9c38-fd2610c6f393
- get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
- set_data_partition: Creating osd partition on /dev/sda
- get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
- ptype_tobe_for_name: name = data
- get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
- create_partition: Creating data partition num 1 size 0 on /dev/sda
- command_check_call: Running command: /sbin/sgdisk --largest-new=1 --change-name=1:ceph data --partition-guid=1:b060248f-bedb-4d12-b020-1a5ca5dab898 --typecode=1:89c57f98-2fe5-4dc0-89c1-f3ad0ceff2be --mbrtogpt -- /dev/sda
- Setting name!
- partNum is 0
- REALLY setting name!
- The operation has completed successfully.
- update_partition: Calling partprobe on created device /dev/sda
- command_check_call: Running command: /sbin/udevadm settle --timeout=600
- command: Running command: /usr/bin/flock -s /dev/sda /sbin/partprobe /dev/sda
- command_check_call: Running command: /sbin/udevadm settle --timeout=600
- get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
- get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
- get_dm_uuid: get_dm_uuid /dev/sda1 uuid path is /sys/dev/block/8:1/dm/uuid
- populate_data_path_device: Creating xfs fs on /dev/sda1
- command_check_call: Running command: /sbin/mkfs -t xfs -f -i size=2048 -f -- /dev/sda1
- meta-data=/dev/sda1 isize=2048 agcount=4, agsize=2097215 blks
- = sectsz=512 attr=2, projid32bit=1
- = crc=1 finobt=1, sparse=0
- data = bsize=4096 blocks=8388859, imaxpct=25
- = sunit=0 swidth=0 blks
- naming =version 2 bsize=4096 ascii-ci=0 ftype=1
- log =internal log bsize=4096 blocks=4096, version=2
- = sectsz=512 sunit=0 blks, lazy-count=1
- realtime =none extsz=4096 blocks=0, rtextents=0
- mount: Mounting /dev/sda1 on /var/lib/ceph/tmp/mnt.7mIrYU with options noatime,inode64
- command_check_call: Running command: /bin/mount -t xfs -o noatime,inode64 -- /dev/sda1 /var/lib/ceph/tmp/mnt.7mIrYU
- populate_data_path: Preparing osd data dir /var/lib/ceph/tmp/mnt.7mIrYU
- command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.7mIrYU/ceph_fsid.15123.tmp
- command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.7mIrYU/fsid.15123.tmp
- command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.7mIrYU/magic.15123.tmp
- command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.7mIrYU/journal_uuid.15123.tmp
- adjust_symlink: Creating symlink /var/lib/ceph/tmp/mnt.7mIrYU/journal -> /dev/disk/by-partuuid/5abec06f-846b-4a45-9c38-fd2610c6f393
- command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.7mIrYU/type.15123.tmp
- command: Running command: /bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.7mIrYU
- unmount: Unmounting /var/lib/ceph/tmp/mnt.7mIrYU
- command_check_call: Running command: /bin/umount -- /var/lib/ceph/tmp/mnt.7mIrYU
- get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
- command_check_call: Running command: /sbin/sgdisk --typecode=1:4fbd7e29-9d25-41b8-afd0-062c0ceff05d -- /dev/sda
- The operation has completed successfully.
- update_partition: Calling partprobe on prepared device /dev/sda
- command_check_call: Running command: /sbin/udevadm settle --timeout=600
- command: Running command: /usr/bin/flock -s /dev/sda /sbin/partprobe /dev/sda
- command_check_call: Running command: /sbin/udevadm settle --timeout=600
- command_check_call: Running command: /sbin/udevadm trigger --action=add --sysname-match sda1
- /usr/lib/python2.7/dist-packages/ceph_disk/main.py:5685: UserWarning:
- *******************************************************************************
- This tool is now deprecated in favor of ceph-volume.
- It is recommended to use ceph-volume for OSD deployments. For details see:
- http://docs.ceph.com/docs/master/ceph-volume/#migrating
- *******************************************************************************
- warnings.warn(DEPRECATION_WARNING)
- + udevadm settle --timeout=600
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement