Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yangtze Backports #5177

Merged
merged 3 commits into from
Sep 21, 2023
Merged

Yangtze Backports #5177

merged 3 commits into from
Sep 21, 2023

Conversation

lindig
Copy link
Contributor

@lindig lindig commented Sep 19, 2023

* 7b0a03793 2023-09-19 CA-374989: Avoid using get_record on cross-pool migration
* 1950c7367 2023-09-19 CA-376879: VLAN PIF created in pool.join is shown as di..

Please remind me if any of this requires changes in spec files - this is easy to miss.

minglumlu and others added 2 commits September 19, 2023 10:49
Backport of c882e81

The issue to be fixed in this commit is that when a host joins a pool in
which the management network is on a VLAN network, the new untagged PIF
of the joined host shows disconnected always.

Normally, the VLAN untagged PIF should share PIF_metrics with the tagged
PIF so that the PIF_metrics could be updated correctly. This sharing is
ensured by 'Xapi_vlan.create'. While in pool.join, the untagged PIF is
created by 'Xapi_pif.pool_introduce', in which the 'metrics' of the new
untagged PIF doesn't share with the tagged PIF. This causes the 'carrier'
of 'metrics' of the new untagged PIF be 'false' forever. And
consequently the management network shows disconnected always.

Can't switch to use 'Xapi_vlan.create' simply to fix this issue as the
call can't set the "management" field of the untagged PIF correctly.
The 'Xapi_pif.pool_introduce' can do this, but can't set the sharing of
PIF_metrics correctly. What's more, from engineering's perspective, it
is not worth to change these two API calls for this minor issue.

So the fix is as simple as to reset the PIF_metrics of untagged PIF to
the one used by tagged PIF when creating the VLAN object in pool.join.
In this case, the only drawback is an unused PIF_metrics is created and
then destroyed in pool.join.

---------

Signed-off-by: Ming Lu <[email protected]>
Signed-off-by: Christian Lindig <[email protected]>
Backport d23730d

Using them makes it impossible to remove unrelated fields that were
supposed to have been removed in 2012

Signed-off-by: Pau Ruiz Safont <[email protected]>
Signed-off-by: Christian Lindig <[email protected]>
@lindig lindig requested review from psafont and minglumlu September 19, 2023 15:06
Copy link
Member

@psafont psafont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are faithful backports

Backport of xapi-project#4908

RRD gains a new command (outside this repository) that we are using as
part of bug tool collection.

Signed-off-by: Christian Lindig <[email protected]>
@lindig lindig merged commit fe3f4df into xapi-project:1.249-lcm Sep 21, 2023
5 checks passed
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.

3 participants