Environment
- YugabyteAnywhere
Issue
To configure the backup bucket in our environment, we opted for the path style and configured certain values. It's crucial to enable S3 path-style access for our backup provider configuration, especially in Openshift or on-prem installations utilizing S3-style storage.
Resolution
Following are the required steps to enable S3 path style configuration
Step1: To configure the S3-style storage in the Backup Provider.
The following steps are required:
- Enable the feature flag from the YBA UI
- Navigate to the configure backup provider and select add a new provider.
- Add in the following values:
- Configuration Name
- IAM Role. Set to off.
- Access Key
- Access Secret
- S3 Bucket. Format s3://{bucket_name}
- S3 Bucket Host. Format https://{hostname}
- S3 Path Style Access. Set to true
4. Click Save.
Step2: Enabling the feature flag from the YBA UI
To use the path style naming convention, you must first enable the feature flag from the features screen. This isn’t directly clickable from YBA UI and needs to be navigated to, as shown below steps:
1. Edit the URL:
- Remove the path from the URL in the browser URL bar
- URL: https://{YBA_host}/{YBA_path_to_be_removed}
- Append /features to the URL: https://{YBA_host}/features
- Press return/enter.
2. Switch the feature enablePathStyleAccess to true (orange tick mark); this page doesn’t need saving; the change is done once switched. Note: Reloading/refreshing the browser page will reset the value and only affect your session, no other YBA UI users.
Step3: Adding a backup provider configuration
Once the feature flag has been enabled, you can add a new backup provider configuration using the following steps:
1. Click the Config option from the left side menu.
2. Click the Backup tab and select Add New Provider.
3. Fill out you configuration:
- Configuration Name.
- A meaningful name
- IAM Role. Set to off.
- Access Key. From your Storage Solution.
- Access Secret. From your Storage Solution.
- S3 Bucket. Format s3://{bucket_name}
- S3 Bucket Host. Format https://{hostname}
- S3 Path Style Access. Set to true
4. Click Save
If the above step is completed successfully, then your configuration is valid as the configuration is validated by YBA UI when saved; however, to confirm, configure a backup schedule or run an ad-hoc backup to confirm that it is working properly using the following instructions: -
Create a scheduled backup policy
Create backups
Comments
0 comments
Please sign in to leave a comment.