Skip to content

Conversation

pedro-psb
Copy link
Member

@pedro-psb pedro-psb commented Aug 18, 2025

Some settings are not compatible across different scenarios x branches.

To not overcomplicate the managing logic here, from now on each branch
must define the scenario settings which is approriate for them.


Context for storage:

Guides for using storage settings*, based on pulpcore installed:

Case 1) <3.70

  • All scenarios must render the [legacy storage settings]

Case 2) >=3.70,<3.85

  • To tests both work, is recommended only one scenario uses the [new storage setting].
  • May be only one or the other, if necessary

Case 3) >=3.85

  • All scenarios must render the [new storage setting]

*
[legacy storage settings]: based on DEFAULT_FILE_STORAGE
[new storage settings]: based on STORAGES

@pedro-psb
Copy link
Member Author

@mdellweg Do you think it's worth writing a template 'migration' to ensure these rules apply on older branches?
Or maybe not even make this an option anymore, but a calculated value based on pulpcore lower/upperbounds...

@mdellweg
Copy link
Member

@mdellweg Do you think it's worth writing a template 'migration' to ensure these rules apply on older branches? Or maybe not even make this an option anymore, but a calculated value based on pulpcore lower/upperbounds...

I don't know. I fear at the very moment we need to know this configuration thing, we cannot really know which pulpcore version is going to be installed later...

@mdellweg
Copy link
Member

can we move the whole storage config into the scenario settings?

@pedro-psb
Copy link
Member Author

Yes, we can

@pedro-psb pedro-psb force-pushed the remove-storage-template branch from e07c051 to 71342e3 Compare August 18, 2025 19:16
@pedro-psb pedro-psb changed the title Fix handling of storages compat flag Stop managing scenario settings Aug 18, 2025
Some settings are not compatible across different scenarios x branches.

To not overcomplicate the managing logic here, from now on each branch
must define the scenario settings which is approriate for them.
@pedro-psb pedro-psb force-pushed the remove-storage-template branch from 71342e3 to ce57dc1 Compare August 18, 2025 19:20
@pedro-psb
Copy link
Member Author

Test PR: pulp/pulpcore#6871

@mdellweg
Copy link
Member

Sometimes being explicit is better than trying to be clever. I like this approach. And i think i see it working, because the errors are related to a completely different python 3.11 thing.

Comment on lines -68 to -75
DEFAULT_FILE_STORAGE = "storages.backends.azure_storage.AzureStorage"
AZURE_ACCOUNT_KEY = "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw=="
AZURE_ACCOUNT_NAME = "devstoreaccount1"
AZURE_CONTAINER = "pulp-test"
AZURE_LOCATION = "pulp3"
AZURE_OVERWRITE_FILES = True
AZURE_URL_EXPIRATION_SECS = 120
AZURE_CONNECTION_STRING = 'DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://ci-azurite:10000/devstoreaccount1;'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to "move" this information into the default template values?
(I know it only helps a newly templated plugin, but it also serves as some sort of documentation.)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this actually enables it in the ephemeral catdog plugin of this repository. ;)

@pedro-psb pedro-psb force-pushed the remove-storage-template branch 4 times, most recently from 42eaae8 to 3d74ca0 Compare August 19, 2025 14:24
@pedro-psb pedro-psb force-pushed the remove-storage-template branch from 3d74ca0 to 5f4aa46 Compare August 19, 2025 15:17
Comment on lines -68 to -75
DEFAULT_FILE_STORAGE = "storages.backends.azure_storage.AzureStorage"
AZURE_ACCOUNT_KEY = "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw=="
AZURE_ACCOUNT_NAME = "devstoreaccount1"
AZURE_CONTAINER = "pulp-test"
AZURE_LOCATION = "pulp3"
AZURE_OVERWRITE_FILES = True
AZURE_URL_EXPIRATION_SECS = 120
AZURE_CONNECTION_STRING = 'DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://ci-azurite:10000/devstoreaccount1;'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this actually enables it in the ephemeral catdog plugin of this repository. ;)

@pedro-psb pedro-psb merged commit 461422f into pulp:main Aug 19, 2025
11 checks passed
pedro-psb added a commit to pedro-psb/pulp_rpm that referenced this pull request Aug 21, 2025
Branches should explicitly set their storage configs. See:
pulp/plugin_template#977
pedro-psb added a commit to pedro-psb/pulp_rpm that referenced this pull request Aug 21, 2025
Branches should explicitly set their storage configs. See:
pulp/plugin_template#977
pedro-psb added a commit to pedro-psb/pulpcore that referenced this pull request Aug 21, 2025
Branches should explicitly set their storage configs. See:
pulp/plugin_template#977
dralley pushed a commit to pulp/pulp_rpm that referenced this pull request Aug 21, 2025
Branches should explicitly set their storage configs. See:
pulp/plugin_template#977
patchback bot pushed a commit to pulp/pulp_rpm that referenced this pull request Aug 21, 2025
Branches should explicitly set their storage configs. See:
pulp/plugin_template#977

(cherry picked from commit e33cab8)
patchback bot pushed a commit to pulp/pulp_rpm that referenced this pull request Aug 21, 2025
Branches should explicitly set their storage configs. See:
pulp/plugin_template#977

(cherry picked from commit e33cab8)
dralley pushed a commit to pulp/pulp_rpm that referenced this pull request Aug 21, 2025
Branches should explicitly set their storage configs. See:
pulp/plugin_template#977

(cherry picked from commit e33cab8)
dralley pushed a commit to pulp/pulp_rpm that referenced this pull request Aug 21, 2025
Branches should explicitly set their storage configs. See:
pulp/plugin_template#977

(cherry picked from commit e33cab8)
dralley pushed a commit to pulp/pulp_rpm that referenced this pull request Aug 21, 2025
Branches should explicitly set their storage configs. See:
pulp/plugin_template#977
patchback bot pushed a commit to pulp/pulp_rpm that referenced this pull request Aug 21, 2025
Branches should explicitly set their storage configs. See:
pulp/plugin_template#977

(cherry picked from commit f3522f7)
patchback bot pushed a commit to pulp/pulp_rpm that referenced this pull request Aug 21, 2025
Branches should explicitly set their storage configs. See:
pulp/plugin_template#977

(cherry picked from commit f3522f7)
pedro-psb added a commit to pulp/pulp_rpm that referenced this pull request Aug 21, 2025
Branches should explicitly set their storage configs. See:
pulp/plugin_template#977

(cherry picked from commit f3522f7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants