Troubleshooting Doc
Reset dashboard password
From cephadm shell run
# echo "<replace_with_ your_password>" > dashboard_password.yml
# ceph dashboard ac-user-set-password admin -i dashboard_password.yml
Change replica size and min_size for the pools
If you are using 2 nodes, you need to change the pool size and min_size
# ceph osd pool set <poolname> size <num-replicas>
# ceph osd pool set <poolname> min_size <num-replicas>
Or if you want to change the setting for global
# ceph config set global osd_pool_default_min_size 1
# ceph config set global osd_pool_default_size 2
Install s3cmd to set CORS
Install s3cmd
apt-get install s3cmd
Configure s3md. Replace $ACCESS_KEY, $SECRET_KEY, $ENDPOINT_URL
cat > .s3cfg <<EOL
[default]
access_key = $ACCESS_KEY
secret_key = $SECRET_KEY
host_base = ${ENDPOINT_URL}:${ENDPOINT_PORT}
host_bucket = ${ENDPOINT_URL}
use_https = No
signature_v2 = No
EOL
Create cors.xml file
<CORSConfiguration>
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>HEAD</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>DELETE</AllowedMethod>
<AllowedHeader>*</AllowedHeader>
<ExposeHeader>Etag</ExposeHeader>
<MaxAgeSeconds>3000</MaxAgeSeconds>
</CORSRule>
</CORSConfiguration>
apply it to the bucket using s3cmd
s3cmd setcors cors.xml s3://<bucket_name>