Modify

Ticket #1032 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

Metadata.py:103: 'sys' is not defined

Reported by: https://www.google.com/accounts/o8/id?id=AItOawlPKYcLUHnVh6m82dkD_mNpQLOwSI_RzeQ Owned by: desai
Priority: minor Milestone: Bcfg2 1.2.0 Release
Component: bcfg2-client Version: 2.0
Keywords: Cc:

Description

bcfg2-info build command fails. The problem is probably surfaced due to configuration errors (default configuration is broken at the moment).

pulled from git repository up to 008ed460fc827903d003cbc11972445664780e99

bcfg2-info session:

$ bcfg2-info Loading deprecated plugin(s): Base Handled 15 events in 0.002s Welcome to bcfg2-info Type "help" for more information

build 212-12 /tmp/out

Asserting client 212-12 profile to basic Creating new client: 212-12, profile basic Command failure Traceback (most recent call last):

File "/home/admin/bcfg2/src/sbin/bcfg2-info", line 126, in do_loop

self.cmdloop('Welcome to bcfg2-info\n'

File "/usr/lib/python2.6/cmd.py", line 142, in cmdloop

stop = self.onecmd(line)

File "/usr/lib/python2.6/cmd.py", line 219, in onecmd

return func(arg)

File "/home/admin/bcfg2/src/sbin/bcfg2-info", line 207, in do_build

data = lxml.etree.tostring(self.BuildConfiguration?(client),

File "/home/admin/bcfg2/src/Bcfg2/Server/Core.py", line 284, in BuildConfiguration?

meta = self.build_metadata(client)

File "/home/admin/bcfg2/src/Bcfg2/Server/Core.py", line 336, in build_metadata

imd = self.metadata.get_initial_metadata(client_name)

File "/home/admin/bcfg2/src/Bcfg2/Server/Plugins/Metadata.py", line 623, in get_initial_metadata

self.set_profile(client, self.default, (None, None))

File "/home/admin/bcfg2/src/Bcfg2/Server/Plugins/Metadata.py", line 572, in set_profile

self.clients_xml.write()

File "/home/admin/bcfg2/src/Bcfg2/Server/Plugins/Metadata.py", line 95, in write

self.basedata)

File "/home/admin/bcfg2/src/Bcfg2/Server/Plugins/Metadata.py", line 103, in write_xml

e = sys.exc_info()[1]

NameError?: global name 'sys' is not defined Welcome to bcfg2-info Type "help" for more information

Attachments

Change History

comment:1 Changed 10 years ago by solj

  • Status changed from new to closed
  • Resolution set to fixed

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.