Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit 5fbd880

Browse files
committed
NVME detection fix, added Parcel Activation check/wait to deployment process
1 parent 2a02f9e commit 5fbd880

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

v6/scripts/boot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ nvcount="0"
241241
bvcount="0"
242242
## Execute - will format all devices except sda for use as data disks in HDFS
243243
dcount=0
244-
for disk in `ls /dev/ | grep nvme`; do
244+
for disk in `ls /dev/ | grep nvme | grep n1`; do
245245
log "-->Processing /dev/$disk"
246246
mke2fs -F -t ext4 -b 4096 -E lazy_itable_init=1 -O sparse_super,dir_index,extent,has_journal,uninit_bg -m1 /dev/$disk
247247
data_mount

v6/scripts/deploy_on_oci.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,8 @@ def monitor_parcel(parcel_product, parcel_version, target_stage):
835835
print("\n%s parcel %s version %s on cluster %s" % (target_stage, parcel_product, parcel_version, cluster_name))
836836
print("Activating Parcel %s" % parcel_product)
837837
parcel_api.activate_command(cluster_name, parcel_product, parcel_version)
838+
target_stage = 'ACTIVATED'
839+
monitor_parcel(parcel_product, parcel_version, target_stage)
838840

839841

840842
def get_parcel_status(parcel_product):
@@ -850,6 +852,18 @@ def get_parcel_status(parcel_product):
850852
print(parcels.items[x])
851853

852854

855+
def read_parcels():
856+
"""
857+
List all parcels the cluster has access to
858+
:return:
859+
"""
860+
try:
861+
api_response = parcels_api.read_parcels(cluster_name, view='FULL')
862+
pprint(api_response)
863+
except ApiException as e:
864+
print('Exception calling ParcelResourceApi->read_parcels {}'.format(e))
865+
866+
853867
def delete_parcel(parcel_product, parcel_version):
854868
"""
855869
Delete specified parcel

0 commit comments

Comments
 (0)