-
Notifications
You must be signed in to change notification settings - Fork 665
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
Migrate AAA table in db_migrator #3284
Migrate AAA table in db_migrator #3284
Conversation
/AzurePipelines run Azure.sonic-utilities |
Azure Pipelines successfully started running 1 pipeline(s). |
scripts/db_migrator.py
Outdated
return | ||
|
||
authentication_config_old = self.configDB.get_entry('AAA', 'authentication') | ||
# If device enabled TACACS authentication, then enable TACACS per-command accounting and authorization |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old image's enablement does not matter. As long as the required passkey is there, and intention is to enable, then we should enable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, also discussion with Gang about how to handle version, because AAA table should migrate on all version >= 202205, so add migrate to common_migration_ops.
scripts/db_migrator.py
Outdated
return | ||
|
||
authentication_config_old = self.configDB.get_entry('AAA', 'authentication') | ||
# If device enabled TACACS authentication, then enable TACACS per-command accounting and authorization |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, this PR only contains migrate accounting part. will submit another PR later.
Per-command authorization migrate code add in this PR: #3296 |
Migrate AAA table in db_migrator per-command AAA need enable in warm-upgrade case Add db_migrator code to migrate AAA table Pass all test case. Add new test case. N/A Migrate AAA table in db_migrator
Migrate AAA table in db_migrator #### Why I did it per-command AAA need enable in warm-upgrade case #### How I did it Add db_migrator code to migrate AAA table #### How to verify it Pass all test case. Add new test case. #### Which release branch to backport (provide reason below if selected) N/A #### Description for the changelog Migrate AAA table in db_migrator #### A picture of a cute animal (not mandatory but encouraged)
Cherry-pick PR to 202311: #3329 |
Migrate AAA table in db_migrator #### Why I did it per-command AAA need enable in warm-upgrade case #### How I did it Add db_migrator code to migrate AAA table #### How to verify it Pass all test case. Add new test case. #### Which release branch to backport (provide reason below if selected) N/A #### Description for the changelog Migrate AAA table in db_migrator #### A picture of a cute animal (not mandatory but encouraged)
Migrate AAA table in db_migrator #### Why I did it per-command AAA need enable in warm-upgrade case #### How I did it Add db_migrator code to migrate AAA table #### How to verify it Pass all test case. Add new test case. #### Which release branch to backport (provide reason below if selected) N/A #### Description for the changelog Migrate AAA table in db_migrator #### A picture of a cute animal (not mandatory but encouraged)
Migrate AAA table in db_migrator
Why I did it
How I did it
How to verify it
Which release branch to backport (provide reason below if selected)
Description for the changelog
A picture of a cute animal (not mandatory but encouraged)