[BUG] Failing to append to dict #17

Closed
opened 2018-08-20 12:11:45 -04:00 by JoshuaBoniface · 5 comments
JoshuaBoniface commented 2018-08-20 12:11:45 -04:00 (Migrated from git.bonifacelabs.ca)
>>> 2018/08/20 12:10:28.282565 - Flushing node "hv1.i.bonilan.net" of running VMs
    Domain list: adbad7fe-1052-4f0e-986a-292850a2b69a, 9cb6e9d4-c91d-4d01-b0b3-1b6258830d29, 96f19997-85b4-42eb-b7f0-e4565ced9821, 296d6acc-495c-4269-8862-cf414bac3f08, 9b2a6fd8-0e1c-4b48-b758-898b35729b6b, 5562350d-3854-4a7c-af04-b7ba9682
6fa9, da0db2f8-e6c6-4f3a-acd8-80f3692f3335, 51c88b15-7872-44e6-bb3f-e74ec58493d6, 245888e0-ca0f-4361-bb30-ce23082d5d35, da4f31b5-3a74-4e49-a971-170c77a9cd7a, 108033cc-ddf9-4f05-8a3a-27a5bf183c43, 037be95e-577a-401e-bf6c-bbf072a14cce, c1261
029-3ac3-4a8c-9bed-c5417a8766d1, eb2bfdcc-ba79-47a2-b500-98bcee885ebc, 32e3cf0e-d4ea-48d2-8457-f4d7bce22fbd, baf7a568-6834-4edc-9fe6-296c1ee880d4, 26c7e36a-f4e9-47f5-9b62-658ebbf52f73, f303e1ee-6017-404d-8511-288841874329, c3f1cf5a-0e2b-40
ef-85cc-5776a12acb58, d3d06e17-5b1a-4360-94fd-57a0f2cd8ca6, b34091d3-8ba5-40dc-a139-117fa4217f6d, b33b6d08-e090-40ca-acd1-cfe4a894db81, f9992590-6b5b-4046-8f93-2024f8ef281e, b7622dec-b479-4b25-a8dc-b023425b4f4d, 80b0e2fb-fe1f-480f-8f7f-9e4
edc15dd92
>>> 2018/08/20 12:10:28.282814 - Selecting target to migrate VM "adbad7fe-1052-4f0e-986a-292850a2b69a"
hv2.i.bonilan.net
Exception in thread Thread-6:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/share/pvc/pvcd/NodeInstance.py", line 159, in flush
    target_hypervisor = findTargetHypervisor(self.zk_conn, 'mem', dom_uuid)
  File "/usr/share/pvc/pvcd/NodeInstance.py", line 340, in findTargetHypervisor
    return findTargetHypervisorMem(zk_conn, dom_uuid)
  File "/usr/share/pvc/pvcd/NodeInstance.py", line 375, in findTargetHypervisorMem
    hypervisor_list = getHypervisors(zk_conn, dom_uuid)
  File "/usr/share/pvc/pvcd/NodeInstance.py", line 366, in getHypervisors
    valid_hypervisor_list.append(hypervisor)
AttributeError: 'dict' object has no attribute 'append'

Never noticed this one before during a flush.

``` >>> 2018/08/20 12:10:28.282565 - Flushing node "hv1.i.bonilan.net" of running VMs Domain list: adbad7fe-1052-4f0e-986a-292850a2b69a, 9cb6e9d4-c91d-4d01-b0b3-1b6258830d29, 96f19997-85b4-42eb-b7f0-e4565ced9821, 296d6acc-495c-4269-8862-cf414bac3f08, 9b2a6fd8-0e1c-4b48-b758-898b35729b6b, 5562350d-3854-4a7c-af04-b7ba9682 6fa9, da0db2f8-e6c6-4f3a-acd8-80f3692f3335, 51c88b15-7872-44e6-bb3f-e74ec58493d6, 245888e0-ca0f-4361-bb30-ce23082d5d35, da4f31b5-3a74-4e49-a971-170c77a9cd7a, 108033cc-ddf9-4f05-8a3a-27a5bf183c43, 037be95e-577a-401e-bf6c-bbf072a14cce, c1261 029-3ac3-4a8c-9bed-c5417a8766d1, eb2bfdcc-ba79-47a2-b500-98bcee885ebc, 32e3cf0e-d4ea-48d2-8457-f4d7bce22fbd, baf7a568-6834-4edc-9fe6-296c1ee880d4, 26c7e36a-f4e9-47f5-9b62-658ebbf52f73, f303e1ee-6017-404d-8511-288841874329, c3f1cf5a-0e2b-40 ef-85cc-5776a12acb58, d3d06e17-5b1a-4360-94fd-57a0f2cd8ca6, b34091d3-8ba5-40dc-a139-117fa4217f6d, b33b6d08-e090-40ca-acd1-cfe4a894db81, f9992590-6b5b-4046-8f93-2024f8ef281e, b7622dec-b479-4b25-a8dc-b023425b4f4d, 80b0e2fb-fe1f-480f-8f7f-9e4 edc15dd92 >>> 2018/08/20 12:10:28.282814 - Selecting target to migrate VM "adbad7fe-1052-4f0e-986a-292850a2b69a" hv2.i.bonilan.net Exception in thread Thread-6: Traceback (most recent call last): File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner self.run() File "/usr/lib/python3.5/threading.py", line 862, in run self._target(*self._args, **self._kwargs) File "/usr/share/pvc/pvcd/NodeInstance.py", line 159, in flush target_hypervisor = findTargetHypervisor(self.zk_conn, 'mem', dom_uuid) File "/usr/share/pvc/pvcd/NodeInstance.py", line 340, in findTargetHypervisor return findTargetHypervisorMem(zk_conn, dom_uuid) File "/usr/share/pvc/pvcd/NodeInstance.py", line 375, in findTargetHypervisorMem hypervisor_list = getHypervisors(zk_conn, dom_uuid) File "/usr/share/pvc/pvcd/NodeInstance.py", line 366, in getHypervisors valid_hypervisor_list.append(hypervisor) AttributeError: 'dict' object has no attribute 'append' ``` Never noticed this one before during a flush.
JoshuaBoniface commented 2018-08-20 12:14:18 -04:00 (Migrated from git.bonifacelabs.ca)

closed via commit a25b0eed4f

closed via commit a25b0eed4f78e2577aaf00c9c7ab717a2d369432
JoshuaBoniface commented 2018-08-20 12:16:24 -04:00 (Migrated from git.bonifacelabs.ca)

reopened

reopened
JoshuaBoniface commented 2018-08-20 12:16:38 -04:00 (Migrated from git.bonifacelabs.ca)

This is buggier than I thought, it's accepting the existing HV as a valid target.

This is buggier than I thought, it's accepting the existing HV as a valid target.
JoshuaBoniface commented 2018-08-20 12:24:26 -04:00 (Migrated from git.bonifacelabs.ca)

closed via commit 3b15f09ac7

closed via commit 3b15f09ac74c17688f0e09da554219005592df11
JoshuaBoniface commented 2018-08-20 13:43:12 -04:00 (Migrated from git.bonifacelabs.ca)

mentioned in commit 57b3c62fb0

mentioned in commit 57b3c62fb09d1003d7a6c25cbf2fa14a06def692
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: parallelvirtualcluster/pvc#17
No description provided.