Default objects are missing in GUI while hammer lists them

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6

Issue

  • some objects like several media, environments or domains exist by default in foreman provisioning
  • hammer can list the objects without a problem
  • GUI does not show them

Why GUI does not show the default object?

Resolution

Ensure that "Any Organization" is chosen in the GUI (see top navigation pane on the left), or that the objects have been added to the organization you selected in the GUI.

Root Cause

The GUI user selected some Organization that hides the objects not assigned to this Organization.

hammer command line tool shows the objects as it works by default under "Any Organization" - until one specifies the Organization via --organization option.

Diagnostic Steps

Default hammer output for medium, environment and domain whose lists are empty for "non-Any" organization by default:

# hammer -u admin -p qwJxBptxb7Gfcjj5 medium list
---|-----------------|------------------------------------------------------------------------------
ID | NAME            | PATH                                                                         
---|-----------------|------------------------------------------------------------------------------
1  | CentOS mirror   | http://mirror.centos.org/centos/$major.$minor/os/$arch                       
2  | Debian mirror   | http://ftp.debian.org/debian/                                                
3  | Fedora mirror   | http://dl.fedoraproject.org/pub/fedora/linux/releases/$major/Fedora/$arch/os/
4  | FreeBSD mirror  | http://ftp.freebsd.org/pub/FreeBSD/releases/$arch/$major.$minor-RELEASE/     
5  | OpenSUSE mirror | http://download.opensuse.org/distribution/$major.$minor/repo/oss             
6  | Ubuntu mirror   | http://archive.ubuntu.com/ubuntu/                                            
---|-----------------|------------------------------------------------------------------------------
# hammer -u admin -p qwJxBptxb7Gfcjj5 environment list
---|-----------
ID | NAME      
---|-----------
1  | production
---|-----------
# hammer -u admin -p qwJxBptxb7Gfcjj5 domain list
---|-------------------------------
ID | NAME                          
---|-------------------------------
1  | lab.my.company.org
---|-------------------------------
# 

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.