Closed
Bug 1042120
Opened 11 years ago
Closed 11 years ago
some SREG conversion targets complain of non-existent domain
Categories
(Infrastructure & Operations Graveyard :: WebOps: Inventory, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: arich, Assigned: juber)
Details
(Whiteboard: [kanban:https://kanbanize.com/ctrl_board/4/566] )
When trying to convert a couple records into SREG, the conversion page gives the following error (where <number> is the pk of the record) before attempting to do the conversion:
Error while creating the SREG record.{'domain': [u'Model domain with pk <number> does not exist.']}
Here are two hosts that give that error:
https://inventory.mozilla.org/systems/show/12374/
https://inventory.mozilla.org/systems/show/12377/
| Assignee | ||
Comment 1•11 years ago
|
||
When Inventory deletes an A record to make space for an SREG it will try to "prune" the domain tree, deleting any domain objects that have no records associated to them. In this case the A record with fqdn "buildbot-master117.bb.releng.use1.mozilla.com" is deleted and since its the only record in the "bb.releng.use1.mozilla.com" domain, that domain is deleted. When an attempt is made to save the sreg (who has, prior to the delete, had the "bb.releng..." domain assigned to it) the domain "bb.releng..." can not be found and the conversion fails.
There is a flag to pass to .delete() that tells it not to prune the tree. I've pushed a patch to Inventory and as soon as I push it to prod you should be able to convert the sreg successfully.
The patch: https://github.com/mozilla/inventory/commit/714799af2fe92ceb86b363d40598e88c9f942508
| Assignee | ||
Updated•11 years ago
|
Whiteboard: [kanban]
Whiteboard: [kanban] → [kanban:https://kanbanize.com/ctrl_board/4/566]
| Assignee | ||
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•