Bug #23733
closedError when changing or refreshing manifest
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1582221
Description of problem: Whenever I try to update
Version-Release number of selected component (if applicable): 6.4.0 snap 4
How reproducible: Always.
Steps to Reproduce:
1. Upload a manifest
2. Attach some content hosts
3. Attempt to refresh manifest.
Actual results: Error:
```
Error refreshing manifest. Validation failed: Hostgroups expecting hostgroups used by hosts or inherited (check mismatches report)., Domains expecting domains used by hosts or inherited (check mismatches report)., Subnets expecting subnets used by hosts or inherited (check mismatches report)., Compute resources expecting compute resources used by hosts or inherited (check mismatches report)., ApplicationRecord|Capsules expecting capsules used by hosts or inherited (check mismatches report)., Ptables expecting ptables used by hosts or inherited (check mismatches report).
```
Expected results: Refresh success
Additional info:
Talked to jsherril about this and we looked into this. He found when the update is happening the User context is nil.