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

Bug 1105300

Summary: [Docs] [CLI] No information on section headers
Product: Red Hat Enterprise Virtualization Manager Reporter: Stephen Gordon <sgordon>
Component: DocumentationAssignee: Andrew Burden <aburden>
Status: CLOSED CURRENTRELEASE QA Contact: Tahlia Richardson <trichard>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: adahms
Target Milestone: ---   
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Build Name: 22457, Command Line Shell Guide-3.3-1 Build Date: 29-04-2014 13:25:07 Topic ID: 13040-592055 [Specified]
Last Closed: 2015-03-13 06:27:49 UTC Type: Bug
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: 1193259    

Description Stephen Gordon 2014-06-05 19:49:34 UTC
Title: .rhevmshellrc Configuration

Describe the issue:

The .rhevmshellrc configuration requires section headers, if you don't have them it barfs. This isn't mentioned in the guide at all and it's left as an exercise for the reader to guess what they should be.

Traceback (most recent call last):
  File "/usr/bin/rhevm-shell", line 9, in <module>
    load_entry_point('rhevm-shell==3.4.0.6', 'console_scripts', 'rhevm-shell')()
  File "/usr/lib/python2.6/site-packages/ovirtcli/main.py", line 27, in main
    context = OvirtCliExecutionContext(sys.argv, parser)
  File "/usr/lib/python2.6/site-packages/ovirtcli/infrastructure/context.py", line 47, in __init__
    super(OvirtCliExecutionContext, self).__init__(args=args, option_parser=option_parser)
  File "/usr/lib/python2.6/site-packages/cli/context.py", line 75, in __init__
    self._load_settings()
  File "/usr/lib/python2.6/site-packages/cli/context.py", line 133, in _load_settings
    found, old_format = self.settings.load_config_file()
  File "/usr/lib/python2.6/site-packages/cli/settings.py", line 131, in load_config_file
    if not cp.read(fname):
  File "/usr/lib64/python2.6/ConfigParser.py", line 286, in read
    self._read(fp, filename)
  File "/usr/lib64/python2.6/ConfigParser.py", line 482, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: /root/.rhevmshellrc, line: 1
'username=admin@internal\n'