Skip to content

Commit 216b4cb

Browse files
Restore the @Inject that MAX_TAP_QUEUES displaced
MAX_TAP_QUEUES was declared between the @Inject and networkOfferingDetailsDao, so the annotation bound to the constant and the DAO was never injected. getNicDetails() dereferences it for every NIC, so every VM deploy failed with an NPE behind a 530 "Internal Server Error", which is what the simulator CI run was reporting. Move the constant above the injected fields and give the DAO its annotation back. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 7931bc6 commit 216b4cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/src/main/java/com/cloud/hypervisor/HypervisorGuruBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@
8888

8989
public abstract class HypervisorGuruBase extends AdapterBase implements HypervisorGuru, Configurable {
9090

91+
private static final int MAX_TAP_QUEUES = 256;
92+
9193
@Inject
9294
protected
9395
NicDao nicDao;
@@ -103,8 +105,6 @@ public abstract class HypervisorGuruBase extends AdapterBase implements Hypervis
103105
@Inject
104106
private DataCenterDao dcDao;
105107
@Inject
106-
private static final int MAX_TAP_QUEUES = 256;
107-
108108
private NetworkOfferingDetailsDao networkOfferingDetailsDao;
109109
@Inject
110110
protected

0 commit comments

Comments
 (0)