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

`network': wrong number of arguments (given 2, expected 1) (ArgumentError) #478

Closed
nusenu opened this issue Jul 9, 2022 · 1 comment
Closed

Comments

@nusenu
Copy link

nusenu commented Jul 9, 2022

👻 Brief Description

I used to have this suite and it worked for a long time, but now it fails:

  - name: t-guard-2publicIPs
    driver:
      network:
      - ["private_network", {ip: "192.0.2.10"}]
      - ["private_network", {ip: "198.51.100.10"}]

https://github.com/nusenu/ansible-relayor/blob/da26b86de6553435b3e81b08d8206809f4e8a219/.kitchen.yml#L77

Version

  • kitchen-vagrant 1.12.0

Environment

  • Host: Fedora 36 running 5.18.10-200
  • VirtualBox 6.1.35r152011
  • Test Kitchen version 3.3.1

Scenario

trying to run a suite that assigns multiple IPs

Steps to Reproduce

  1. git clone https://github.com/nusenu/ansible-relayor.git
  2. cd ansible-relayor
  3. kitchen test t-guard-2publicIPs-debian-11
  4. See error in actual result section

Expected Result

In the past it worked (multiple IP addresses got configured in the VM).

Actual Result

>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>>     Failed to complete #create action: [Expected process to exit with [0], but received '1'
---- Begin output of vagrant up --no-provision --provider virtualbox ----
STDOUT: 
STDERR: /usr/share/vagrant/gems/gems/vagrant-2.2.19/plugins/kernel_v2/config/vm.rb:320:in `network': wrong number of arguments (given 2, expected 1) (ArgumentError)
        from .../ansible-relayor/.kitchen/kitchen-vagrant/t-guard-2publicIPs-debian-11/Vagrantfile:5:in `block in <top (required)>'
        from /usr/share/vagrant/gems/gems/vagrant-2.2.19/lib/vagrant/config/v2/loader.rb:37:in `load'
        from /usr/share/vagrant/gems/gems/vagrant-2.2.19/lib/vagrant/config/loader.rb:126:in `block (2 levels) in load'
        from /usr/share/vagrant/gems/gems/vagrant-2.2.19/lib/vagrant/config/loader.rb:119:in `each'
        from /usr/share/vagrant/gems/gems/vagrant-2.2.19/lib/vagrant/config/loader.rb:119:in `block in load'
        from /usr/share/vagrant/gems/gems/vagrant-2.2.19/lib/vagrant/config/loader.rb:116:in `each'
        from /usr/share/vagrant/gems/gems/vagrant-2.2.19/lib/vagrant/config/loader.rb:116:in `load'
        from /usr/share/vagrant/gems/gems/vagrant-2.2.19/lib/vagrant/vagrantfile.rb:29:in `initialize'
        from /usr/share/vagrant/gems/gems/vagrant-2.2.19/lib/vagrant/environment.rb:793:in `new'
        from /usr/share/vagrant/gems/gems/vagrant-2.2.19/lib/vagrant/environment.rb:793:in `vagrantfile'
        from /usr/share/vagrant/gems/gems/vagrant-2.2.19/lib/vagrant/environment.rb:974:in `process_configured_plugins'
        from /usr/share/vagrant/gems/gems/vagrant-2.2.19/lib/vagrant/environment.rb:178:in `initialize'
        from /usr/share/vagrant/gems/gems/vagrant-2.2.19/bin/vagrant:194:in `new'
        from /usr/share/vagrant/gems/gems/vagrant-2.2.19/bin/vagrant:194:in `<top (required)>'
        from /usr/share/vagrant/gems/bin/vagrant:25:in `load'
        from /usr/share/vagrant/gems/bin/vagrant:25:in `<main>'
---- End output of vagrant up --no-provision --provider virtualbox ----
Ran vagrant up --no-provision --provider virtualbox returned 1] on t-guard-2publicIPs-debian-11

➕ Additional context

I'm not sure in which part of the stack (kitchen, kitchen-vagrant, vagrant, VirtualBox) the issue resides.

@vkarve-chef
Copy link
Contributor

duplicate of #476

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants