Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fallback to trying to create bucket without LocationConstraint #690

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hloeung
Copy link

@hloeung hloeung commented Dec 4, 2024

Not all S3 implementations support LocationConstraint. This falls back to trying to create the bucket when InvalidLocationConstraint encountered.

#689

Copy link

codecov bot commented Dec 4, 2024

Codecov Report

Attention: Patch coverage is 87.50000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 71.84%. Comparing base (769dda2) to head (c13e470).

Files with missing lines Patch % Lines
src/backups.py 87.50% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #690      +/-   ##
==========================================
+ Coverage   71.82%   71.84%   +0.02%     
==========================================
  Files          13       13              
  Lines        3219     3229      +10     
  Branches      477      478       +1     
==========================================
+ Hits         2312     2320       +8     
- Misses        791      793       +2     
  Partials      116      116              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hloeung hloeung force-pushed the create-bucket-no-region branch from b3ff9f4 to 67512fc Compare December 4, 2024 08:29
@hloeung hloeung force-pushed the create-bucket-no-region branch 3 times, most recently from 9dbdd02 to 58064df Compare December 4, 2024 09:30
taurus-forever pushed a commit to canonical/data-platform-workflows that referenced this pull request Dec 4, 2024
…ev (#251)

This fixes an issue where it fails due to trying to install an older
version which no longer exists.

See
https://github.com/canonical/postgresql-operator/actions/runs/12155829148/job/33898208024
for canonical/postgresql-operator#690


![OQQmarvpBu](https://github.com/user-attachments/assets/de1bd37b-db24-499d-a425-182cdfe4d460)

```
Reading package lists...
Building dependency tree...
Reading state information...
Suggested packages:
  postgresql-doc-14
The following NEW packages will be installed:
  libpq-dev
0 upgraded, 1 newly installed, 0 to remove and 26 not upgraded.
Need to get 148 kB of archives.
After this operation, 589 kB of additional disk space will be used.
Ign:1 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 libpq-dev arm64 14.13-0ubuntu0.22.04.1
Err:1 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 libpq-dev arm64 14.13-0ubuntu0.22.04.1
  404  Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/p/postgresql-14/libpq-dev_14.13-0ubuntu0.22.04.1_arm64.deb  404  Not Found [IP: 185.125.190.39 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Error: Process completed with exit code 100.
```

Where it tries `14.13-0ubuntu0.22.04.1`, but per
https://launchpad.net/ubuntu/+source/postgresql-14, it's at
`14.15-0ubuntu0.22.04.1`.

One other solution is to ensure we always use the daily images.
@hloeung hloeung force-pushed the create-bucket-no-region branch 3 times, most recently from 258b3d3 to 924af8a Compare December 4, 2024 19:25
@hloeung
Copy link
Author

hloeung commented Dec 4, 2024

Looks like I'll need to wait for #692 as well

@hloeung hloeung force-pushed the create-bucket-no-region branch from 924af8a to 5703059 Compare December 4, 2024 19:52
@dragomirp dragomirp requested review from a team, taurus-forever, dragomirp, marceloneppel and lucasgameiroborges and removed request for a team December 4, 2024 19:57
src/backups.py Outdated Show resolved Hide resolved
@hloeung hloeung force-pushed the create-bucket-no-region branch 3 times, most recently from 09b900e to 8b48898 Compare December 5, 2024 02:43
@hloeung hloeung force-pushed the create-bucket-no-region branch from 8b48898 to c13e470 Compare December 5, 2024 02:50
@hloeung
Copy link
Author

hloeung commented Dec 10, 2024

Any updates on this?

As it is right now, even with manually creating the bucket, I can't get backups to be created - Action id 40 failed: Stanza was not initialised

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants