Skip to content
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

[BUG] lxd.container_create doesn't create devices correctly #63996

Closed
goapunk opened this issue Mar 29, 2023 · 1 comment · Fixed by #63997
Closed

[BUG] lxd.container_create doesn't create devices correctly #63996

goapunk opened this issue Mar 29, 2023 · 1 comment · Fixed by #63997
Labels
Bug broken, incorrect, or confusing behavior needs-triage

Comments

@goapunk
Copy link
Contributor

goapunk commented Mar 29, 2023

Description
Creating a container with lxd.container_create with the devices= parameter will fail if a device is not of type disk.

Steps to Reproduce the behavior

  1. Create a container with a proxy device:
salt-call lxd.container_create name="test" source="jammy/amd64" devices="{test_device: {type: proxy, connect: "tcp:127.0.0.1:9999", listen: "tcp:127.0.0.1:9998"}}"
  1. Inspect the created container:
lxc config show test
  1. Device wasn't created, instead error message is shown:
Passed invalid arguments: path must be given as parameter.

Expected behavior
Devices are correctly added to the container.

Versions Report
any from at least 3001

@goapunk goapunk added Bug broken, incorrect, or confusing behavior needs-triage labels Mar 29, 2023
@goapunk
Copy link
Contributor Author

goapunk commented Mar 29, 2023

I'll provide a PR with a fix later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior needs-triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant