Project

General

Profile

Actions

Bug #14388

closed

Registering a atomic host with satellite server failed with validation error: Medium Atomic_media does not belong to RedHat 7.2 operating system

Added by Partha Aji almost 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1320422
Description of problem:

I provisioned a atomic host via Satellite. Since I've synced rhel7 base OS as well as rhel 7.2 atomic ostree in same org, so when I tried to provision atomic host, it got failed due to bz1318743.

As a workaround, I didn't select content-source for provisioning atomic host. Host was provisioned successfully.

Later, I tried to register the host with satellite server with and w/o activation-key and got following error:

-bash-4.2# subscription-manager register --org "Default_Organization"
Registering to: <sat_server>:443/rhsm
Username: admin
Password:
Environment: Library
Validation failed: Medium Atomic_media does not belong to RedHat 7.2 operating system

-bash-4.2# subscription-manager register --org "Default_Organization" --activationkey ak_ostree
Validation failed: Medium Atomic_media does not belong to RedHat 7.2 operating system

production.log: ================

2016-03-23 03:42:18 [app] [I] Started POST "/rhsm/consumers?owner=Default_Organization&activation_keys=ak_ostree" for 192.168.100.48 at 2016-03-23 03:42:18 -0400
2016-03-23 03:42:18 [app] [I] Processing by Katello::Api::Rhsm::CandlepinProxiesController#consumer_activate as JSON
2016-03-23 03:42:18 [app] [I] Parameters: {"facts"=>"[FILTERED]", "installedProducts"=>[{"productName"=>"Red Hat Enterprise Linux Atomic Host", "arch"=>"x86_64", "version"=>"7", "productId"=>"271"}, {"productName"=>"Red Hat Enterprise Linux Server", "arch"=>"x86_64", "version"=>"7.1", "productId"=>"69"}], "type"=>"system", "name"=>"atomichost.idmqe.lab.eng.bos.redhat.com", "contentTags"=>["rhel-atomic-7", "rhel-atomic", "rhel-7", "rhel-7-server"], "owner"=>"Default_Organization", "activation_keys"=>"ak_ostree"}
2016-03-23 03:42:19 [app] [I] Import facts for 'atomichost.idmqe.lab.eng.bos.redhat.com' completed. Added: 106, Updated: 1, Deleted 0 facts
2016-03-23 03:42:19 [foreman-tasks/action] [E] Validation failed: Medium Atomic_media does not belong to RedHat 7.2 operating system (ActiveRecord::RecordInvalid) | /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/validations.rb:57:in `save!' | /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/attribute_methods/dirty.rb:29:in `save!'

Please note that before registering the host, I setup host with katello-rhsm-consumer. And /etc/rhsm/rhsm.conf was pointing to correct satellite server.

Version-Release number of selected component (if applicable):
Satellite 6.2 snap4

How reproducible:
always

Steps to Reproduce:
1. Provision atomic host
2. register it with satellite
3.

Actual results:
[E] Validation failed: Medium Atomic_media does not belong to RedHat 7.2 operating system

Expected results:
host should be registered successfully with server

Additional info:

Actions #1

Updated by The Foreman Bot almost 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/5926 added
Actions #2

Updated by Partha Aji almost 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #3

Updated by Eric Helms almost 8 years ago

  • translation missing: en.field_release set to 86
Actions

Also available in: Atom PDF