Skip to content

CP-54442: Update for network devices not being renamed#57

Merged
minglumlu merged 2 commits intoxapi-project:feature/host-network-device-orderingfrom
minglumlu:private/mingl/CP-54442
May 19, 2025
Merged

CP-54442: Update for network devices not being renamed#57
minglumlu merged 2 commits intoxapi-project:feature/host-network-device-orderingfrom
minglumlu:private/mingl/CP-54442

Conversation

@minglumlu
Copy link
Copy Markdown
Member

A new proposed change in networkd will replace the interface-rename functionality to order the network devices. The result of the ordering performed by interface-rename is to rename the devices like eth0, eth1, etc. The new change in networkd will not rename the devices any more. Consequently, the use of hard-coded eth in network reset in xsconsole should be eliminated to cope with the new change.

Additionally, the new networkd replacing the interface rename functionality will perform the network reset with xapi together.

The interface rename functionality will be deprecated in the future.

A new proposed change in networkd will replace the interface-rename
functionality to order the network devices. The result of the ordering
performed by interface-rename is to rename the devices like eth0, eth1,
etc. The new change in networkd will not rename the devices any more.
Consequently, the use of hard-coded eth<N> in network reset in xsconsole
should be eliminated to cope with the new change.

Additionally, the new networkd replacing the interface rename
functionality will perform the network reset with xapi together.

The interface rename functionality will be deprecated in the future.

Signed-off-by: Ming Lu <ming.lu@cloud.com>
@minglumlu minglumlu changed the base branch from master to feature/host-network-device-ordering May 8, 2025 07:15
The Ubuntu 24.04 can't support Python2. So in short term, update it to
Ubuntu 22.04.

Signed-off-by: Ming Lu <ming.lu@cloud.com>
- name: Install dependencies
run: |
#: Install Python 2.7 from Ubuntu 20.04 using apt-get install
#: Install Python 2.7 from Ubuntu 22.04 using apt-get install
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should python3 be installed instead?

Copy link
Copy Markdown
Member Author

@minglumlu minglumlu May 14, 2025

Choose a reason for hiding this comment

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

The Python2 is still in the pipeline :(
So it can not be updated to Ubuntu 24.04 in which the Python2 is not supported.
See the commit message of a26db00

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Well, shouldn't python2 be removed from the pipeline altogether, then?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The Python2 was not removed when doing the migration from Python2 to Python3. I think there might be a reason for that.

Copy link
Copy Markdown
Collaborator

@liulinC liulinC May 15, 2025

Choose a reason for hiding this comment

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

well, the master branch is compatible with Python2/Python3 by @bernhardkaindl ,
That is the reason why python2 check is still valid. (Although I think we should branch out for Yangtze if necessary and keep master clean for Python3 only)

@minglumlu minglumlu requested a review from rosslagerwall May 14, 2025 02:16
# determine the bridge name.

# Ensure xapi is not running
os.system('service xapi stop >/dev/null 2>/dev/null')
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

not related to your PR, but
service command is no longer valid in XS9,
is it possible for you to update it to systemctl stop xapi

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

well, let's focus on your task,
We will fix it latter in another PR

@minglumlu minglumlu merged commit 70ade8e into xapi-project:feature/host-network-device-ordering May 19, 2025
1 check 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