Skip to content

High Performance, Kubernetes Native Object Storage

License

Notifications You must be signed in to change notification settings

bareos/minio-error-simulator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Not the real minio!

This is a slightly modified minio that can simulate download errors

  • truncation of objects
  • missing objects that are otherwise listed

To switch on the ugly hack search the words "BAREOS-TEST" and set the appropriate flags to "true" then compile and start minio as a server using "minio server data-directory"

Objects in the buckets should have specific names, and should have specific sizes to test the bareos-libcloud-plugin.

Therefore prepare bucket objects similar to this:

for num in $(seq 1 100); do dd if=/dev/random of=/dev/data_${num} bs=512 count=1; done
for num in $(seq 101 200); do dd if=/dev/random of=/dev/data_${num} bs=512 count=512; done
for num in $(seq 300 301); do dd if=/dev/random of=/dev/data_${num} bs=512 count=512000; done

s3cmd -c s3cfg sync . S3://bareos-test
# File s3cfg
# Setup endpoint
host_base = 127.0.0.1:9000
host_bucket = 127.0.0.1:9000
bucket_location = us-east-1
use_https = False

# Setup access keys
access_key = minioadmin
secret_key = minioadmin

# Enable S3 v4 signature APIs
signature_v2 = False

Install from Source

Source installation is only intended for developers and advanced users. If you do not have a working Golang environment, please follow How to install Golang. Minimum version required is go1.15

GO111MODULE=on go get github.com/minio/minio

About

High Performance, Kubernetes Native Object Storage

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 90.9%
  • JavaScript 4.2%
  • Shell 1.7%
  • Less 0.7%
  • Java 0.6%
  • PHP 0.5%
  • Other 1.4%