Project

General

Profile

Actions

Bug #15383

closed

[upgrade] Host creation failed with error: Medium can't be blank even when media was correctly associated

Added by Marek Hulán over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Upgrades
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1344288
Description of problem: I was trying to create new host on upgraded sat6.2 from sat6.1.9 on rhel7 and host creation failed with error:

2016-06-09 06:31:52 [app] [I] Parameters: {"utf8"=>"✓", "authenticity_token"=>"/sGd0w6atFzcfKxqi7YF/VQDzF/RzgTiJKnkKc8U3CI=", "host"=>{"name"=>"postupgrade", "organization_id"=>"1", "location_id"=>"2", "hostgroup_id"=>"9", "compute_resource_id"=>"2", "content_facet_attributes"=>{"lifecycle_environment_id"=>"2", "content_view_id"=>"2", "id"=>"", "kickstart_repository_id"=>"47"}, "environment_id"=>"3", "content_source_id"=>"1", "openscap_proxy_id"=>"", "puppetclass_ids"=>[""], "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"", "name"=>"postupgrade", "domain_id"=>"1", "subnet_id"=>"14", "ip"=>"10.8.119.115", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>"", "compute_attributes"=>{"name"=>"nic1", "network"=>"6b5c3ecd-6738-43eb-944a-9573b9d12937"}}}, "compute_attributes"=>{"cluster"=>"00000001-0001-0001-0001-00000000022f", "template"=>"00000000-0000-0000-0000-000000000000", "cores"=>"1", "memory"=>"1073741824", "start"=>"1", "volumes_attributes"=>{"0"=>{"_delete"=>"", "size_gb"=>"10", "storage_domain"=>"af918214-e6b2-4a01-a960-73dbc06a7073", "id"=>"", "preallocate"=>"0"}}}, "architecture_id"=>"1", "operatingsystem_id"=>"1", "provision_method"=>"build", "build"=>"1", "ptable_id"=>"63", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"3-Users", "enabled"=>"1", "comment"=>"", "overwrite"=>"false"}, "capabilities"=>"build image", "provider"=>"Ovirt", "media_selector"=>"synced_content", "bare_metal_capabilities"=>"build"}
2016-06-09 06:31:53 [app] [I] Failed to save: Medium can't be blank
2

Please note that I choose "synced content" from operating system -> media selection.

But when I submitted the form, "All media" option auto selected and that shows blank media.

Version-Release number of selected component (if applicable):
upgraded sat6.2 from sat6.1.9 on rhel7

How reproducible:

Steps to Reproduce:
1. create a new host
2.
3.

Actual results:
2016-06-09 06:31:53 [app] [I] Failed to save: Medium can't be blank
2

Expected results:
host should be created successfully

Additional info:

Actions #1

Updated by The Foreman Bot over 8 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Marek Hulán
  • Pull request https://github.com/Katello/katello/pull/6115 added
Actions #2

Updated by Marek Hulán over 8 years ago

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

Updated by Justin Sherrill over 8 years ago

  • Priority changed from Normal to High
  • Translation missing: en.field_release set to 144
Actions

Also available in: Atom PDF