Actions
Bug #34531
closed4.3 -> nightly update has a bad migration and marks all organizations Airgapped
Status:
Closed
Priority:
Normal
Assignee:
Category:
Inter Server Sync
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Description
- Install 4.3 and make sure it has only one organization.
- Also make sure Adminstrator -> Settings -> Content -> Content_Disconnected is set to false.
- Upgrade to the nightly
- `foreman-rake console` and run the command `::Katello::CdnConfiguration.all`
Expected:
1 cdn configuration pointing to the redhat cdn.
>::Katello::CdnConfiguration.all #<Katello::CdnConfiguration:0x0000000017cbd600 id: 1, organization_id: 1, ssl_ca_credential_id: nil, ssl_cert: nil, ssl_key: nil, username: nil, password: nil, upstream_organization_label: nil, url: "https://cdn.redhat.com", upstream_content_view_label: nil, upstream_lifecycle_environment_label: nil, type: "redhat_cdn">]
Actual:
2 cdn configurations!. Also an unnecessary airgapped configuration.
>::Katello::CdnConfiguration.all => [#<Katello::CdnConfiguration:0x0000000017cbd6c8 id: 1, organization_id: 1, ssl_ca_credential_id: nil, ssl_cert: nil, ssl_key: nil, username: nil, password: nil, upstream_organization_label: nil, url: nil, upstream_content_view_label: nil, upstream_lifecycle_environment_label: nil, type: "airgapped">, #<Katello::CdnConfiguration:0x0000000017cbd600 id: 2, organization_id: 1, ssl_ca_credential_id: nil, ssl_cert: nil, ssl_key: nil, username: nil, password: nil, upstream_organization_label: nil, url: "https://cdn.redhat.com", upstream_content_view_label: nil, upstream_lifecycle_environment_label: nil, type: "redhat_cdn">]
::Katello::CdnConfiguration.all
Actions