Project

General

Profile

Bug #9628

Unable to create lifecycle-env with cli or UI

Added by Adam Price over 7 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1189478
Description of problem:

Unable to create lifecycle-environment with cli.

Throws the below error.

[ERROR 2015-02-05 08:12:03 Exception] PGError: ERROR: missing FROM-clause entry for table "katello_environments"
LINE 1: ...LECT DISTINCT COUNT() FROM "environments" WHERE "katello_e...
^
: SELECT DISTINCT COUNT(
) FROM "environments" WHERE "katello_environments"."organization_id" = 1 AND "katello_environments"."name" = 'Library'
Could not create environment:
PGError: ERROR: missing FROM-clause entry for table "katello_environments"
LINE 1: ...LECT DISTINCT COUNT() FROM "environments" WHERE "katello_e...
^
: SELECT DISTINCT COUNT(
) FROM "environments" WHERE "katello_environments"."organization_id" = 1 AND "katello_environments"."name" = 'Library'
[ERROR 2015-02-05 08:12:03 Exception]

RestClient::InternalServerError (500 Internal Server Error):
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!'
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in `process_result'
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in `transmit'
/usr/lib/ruby/1.8/net/http.rb:543:in `start'

Version-Release number of selected component (if applicable):
sat6.1 Beta-snap1-compose2

How reproducible:
always

Steps to Reproduce:
1. creation of lifecycle-env using cli
2.
3.

Actual results:
unable to create lifecycle-env using cli

Expected results:
lifecycle-env should get created.

Additional info:


Related issues

Related to Katello - Bug #9850: prior env 'Library' is missing when creating a new life-cycle environmentDuplicate2015-03-20

Associated revisions

Revision d1b797a3 (diff)
Added by Adam Price over 7 years ago

fixes #9628 - hcli-katello now accepts --prior or --prior-id, BZ1189478

Revision c2e56f85 (diff)
Added by Adam Price over 7 years ago

refs #9628 - change prior to prior_id, BZ1189478

it's been ID all along, not sure why we didn't change the param name to
signify that. This commit also includes backwards compatibility for
passing in `prior`, but it's marked as deprecated.

Revision 167c811b
Added by Adam Price over 7 years ago

Merge pull request #5072 from komidore64/bz1189478

refs #9628 - change prior to prior_id, BZ1189478

Revision 86866af2
Added by Adam Price over 7 years ago

Merge pull request #287 from komidore64/bz1189478

fixes #9628 - hcli-katello now accepts --prior or --prior-id, BZ1189478

Revision a362aee2 (diff)
Added by Adam Price over 7 years ago

refs #9628 - need to use params instead of options

not sure how i missed this before, but `options` is a method that
returns a generated array that isn't persistent, so calling `#delete` on
it is pointless. on the other hand, `params` is a variable containing a
hash that isn't thrown away.

Revision 223fd750
Added by Adam Price over 7 years ago

Merge pull request #288 from komidore64/booboo

refs #9628 - need to use params instead of options

History

#1 Updated by The Foreman Bot over 7 years ago

  • Status changed from New to Ready For Testing
  • Target version set to 67
  • Pull request https://github.com/Katello/katello/pull/5072 added
  • Pull request deleted ()

#2 Updated by Eric Helms over 7 years ago

  • Legacy Backlogs Release (now unused) set to 23
  • Triaged changed from No to Yes

#3 Updated by Eric Helms over 7 years ago

  • Target version changed from 67 to 68

#4 Updated by Eric Helms over 7 years ago

  • Category changed from Hammer to API

#5 Updated by Eric Helms over 7 years ago

  • Related to Bug #9850: prior env 'Library' is missing when creating a new life-cycle environment added

#6 Updated by Anonymous over 7 years ago

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

Also available in: Atom PDF