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

[master] fix config sflow enable failed #1212

Closed
wants to merge 1 commit into from

Conversation

tim-rj
Copy link
Contributor

@tim-rj tim-rj commented Nov 4, 2020

Signed-off-by: tim-rj sonic_rd@ruijie.com.cn

- What I did
fix sonic-net/sonic-buildimage#5803
- How I did it
make sure sflow unmask before enable and start
- How to verify it

config sflow enalbe

- Previous command output (if the output of a command-line utility has changed)

root@sonic:/home/admin# config sflow enable
Failed to enable unit: Unit file /etc/systemd/system/sflow.service is masked.
root@sonic:/home/admin# systemctl status sflow
● sflow.service
   Loaded: masked (Reason: Unit sflow.service is masked.)
   Active: inactive (dead)

- New command output (if the output of a command-line utility has changed)

root@sonic:/home/admin# config sflow enable
Removed /etc/systemd/system/sflow.service.
root@sonic:/home/admin# systemclt status sflow
bash: systemclt: command not found
root@sonic:/home/admin# systemctl status sflow
● sflow.service - sFlow container
   Loaded: loaded (/lib/systemd/system/sflow.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2020-11-04 10:46:01 UTC; 27s ago
  Process: 28203 ExecStartPre=/usr/bin/sflow.sh start (code=exited, status=0/SUCCESS)
 Main PID: 28281 (sflow.sh)
    Tasks: 15 (limit: 4461)
   Memory: 26.9M
   CGroup: /system.slice/sflow.service
           ├─28281 /bin/bash /usr/bin/sflow.sh wait
           └─28282 docker wait sflow

Signed-off-by: tim-rj <sonic_rd@ruijie.com.cn>
@tim-rj
Copy link
Contributor Author

tim-rj commented Nov 5, 2020

will close this one since it is cause by config_db.json.

@tim-rj tim-rj closed this Nov 5, 2020
stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 28, 2022
 Enable m_isCombinedMirrorV6Table for BFN platform (sonic-net#1212)
[vnet]: Update VNET route table size to 40K for BITMAP implementation (sonic-net#1132)
 Default action for Egress ACL Table not poulated. (sonic-net#1208)
Add/Del lag_name_map item according to lag adding and removing (sonic-net#1124)
Increase ip2me CIR/CBR for faster in-band file transfers (sonic-net#1000)
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.

[master] config sflow enable failed
1 participant