Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 654637

Summary: Creating subscriptions and then refreshing pools with REST API fails
Product: [Community] Candlepin (Migrated to Jira) Reporter: Jeff Weiss <jweiss>
Component: candlepinAssignee: Ajay Kumar Nadathur Sreenivasan <anadathu>
Status: CLOSED WORKSFORME QA Contact: John Sefler <jsefler>
Severity: medium Docs Contact:
Priority: low    
Version: 0.5CC: anadathu, dajohnso
Target Milestone: ---Keywords: QA-Closed
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
0.0.43-1
Last Closed: 2010-11-18 17:50:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 639436    
Attachments:
Description Flags
script to run api calls none

Description Jeff Weiss 2010-11-18 13:51:46 UTC
Created attachment 461297 [details]
script to run api calls

Description of problem:
I am trying to use a script to create some pools in on-premises server that are approaching expiration. The script I'm using used to work, but against 0.0.43-1, the pool refresh fails.  See exception http://pastebin.test.redhat.com/34921

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

How reproducible:


Steps to Reproduce:
1. Place attached script setup.rb in dir above candlepin checkout.
2. chmod 755 setup.rb
3. ./setup.rb
4. curl -u admin:admin -k https://[host:port]/candlepin/pools?owner=[ownerid of donaldduck]

Actual results:
The pools shown are just the ones originally imported during deploy. The ones the script created do not show up.  There are exceptions in catalina.out.

Expected results:
Pools created.

Additional info:

Comment 1 Ajay Kumar Nadathur Sreenivasan 2010-11-18 17:42:41 UTC
Hi,
I am not able to reproduce the above scenario using ALPHA branch. The code works fine.