from gettext import gettext as _ from pulp.common.error_codes import Error SNAP0100 = Error("SNAP0100", _("Error snapshotting repository %(repo)s"), ['repo'])
from collections import defaultdict from gettext import gettext as _ from debpkgr import aptrepo from nectar.request import DownloadRequest from pulp.plugins.util import misc, publish_step from pulp.common.error_codes import Error from pulp.server.exceptions import PulpCodedTaskFailedException from pulp_deb.common import constants, ids from pulp_deb.plugins.db import models _logger = logging.getLogger(__name__) DEBSYNC001 = Error( "DEBSYNC001", "Unable to sync %(repo_id)s from %(feed_url)s:" " expected one comp, got %(comp_count)s", ["repo_id", "feed_url", "comp_count"]) DEBSYNC002 = Error( "DEBSYNC002", "Unable to sync %(repo_id)s from %(feed_url)s: mismatching checksums" " for %(filename)s: expected %(checksum_expected)s," " actual %(checksum_actual)s", [ "repo_id", "feed_url", "filename", "checksum_expected", "checksum_actual" ]) class RepoSync(publish_step.PluginStep): Type_Class_Map = { models.DebPackage.TYPE_ID: models.DebPackage,
from gettext import gettext as _ from pulp.common.error_codes import Error RPM0001 = Error( "RPM0001", _("Error occurred during '%(command)s' execution: " "%(stdout)s\n::\n%(stderr)s"), ['command', 'stdout', 'stderr']) # Create a section for general validation errors (RPM1000 - RPM2999) # Validation problems should be reported with a general PLP1000 error with a more specific # error message nested inside of it. RPM1001 = Error( "RPM1001", _("Error occurred parsing pulp_distribution.xml from feed: %(feed)s"), ['feed']) RPM1002 = Error( "RPM1002", _("Error uploading an RPM. The specified file is a source rpm"), []) RPM1003 = Error( "RPM1003", _("Error uploading an SRPM. The specified file is a binary rpm"), []) RPM1004 = Error("RPM1004", _("Error retrieving metadata: %(reason)s"), ['reason']) RPM1005 = Error("RPM1005", _("Unable to sync a repository that has no feed."), []) RPM1006 = Error("RPM1006", _("Could not parse repository metadata"), []) RPM1007 = Error( "RPM1007", _("Could not parse errata `updated` field: expected format " "'%(expected_format)s'. %(details)s"), ['expected_format', 'details'])
from gettext import gettext as _ from pulp.common.error_codes import Error DKR1001 = Error( "DKR1001", _("The url specified for %(field) is missing a scheme. " "The value specified is '%(url)'."), ['field', 'url']) DKR1002 = Error( "DKR1002", _("The url specified for %(field) is missing a hostname. " "The value specified is '%(url)'."), ['field', 'url']) DKR1003 = Error( "DKR1003", _("The url specified for %(field) is missing a path. " "The value specified is '%(url)'."), ['field', 'url']) DKR1004 = Error( "DKR1004", _("The value specified for %(field)s: '%(value)s' is not boolean."), ['field', 'value']) DKR1005 = Error( "DKR1005", _("The value specified for %(field)s: '%(value)s' is invalid. Registry id must contain only " "lower case letters, integers, hyphens, periods, and may include a single slash." ), ['field', 'value']) DKR1006 = Error( "DKR1006", _("%(field)s may only contain lower case letters, integers, hyphens, periods, and may include " "a single slash. When %(field)s is not specified, the repo-id value is used. In that case the " "repo-id needs to adhere to the same requirements as %(field)s."), ['field', 'value'])
from gettext import gettext as _ from pulp.common.error_codes import Error OST0001 = Error('OST0001', _('Create local repository at: %(path)s failed. Reason: %(reason)s'), ['path', 'reason']) OST0002 = Error('OST0002', _('Pulling remote refs failed. Reason: %(reason)s'), ['reason']) OST0003 = Error('OST0003', _('Delete remote: %(id)s failed. Reason: %(reason)s'), ['id', 'reason']) OST0004 = Error('OST0004', _('Feed URL not specified'), []) OST0005 = Error('OST0005', _('Fetch summary failed. Reason: %(reason)s'), ['reason']) OST0006 = Error('OST0006', _('Pulling local refs failed. Reason: %(reason)s'), ['reason']) OST0007 = Error('OST0007', _('Repair local repository at: %(path)s failed. Reason: %(reason)s'), ['path', 'reason'])
from gettext import gettext as _ from pulp.common.error_codes import Error DKR1001 = Error( "DKR1001", _("The url specified for %(field) is missing a scheme. " "The value specified is '%(url)'."), ['field', 'url']) DKR1002 = Error( "DKR1002", _("The url specified for %(field) is missing a hostname. " "The value specified is '%(url)'."), ['field', 'url']) DKR1003 = Error( "DKR1003", _("The url specified for %(field) is missing a path. " "The value specified is '%(url)'."), ['field', 'url']) DKR1004 = Error( "DKR1004", _("The value specified for %(field): '%(value)s' is not boolean."), ['field', 'value'])
from gettext import gettext as _ from pulp.common.error_codes import Error PUP0001 = Error("PUP0001", _("Could not find metadata file inside Puppet module"), []) PUP0002 = Error("PUP0002", _("Could not extract Puppet module."), []) PUP0003 = Error("PUP0003", _("Invalid Puppet module name %(name)s in module metadata."), ['name'])
from gettext import gettext as _ from pulp.common.error_codes import Error DKR1001 = Error( "DKR1001", _("The url specified for %(field) is missing a scheme. " "The value specified is '%(url)'."), ['field', 'url']) DKR1002 = Error( "DKR1002", _("The url specified for %(field) is missing a hostname. " "The value specified is '%(url)'."), ['field', 'url']) DKR1003 = Error( "DKR1003", _("The url specified for %(field) is missing a path. " "The value specified is '%(url)'."), ['field', 'url']) DKR1004 = Error( "DKR1004", _("The value specified for %(field)s: '%(value)s' is not boolean."), ['field', 'value']) DKR1005 = Error( "DKR1005", _("The value specified for %(field)s: '%(value)s' is invalid. Registry id must contain only " "lower case letters, integers, hyphens, periods, and may include a single slash." ), ['field', 'value']) DKR1006 = Error( "DKR1006", _("If %(field)s is not specified, it will default to the id must contain only lower case letters," " integers, hyphens, periods, and may include a single slash. Please specify a valid registry " "id or change the repo id."), ['field', 'value'])
from gettext import gettext as _ from pulp.common.error_codes import Error # Create a section for general validation errors (DEB1000 - DEB2999) # Validation problems should be reported with a general PLP1000 error with a more specific # error message nested inside of it. DEB1001 = Error( "DEB1001", _("Error downloading file %(file_name)s. The file size does not match " "the size listed in the Packages file."), ['file_name'])
from gettext import gettext as _ from pulp.common.error_codes import Error OST0001 = Error( 'OST0001', _('Create local repository at: %(path)s failed. Reason: %(reason)s'), ['path', 'reason']) OST0002 = Error( 'OST0002', _('Pulling remote branch: %(branch)s failed. Reason: %(reason)s'), ['branch', 'reason'])
from gettext import gettext as _ from pulp.common.error_codes import Error OST0001 = Error( 'OST0001', _('Create local repository at: %(path)s failed. Reason: %(reason)s'), ['path', 'reason']) OST0002 = Error('OST0002', _('Pulling remote refs failed. Reason: %(reason)s'), ['reason']) OST0003 = Error('OST0003', _('Delete remote: %(id)s failed. Reason: %(reason)s'), ['id', 'reason'])
from gettext import gettext as _ from pulp.common.error_codes import Error # Create a section for general validation errors (RPM1000 - RPM2999) # Validation problems should be reported with a general PLP1000 error with a more specific # error message nested inside of it. RPM1001 = Error( "RPM1001", _("Error occurred parsing pulp_distribution.xml from feed: %(feed)s"), ['feed']) RPM1002 = Error( "RPM1002", _("Error uploading an RPM. The specified file is a source rpm"), []) RPM1003 = Error( "RPM1003", _("Error uploading an SRPM. The specified file is a binary rpm"), []) RPM1004 = Error("RPM1004", _("Error retrieving metadata: %(reason)s"), ['reason']) RPM1005 = Error("RPM1005", _("Unable to sync a repository that has no feed."), []) RPM1006 = Error("RPM1006", _("Could not parse repository metadata"), [])
from gettext import gettext as _ from pulp.common.error_codes import Error DEB0001 = Error('DEB0001', _('Create local repository at: %(path)s failed. Reason: %(reason)s'), ['path', 'reason'])