• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

xapi-project / xen-api / 14375944184
78%
master: 80%

Build:
Build:
LAST BUILD BRANCH: dev/pau/majmin
DEFAULT BRANCH: master
Ran 10 Apr 2025 08:33AM UTC
Jobs 1
Files 33
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Apr 2025 08:32AM UTC coverage: 77.719%. Remained the same
14375944184

push

github

web-flow
CP-54026: option to control VM-internal shutdown behaviour under HA (#6412)

Adds a new datamodel field in the pool class:

    bool pool.ha_reboot_vm_on_internal_shutdown

The field is read/write, with the setter restricted to the pool-operator
role. The default of this new field is `true` to reflect the current
behaviour.

This field controls what happens when HA is enabled and a protected VM
is shut down internally (e.g. by pressing the shutdown button in
Windows):

- `true`: the VM is automatically restarted.
- `false`: the VM is not restarted and left halted – consistent with
  the behaviour of shutting the VM down through the API.

CLI:

    xe pool-param-set uuid=... ha-reboot-vm-on-internal-shutdown=false

Whether an HA-protected VM is automatically (re)started depends on the
field `VM.ha_always_run`, which is managed by xapi. This field is set to
`true` when a protected VM is started, and to `false` when it is shut
down through the API, which prevents the HA monitor thread from
restarting it again. Setting the new pool-field to `false` does the
same thing is such a VM is shut down from inside when handling the event
in the xenopsd-events thread.

3359 of 4322 relevant lines covered (77.72%)

0.78 hits per line

Jobs
ID Job ID Ran Files Coverage
1 python3.11 - 14375944184.1 10 Apr 2025 08:33AM UTC 33
77.72
GitHub Action Run
Source Files on build 14375944184
  • Tree
  • List 33
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14375944184
  • 1d77bfcd on github
  • Prev Build on master (#14371410761)
  • Next Build on gh-readonly-queue/master/pr-6412-012beadfde5e310c6c261f4fb5018daf2362adaf (#14375944256)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc