Bug #18186
closed`hammer capsule update` with invalid url shows improper error message
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1412807
Description of problem:
The error message shows the capsule could not be updated, but the capsule is actually updated. This happens when the proxy features are not available (i.e. https://proxy.example.com:8000/features).
Version-Release number of selected component (if applicable):
6.2
How reproducible:
Always
Steps to Reproduce:
1. `hammer capsule update --id 1 --new-name "centos7-devel.example.com" --url "http://centos7-devel.example.com:8001"` # setting to port 8001 instead of 8000 as an example of an invalid URL
Actual results:
Could not update the proxy
Expected results:
Updated with errors getting proxy features
Additional info:
Updated by Justin Sherrill about 8 years ago
- Translation missing: en.field_release set to 114
Updated by Evgeni Golov over 7 years ago
I must admit I don't think this is a bug.
You are changing the URL of a proxy, and it tries to verify the connection to it. As you just set a "wrong" port (or hostname, in the rename case), it rightfully fails. Actually, it also should revert the change in that case.
I think what you'd need here is a --force or --no-verify switch, that instructs hammer not to try to talk to the new URI, and just assume the user knows what they are doing.
Updated by Ewoud Kohl van Wijngaarden over 5 years ago
Given the features are actually critical for various settings I'm agreeing with Evgeni that this is invalid. The related BZ is closed as WONTFIX. Should we do the same here?
Updated by John Mitsch over 5 years ago
- Status changed from New to Rejected
agreed, let's close it out
Updated by Jonathon Turel almost 5 years ago
- Target version changed from Katello Backlog to Katello Recycle Bin