cloudstack-mirror/server/src/main/java/com/cloud
Wei Zhou 890e84777c
server: throw exception when update vm nic on L2 network (#4625)
without this change
```
root@mgt01:~# cmk update vmnicip nicid=afab73cb-f4f4-490f-a524-365edef432b7

{
  "accountid": "a27bffc1-48ee-11eb-8680-069fc4003392",
  "cmd": "org.apache.cloudstack.api.command.user.vm.UpdateVmNicIpCmd",
  "completed": "2020-12-28T12:55:27+0000",
  "created": "2020-12-28T12:55:27+0000",
  "jobid": "88af30e0-214b-4379-9c39-49648f998ff6",
  "jobprocstatus": 0,
  "jobresult": {
    "errorcode": 530,
    "errortext": "Failed to update ip address on vm NIC. Refer to server logs for details."
  },
  "jobresultcode": 530,
  "jobresulttype": "object",
  "jobstatus": 2,
  "userid": "a27f45f5-48ee-11eb-8680-069fc4003392"
}
๐Ÿ™ˆ Error: async API failed for job 88af30e0-214b-4379-9c39-49648f998ff6
```

with this change
```
root@mgt01:~# cmk update vmnicip nicid=22d79189-6754-4dfe-a8c4-0ba21be2ada5

{
  "accountid": "044bb5a9-32fd-11eb-b251-06b6e80033a6",
  "cmd": "org.apache.cloudstack.api.command.user.vm.UpdateVmNicIpCmd",
  "completed": "2020-12-28T12:55:15+0000",
  "created": "2020-12-28T12:55:15+0000",
  "jobid": "f4ccb545-0e47-4e9c-b562-b0e6cf52ddd7",
  "jobprocstatus": 0,
  "jobresult": {
    "errorcode": 431,
    "errortext": "UpdateVmNicIpCmd is not supported in L2 network"
  },
  "jobresultcode": 530,
  "jobresulttype": "object",
  "jobstatus": 2,
  "userid": "044cc6e3-32fd-11eb-b251-06b6e80033a6"
}
๐Ÿ™ˆ Error: async API failed for job f4ccb545-0e47-4e9c-b562-b0e6cf52ddd7
```
2021-02-01 14:13:50 +05:30
..
account
acl refactoring: fixed comment typo 2019-05-30 16:55:28 +05:30
agent/manager Merge release branch 4.13 to master 2020-04-11 16:45:00 +02:00
alert CLOUDSTACK-8855 Improve Error Message for Host Alert State and reconnect host API. (#2387) 2018-03-14 15:27:43 -03:00
api Adding cpuallocated percentage and value to host and hostsformigrationresponse (#4499) 2020-12-01 13:56:19 +05:30
async
capacity Remove cpu core from op_host_capacity when host is deleted (#4367) 2020-10-28 09:41:14 +01:00
configuration server: Fix some cpuspeed issues while create service offering (#4376) 2020-10-13 11:32:16 +02:00
consoleproxy Enable Direct Download for System VMs (#3731) 2020-02-26 13:38:31 +01:00
dc
deploy server: check guest os preference of last host when start a vm (#4338) 2020-09-29 12:45:29 +05:30
event
ha Rename max.retries setting (#3960) 2020-03-13 19:57:45 +01:00
hypervisor NPE fix for System VM's start Command (#3985) 2020-03-25 10:01:13 +01:00
metadata
network vpc vr: plugin nics by this order: public/private/guest 2020-12-03 15:10:43 +01:00
projects master: travis and trillian smoketests fixes and stabilisation (#3476) 2019-07-12 17:27:49 +05:30
resource Remove cpu core from op_host_capacity when host is deleted (#4367) 2020-10-28 09:41:14 +01:00
resourcelimit New feature: Resource count (CPU/RAM) take only running vms into calculation (#3760) 2020-01-30 10:36:50 +01:00
server Fix hosts for migration count (#4500) 2020-11-25 15:34:23 +05:30
servlet Better tracking host maintanence and handling of migration jobs (#3425) 2019-12-19 16:36:20 +01:00
storage Unable to create snapshot from vm snapshot (#4432) 2020-10-29 08:53:33 +01:00
tags api: snapshot, snapshotpolicy tag support (#3228) 2019-06-27 09:21:08 +05:30
template server: update template to another template type (#3945) 2020-10-28 15:41:36 +05:30
test Add missing HA config keys (#3776) (#3814) 2020-01-15 12:24:05 +01:00
usage CloudStack Backup & Recovery Framework (#3553) 2020-03-03 13:27:58 +01:00
user Merge branch '4.13' 2020-02-26 16:18:41 +01:00
uuididentity CLOUDSTACK-9781: record resource uuid in events instead of integer id (#1940) 2018-05-03 16:32:00 +05:30
vm server: throw exception when update vm nic on L2 network (#4625) 2021-02-01 14:13:50 +05:30