Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1330869 - Provisioning a rhel7.2 host via hostgroup that includes atomic ostree fails with error: Atomic Media does not belong to RedHat 7.2 operating system
Summary: Provisioning a rhel7.2 host via hostgroup that includes atomic ostree fails w...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Provisioning
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Partha Aji
QA Contact: Sachin Ghai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-27 07:53 UTC by Sachin Ghai
Modified: 2019-04-01 20:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-25 09:41:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
UI raises error under "OperatingSystem" tab -> Media (49.25 KB, image/png)
2016-04-27 07:53 UTC, Sachin Ghai
no flags Details

Description Sachin Ghai 2016-04-27 07:53:01 UTC
Created attachment 1151247 [details]
UI raises error under "OperatingSystem" tab -> Media

Description of problem:
I was trying to verify bz1330012 and created a host via hostgroup and associated CV includes custom rhel7.2  along with atomic ostree.

Now when I provision the host with same hostgroup, UI raises error:

Atomic Media does not belong to RedHat 7.2 operating system

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


2016-04-27 03:25:10 [app] [I] Processing by HostsController#create as */*
2016-04-27 03:25:10 [app] [I]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"mrb79IPQ850bk0zJOWzV8KEntRCvBIZD0j3rXnOjzO4=", "host"=>{"name"=>"host4", "organization_id"=>"1", "location_id"=>"2", "hostgroup_id"=>"2", "compute_resource_id"=>"1", "content_facet_attributes"=>{"lifecycle_environment_id"=>"2", "content_view_id"=>"2", "id"=>"", "kickstart_repository_id"=>"17"}, "environment_id"=>"1", "content_source_id"=>"1", "puppetclass_ids"=>[""], "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"", "name"=>"host4", "domain_id"=>"1", "subnet_id"=>"1", "ip"=>"192.168.100.38", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>"", "compute_attributes"=>{"type"=>"network", "network"=>"foreman", "model"=>"virtio"}}}, "compute_attributes"=>{"cpus"=>"1", "memory"=>"1073741824", "start"=>"1", "volumes_attributes"=>{"0"=>{"_delete"=>"", "pool_name"=>"default", "capacity"=>"10G", "allocation"=>"0G", "format_type"=>"raw"}}}, "architecture_id"=>"1", "operatingsystem_id"=>"2", "provision_method"=>"build", "build"=>"1", "medium_id"=>"", "ptable_id"=>"61", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"3-Users", "enabled"=>"1", "comment"=>"", "overwrite"=>"false"}, "capabilities"=>"build image", "provider"=>"Libvirt", "media_selector"=>"synced_content", "bare_metal_capabilities"=>"build"}
2016-04-27 03:25:11 [app] [I] Failed to save: Medium Atomic Media does not belong to RedHat 7.2 operating system
2016-04-27 03:25:11 [app] [I]   Rendered hosts/_progress.html.erb (0.3ms)
2016-04-27 03:25:11 [app] [I]   Rendered puppetclasses/_selectedClasses.html.erb (0.0ms)
2016-04-27 03:25:11 [app] [I]   Rendered puppetclasses/_classes_in_groups.html.erb (0.0ms)
2016-04-27 03:25:11 [app] [I]   Rendered puppetclasses/_classes.html.erb (0.2ms)
2016-04-27 03:25:11 [app] [I]   Rendered puppetclasses/_class_selection.html.erb (42.5ms)
2016-04-27 03:25:11 [app] [I]   Rendered nic/_base_form.html.erb (20.4ms)
2016-04-27 03:25:11 [app] [I]   Rendered nic/_virtual_form.html.erb (1.2ms)
2


Version-Release number of selected component (if applicable):
upgraded sat6.2 beta snap9.2 to snap9.3

How reproducible:


Steps to Reproduce:
1. Create a CV that includes custom rhel72 installer + atomic ostree
2. create a hostgroup and associated CV created in step1
3. create a new rhel72 host with hostgroup created in step2
4. Choose "synced contents" from operating system tab

Actual results:
UI raises error under "OperatingSystem" tab -> Media

Atomic Media does not belong to RedHat 7.2 operating system

Please note that when you submit the "new host" form, error raised on webUI. And "All Media" auto selected though I selected "Synced contents" while creating new host

Expected results:

1) UI should n't raise above error and provisioning should succeed.

2) Log level shouldn't be info for following error:

2016-04-27 03:25:11 [app] [I] Failed to save: Medium Atomic Media does not belong to RedHat 7.2 operating system

Additional info:

Comment 3 Sachin Ghai 2016-05-25 09:41:00 UTC
Yeah, Verified with latest snap12.1 and this issue is no longer reproducible. I'll re-open this issue if come across again. Closing now.


Note You need to log in before you can comment on or make changes to this bug.