I had putt gather from public forum. but its erroring with certificate. would appreciate any assistance. [test-profile1] aws_access_key_id=myAccessKey aws_secret_access_key=mySecretAccessKey import sys import boto3 import boto3.session ## Configure the StorageGRID S3 endpoint and profile name ## session = boto3.session.Session(profile_name='test-profile1') endpoint = 'https://s3.mycompany.com:8080/' # Ignore SSL verification s3 = session.resource(service_name='s3', endpoint_url=endpoint, verify=False) client = s3.meta.client # Get the target bucket name from the command line argument if len(sys.argv) < 2: print("Please provide the target bucket name as a command line argument") sys.exit(1) target_bucket_name = sys.argv[1] # Create an S3 client s3_client = boto3.client("s3") # create an S3 resource s3 = boto3.resource("s3") # Get a list of all S3 buckets response = s3_client.list_buckets() # Iterate over the buckets for bucket in response["Buckets"]: bucket_name = bucket["Name"] # Check if the bucket name contains the target string if target_bucket_name in bucket_name: print(f"Found bucket: {bucket_name}") versioning = s3_client.get_bucket_versioning(Bucket=bucket_name) bucket = s3.Bucket(bucket_name) if versioning.get("Status") == "Enabled": bucket.object_versions.delete() else: bucket.objects.delete() # Finally, delete the bucket s3_client.delete_bucket(Bucket=bucket_name) print(f"Deleted bucket: {bucket_name}") execute the script - python search_bucket_and_delete.py test-bucket ERROR - File "C:\Program Files\Python38\lib\ssl.py", line 1309, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108) During handling of the above exception, another exception occurred: Traceback (most recent call last): urllib3.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108) raise SSLError(endpoint_url=request.url, error=e) botocore.exceptions.SSLError: SSL validation failed for https://s3.eu-west-1.amazonaws.com/ [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)
... View more
Hi, experts, We have two questions about object storage. Customer wants a flexible replication policy , eg. doesn't want replicate object synchronous to another Grid , but want to replicate at setting time ( eg. at night idle time), Does CGR has such flexibility ? Or how can achieve this purpose ? 2nd question is if customer wants to migrate data from Ceph based object storage to SG , which tool is a better choice ?
... View more
Hi, anybody knows how can I factory reset Drive Module I/F 4 on my NetApp controller Class 5350 Model 0892? is that necessary actualy? BR Mori
... View more
Hey guys, trying to knock this stupid migration project out and having some trouble getting this final piece going. Im using this guide: I'll add the KB (Please for the love of god read the KB) Its pretty straightforward except I run into a issue right as I'm finishing the configurations. I see a dumb problem. When I go to run "vserver object-store-server user create -vserver svm1-user OntapS3User" I don't see the Secret Key for the Object store Server when I run a show. ITs just blank, the access key is there but no secret key. Not that big of a deal but I cant go further without providing that secret key, need it for the FabricPool configuration. Sems like I make some progress then, get halted by the most mundane of things lol
... View more