Project

General

Profile

Actions

Bug #17784

closed

API/CLI - ISE on Deleting proxy: Can't modify frozen hash

Added by Andrew Kofink almost 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman Proxy Content
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1398695
Description of problem:
Server returning err500 - "Can't modify frozen hash" every time user deletes a capsule using cli or api.
The capsule seems to be removed anyway.

This is a regression in 6.3
Version-Release number of selected component (if applicable):
satellite-6.3.0-6.1.beta.el7sat.noarch
How reproducible:
always
Steps to Reproduce:
1. add a capsule (you can forward port 9090 of the stallite to some other port to simulate a different capsule):
ncat -kl -p 11018 -c "ncat sat63.com 9090 &" (you might need to set a proper selinux context for the ports or simply disable it)
hammer proxy create --name foo --url="https://sat63.com:11018"
2. use CLI or API to delete it:
  1. hammer -u admin -p changeme proxy delete --id 11
    Could not delete the proxy:
    Can't modify frozen hash
or
$ curl -ku admin:changeme -X DELETE "https://sat63.com/api/v2/smart_proxies/11" 
{
"error": {"message":"Can't modify frozen hash"}
}
Actual results:
error returned:"Can't modify frozen hash" but proxy removed
Expected results:
no errors
Additional info:
Actions

Also available in: Atom PDF