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 1161140 - Associating image to Openstack CR fails undefined method `downcase' for nil:NilClass
Summary: Associating image to Openstack CR fails undefined method `downcase' for nil:N...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Provisioning
Version: 6.0.4
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: Unspecified
Assignee: Stephen Benjamin
QA Contact: Tazim Kolhar
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-06 13:39 UTC by Tazim Kolhar
Modified: 2017-02-23 20:49 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 05:18:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
image creation fails (33.05 KB, image/png)
2014-11-06 13:39 UTC, Tazim Kolhar
no flags Details
foreman-debug (294.50 KB, application/x-xz)
2014-11-06 17:42 UTC, Tazim Kolhar
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 8302 0 Normal Closed Associating image to Openstack CR fails undefined method `downcase' for nil:NilClass 2020-04-08 00:23:16 UTC
Red Hat Product Errata RHSA-2015:1592 0 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 09:04:35 UTC

Description Tazim Kolhar 2014-11-06 13:39:43 UTC
Created attachment 954467 [details]
image creation fails

Description of problem:
Associating image to Openstack CR fails undefined method `downcase' for nil:NilClass

Version-Release number of selected component (if applicable):
# rpm -qa | grep foreman
ruby193-rubygem-foreman-redhat_access-0.0.4-2.el7sat.noarch
foreman-vmware-1.6.0.47-1.el7sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3-3.el7sat.noarch
ruby193-rubygem-foreman_bootdisk-2.0.6-1.1.el7sat.noarch
foreman-1.6.0.47-1.el7sat.noarch
foreman-compute-1.6.0.47-1.el7sat.noarch
foreman-proxy-1.6.0.30-1.el7sat.noarch
ruby193-rubygem-foreman_hooks-0.3.5-2.el7sat.noarch
foreman-gce-1.6.0.47-1.el7sat.noarch
ruby193-rubygem-foreman_discovery-1.3.0-2.el7sat.noarch
rubygem-hammer_cli_foreman-0.1.1-16.el7sat.noarch
qe-sat6-rhel7.usersys.redhat.com-foreman-client-1.0-1.noarch
foreman-postgresql-1.6.0.47-1.el7sat.noarch
qe-sat6-rhel7.usersys.redhat.com-foreman-proxy-1.0-1.noarch
foreman-selinux-1.6.0.15-1.el7sat.noarch
foreman-libvirt-1.6.0.47-1.el7sat.noarch
ruby193-rubygem-foreman-tasks-0.6.9-1.1.el7sat.noarch
foreman-ovirt-1.6.0.47-1.el7sat.noarch


How reproducible:
everytime

Steps to Reproduce:
1.Create Openstack compute resource  
2.Navigate to Images tab on OS resource and click "new image"
3.undefined method `downcase' for nil:NilClass

Actual results:
Able to create new image

Expected results:
undefined method `downcase' for nil:NilClass

Additional info:

Added screen shot

Comment 1 RHEL Program Management 2014-11-06 13:53:04 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 3 Dominic Cleal 2014-11-06 14:09:44 UTC
Please attach foreman-debug, preferably if you can enable debugging first before reproducing the issue:

http://projects.theforeman.org/projects/foreman/wiki/Troubleshooting#How-do-I-enable-debugging

Comment 4 Stephen Benjamin 2014-11-06 14:17:21 UTC
Created redmine issue http://projects.theforeman.org/issues/8302 from this bug

Comment 5 Stephen Benjamin 2014-11-06 14:26:59 UTC
The issue here is specifically in the internal openstack there are images without names (causing errors when trying to sort by name)

    id="9f66e623-4c44-4874-a2ea-a375dc6cadd4",
    name=nil,
    created_at="2014-10-24T01:16:18Z",
    updated_at="2014-10-24T01:16:18Z",
    progress=25,
    status="SAVING",

    id="3c018863-ed63-45f7-af15-870840905836",
    name=nil,
    created_at="2014-10-23T03:48:18Z",
    updated_at="2014-10-23T03:48:18Z",
    progress=25,
    status="SAVING",



This seems possible only when it's in a SAVING state.  We should probably only be display ACTIVE openstack images anyway.

Comment 6 Tazim Kolhar 2014-11-06 17:42:17 UTC
Created attachment 954562 [details]
foreman-debug

Comment 7 Tazim Kolhar 2014-11-06 17:44:20 UTC
Foreman debug attached . please check

Comment 8 Bryan Kearney 2014-11-07 15:04:59 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/8302 has been closed
-------------
Anonymous
Applied in changeset commit:36bbbfdf332b8977bdec182f07f60ca12fa9025a.

Comment 9 Tazim Kolhar 2014-11-14 15:18:44 UTC
*** This bug is verified in upstream. This fix should eventually land in future downstream builds ***
RHEL65 / RHEL7

Version Tested:
foreman-proxy-1.8.0-0.develop.201411121327gitab6edc2.el7.noarch
yttrium.idmqe.lab.eng.bos.redhat.com-foreman-proxy-1.0-1.noarch
foreman-gce-1.8.0-0.develop.201411131139git5cd6de6.el7.noarch
foreman-selinux-1.8.0-0.develop.201410280941git10de1c5.el7.noarch
foreman-vmware-1.8.0-0.develop.201411131139git5cd6de6.el7.noarch
foreman-release-1.8.0-0.develop.201411131139git5cd6de6.el7.noarch
ruby193-rubygem-foreman_discovery-1.4.0-2.el7.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3-2.201409091410git163c264.git.0.988ca80.el7.noarch
foreman-postgresql-1.8.0-0.develop.201411131139git5cd6de6.el7.noarch
ruby193-rubygem-foreman_docker-0.2.0-2.el7.noarch
rubygem-hammer_cli_foreman-0.1.3-1.201411121216git9381fc5.el7.noarch
foreman-1.8.0-0.develop.201411131139git5cd6de6.el7.noarch
foreman-ovirt-1.8.0-0.develop.201411131139git5cd6de6.el7.noarch
ruby193-rubygem-foreman-tasks-0.6.9-1.el7.noarch
foreman-libvirt-1.8.0-0.develop.201411131139git5cd6de6.el7.noarch
foreman-compute-1.8.0-0.develop.201411131139git5cd6de6.el7.noarch
ruby193-rubygem-foreman_bootdisk-4.0.0-1.el7.noarch
yttrium.idmqe.lab.eng.bos.redhat.com-foreman-client-1.0-1.noarch
ruby193-rubygem-foreman_hooks-0.3.7-2.el7.noarch

able to add image

Comment 10 Bryan Kearney 2015-08-11 13:26:07 UTC
This bug is slated to be released with Satellite 6.1.

Comment 11 errata-xmlrpc 2015-08-12 05:18:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2015:1592


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