Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1161140 - Associating image to Openstack CR fails undefined method `downcase' for nil:NilClass
Associating image to Openstack CR fails undefined method `downcase' for nil:N...
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Provisioning (Show other bugs)
6.0.4
x86_64 Linux
unspecified Severity medium (vote)
: Unspecified
: Unused
Assigned To: Stephen Benjamin
Tazim Kolhar
http://projects.theforeman.org/issues...
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-06 08:39 EST by Tazim Kolhar
Modified: 2017-02-23 15:49 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-08-12 01:18:46 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 8302 None None None 2016-04-22 11:49 EDT
Red Hat Product Errata RHSA-2015:1592 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 05:04:35 EDT

  None (edit)
Description Tazim Kolhar 2014-11-06 08:39:43 EST
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 Product and Program Management 2014-11-06 08:53:04 EST
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 09:09:44 EST
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 09:17:21 EST
Created redmine issue http://projects.theforeman.org/issues/8302 from this bug
Comment 5 Stephen Benjamin 2014-11-06 09:26:59 EST
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 12:42:17 EST
Created attachment 954562 [details]
foreman-debug
Comment 7 Tazim Kolhar 2014-11-06 12:44:20 EST
Foreman debug attached . please check
Comment 8 Bryan Kearney 2014-11-07 10:04:59 EST
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 10:18:44 EST
*** 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 09:26:07 EDT
This bug is slated to be released with Satellite 6.1.
Comment 11 errata-xmlrpc 2015-08-12 01:18:46 EDT
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.