Finish the core functionality using awscli and boto3. Add corresponding commands. Also, log functionality of aws tool is developed. IP shifting while failover happens is done.

Review Request #667 — Created Feb. 20, 2025 and submitted

marychou
APV10
rel_apv_10_7
1383
timlai, weikai

TWSD-59 HA support for APV in AWS Cloud
The added functionalities (the core of this functionlaities is written by python):
1. Authenticate vAPV with AWS account using aws cli.
2. Set ENIs configurations to tell vAPV what ENIs sholud be considered while failover happen.
3. Shift IPs from primary vAPV to secondary vAPV based on the ENI configuration.
4. Add log functionality of this AWS tool.
Add Array CLI and copy the code base of this tool to the corresponding directory.

manual test is finished

cloud aws show log config

cloud aws log off

cloud aws show log config

cloud aws log on

cloud aws show log config

cloud aws show log severity

cloud aws loglevel debug

cloud aws show log severity

cloud aws loglevel info

cloud aws show log severity

cloud aws loglevel warning

cloud aws show log severity

cloud aws loglevel error

cloud aws show log severity

cloud aws loglevel info

cloud aws show log buffer

cloud aws show account

cloud aws login “{your key}” “{your secret key}” “{your region}”

cloud aws show account

cloud aws logout

cloud aws show account

cloud aws set eniconfig eni-0ceb6ccf5b7cd052e eni-0e1f3a4bd67bf3ec8

cloud aws show eniconfig

cloud aws set eniconfig maryeni3 maryeni4

cloud aws show eniconfig

cloud aws remove eniconfig “1”

cloud aws show eniconfig

cloud aws clear eniconfig

cloud aws show eniconfig

cloud aws set eniconfig maryeni1 maryeni2

cloud aws show eniconfig

cloud aws failover trigger

cloud aws failover recover

cloud aws ha enable

cloud aws ha show

turn off primary vAPV

cloud aws ha disable

cloud aws ha show

Description From Last Updated

What is this information? Is it related to the company account? If so, please remove it.

weikaiweikai
marychou
weikai
    1. Remove unnecessary spaces.
      sys_cmd.c, commands.pm, LoggerManager.py, APVController.py, AWSENIConfigurator.py, ProxyAWSLogger.py

    2. Missing relevant package installation information.
      It should be in ustacksystem.ks.

    3. You can add more test content, even though there are many updates.
      You can also write a simple usage guide or link to a webpage with more detailed information.

    After modification, you can update using "rbt post -r 667".

  1. 
      
weikai
  1. 
      
  2. What is this information? Is it related to the company account?
    If so, please remove it.

  3. 
      
marychou
marychou
weikai
  1. Ship It!
  2. 
      
marychou
Review request changed

Status: Closed (submitted)

Loading...