Bug 728440
Summary: | Running spacewalk-create-channel without -s option leads to traceback | ||||||
---|---|---|---|---|---|---|---|
Product: | [Community] Spacewalk | Reporter: | Martin Minar <mminar> | ||||
Component: | Clients | Assignee: | Milan Zázrivec <mzazrivec> | ||||
Status: | CLOSED NOTABUG | QA Contact: | Red Hat Satellite QA List <satqe-list> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 1.6 | CC: | jpazdziora, mkoci, slukasik | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | 728173 | Environment: | |||||
Last Closed: | 2011-08-05 10:08:57 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: | 723481 | ||||||
Attachments: |
|
Description
Martin Minar
2011-08-05 07:55:23 UTC
This problem is also present in Spacewalk - thou code is a bit different - in Satellite there is check for --server setting and in case there is none, localhost is set. This however does not work, since it is set in function and not in global variable. Also server variable is later reset. In Spacewalk there is no check, but there is idn_ascii_to_pune wrapper. This wrapper however does not change None variable, so None is passed futher into code. Created attachment 516843 [details]
Patch for the problem.
This patch simply checks wheter there is --server parameter send and write error message and ends program in case there is not.
From the spacewalk-create-channel man page: -sSERVER, --server=SERVER The hostname or IP address of the Satellite or Spacewalk server to connect to. Defaults to localhost. Martin, wouldn't it be possible to keep defaults to localhost? Is there any external reason to change the defaults? There is some inconsistency in that - Sat version tries to default to localhost (and fails), but Spacewalk won't even try. Don't know why the change was made to Sat version and not in upstream. Found where the real problem is in Sat. This is not a bug. Closing. |