Actions
Test #6476
closedRepomd compression behaves differently for S3
Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
Version:
Platform Release:
Tags:
Sprint:
Quarter:
Description
Ticket moved to GitHub: "pulp/pulp_rpm/2244":https://github.com/pulp/pulp_rpm/issues/2244
on repomd we have:
primary.xml.gz
update_info.xml.gz
When testing xml.gz behaves like it is not compressed
On the other hand, it behaves as compressed on S3 testing
https://github.com/pulp/pulp_rpm/blob/master/pulp_rpm/tests/functional/api/test_publish.py#L51-L67
def read_xml_gz(content):
"""
Read xml and xml.gz.
Tests work normally but fails for S3 due '.gz'
Why is it only compressed for S3?
"""
with NamedTemporaryFile() as temp_file:
temp_file.write(content)
temp_file.seek(0)
try:
content_xml = gzip.open(temp_file.name).read()
except OSError:
# FIXME: fix this as in CI primary/update_info.xml has '.gz' but it is not gzipped
content_xml = temp_file.read()
return content_xml
Updated by fao89 over 4 years ago
I tested with real S3 bucket and got the same behavior, with:
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
MEDIA_ROOT = ''
primary.xml.gz is compressed, as we expect but for:
DEFAULT_FILE_STORAGE = 'pulpcore.app.models.storage.FileSystem'
MEDIA_ROOT = '/var/lib/pulp/'
primary.xml.gz does have the gz suffix, but it is not compressed
Updated by ttereshc over 4 years ago
- Sprint/Milestone set to Priority items (outside of planned milestones/releases)
- Triaged changed from No to Yes
Updated by dalley over 3 years ago
- Tracker changed from Issue to Test
- Severity deleted (
2. Medium) - Triaged deleted (
Yes) - Groomed deleted (
No) - Sprint Candidate deleted (
No)
fao89 This sounds like a test issue so I'm going to mark it as one - let me know if that is incorrect.
Updated by dalley over 3 years ago
- Sprint/Milestone changed from Priority items (outside of planned milestones/releases) to Pulp 3.x RPM (Katello 4.1)
- Sprint deleted (
Sprint 101)
Also dropping from the sprint since I mis-interpreted this issue earlier.
Updated by dalley over 3 years ago
- Sprint/Milestone changed from Pulp 3.x RPM (Katello 4.1) to Priority items (outside of planned milestones/releases)
Updated by pulpbot almost 3 years ago
- Description updated (diff)
- Status changed from NEW to CLOSED - DUPLICATE
Actions