Skip to content

[Bug] SONiC Extension Packages Migration Error #3425

Open
@PeterTSW-EC

Description

@PeterTSW-EC

Description

When I install a SONiC extension package through sonic-package-manager, the docker API responds with an error "bad parameter: path cannot be empty."

admin@sonic:~$ sudo sonic-package-manager install -y --from-tarball ./test-container.gz
Loading layer f0a145316756 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████|        123.55/123.55 Mb [00:04<00:00, 28.29 Mb/s]
Loading layer 51692b581b41 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████|        138.32/138.32 Mb [00:05<00:00, 30.06 Mb/s]
Loading layer d42f796d7762 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████|        0.00/0.00 Mb [00:00<00:00, 0.33 Mb/s]
Loading layer 1463b11b43eb 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████|          168.29/168.29 Mb [00:04<00:00, 47.87 Mb/s]
Loading layer a33dbec2c546 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████|          0.00/0.00 Mb [00:00<00:00, 0.16 Mb/s]
Loading layer 7945157c56c9 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████|          2.26/2.26 Mb [00:00<00:00, 23.93 Mb/s]
Loading layer 32bb16d1aeb3 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████|          0.00/0.00 Mb [00:00<00:00, 0.11 Mb/s]
generated /usr/bin/test-container.sh
generated /usr/local/bin/test-container.sh
generated /usr/lib/systemd/system/test-container.service
test-container entry is added to AUTO_TECHSUPPORT_FEATURE table
test-container entry is added to SYSLOG_CONFIG_FEATURE table
removed /usr/lib/systemd/system/test-container.service
removed /usr/local/bin/test-container.sh
removed /usr/bin/test-container.sh
removed /etc/sonic/test-container_reconcile
Failed to install ./test-container.gz: Failed to install test-container: 400 Client Error for http+docker://localhost/v1.43/containers/c5bf9e94b7dd6e464c52f5b606fe22de9125e52595f38b3d866a1b464ded10cd/archive?path=: Bad Request ("bad parameter: pathcannot be empty")

Steps to reproduce the issue

Install a sonic extension package through the tool:
sudo sonic-package-manager install -y --from-tarball ./test-container.gz
Or, install a sonic image: (It runs the migrate command in the sonic-package-manager. )

Describe the results you received

The "path" field is missing in the Docker API URL.

Describe the results you expected

The extension package should be installed correctly without errors.

Additional information you deem important (e.g. issue happens only occasionally)

Added some logs in the installation script; A list with an empty string is returned during the "clear" field parsing in the manifest.py. In my container's manifest.json, the clear field is empty.

Output of show version

(paste your output here)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions