[db_migrator] Migrate DNS configuratuion#2893
Conversation
vaibhavhd
left a comment
There was a problem hiding this comment.
Non blocking comments added.
|
Did you manually tested the workflow of https://github.com/sonic-net/SONiC/wiki/L2-Switch-mode? |
qiluo-msft
left a comment
There was a problem hiding this comment.
LGTM. Please check with other reviewers.
| """ | ||
| log.log_info('Handling version_4_0_3') | ||
| # Updating DNS nameserver | ||
| self.migrate_dns_nameserver() |
There was a problem hiding this comment.
You updated the existing version, but did not create a new version.
Please add new version handler here as a placeholder.
Also, when you do that please also update the self.CURRENT_VERSION to the new version.
|
Please do not merge this change until #2895 is merged. 2895 fixes an issue where CURRENT_VERSION is not updated. |
|
Please resolve the conflict. |
|
/azpw run |
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@ganglyu do we have ADO for this? |
What I did sonic-net/sonic-buildimage#14549 This PR has introduced DNS configuration to CONFIG_DB, we need to migrate original CONFIG_DB to support DNS configuration during upgrading SONiC. How I did it If there's no DNS_NAMESERVER table in CONFIG_DB, read DNS_NAMESERVER table from minigraph and update CONFIG_DB. How to verify it Run unit test for db migrator.
…to version 4_0_1 (sonic-net#2912) #### What I did In PR sonic-net#2893 the db_migrator "migrate_dns_nameserver" was misplaced in the latest version being version 4_0_4 instead of being placed in version 4_0_3. Additionally, the log info for version 4_0_1 was missing as well
What I did sonic-net/sonic-buildimage#14549 This PR has introduced DNS configuration to CONFIG_DB, we need to migrate original CONFIG_DB to support DNS configuration during upgrading SONiC. How I did it If there's no DNS_NAMESERVER table in CONFIG_DB, read DNS_NAMESERVER table from minigraph and update CONFIG_DB. How to verify it Run unit test for db migrator.
What I did sonic-net/sonic-buildimage#14549 This PR has introduced DNS configuration to CONFIG_DB, we need to migrate original CONFIG_DB to support DNS configuration during upgrading SONiC. How I did it If there's no DNS_NAMESERVER table in CONFIG_DB, read DNS_NAMESERVER table from minigraph and update CONFIG_DB. How to verify it Run unit test for db migrator.
…to version 4_0_1 (sonic-net#2912) #### What I did In PR sonic-net#2893 the db_migrator "migrate_dns_nameserver" was misplaced in the latest version being version 4_0_4 instead of being placed in version 4_0_3. Additionally, the log info for version 4_0_1 was missing as well
What I did sonic-net/sonic-buildimage#14549 This PR has introduced DNS configuration to CONFIG_DB, we need to migrate original CONFIG_DB to support DNS configuration during upgrading SONiC. How I did it If there's no DNS_NAMESERVER table in CONFIG_DB, read DNS_NAMESERVER table from minigraph and update CONFIG_DB. How to verify it Run unit test for db migrator.
|
@ganglyu is this an enhancement? If yes, no for backport to 202305 |
|
Removing the cherry-pick tag since the feature of DNS is not part of 202305 |
What I did
sonic-net/sonic-buildimage#14549
This PR has introduced DNS configuration to CONFIG_DB, we need to migrate original CONFIG_DB to support DNS configuration during upgrading SONiC.
Microsoft ADO: 24408420
How I did it
If there's no DNS_NAMESERVER table in CONFIG_DB, read DNS_NAMESERVER table from minigraph and update CONFIG_DB.
How to verify it
Run unit test for db migrator.
Previous command output (if the output of a command-line utility has changed)
New command output (if the output of a command-line utility has changed)