Skip to content

[multiasic][database]database.sh failed to create the database for namespace in multiasic platform#9502

Merged
abdosi merged 1 commit intosonic-net:masterfrom
mlok-nokia:database-docker-create
Dec 13, 2021
Merged

[multiasic][database]database.sh failed to create the database for namespace in multiasic platform#9502
abdosi merged 1 commit intosonic-net:masterfrom
mlok-nokia:database-docker-create

Conversation

@mlok-nokia
Copy link
Contributor

@mlok-nokia mlok-nokia commented Dec 10, 2021

Why I did it

database.sh failed to create the database for namespace in multiasic platform.
The latest code Docker version 20.10.x, command "docker create" no longer takes optional "NET=" with empty value. Syntax error show with current docker create command in database.sh. Issue #9503

How I did it

Modify the docker_image_ctl.j2 to set default network setting NET="bridge" instead of empty for namespace database.

How to verify it

boot up the new image in a multiasic platform. the namespace database containers should be created. Also the following error message should not be seen in syslog file

docker: no name set for network.
See 'docker create --help'.
Failed to docker run

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

A picture of a cute animal (not mandatory but encouraged)

…mespace

The latest code Docker version 20.10.x, command "docker create" no longer takes optional  "NET=" with empty value. Syntax error show with currecnt docker create command in database.sh

Signed-off-by: mlok <[email protected]>
@mlok-nokia
Copy link
Contributor Author

@abdosi @judyjoseph @minionatwork Please review this PR for fix the latest docker create. Thanks

fi

{%- if docker_container_name == "database" %}
NET="bridge"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This setting was present earlier eg: 201911 release etc. It got removed in one of the PR's #5283

@abdosi abdosi merged commit 04a4b8d into sonic-net:master Dec 13, 2021
judyjoseph pushed a commit that referenced this pull request Dec 27, 2021
…mespace (#9502)

Why I did it
database.sh failed to create the database for namespace in multiasic platform.
The latest code Docker version 20.10.x, command "docker create" no longer takes optional "NET=" with empty value. Syntax error show with current docker create command in database.sh. Issue #9503

How I did it
Modify the docker_image_ctl.j2 to set default network setting NET="bridge" instead of empty for namespace database.
@mlok-nokia mlok-nokia deleted the database-docker-create branch April 16, 2022 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[multiasic][database]database.sh failed to create the database for namespace in multiasic platform

5 participants