[Pulp-list] v2.4 Upgrade issues

Trey Dockendorf treydock at gmail.com
Thu Sep 25 19:29:42 UTC 2014


Sorry for the 2 replies to myself, but I'm learning as I go and
figured I'd update the thread to my current status.

I found this bug report,
https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=1016612,
which is my exact problem.  I rolled my VM back in oVirt that runs
pulp-server but forgot to backup the mongodb instance (different
server) so my only path is forward (no rollback to 2.3).

I applied the workaround mentioned in the first comment, and have
gotten the migration to complete.

Is this a bug or is there some way to know if it was a flaw in my setup?

Thanks,
- Trey

On Thu, Sep 25, 2014 at 1:26 PM, Trey Dockendorf <treydock at gmail.com> wrote:
> Here is full output from logs when I run the failed pulp-manage-db
>
> Sep 25 13:19:53 repo01 pulp: pulp.server.db.manage:INFO: Loading content types.
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Loading type descriptors from:
> /usr/lib/pulp/plugins/types
> Sep 25 13:19:53 repo01 pulp: db:INFO: Loading type descriptors
> [rpm_support.json, iso_support.json, puppet.json]
> Sep 25 13:19:53 repo01 pulp: db:INFO: Parsing type descriptors
> Sep 25 13:19:53 repo01 pulp: db:INFO: Validating type descriptor
> syntactic integrity
> Sep 25 13:19:53 repo01 pulp: db:INFO: Validating type descriptor
> semantic integrity
> Sep 25 13:19:53 repo01 pulp: db:INFO: Updating the database with types
> [distribution, drpm, erratum, package_group, package_category,
> package_environment, rpm, srpm, yum_repo_metadata_file, iso,
> puppet_module]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [id, family,
> variant, version, arch] (unique: True) on type definition
> [distribution]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index
> [id_1_family_1_variant_1_version_1_arch_1] created on type definition
> [distribution]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [id] (unique:
> False) on type definition [distribution]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [id_1] created on type
> definition [distribution]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [family]
> (unique: False) on type definition [distribution]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [family_1] created on
> type definition [distribution]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [variant]
> (unique: False) on type definition [distribution]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [variant_1] created on
> type definition [distribution]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [version]
> (unique: False) on type definition [distribution]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [version_1] created on
> type definition [distribution]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [arch] (unique:
> False) on type definition [distribution]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [arch_1] created on type
> definition [distribution]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [epoch, version,
> release, filename, checksumtype, checksum] (unique: True) on type
> definition [drpm]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index
> [epoch_1_version_1_release_1_filename_1_checksumtype_1_checksum_1]
> created on type definition [drpm]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [epoch] (unique:
> False) on type definition [drpm]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [epoch_1] created on type
> definition [drpm]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [version]
> (unique: False) on type definition [drpm]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [version_1] created on
> type definition [drpm]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [release]
> (unique: False) on type definition [drpm]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [release_1] created on
> type definition [drpm]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [checksum]
> (unique: False) on type definition [drpm]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [checksum_1] created on
> type definition [drpm]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [filename]
> (unique: False) on type definition [drpm]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [filename_1] created on
> type definition [drpm]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [id] (unique:
> True) on type definition [erratum]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [id_1] created on type
> definition [erratum]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [id] (unique:
> False) on type definition [erratum]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index already existed on type
> definition [erratum]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [title] (unique:
> False) on type definition [erratum]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [title_1] created on type
> definition [erratum]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [version]
> (unique: False) on type definition [erratum]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [version_1] created on
> type definition [erratum]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [release]
> (unique: False) on type definition [erratum]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [release_1] created on
> type definition [erratum]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [type] (unique:
> False) on type definition [erratum]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [type_1] created on type
> definition [erratum]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [status]
> (unique: False) on type definition [erratum]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [status_1] created on
> type definition [erratum]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [updated]
> (unique: False) on type definition [erratum]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [updated_1] created on
> type definition [erratum]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [issued]
> (unique: False) on type definition [erratum]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [issued_1] created on
> type definition [erratum]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [severity]
> (unique: False) on type definition [erratum]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [severity_1] created on
> type definition [erratum]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [references]
> (unique: False) on type definition [erratum]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [references_1] created on
> type definition [erratum]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [id, repo_id]
> (unique: True) on type definition [package_group]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [id_1_repo_id_1] created
> on type definition [package_group]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [id] (unique:
> False) on type definition [package_group]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [id_1] created on type
> definition [package_group]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [repo_id]
> (unique: False) on type definition [package_group]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [repo_id_1] created on
> type definition [package_group]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [name] (unique:
> False) on type definition [package_group]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [name_1] created on type
> definition [package_group]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index
> [mandatory_package_names] (unique: False) on type definition
> [package_group]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index
> [mandatory_package_names_1] created on type definition [package_group]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index
> [conditional_package_names] (unique: False) on type definition
> [package_group]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index
> [conditional_package_names_1] created on type definition
> [package_group]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index
> [optional_package_names] (unique: False) on type definition
> [package_group]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index
> [optional_package_names_1] created on type definition [package_group]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index
> [default_package_names] (unique: False) on type definition
> [package_group]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [default_package_names_1]
> created on type definition [package_group]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [id, repo_id]
> (unique: True) on type definition [package_category]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [id_1_repo_id_1] created
> on type definition [package_category]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [id] (unique:
> False) on type definition [package_category]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [id_1] created on type
> definition [package_category]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [repo_id]
> (unique: False) on type definition [package_category]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [repo_id_1] created on
> type definition [package_category]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [name] (unique:
> False) on type definition [package_category]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [name_1] created on type
> definition [package_category]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index
> [packagegroupids] (unique: False) on type definition
> [package_category]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [packagegroupids_1]
> created on type definition [package_category]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [id, repo_id]
> (unique: True) on type definition [package_environment]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [id_1_repo_id_1] created
> on type definition [package_environment]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [id] (unique:
> False) on type definition [package_environment]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [id_1] created on type
> definition [package_environment]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [repo_id]
> (unique: False) on type definition [package_environment]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [repo_id_1] created on
> type definition [package_environment]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [name] (unique:
> False) on type definition [package_environment]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [name_1] created on type
> definition [package_environment]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [group_ids]
> (unique: False) on type definition [package_environment]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Index [group_ids_1] created on
> type definition [package_environment]
> Sep 25 13:19:53 repo01 pulp: db:DEBUG: Ensuring index [name, epoch,
> version, release, arch, checksumtype, checksum] (unique: True) on type
> definition [rpm]
> Sep 25 13:19:54 repo01 pulp: db:DEBUG: Index
> [name_1_epoch_1_version_1_release_1_arch_1_checksumtype_1_checksum_1]
> created on type definition [rpm]
> Sep 25 13:19:54 repo01 pulp: db:DEBUG: Ensuring index [name] (unique:
> False) on type definition [rpm]
> Sep 25 13:19:55 repo01 pulp: db:DEBUG: Index [name_1] created on type
> definition [rpm]
> Sep 25 13:19:55 repo01 pulp: db:DEBUG: Ensuring index [epoch] (unique:
> False) on type definition [rpm]
> Sep 25 13:19:55 repo01 pulp: db:DEBUG: Index [epoch_1] created on type
> definition [rpm]
> Sep 25 13:19:55 repo01 pulp: db:DEBUG: Ensuring index [version]
> (unique: False) on type definition [rpm]
> Sep 25 13:19:55 repo01 pulp: db:DEBUG: Index [version_1] created on
> type definition [rpm]
> Sep 25 13:19:55 repo01 pulp: db:DEBUG: Ensuring index [release]
> (unique: False) on type definition [rpm]
> Sep 25 13:19:56 repo01 pulp: db:DEBUG: Index [release_1] created on
> type definition [rpm]
> Sep 25 13:19:56 repo01 pulp: db:DEBUG: Ensuring index [arch] (unique:
> False) on type definition [rpm]
> Sep 25 13:19:56 repo01 pulp: db:DEBUG: Index [arch_1] created on type
> definition [rpm]
> Sep 25 13:19:56 repo01 pulp: db:DEBUG: Ensuring index [filename]
> (unique: False) on type definition [rpm]
> Sep 25 13:19:56 repo01 pulp: db:DEBUG: Index [filename_1] created on
> type definition [rpm]
> Sep 25 13:19:56 repo01 pulp: db:DEBUG: Ensuring index [checksum]
> (unique: False) on type definition [rpm]
> Sep 25 13:19:56 repo01 pulp: db:DEBUG: Index [checksum_1] created on
> type definition [rpm]
> Sep 25 13:19:56 repo01 pulp: db:DEBUG: Ensuring index [checksumtype]
> (unique: False) on type definition [rpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Index [checksumtype_1] created
> on type definition [rpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Ensuring index
> [version_sort_index] (unique: False) on type definition [rpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Index [version_sort_index_1]
> created on type definition [rpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Ensuring index
> [version_sort_index, release_sort_index] (unique: False) on type
> definition [rpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Index
> [version_sort_index_1_release_sort_index_1] created on type definition
> [rpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Ensuring index [name, epoch,
> version, release, arch, checksumtype, checksum] (unique: True) on type
> definition [srpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Index
> [name_1_epoch_1_version_1_release_1_arch_1_checksumtype_1_checksum_1]
> created on type definition [srpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Ensuring index [name] (unique:
> False) on type definition [srpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Index [name_1] created on type
> definition [srpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Ensuring index [epoch] (unique:
> False) on type definition [srpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Index [epoch_1] created on type
> definition [srpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Ensuring index [version]
> (unique: False) on type definition [srpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Index [version_1] created on
> type definition [srpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Ensuring index [release]
> (unique: False) on type definition [srpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Index [release_1] created on
> type definition [srpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Ensuring index [arch] (unique:
> False) on type definition [srpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Index [arch_1] created on type
> definition [srpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Ensuring index [filename]
> (unique: False) on type definition [srpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Index [filename_1] created on
> type definition [srpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Ensuring index [checksum]
> (unique: False) on type definition [srpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Index [checksum_1] created on
> type definition [srpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Ensuring index [checksumtype]
> (unique: False) on type definition [srpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Index [checksumtype_1] created
> on type definition [srpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Ensuring index
> [version_sort_index] (unique: False) on type definition [srpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Index [version_sort_index_1]
> created on type definition [srpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Ensuring index
> [version_sort_index, release_sort_index] (unique: False) on type
> definition [srpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Index
> [version_sort_index_1_release_sort_index_1] created on type definition
> [srpm]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Ensuring index [repo_id,
> data_type] (unique: True) on type definition [yum_repo_metadata_file]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Index [repo_id_1_data_type_1]
> created on type definition [yum_repo_metadata_file]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Ensuring index [data_type]
> (unique: False) on type definition [yum_repo_metadata_file]
> Sep 25 13:19:57 repo01 pulp: db:DEBUG: Index [data_type_1] created on
> type definition [yum_repo_metadata_file]
> Sep 25 13:19:58 repo01 pulp: db:DEBUG: Ensuring index [name, checksum,
> size] (unique: True) on type definition [iso]
> Sep 25 13:19:58 repo01 pulp: db:DEBUG: Index
> [name_1_checksum_1_size_1] created on type definition [iso]
> Sep 25 13:19:58 repo01 pulp: db:DEBUG: Ensuring index [name, version,
> author] (unique: True) on type definition [puppet_module]
> Sep 25 13:19:58 repo01 pulp: db:DEBUG: Index
> [name_1_version_1_author_1] created on type definition [puppet_module]
> Sep 25 13:19:58 repo01 pulp: db:DEBUG: Ensuring index [author]
> (unique: False) on type definition [puppet_module]
> Sep 25 13:19:58 repo01 pulp: db:DEBUG: Index [author_1] created on
> type definition [puppet_module]
> Sep 25 13:19:58 repo01 pulp: db:DEBUG: Ensuring index [tag_list]
> (unique: False) on type definition [puppet_module]
> Sep 25 13:19:58 repo01 pulp: db:DEBUG: Index [tag_list_1] created on
> type definition [puppet_module]
> Sep 25 13:19:58 repo01 pulp: pulp.server.db.manage:INFO: Content types loaded.
> Sep 25 13:19:58 repo01 pulp: pulp.server.db.manage:INFO: Ensuring the
> admin role and user are in place.
> Sep 25 13:19:58 repo01 pulp: pulp.server.db.connection:INFO:
> Attempting Database connection with seeds = db01.brazos.tamu.edu:27017
> Sep 25 13:19:58 repo01 pulp: pulp.server.db.connection:INFO:
> Connection Arguments: {'max_pool_size': 10}
> Sep 25 13:19:58 repo01 pulp: pulp.server.db.connection:DEBUG: Querying
> the database to validate the connection.
> Sep 25 13:19:58 repo01 pulp: pulp.server.db.connection:INFO: Database
> connection established with: seeds = db01.brazos.tamu.edu:27017, name
> = pulp_database
> Sep 25 13:19:58 repo01 pulp: pulp.server.db.manage:INFO: Admin role
> and user are in place.
> Sep 25 13:19:58 repo01 pulp: pulp.server.db.manage:INFO: Beginning
> database migrations.
> Sep 25 13:19:58 repo01 pulp: pulp.server.db.manage:INFO: Migration
> package pulp.server.db.migrations is up to date at version 9
> Sep 25 13:19:58 repo01 pulp: pulp.server.db.manage:INFO: Migration
> package pulp_puppet.plugins.migrations is up to date at version 2
> Sep 25 13:19:58 repo01 pulp: pulp.server.db.manage:INFO: Applying
> pulp_rpm.plugins.migrations version 11
> Sep 25 13:20:14 repo01 pulp: pulp.server.db.manage:CRITICAL: Applying
> migration pulp_rpm.plugins.migrations.0011_new_importer failed.
> Sep 25 13:20:14 repo01 pulp: pulp.server.db.manage:CRITICAL:
> Sep 25 13:20:14 repo01 pulp: pulp.server.db.manage:CRITICAL: Halting
> migrations due to a migration failure.
> Sep 25 13:20:14 repo01 pulp: pulp.server.db.manage:CRITICAL:
> 'NoneType' object has no attribute 'text'
> Sep 25 13:20:14 repo01 pulp: pulp.server.db.manage:CRITICAL: Traceback
> (most recent call last):
> Sep 25 13:20:14 repo01 pulp: pulp.server.db.manage:CRITICAL:   File
> "/usr/lib/python2.6/site-packages/pulp/server/db/manage.py", line 111,
> in main
> Sep 25 13:20:14 repo01 pulp: pulp.server.db.manage:CRITICAL:
> _auto_manage_db(options)
> Sep 25 13:20:14 repo01 pulp: pulp.server.db.manage:CRITICAL:   File
> "/usr/lib/python2.6/site-packages/pulp/server/db/manage.py", line 157,
> in _auto_manage_db
> Sep 25 13:20:14 repo01 pulp: pulp.server.db.manage:CRITICAL:
> migrate_database(options)
> Sep 25 13:20:14 repo01 pulp: pulp.server.db.manage:CRITICAL:   File
> "/usr/lib/python2.6/site-packages/pulp/server/db/manage.py", line 86,
> in migrate_database
> Sep 25 13:20:14 repo01 pulp: pulp.server.db.manage:CRITICAL:
> update_current_version=not options.test)
> Sep 25 13:20:14 repo01 pulp: pulp.server.db.manage:CRITICAL:   File
> "/usr/lib/python2.6/site-packages/pulp/server/db/migrate/models.py",
> line 161, in apply_migration
> Sep 25 13:20:14 repo01 pulp: pulp.server.db.manage:CRITICAL:
> migration.migrate()
> Sep 25 13:20:14 repo01 pulp: pulp.server.db.manage:CRITICAL:   File
> "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/migrations/0011_new_importer.py",
> line 19, in migrate
> Sep 25 13:20:14 repo01 pulp: pulp.server.db.manage:CRITICAL:
> _migrate_collection(type_id)
> Sep 25 13:20:14 repo01 pulp: pulp.server.db.manage:CRITICAL:   File
> "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/migrations/0011_new_importer.py",
> line 46, in _migrate_collection
> Sep 25 13:20:14 repo01 pulp: pulp.server.db.manage:CRITICAL:
> package['sourcerpm'] = format_element.find('sourcerpm').text
> Sep 25 13:20:14 repo01 pulp: pulp.server.db.manage:CRITICAL:
> AttributeError: 'NoneType' object has no attribute 'text'
> Sep 25 13:20:14 repo01 pulp: pulp.server.db.manage:CRITICAL:
>
> On Thu, Sep 25, 2014 at 12:51 PM, Trey Dockendorf <treydock at gmail.com> wrote:
>> I just updated from 2.3 to 2.4.1 and ran into a few issues.
>>
>> First issue I hit was the pulp-manage-db command fails.  Below is the
>> output.  I am unsure how to debug this.
>>
>> ----
>> # sudo -u apache pulp-manage-db
>> Loading content types.
>> /usr/lib/python2.6/site-packages/pulp/server/db/connection.py:133:
>> DeprecationWarning: The safe parameter is deprecated. Please use write
>> concern options instead.
>>   return method(*args, **kwargs)
>> Content types loaded.
>> Ensuring the admin role and user are in place.
>> Admin role and user are in place.
>> Beginning database migrations.
>> Migration package pulp.server.db.migrations is up to date at version 9
>> Migration package pulp_puppet.plugins.migrations is up to date at version 2
>> Applying pulp_rpm.plugins.migrations version 11
>> Applying migration pulp_rpm.plugins.migrations.0011_new_importer failed.
>>
>> Halting migrations due to a migration failure.  See log for details.
>> 'NoneType' object has no attribute 'text'
>> ----
>>
>> Second issue is it seems the paths to my repos has changed so now I'm
>> unable to browse them via HTTP.
>>
>> # ls -la /var/www/pub/
>> total 24
>> drwxr-xr-x. 6 apache apache 4096 Sep 25 09:42 .
>> drwxr-xr-x. 9 apache apache 4096 Sep 25 09:42 ..
>> drwxr-xr-x. 3 apache apache 4096 Apr 28 18:40 http
>> drwxr-xr-x. 3 apache apache 4096 Apr 10 22:29 https
>> drwxr-xr-x  4 apache apache 4096 Sep 25 09:42 puppet
>> drwxr-xr-x  4 apache apache 4096 Sep 25 09:42 yum
>>
>> /var/www/pub/http/repos/ contains all the repositories I setup for use
>> with HTTP, and /var/www/pub/https/repos/ for HTTPS but it seems that
>> the apache configs now want to use /var/www/pub/yum for those paths.
>> Is it safe to just move the http and https folders into the "yum"
>> directory?  I see no mention of this in the release notes so not sure
>> what's expected.
>>
>> Thanks,
>> - Trey




More information about the Pulp-list mailing list