jmsperu opened a new issue, #14967:
URL: https://github.com/apache/cloudstack/issues/14967
## ISSUE TYPE
Improvement Request (with a small log text bug)
## COMPONENT NAME
Management server (VirtualMachineManagerImpl, NetworkOrchestrator,
deployment planner), API error text
## CLOUDSTACK VERSION
4.22.1.1
## CONFIGURATION
KVM, advanced zone, one management server, two KVM hosts. Isolated network
using a network offering whose virtual router system offering has host tag
`fe2-nosuchtag`. No host has that tag.
## OS / ENVIRONMENT
Ubuntu 24.04 LTS management server and KVM hosts (agent 4.22.1.1).
## SUMMARY
When the first instance on an isolated network is deployed, the virtual
router has to start first. If the router cannot be placed (here: no host
matches the router system offering's host tags), the async job fails with:
```
errorcode 530
Unable to orchestrate the start of VM instance
{"instanceName":"i-31-424-VM","uuid":"d1580cce-..."}.
```
The real cause is only in management-server.log:
```
No suitable host found for the following compute offering tags
[fe2-nosuchtag].Ï
Failed to implement Network: Network {...}
```
An unrelated failure, a KVM agent restart while the router was starting,
gives exactly the same API text (only the instance name and uuid change). The
cause there was AgentUnavailableException followed by
InsufficientServerCapacityException in the log.
So neither the user nor the admin can tell from the API or the UI whether
the problem is their instance, the network, the router offering or a host.
Alert type 8 is raised with the subject "... on Host null", which does not help
either.
Second, smaller point: the log line says "compute offering tags", but
`fe2-nosuchtag` is a host tag on the router's system offering, not on the
user's compute offering. An admin following the log checks the wrong offering.
## STEPS TO REPRODUCE
```
1. Create a system offering for the domain router with hosttags=nosuchtag
(no host has it).
2. Create an isolated network offering (SourceNat, Dhcp, Dns via
VirtualRouter) with serviceofferingid=<that offering>, enable it.
3. Create a network from it.
4. deployVirtualMachine on that network.
```
## EXPECTED RESULTS
The job error says that the network could not be started because its virtual
router could not be placed, and names the network. For admins, the text (or
error metadata) says that no host matches the router offering's host tags and
names that offering. The log line says "router offering tags" (or "system
offering tags") when the offering is a system offering.
## ACTUAL RESULTS
Generic 530 "Unable to orchestrate the start of VM instance {...}" with an
internal object dump. The cause is only in the log, and the log labels the
router tags as compute offering tags.
## NOTES
PR #12336 introduces the key `vm.start.orchestrate.failed` for this text.
Carrying the wrapped cause (network implement failure, router placement
failure) into the error metadata there would let UIs show the real reason.
Related general issue: #7297.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]