Bug 1001615 - traceback "TypeError: cannot concatenate 'str' and 'NoneType' objects" in spacewalk-sync-setup when logging
Summary: traceback "TypeError: cannot concatenate 'str' and 'NoneType' objects" in spa...
Keywords:
Status: CLOSED DUPLICATE of bug 1458440
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Satellite Synchronization
Version: 560
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Grant Gainey
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: 1004536 sat58-errata sat58-nth
TreeView+ depends on / blocked
 
Reported: 2013-08-27 12:03 UTC by Jan Hutař
Modified: 2017-09-28 18:57 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1004536 (view as bug list)
Environment:
Last Closed: 2017-09-28 18:57:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jan Hutař 2013-08-27 12:03:08 UTC
Description of problem:
I was playing with spacewalk-sync-setup and observed a traceback.


Version-Release number of selected component (if applicable):
spacewalk-utils-2.0.2-8.el6sat.noarch


How reproducible:
always


Steps to Reproduce:
1. # spacewalk-sync-setup --ct --ss=<fqdn> --sl=<user> --sp=<pass>


Actual results:
Traceback (most recent call last):
  File "/usr/bin/spacewalk-sync-setup", line 610, in <module>
    master_cnx = connectTo(master_info)
  File "/usr/bin/spacewalk-sync-setup", line 299, in connectTo
    logging.info("Connecting to " + info['login'] + "@" + info['fqdn'])
TypeError: cannot concatenate 'str' and 'NoneType' objects

I believe this attempts to say me I have not provided master login info (server/user/pass), so maybe this is related or might be treated as similar issue falling into "insufficient input options verification" description:

# spacewalk-sync-setup --ct
Traceback (most recent call last):
  File "/usr/bin/spacewalk-sync-setup", line 605, in <module>
    config = setupConfig(options)
  File "/usr/bin/spacewalk-sync-setup", line 207, in setupConfig
    initializeConfig(opt, handle)
  File "/usr/bin/spacewalk-sync-setup", line 142, in initializeConfig
    hdr = hdr.replace('SLAVE', opt.slave)
TypeError: expected a character buffer object


Expected results:
There should be no traceback.


Additional info:
Probably would be nice to have some input sanitation before Sat560 GA.

Comment 2 Grant Gainey 2017-05-18 17:29:32 UTC
Moving to 'Satellite Synchronization' with the other ISS and sync-setup BZs

Comment 3 Grant Gainey 2017-09-28 18:57:57 UTC

*** This bug has been marked as a duplicate of bug 1458440 ***


Note You need to log in before you can comment on or make changes to this bug.