Module Expr Str Import alias Import alias Import alias Import alias Import alias FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str TryExcept body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr handlers ExceptHandler body Print BinOpMod Str NameLoad Return NameLoad TryExcept body Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr attr keyword NameLoad attr handlers ExceptHandler body Print Str Return NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Print BinOpMod Str TupleLoad NameLoad NameLoad ImportFrom alias ImportFrom alias For NameStore Call AttributeLoad NameLoad attr Str body Print BinOpMod Str Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call NameLoad
N/A N/A  Migrate Probe host and group data from XML to DB backend for Metadata
and Probe plugins. Does not migrate individual probe return data. Assumes
migration to BOTH Metadata and Probe to database backends.  N/A os N/A sys N/A lxml.etree N/A Bcfg2.Options N/A Bcfg2.DBSettings migrate N/A N/A xclient MetadataClientModel ProbesGroupsModel N/A N/A N/A  Helper to do the migration given a <Client/> XML element  N/A client_name N/A N/A xclient get name N/A N/A N/A N/A N/A client N/A N/A N/A MetadataClientModel objects get hostname client_name N/A N/A N/A N/A MetadataClientModel DoesNotExist N/A N/A client N/A MetadataClientModel hostname client_name N/A N/A N/A client save N/A N/A N/A N/A N/A Failed to migrate client %s client N/A False N/A N/A N/A cgroups N/A N/A xgroup N/A N/A xclient findall Group N/A N/A group_name N/A N/A xgroup get name N/A N/A N/A cgroups append group_name N/A N/A N/A group N/A N/A N/A ProbesGroupsModel objects get hostname client_name group group_name N/A N/A N/A N/A ProbesGroupsModel DoesNotExist N/A N/A group N/A ProbesGroupsModel hostname client_name group group_name N/A N/A N/A group save N/A N/A N/A N/A N/A N/A N/A N/A ProbesGroupsModel objects filter hostname N/A client hostname exclude group__in cgroups delete N/A N/A N/A N/A Failed to migrate groups N/A False N/A True N/A main N/A N/A N/A N/A N/A  Main  N/A opts N/A dict repo N/A N/A Bcfg2 Options SERVER_REPOSITORY N/A setup N/A N/A N/A Bcfg2 Options OptionParser opts N/A N/A N/A setup parse N/A N/A sys argv N/A 1 N/A probefile N/A N/A N/A os path join N/A setup N/A repo Probes probed.xml N/A N/A N/A xdata N/A N/A N/A lxml etree parse probefile N/A N/A N/A N/A N/A lxml etree XMLSyntaxError N/A N/A err N/A N/A N/A sys exc_info N/A 1 N/A N/A Could not parse %s, skipping: %s N/A probefile err Bcfg2.Server.Plugins.Metadata MetadataClientModel Bcfg2.Server.Plugins.Probes ProbesGroupsModel N/A xclient N/A N/A xdata findall Client N/A N/A N/A Migrating Metadata and Probe groups for %s N/A N/A xclient get name N/A N/A migrate xclient MetadataClientModel ProbesGroupsModel N/A N/A N/A __name__ __main__ N/A N/A N/A N/A sys exit N/A main