Project

General

Profile

Actions

Bug #34531

closed

4.3 -> nightly update has a bad migration and marks all organizations Airgapped

Added by Partha Aji about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Inter Server Sync
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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 #1

Updated by Partha Aji about 2 years ago

  • Bugzilla link set to 2055808
Actions #2

Updated by The Foreman Bot about 2 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Partha Aji
  • Pull request https://github.com/Katello/katello/pull/9988 added
Actions #3

Updated by The Foreman Bot about 2 years ago

  • Fixed in Releases Katello 4.5.0 added
Actions #4

Updated by Partha Aji about 2 years ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by Samir Jha about 2 years ago

  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF