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 1101718 - New host form does not populate Environment and Content view dropdown fields
Summary: New host form does not populate Environment and Content view dropdown fields
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.0.3
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Brad Buckingham
QA Contact: Kedar Bidarkar
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-27 19:13 UTC by Og Maciel
Modified: 2019-09-26 14:32 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-02 14:07:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Missing fields (86.49 KB, image/png)
2014-05-27 19:13 UTC, Og Maciel
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 5967 0 None None None 2016-04-22 16:04:22 UTC

Description Og Maciel 2014-05-27 19:13:02 UTC
Description of problem:

While following these steps https://gist.github.com/omaciel/eecee74971e6f1e948a6 I tried to create a new Host through the web UI and noticed that the fields for Environment and Content view were not populated (see screenshot)

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

* apr-util-ldap-1.3.9-3.el6_0.1.x86_64
* candlepin-0.9.7-1.el6_5.noarch
* candlepin-scl-1-5.el6_4.noarch
* candlepin-scl-quartz-2.1.5-5.el6_4.noarch
* candlepin-scl-rhino-1.7R3-1.el6_4.noarch
* candlepin-scl-runtime-1-5.el6_4.noarch
* candlepin-selinux-0.9.7-1.el6_5.noarch
* candlepin-tomcat6-0.9.7-1.el6_5.noarch
* elasticsearch-0.90.10-4.el6sat.noarch
* foreman-1.6.0.13-1.el6sat.noarch
* foreman-compute-1.6.0.13-1.el6sat.noarch
* foreman-gce-1.6.0.13-1.el6sat.noarch
* foreman-libvirt-1.6.0.13-1.el6sat.noarch
* foreman-ovirt-1.6.0.13-1.el6sat.noarch
* foreman-postgresql-1.6.0.13-1.el6sat.noarch
* foreman-proxy-1.6.0.6-1.el6sat.noarch
* foreman-selinux-1.6.0-2.el6sat.noarch
* foreman-vmware-1.6.0.13-1.el6sat.noarch
* katello-1.5.0-24.el6sat.noarch
* katello-ca-1.0-1.noarch
* katello-certs-tools-1.5.5-1.el6sat.noarch
* katello-installer-0.0.44-1.el6sat.noarch
* openldap-2.4.23-32.el6_4.1.x86_64
* pulp-katello-plugins-0.3-1.el6sat.noarch
* pulp-nodes-common-2.4.0-0.18.beta.el6sat.noarch
* pulp-nodes-parent-2.4.0-0.18.beta.el6sat.noarch
* pulp-puppet-plugins-2.4.0-0.18.beta.el6sat.noarch
* pulp-puppet-tools-2.4.0-0.18.beta.el6sat.noarch
* pulp-rpm-plugins-2.4.0-0.18.beta.el6sat.noarch
* pulp-selinux-2.4.0-0.18.beta.el6sat.noarch
* pulp-server-2.4.0-0.18.beta.el6sat.noarch
* python-ldap-2.3.10-1.el6.x86_64
* ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch
* ruby193-rubygem-runcible-1.1.0-2.el6sat.noarch
* rubygem-hammer_cli-0.1.0-13.el6sat.noarch
* rubygem-hammer_cli_foreman-0.1.0-15.el6sat.noarch
* rubygem-hammer_cli_foreman_tasks-0.0.2-6.el6sat.noarch
* rubygem-hammer_cli_katello-0.0.3-26.el6sat.noarch

How reproducible:


Steps to Reproduce:
1. See https://gist.github.com/omaciel/eecee74971e6f1e948a6
2.
3.

Actual results:


Expected results:


Additional info:

Processing by HostsController#process_hostgroup as */*
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"usU1tfsynsnyfuPWG4lT8hAevvqFYrb+vpzKRUMgACM=", "host"=>{"name"=>"", "organization_id"=>"1", "location_id"=>"2", "hostgroup_id"=>"1", "compute_resource_id"=>"", "environment_id"=>"", "puppet_ca_proxy_id"=>"", "puppet_proxy_id"=>"", "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "domain_id"=>"", "realm_id"=>"", "mac"=>"", "ip"=>"", "interfaces_attributes"=>{"new_interfaces"=>{"_destroy"=>"false", "type"=>"Nic::Managed", "mac"=>"", "name"=>"", "domain_id"=>"", "ip"=>"", "provider"=>"IPMI"}}, "architecture_id"=>"", "provision_method"=>"build", "build"=>"1", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"1-Users", "enabled"=>"1", "model_id"=>"", "comment"=>"", "overwrite"=>"false"}, "kt_environment_id"=>""}
  Rendered hosts/_progress.html.erb (0.2ms)
  Rendered puppetclasses/_selectedClasses.html.erb (0.0ms)
  Rendered puppetclasses/_classes_in_groups.html.erb (0.0ms)
  Rendered puppetclasses/_classes.html.erb (0.1ms)
  Rendered puppetclasses/_class_selection.html.erb (58.5ms)
  Rendered common/_domain.html.erb (9.4ms)
  Rendered hosts/_interfaces.html.erb (134.3ms)
  Rendered common/os_selection/_architecture.html.erb (3.5ms)
  Rendered common/os_selection/_operatingsystem.html.erb (17.1ms)
  Rendered hosts/_operating_system.html.erb (27.1ms)
  Rendered hosts/_unattended.html.erb (182.3ms)
  Rendered puppetclasses/_class_parameters.html.erb (0.0ms)
  Rendered puppetclasses/_classes_parameters.html.erb (8.7ms)
  Rendered common_parameters/_inherited_parameters.html.erb (4.9ms)
  Rendered common_parameters/_puppetclass_parameter.html.erb (1.6ms)
  Rendered common_parameters/_puppetclasses_parameters.html.erb (2.5ms)
  Rendered common_parameters/_parameter.html.erb (1.1ms)
  Rendered common_parameters/_parameters.html.erb (2.3ms)
  Rendered hosts/_form.html.erb (327.8ms)
Completed 200 OK in 379ms (Views: 309.5ms | ActiveRecord: 26.2ms)
Processing by SubnetsController#freeip as */*
  Parameters: {"subnet_id"=>"1", "host_mac"=>"", "organization_id"=>"1", "location_id"=>"2"}

==> /var/log/foreman-proxy/proxy.log <==
D, [2014-05-27T15:07:23.320727 #22617] DEBUG -- : Reading config file /etc/dhcp/dhcpd.conf
D, [2014-05-27T15:07:23.321171 #22617] DEBUG -- : Reading config file /etc/dhcp/dhcpd.hosts
D, [2014-05-27T15:07:23.321338 #22617] DEBUG -- : Loading subnets for 127.0.0.1
D, [2014-05-27T15:07:23.321520 #22617] DEBUG -- : Added 192.168.100.0/255.255.255.0 to 127.0.0.1
D, [2014-05-27T15:07:23.321932 #22617] DEBUG -- : trying to find an ip address, we got {:mac=>nil, :from=>nil, :to=>nil}
D, [2014-05-27T15:07:23.331574 #22617] DEBUG -- : Loading subnet data for 192.168.100.0/255.255.255.0
I, [2014-05-27T15:07:23.331736 #22617]  INFO -- : Enumerated hosts on 192.168.100.0
D, [2014-05-27T15:07:23.331779 #22617] DEBUG -- : Lazy loaded 192.168.100.0/255.255.255.0 records
D, [2014-05-27T15:07:23.333093 #22617] DEBUG -- : Searching for free IP - pinging 192.168.100.3
D, [2014-05-27T15:07:25.357942 #22617] DEBUG -- : Found free IP 192.168.100.3 out of a total of 254 free IPs

==> /var/log/foreman/production.log <==
Completed 200 OK in 2125ms (Views: 0.3ms | ActiveRecord: 5.8ms)
Processing by HostsController#compute_resource_selected as */*
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"usU1tfsynsnyfuPWG4lT8hAevvqFYrb+vpzKRUMgACM=", "host"=>{"name"=>"", "organization_id"=>"1", "location_id"=>"2", "hostgroup_id"=>"1", "compute_resource_id"=>"1", "environment_id"=>"", "puppet_ca_proxy_id"=>"1", "puppet_proxy_id"=>"1", "puppetclass_ids"=>[""], "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "domain_id"=>"2", "realm_id"=>"", "mac"=>"", "subnet_id"=>"1", "ip"=>"192.168.100.3", "interfaces_attributes"=>{"new_interfaces"=>{"_destroy"=>"false", "type"=>"Nic::Managed", "mac"=>"", "name"=>"", "domain_id"=>"", "ip"=>"", "provider"=>"IPMI"}}, "architecture_id"=>"1", "operatingsystem_id"=>"1", "provision_method"=>"build", "build"=>"1", "ptable_id"=>"7", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"1-Users", "enabled"=>"1", "model_id"=>"", "comment"=>"", "overwrite"=>"false"}, "kt_environment_id"=>""}
  Rendered compute_resources_vms/form/libvirt/_network.html.erb (32.2ms)
  Rendered compute_resources_vms/form/libvirt/_network.html.erb (30.2ms)
  Rendered compute_resources_vms/form/libvirt/_volume.html.erb (12.3ms)
  Rendered compute_resources_vms/form/libvirt/_volume.html.erb (12.3ms)
  Rendered compute_resources_vms/form/_libvirt.html.erb (240.2ms)
  Rendered hosts/_compute.html.erb (265.1ms)
Completed 200 OK in 299ms (Views: 264.1ms | ActiveRecord: 7.2ms)
Processing by ImagesController#index as JSON
  Parameters: {"search"=>"operatingsystem=1 architecture=1", "compute_resource_id"=>"1"}
Completed 200 OK in 22ms (Views: 2.2ms | ActiveRecord: 3.8ms)
Client disconnected.

Comment 1 Og Maciel 2014-05-27 19:13:35 UTC
Created attachment 899667 [details]
Missing fields

Comment 2 RHEL Program Management 2014-05-27 19:14:05 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 4 Brad Buckingham 2014-05-27 20:14:22 UTC
One quick observation is that the puppet environments do not have a 'Location' assigned to them.  Assigning the location (e.g. Default), exposes the corresponding Lifecycle Environment & Content View within the 'New Host' form.

Comment 5 Brad Buckingham 2014-05-28 12:43:19 UTC
Created redmine issue http://projects.theforeman.org/issues/5967 from this bug

Comment 8 Kedar Bidarkar 2014-06-13 09:55:13 UTC
The host form now does populated Environment and content-view dropdown fields automatically without explicit configuration.

verified with sat6-snap9-c2.


Installed Packages

    candlepin-0.9.19-1.el6_5.noarch
    candlepin-scl-1-5.el6_4.noarch
    candlepin-scl-quartz-2.1.5-5.el6_4.noarch
    candlepin-scl-rhino-1.7R3-1.el6_4.noarch
    candlepin-scl-runtime-1-5.el6_4.noarch
    candlepin-selinux-0.9.19-1.el6_5.noarch
    candlepin-tomcat6-0.9.19-1.el6_5.noarch
    createrepo-0.9.9-21.2.pulp.el6sat.noarch
    dhcp201-170.englab.pnq.redhat.com-qpid-broker-1.0-1.noarch
    dhcp201-170.englab.pnq.redhat.com-qpid-client-cert-1.0-1.noarch
    elasticsearch-0.90.10-4.el6sat.noarch
    katello-1.5.0-26.el6sat.noarch
    katello-ca-1.0-1.noarch
    katello-certs-tools-1.5.5-1.el6sat.noarch
    katello-installer-0.0.48-1.el6sat.noarch
    m2crypto-0.21.1.pulp-10.el6sat.x86_64
    mod_wsgi-3.4-1.pulp.el6sat.x86_64
    pulp-katello-0.3-3.el6sat.noarch
    pulp-nodes-common-2.4.0-0.20.beta.el6sat.noarch
    pulp-nodes-parent-2.4.0-0.20.beta.el6sat.noarch
    pulp-puppet-plugins-2.4.0-0.20.beta.el6sat.noarch
    pulp-puppet-tools-2.4.0-0.20.beta.el6sat.noarch
    pulp-rpm-plugins-2.4.0-0.20.beta.el6sat.noarch
    pulp-selinux-2.4.0-0.20.beta.el6sat.noarch
    pulp-server-2.4.0-0.20.beta.el6sat.noarch
    python-gofer-qpid-1.2.1-1.el6sat.noarch
    python-isodate-0.5.0-1.pulp.el6sat.noarch
    python-kombu-3.0.15-10.pulp.el6sat.noarch
    python-pulp-bindings-2.4.0-0.20.beta.el6sat.noarch
    python-pulp-common-2.4.0-0.20.beta.el6sat.noarch
    python-pulp-puppet-common-2.4.0-0.20.beta.el6sat.noarch
    python-pulp-rpm-common-2.4.0-0.20.beta.el6sat.noarch
    python-qpid-0.22-14.el6sat.noarch
    python-qpid-qmf-0.22-33.el6.x86_64
    qpid-cpp-client-0.22-42.el6.x86_64
    qpid-cpp-server-0.22-42.el6.x86_64
    qpid-cpp-server-linearstore-0.22-42.el6.x86_64
    qpid-java-client-0.22-6.el6.noarch
    qpid-java-common-0.22-6.el6.noarch
    qpid-proton-c-0.7-1.el6.x86_64
    qpid-qmf-0.22-33.el6.x86_64
    qpid-tools-0.22-12.el6.noarch
    ruby193-rubygem-katello-1.5.0-58.el6sat.noarch
    rubygem-hammer_cli_katello-0.0.4-6.el6sat.noarch

Comment 9 Bryan Kearney 2014-07-02 14:07:39 UTC
This was delivered with 6.0.3, which is the Satellite 6 Beta.


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