[2.6] newly virsh pod cannot be removed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Expired
|
Undecided
|
Unassigned |
Bug Description
Maas refuses to remove a virsh pod with following messages were output to regiond.log
---
AttributeError: 'Subnet' object has no attribute '_vlan_cache'
During handling of the above exception, another exception occurred:
...
File "/usr/lib/
value, lookups, used_joins = self.prepare_
File "/usr/lib/
if (connections[
File "/usr/lib/
I attached the regiond.log file for reference
2020-01-15 00:35:13 maasserver. websockets. protocol: [critical] Error on request (22660) pod.delete: <ProtectedError instance at 0x7f3743c0d408 with str error: python3/ dist-packages/ django/ db/models/ fields/ related_ descriptors. py", line 178, in __get__
Traceback (most recent call last):
File "/usr/lib/
rel_obj = getattr(instance, self.cache_name)
AttributeError: 'Subnet' object has no attribute '_vlan_cache'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): python3/ dist-packages/ twisted/ python/ reflect. py", line 448, in safe_str python3/ dist-packages/ django/ db/models/ query.py" , line 229, in __repr__ _class_ _.__name_ _, data) python3/ dist-packages/ django/ db/models/ base.py" , line 590, in __repr__ python3/ dist-packages/ maasserver/ models/ subnet. py", line 438, in __str__ python3/ dist-packages/ django/ db/models/ fields/ related_ descriptors. py", line 184, in __get__ object( instance) python3/ dist-packages/ django/ db/models/ fields/ related_ descriptors. py", line 159, in get_object self.field. get_reverse_ related_ filter( instance) ) python3/ dist-packages/ django/ db/models/ query.py" , line 371, in get python3/ dist-packages/ django/ db/models/ query.py" , line 784, in filter or_exclude( False, *args, **kwargs) python3/ dist-packages/ django/ db/models/ query.py" , line 802, in _filter_or_exclude query.add_ q(Q(*args, **kwargs)) python3/ dist-packages/ django/ db/models/ sql/query. py", line 1250, in add_q q(q_object, self.used_aliases) python3/ dist-packages/ django/ db/models/ sql/query. py", line 1270, in _add_q negated, allow_joins, split_subq) python3/ dist-packages/ django/ db/models/ sql/query. py", line 1276, in _add_q joins=allow_ joins, split_subq= split_subq, python3/ dist-packages/ django/ db/models/ sql/query. py", line 1160, in build_filter lookup_ value(value, lookups, can_reuse, allow_joins) python3/ dist-packages/ django/ db/models/ sql/query. py", line 1019, in prepare_ lookup_ value DEFAULT_ DB_ALIAS] .features. interprets_ empty_strings_ as_nulls and python3/ dist-packages/ maasserver/ utils/orm. py", line 838, in __getattr__ currentThread( ).name) python3. 6/threading. py", line 864, in run _target( *self._ args, **self._kwargs) python3/ dist-packages/ provisioningser ver/utils/ twisted. py", line 852, in worker python3/ dist-packages/ twisted/ _threads/ _threadworker. py", line 46, in work
File "/usr/lib/
return str(o)
File "/usr/lib/
return '<%s %r>' % (self._
File "/usr/lib/
u = six.text_type(self)
File "/usr/lib/
self.name, self.cidr, self.vlan.vid)
File "/usr/lib/
rel_obj = self.get_
File "/usr/lib/
return qs.get(
File "/usr/lib/
clone = self.filter(*args, **kwargs)
File "/usr/lib/
return self._filter_
File "/usr/lib/
clone.
File "/usr/lib/
clause, _ = self._add_
File "/usr/lib/
current_
File "/usr/lib/
allow_
File "/usr/lib/
value, lookups, used_joins = self.prepare_
File "/usr/lib/
if (connections[
File "/usr/lib/
"disabled." % threading.
RuntimeError: Database connections in this thread (MainThread) are disabled.
>
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
return target()
File "/usr/lib/
task...