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

[device] Misc fixes for Arista platforms #1844

Merged
merged 3 commits into from
Jul 5, 2018

Conversation

Staphylo
Copy link
Collaborator

@Staphylo Staphylo commented Jul 5, 2018

- What I did

Fix the i2c bus names for 7050QX-32 and 7050QX-32S after the recent submodule update.
Fix the default minigraph.xml for the 7050QX-32S that prevented it from properly starting.
Allow the image to be booted from another partition which does not affect default behavior.

- How to verify it

Boot an image on 7050QX-32S from vfat to verify that the initramfs script is still working.
Starting without minigraph.xml and verifying that syncd does not crash verifies the default minigraph.xml
Verify that the sensors names are properly set up.

- Description for the changelog

Miscellaneous fixes for Arista devices.

These two platforms were using a previous version of a kernel driver.
The new one names the i2c buses differently.
We therefore need to rename them here.
The interface offset is invalid which makes sonic-cfggen generate an
invalid config_db.jon in rc.local.
This config then silently makes orchagent/syncd fail.
Instead of always assuming /mnt/flash, use the partition where the image
to be installed lies.
This allow for the image to be on any partition.
@@ -22,20 +22,20 @@ iface lo {{ 'inet' if prefix | ipv4 else 'inet6' }} static
auto eth0
{% if MGMT_INTERFACE %}
{% for (name, prefix) in MGMT_INTERFACE %}
iface eth0 {{ 'inet' if prefix | ipv4 else 'inet6' }} static
iface {{ name }} {{ 'inet' if prefix | ipv4 else 'inet6' }} static
Copy link
Collaborator

Choose a reason for hiding this comment

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

why do you replace eth0 with {{ name }}? there are lots of places that assume the management port name is eth0. is this assumption broken on arista platform?

Copy link
Contributor

Choose a reason for hiding this comment

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

this assumption is not broken.

  1. Replace eth0 by '{{ name }}' as it should be
  2. this fix allows to have more than one mgmt interfaces: eth0 + XXX + ...

Copy link
Collaborator

Choose a reason for hiding this comment

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

can you revert this?

I checked, current the name is Management0, I do not think we should use that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure, I'll remove this commit.

Copy link
Collaborator

@lguohan lguohan left a comment

Choose a reason for hiding this comment

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

revert interface.j2 changes

@lguohan lguohan merged commit 26afa34 into sonic-net:master Jul 5, 2018
lguohan added a commit to lguohan/sonic-buildimage that referenced this pull request Aug 8, 2021
* 41dfaad 2021-08-02 | Bridge mac setting, fix statedb time format (sonic-net#1844) (HEAD, origin/202012) [Prince Sunny]

Signed-off-by: Guohan Lu <lguohan@gmail.com>
@lguohan lguohan mentioned this pull request Aug 8, 2021
5 tasks
lguohan added a commit that referenced this pull request Aug 9, 2021
* 41dfaad 2021-08-02 | Bridge mac setting, fix statedb time format (#1844) (HEAD, origin/202012) [Prince Sunny]

Signed-off-by: Guohan Lu <lguohan@gmail.com>
vdahiya12 added a commit to vdahiya12/sonic-buildimage that referenced this pull request Sep 29, 2021
0b5f90b (HEAD -> 202012, origin/202012) [show techsupport] fix bash errors in generate_dump script (sonic-net#1844)
388c50c [202012][warmboot] Add new preboot health check: verify db integrity (sonic-net#1839)
d73dc98 [config] support for configuring muxcable to standby mode of operation (sonic-net#1837)

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
lguohan pushed a commit that referenced this pull request Sep 30, 2021
0b5f90b (HEAD -> 202012, origin/202012) [show techsupport] fix bash errors in generate_dump script (#1844)
388c50c [202012][warmboot] Add new preboot health check: verify db integrity (#1839)
d73dc98 [config] support for configuring muxcable to standby mode of operation (#1837)

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
theasianpianist pushed a commit to theasianpianist/sonic-buildimage that referenced this pull request Feb 5, 2022
*Set bridge mac same as Vlan mac
*Format state_db entries to have six digit precision for microseconds
praveen-li pushed a commit to praveen-li/sonic-buildimage that referenced this pull request Feb 15, 2022
Signed-off-by: Sangita Maity <samaity@linkedin.com>

* src/sonic-utilities 9fde08a...595e322 (3):
  > [202012][show techsupport] address show techsupport return none zero code issue (sonic-net#1847)
  > [show techsupport] fix bash errors in generate_dump script (sonic-net#1844)
  > [techsupport] [202012] Removed -i option for docker commands and Improved Error Reporting (sonic-net#1833)
taras-keryk pushed a commit to taras-keryk/sonic-buildimage that referenced this pull request Apr 28, 2022
…#1844)

What I did
Fix: sonic-net#8850

Issue was introduced by sonic-net#1723, sonic-net#1833, and sonic-net#1843 (pending merge)

The error_handler is a great idea but the bash script needs to be error free first.

How I did it
Fix bash script errors.

How to verify it
run show techsupport test..

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
@Staphylo Staphylo deleted the misc-fixes branch December 6, 2022 14:58
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.

4 participants