Skip to content

Conversation

@psafont
Copy link
Member

@psafont psafont commented Feb 13, 2024

Merges master branch into the python 3 feature branch for #5453 (re-take of py3 for storage-api)

robhoes and others added 30 commits February 2, 2024 14:11
The OVS command to query the state of a bond now uses the term "member"
rather than "slave" for bond links. Adapt the code in networkd to expect
this.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
CA-388437: fix bond status reporting
The bugfix for the CA ticket is simple,
but there're issues with unittest/pylint/pytype
Need more time to review.
To not block the GA, just revert the python3 changes as a fix
Will do the python3 porting later in a feature branch

Signed-off-by: Stephen Cheng <stephen.cheng@cloud.com>
This reverts commit 4ea474b.

Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
This reverts commit 8a72e0f.

Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
This reverts commit 48c8c3e.

Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
This reverts commit 4140ff1.

Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
This makes it more convenient to feature flag any future cluster_health
features (A number of them on the way, such as sending alerts).

Signed-off-by: Vincent Liu <shuntian.liu2@cloud.com>
…luster-health-flag

Refactor cluster_health flag checking
It does not support linting actions, which blocks reusing code in github
actions.

On top of that it hasn't been updated in months. There's a PR to add actions to
it since october.

Since this is blocking xapi-project#5433, remove it

Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
…nabled

Signed-off-by: Steven Woods <steven.woods@citrix.com>
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
Correct mistakes on `joined` field and add more details on `destroy` message.

Signed-off-by: Vincent Liu <shuntian.liu2@cloud.com>
We add three new alert messages in addition to the existing
`cluster_host_fencing`: `cluster_host_leaving`, `cluster_host_joining`
and `cluster_quorum_approaching_lost`.

The leave and join message are added whenever a host leaves the cluster,
whether as a result of the user operation, or due to unexpected errors
(in which case we will likely get an additional fencing alert).
The approaching quorum message is sent when the cluster cannot tolerate
any more loss of hosts.

Signed-off-by: Vincent Liu <shuntian.liu2@cloud.com>
…luster-alert

CP-46324: Send alert when a host leaves/joins the cluster
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
…ement-in-rrdd.API.wait_until_next_reading
Signed-off-by: Steven Woods <steven.woods@citrix.com>
Instead delay the connection to each request.
These will still fail when xapi is offline.
Currently means roundtrips are done, depending on the request.

Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
Adds:
- `xs.xapi.task.id`;
- `xs.xapi.task.name`;
- `xs.xapi.task.uuid`;
- `xs.xapi.task.session.track.id`;
- `xs.xapi.task.origin`;
to the list of possible attributes of spans created by
`context.ml`

This improves the debuggability and makes spans more easily
identifiable.

Signed-off-by: Gabriel Buica <danutgabriel.buica@cloud.com>
Removes code duplication by passing the exception error as an optional
argument to `complete_tracing`.

Improves code maitainability.

Signed-off-by: Gabriel Buica <danutgabriel.buica@cloud.com>
…-46155

CP-46155: Call SM scripts via observer.py when SM observer is enabled
Adds a new variable in `Xapi_globs` that is a comma-separeted
string of components. Components in this list will be considered
experimental and therefore disabled by default. They can be
enabled by adding an entry in `xapi.conf` without their name.

For instance, adding the line:

observer-experimental-components = ""

will enable all experimental components.

Signed-off-by: Gabriel Buica <danutgabriel.buica@cloud.com>
use xapi-guard for name in logs

Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
…/CP-46157

CP:46157: Add `observer_experimental_components` flag
mg12 and others added 8 commits February 9, 2024 15:06
…/CP-46631

CP-46631: Improved list of span attributes.
This partially reverts commit 29f844c: the Java SDK defines a 'latest' API function,
but 'API_2_20' enum was undefined.

This fixes the Java build (we may need a different solution on API versioning of SDK languages though).

Fixes: 29f844c ("CA-387698: datamodel: eliminate next_release")

Signed-off-by: Edwin Török <edwin.torok@cloud.com>
Signed-off-by: Edwin Török <edwin.torok@cloud.com>
…guard

CA-385323: Enable creating domain sockets while xapi isn't running
Sysfs.list_drivers is returning the list of only PCI driver,
so make it clear.
We want to support also USB cards so this change could avoid
confusions in the future.

Signed-off-by: Frediano Ziglio <frediano.ziglio@cloud.com>
…dk-fix-java-build

Xen-API Java SDK: fix the build (reintroduce 2.20 API version definition)
Make clear which drivers list we are getting
@codecov
Copy link

codecov bot commented Feb 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a9da916) 45.38% compared to head (8760e8a) 49.07%.

Additional details and impacted files
@@               Coverage Diff               @@
##           feature/py3    #5454      +/-   ##
===============================================
+ Coverage        45.38%   49.07%   +3.68%     
===============================================
  Files               18       18              
  Lines             2937     2319     -618     
===============================================
- Hits              1333     1138     -195     
+ Misses            1604     1181     -423     
Flag Coverage Δ
python2.7 53.38% <100.00%> (+1.28%) ⬆️
python3.11 55.85% <100.00%> (+5.70%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@psafont psafont merged commit ee82dd7 into xapi-project:feature/py3 Feb 14, 2024
@psafont psafont deleted the feature/py3 branch February 14, 2024 10:15
@github-actions
Copy link

pytype_reporter extracted 50 problem reports from pytype output

.

You can check the results of the job here

@gangj gangj mentioned this pull request Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.