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

Refs #36547 - explicitly stringify major/minor for Ubuntu #10279

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Aug 16, 2024

We stringify these anyway on save, but here it's also used for
searching, and that fails to find the existing OS when searching with
minor=nil.

When the existing OS is not found, a new one is created, but that fails
to save as the name/major/minor combination already exists and that
breaks fact uploads.

Fixes: d690fa7

@evgeni
Copy link
Member Author

evgeni commented Aug 16, 2024

cc @sbernhard @goarsna

Copy link
Contributor

@sbernhard sbernhard left a comment

Choose a reason for hiding this comment

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

Make sense. Thank you!

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

👍 but please make it Refs #36547 since that hasn't been released yet.

We stringify these anyway on save, but here it's also used for
searching, and that fails to find the existing OS when searching with
minor=nil.

When the existing OS is not found, a new one is created, but that fails
to save as the name/major/minor combination already exists and that
breaks fact uploads.

Fixes: d690fa7
Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

This is an interesting failure that looks unrelated:

 [MinitestRetry] retry 'test_0002_Apipie DSL docs URL should be successful' count: 1,  msg: FrozenError: can't modify frozen String: ""
    lib/foreman/middleware/libvirt_connection_cleaner.rb:9:in `call'
    lib/foreman/middleware/telemetry.rb:10:in `call'
    lib/foreman/middleware/logging_context_session.rb:22:in `call'
    lib/foreman/middleware/logging_context_request.rb:11:in `call'
    test/integration/apipie_test.rb:10:in `block in <class:ApipieIntegrationTest>'

Sadly it happens somewhere and middleware is not providing a useful traceback.

@ofedoren have you seen this before?

@evgeni evgeni merged commit 4f562db into theforeman:develop Aug 16, 2024
52 checks passed
@ekohl ekohl changed the title Fixes #37738 - explicitly stringify major/minor for Ubuntu Refs #36547 - explicitly stringify major/minor for Ubuntu Aug 16, 2024
@goarsna
Copy link
Contributor

goarsna commented Aug 20, 2024

Thanks for fixing this, @evgeni

@evgeni evgeni deleted the i37738 branch August 20, 2024 06:15
@ofedoren
Copy link
Member

This is an interesting failure that looks unrelated:

 [MinitestRetry] retry 'test_0002_Apipie DSL docs URL should be successful' count: 1,  msg: FrozenError: can't modify frozen String: ""
    lib/foreman/middleware/libvirt_connection_cleaner.rb:9:in `call'
    lib/foreman/middleware/telemetry.rb:10:in `call'
    lib/foreman/middleware/logging_context_session.rb:22:in `call'
    lib/foreman/middleware/logging_context_request.rb:11:in `call'
    test/integration/apipie_test.rb:10:in `block in <class:ApipieIntegrationTest>'

Sadly it happens somewhere and middleware is not providing a useful traceback.

@ofedoren have you seen this before?

I'm afraid I have not :/

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.

5 participants