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

[Service] Enable/disable container auto-restart based on configuration. #4073

Merged
merged 35 commits into from
Feb 7, 2020
Merged

[Service] Enable/disable container auto-restart based on configuration. #4073

merged 35 commits into from
Feb 7, 2020

Commits on Jan 27, 2020

  1. [Event_listener] modify event listener such that it will read the flag

    of auto-restart feature from database and then decide whether to
    enable/disable this feature.
    
    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    e334536 View commit details
    Browse the repository at this point in the history
  2. [Docker-teamd] Modify supervisord config file to pass the container n…

    …ame to event listener.
    
    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    d0bf16b View commit details
    Browse the repository at this point in the history
  3. [Docker-telemetry] Modify the supervisord config file to pass container

    name to event listener.
    
    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    5953740 View commit details
    Browse the repository at this point in the history
  4. [Docker-sflow] Modify supervisord config file to pass container name to

    event listener.
    
    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    5d007b1 View commit details
    Browse the repository at this point in the history
  5. [Docker-lldp] Modify supervisord config file to pass container name to

    event listener.
    
    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    4439c4a View commit details
    Browse the repository at this point in the history
  6. [Docker-swss] Modify supervisord config file to pass container name to

    event listener.
    
    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    e2ef606 View commit details
    Browse the repository at this point in the history
  7. [Docker-pmon] Modify supervisord config file to pass container name to

    event listener.
    
    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    8a963d6 View commit details
    Browse the repository at this point in the history
  8. [Docker-radv] Modify supervisord config file to pass container name to

    event listener.
    
    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    f460268 View commit details
    Browse the repository at this point in the history
  9. [Docker-dhcp-relay] Modify supervisord config file to pass container

    name to event listener.
    
    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    e1580dd View commit details
    Browse the repository at this point in the history
  10. [Docker-snmp] Modify supervisord config file to pass container name to

    event listener.
    
    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    091a550 View commit details
    Browse the repository at this point in the history
  11. [Docker-bgp] Add an event listener, critical process list for contain…

    …er bgp and event listener will monitor
    
    these critical processes and if one of them exited, the event listener
    will restart this container based on the configuration flag set in database.
    
    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    ec4d6ee View commit details
    Browse the repository at this point in the history
  12. [Docker-bgp] Set the maximum restart times to 3 during 20 mins.

    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    8161903 View commit details
    Browse the repository at this point in the history
  13. [Docker-bgp] Add a macro in docker's makefile.

    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    9097988 View commit details
    Browse the repository at this point in the history
  14. [Docker-syncd-barefoot] Modify the supervisord config file to pass

    container name to event listener.
    
    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    05170f3 View commit details
    Browse the repository at this point in the history
  15. [Docker-syncd-broadcom] Modify supervisord config file to pass container

    name to event listener.
    
    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    0d52f4e View commit details
    Browse the repository at this point in the history
  16. [Docker-syncd-cavium] Modify supervisord config file to pass container

    name to event listener.
    
    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    4b9b009 View commit details
    Browse the repository at this point in the history
  17. [Docker-syncd-centec] Modify supervisord config file to pass container

    name to event listener.
    
    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    81cb12b View commit details
    Browse the repository at this point in the history
  18. [Docker-syncd-marvell] Modify supervisord config file to pass container

    name to event listener.
    
    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    3b84e80 View commit details
    Browse the repository at this point in the history
  19. [Docker-syncd-marvell-arm64] Modify supervisord config file to pass

    container name to event listener.
    
    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    44970a0 View commit details
    Browse the repository at this point in the history
  20. [Docker-syncd-marvell-armhf] Modify supervisord config file to pass

    container name as parameter to event listener.
    
    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    e73a86d View commit details
    Browse the repository at this point in the history
  21. [Docker-syncd-mellanox] Modify supervisord config file to pass container

    name as parameter to event listener.
    
    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    bcf43c7 View commit details
    Browse the repository at this point in the history
  22. [Docker-syncd-nephos] Modify the supervisord config file to pass

    container name as parameter to event listener.
    
    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    cbebfe0 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2020

  1. [Event listener] Add '=' for getopt parameters.

    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 28, 2020
    Configuration menu
    Copy the full SHA
    b8a2f39 View commit details
    Browse the repository at this point in the history
  2. [Event-listener] Reorganize the import commands in event listener.

    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 28, 2020
    Configuration menu
    Copy the full SHA
    5dcb1ec View commit details
    Browse the repository at this point in the history
  3. [Docker-bgp] Delete all the relevant files of auto-restart feature.

    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 28, 2020
    Configuration menu
    Copy the full SHA
    b30a5a2 View commit details
    Browse the repository at this point in the history
  4. [Docker-dhcp-relay] Pass container name as paramter in sampled generated

    configuration file.
    
    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 28, 2020
    Configuration menu
    Copy the full SHA
    51cdf73 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2020

  1. [Event-listener] Add the logic to handle if the container name is not

    provided or container name is invalid.
    
    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 29, 2020
    Configuration menu
    Copy the full SHA
    6a2932b View commit details
    Browse the repository at this point in the history
  2. [Event-listener] Change the exit code.

    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 29, 2020
    Configuration menu
    Copy the full SHA
    2457dbf View commit details
    Browse the repository at this point in the history
  3. [Event-listener] Change the exit code from 1 to 2.

    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 29, 2020
    Configuration menu
    Copy the full SHA
    5e6ab1f View commit details
    Browse the repository at this point in the history
  4. [Event-listener] Change the exit code from 2 to 1 in line 30.

    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 29, 2020
    Configuration menu
    Copy the full SHA
    693fd78 View commit details
    Browse the repository at this point in the history
  5. [Event-listener] Add three periods in the line 61.

    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 29, 2020
    Configuration menu
    Copy the full SHA
    324dd4f View commit details
    Browse the repository at this point in the history
  6. [Event-listener] Add logic to decide the invalid container name.

    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 29, 2020
    Configuration menu
    Copy the full SHA
    8201389 View commit details
    Browse the repository at this point in the history
  7. [Event-listener] Change the logic to avoid invalid container name.

    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 29, 2020
    Configuration menu
    Copy the full SHA
    3df1a3d View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2020

  1. [Event-listener] Add the logic to handle the corner caseis if the tab…

    …le is
    
    not found in config db and container name is not found in the table.
    
    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Jan 30, 2020
    Configuration menu
    Copy the full SHA
    0833a03 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2020

  1. [Event-listener] Use the syslog.LOG_ERR to write message into syslog

    file.
    
    Signed-off-by: Yong Zhao <yozhao@microsoft.com>
    yozhao101 committed Feb 3, 2020
    Configuration menu
    Copy the full SHA
    56ed262 View commit details
    Browse the repository at this point in the history