Network maintenance. Planio will be observing two scheduled maintenance windows this Tuesday, March 2 and Wednesday, March 3 from 02:00 UTC until 06:00 UTC each in order to perform maintenance on access routers in our primary datacenter. Your account might observe short downtimes during these periods up to several minutes at a time.
Refactor #765: Convert Pulp to use MongoEngine
Fix Unit removal. It does not work with mongoengine models
If you have a mongoengine converted repo with a unit in it you cannot remove that unit by name. For example if testing against the in-development puppet conversion to mongoengine then you can run the following commands to cause this failure:
pulp-admin login -u admin -p admin pulp-admin puppet repo create --repo-id=forge --feed=http://forge.puppetlabs.com --queries torssh pulp-admin puppet repo sync run --repo-id forge pulp-admin puppet repo remove --repo-id forge --str-eq="name=torssh"
You'll see the following traceback in the celery worker running the unit removal task code:
File "/home/bmbouter/Documents/pulp/server/pulp/server/managers/repo/unit_association.py", line 336, in unassociate_by_criteria transfer_units = create_transfer_units(unassociate_units, unit_type_ids) File "/home/bmbouter/Documents/pulp/server/pulp/server/managers/repo/unit_association.py", line 410, in create_transfer_units u = conduit_common_utils.to_plugin_associated_unit(unit, type_defs[type_id]) File "/home/bmbouter/Documents/pulp/server/pulp/plugins/conduits/_common.py", line 76, in to_plugin_associated_unit key_list = type_def['unit_key'] TypeError: 'NoneType' object has no attribute '__getitem__'
Fixed the unit unassociate workflow to work with mongoengine models and filters
Please register to edit this issue