Skip to content

Failed to add NIC to VM concurrently #5499

@div8cn

Description

@div8cn
ISSUE TYPE
  • Bug Report
COMPONENT NAME
NIC
CLOUDSTACK VERSION
4.15.0.0
CONFIGURATION
OS / ENVIRONMENT
SUMMARY

Add multiple ShareNetwork to VM at the same time, only the first job can execute successfully;

All subsequent addition of nic job shows that the execution is successful, but it is not actually added to the VM NICS

STEPS TO REPRODUCE
1. create l3 sharenetwork,name=L3-network-01
2. create l3 sharenetwork,name=L3-network-02
3. create l3 sharenetwork,name=L3-network-03
4. deploy vm use L3-network-01, VM NAME=VM1
5. wait for vm status = RUNNING
6. use api addNicToVirtualMachine to add L3-network-02 and L3-network-03 to VM1 (concurrently)
EXPECTED RESULTS
Add L3-network-02 to VM1 task execution successfully.
Add L3-network-02 to VM1 task execution successfully.

VM1 has 3 networks (L3-network-01, L3-network-02, L3-network-03)
ACTUAL RESULTS
Add L3-network-02 to VM1 job and return success.
Add L3-network-03 to VM1job and return success.

VM1 has a total of 2 network (L3-network-01, L3-network-02)

There is no network L3-network-03 in VM(VM1)->NICS, but the task shows that the addition is successful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions