Hide Forgot
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:
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.