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

Test: cannot run shell script for podman provider #597

Closed
michalkucharczyk opened this issue Nov 16, 2022 · 1 comment · Fixed by #608
Closed

Test: cannot run shell script for podman provider #597

michalkucharczyk opened this issue Nov 16, 2022 · 1 comment · Fixed by #608
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@michalkucharczyk
Copy link
Contributor

michalkucharczyk commented Nov 16, 2022

When trying to run test which executes the shell script with podman provider, the following error occurs:

Error: Command failed with exit code 125: podman --network zombie-8c399116 exec dave_pod-dave /bin/chmod +x /tmp/0001-test.sh                                                                                                                  
Error: unknown flag: --network                             
    at makeError (/snapshot/javascript/node_modules/execa/lib/error.js:60:11)                                                                                                                                                                  
    at handlePromise (/snapshot/javascript/node_modules/execa/index.js:118:26)                                                                                                                                                                 
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {                                                                                                                                                                    
  shortMessage: 'Command failed with exit code 125: podman --network zombie-8c399116 exec dave_pod-dave /bin/chmod +x /tmp/0001-test.sh',
  command: 'podman --network zombie-8c399116 exec dave_pod-dave /bin/chmod +x /tmp/0001-test.sh',                                                                                                                                              
  escapedCommand: 'podman --network zombie-8c399116 exec dave_pod-dave "/bin/chmod" "+x" "/tmp/0001-test.sh"',                                                                                                                                 
  exitCode: 125,                                                                                                       
  signal: undefined,                                       
  signalDescription: undefined,                                                                                        
  stdout: '',                                              
  stderr: 'Error: unknown flag: --network',                                                                            
  failed: true,                                            
  timedOut: false,                                                                                                     
  isCanceled: false,                                       
  killed: false                                                                                                        
}
@pepoviola pepoviola added the bug Something isn't working label Nov 16, 2022
@pepoviola
Copy link
Collaborator

podman exec should not use the --network flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants