`validate_options': Missing required arguments: libvirt_uri (ArgumentError)

Bug #1553666 reported by Arslan Qadeer
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
vagrant (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

/home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/service.rb:244:in validate_options': Missing required arguments: libvirt_uri (ArgumentError)
from /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/service.rb:268:inhandle_settings'
from /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/service.rb:98:in new' from /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/services_mixin.rb:16:innew'
from /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/compute.rb:65:in new' from /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/services_mixin.rb:4:in[]'
from /home/arslan/.vagrant.d/gems/gems/fog-libvirt-0.0.4/lib/fog/libvirt/models/compute/server.rb:269:in addresses' from /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/wait_till_up.rb:39:inblock (3 levels) in call'
from /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/model.rb:72:in instance_eval' from /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/model.rb:72:inblock in wait_for'
from /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/wait_for.rb:7:in block in wait_for' from /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/wait_for.rb:6:inloop'
from /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/wait_for.rb:6:in wait_for' from /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/model.rb:69:inwait_for'
from /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/wait_till_up.rb:38:in block (2 levels) in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/util/retryable.rb:17:inretryable'
from /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/wait_till_up.rb:33:in block in call' from /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/util/timer.rb:9:intime'
from /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/wait_till_up.rb:31:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:incall'
from /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/start_domain.rb:188:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:incall'
from /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/set_boot_order.rb:60:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:incall'
from /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/create_network_interfaces.rb:138:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:incall'
from /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/create_networks.rb:79:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:incall'
from /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/share_folders.rb:20:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:incall'
from /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/prepare_nfs_settings.rb:18:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:incall'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/synced_folders.rb:87:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:incall'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:28:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:incall'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/synced_folders/nfs/action_cleanup.rb:25:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:incall'
from /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/prepare_nfs_valid_ids.rb:12:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:incall'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/provision.rb:80:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:incall'
from /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/create_domain.rb:201:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:incall'
from /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/create_domain_volume.rb:51:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:incall'
from /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/handle_box_image.rb:109:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:incall'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/handle_box.rb:56:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:incall'
from /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/handle_storage_pool.rb:50:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:incall'
from /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/set_name_of_domain.rb:35:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:incall'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:95:in block in finalize_action' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:incall'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builder.rb:116:incall'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:66:in block in run' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/util/busy.rb:19:inbusy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:66:in run' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/call.rb:53:incall'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/config_validate.rb:25:incall'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builder.rb:116:incall'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:66:in block in run' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/util/busy.rb:19:inbusy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:66:in run' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/machine.rb:224:inaction_raw'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/machine.rb:199:in block in action' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:561:inlock'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/machine.rb:185:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/machine.rb:185:inaction'
from /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'

any workaround please??

Revision history for this message
pwaring (launchpad-pwaring) wrote :

What did you do to cause this error message?

Revision history for this message
Arslan Qadeer (arslanq) wrote :

i was running vagrant on ubuntu 14.04 last week, it was running perfect....but i changed OS to ubutnu 12.04 due to some personal needs, then i faced this error. I thought it may be due to old OS, i installed again ubuntu 14.04 but facing same error as ubuntu 12.04.
i have tried a lot of workarounds but no use....then i decided to report it as bug.

Revision history for this message
pwaring (launchpad-pwaring) wrote :

Can you post the command you ran which resulted in the error message and your Vagrantfile please?

Revision history for this message
Arslan Qadeer (arslanq) wrote :

i am simply using "vagrant up" command, and my Vagranfile is:

# -*- mode: ruby -*-

# vi: set ft=ruby :

ENV['VAGRANT_DEFAULT_PROVIDER'] = 'libvirt'
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

  config.vm.box = "ubuntuserver64"

  # Turn off shared folders
  config.vm.synced_folder ".", "/vagrant", id: "vagrant-root", disabled: true

  config.vm.define "deploy" do |deploy_config|
    deploy_config.vm.hostname = "deploy"

    deploy_config.vm.provider "libvirt" do |v|
        v.memory = 2048
        v.cpus = 2
        v.nested = true
        v.volume_cache = 'none'
    end

  end
end

Revision history for this message
Arslan Qadeer (arslanq) wrote :

I just tried on another machine from scratch, hitting same error...

Revision history for this message
pwaring (launchpad-pwaring) wrote :

What happens if you try the following (this will download a box from vagrantcloud.com):

vagrant init ubuntu/trusty64
vagrant up

I know that box works, so if you still get the same problem then that helps narrow it down.

Revision history for this message
Arslan Qadeer (arslanq) wrote : Re: [Bug 1553666] Re: `validate_options': Missing required arguments: libvirt_uri (ArgumentError)
Download full text (8.8 KiB)

yes its working for virtualbox, but problem is still there with libvirt,
same error with libvirt.

On Sun, Mar 6, 2016 at 3:49 PM, pwaring <email address hidden> wrote:

> What happens if you try the following (this will download a box from
> vagrantcloud.com):
>
> vagrant init ubuntu/trusty64
> vagrant up
>
> I know that box works, so if you still get the same problem then that
> helps narrow it down.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1553666
>
> Title:
> `validate_options': Missing required arguments: libvirt_uri
> (ArgumentError)
>
> Status in vagrant package in Ubuntu:
> New
>
> Bug description:
>
>
> /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/service.rb:244:in
> validate_options': Missing required arguments: libvirt_uri (ArgumentError)
> from
> /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/service.rb:268:inhandle_settings'
> from
> /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/service.rb:98:in
> new' from
> /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/services_mixin.rb:16:innew'
> from
> /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/compute.rb:65:in
> new' from
> /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/services_mixin.rb:4:in[]'
> from
> /home/arslan/.vagrant.d/gems/gems/fog-libvirt-0.0.4/lib/fog/libvirt/models/compute/server.rb:269:in
> addresses' from
> /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/wait_till_up.rb:39:inblock
> (3 levels) in call'
> from
> /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/model.rb:72:in
> instance_eval' from
> /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/model.rb:72:inblock
> in wait_for'
> from
> /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/wait_for.rb:7:in
> block in wait_for' from
> /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/wait_for.rb:6:inloop'
> from
> /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/wait_for.rb:6:in
> wait_for' from
> /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/model.rb:69:inwait_for'
> from
> /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/wait_till_up.rb:38:in
> block (2 levels) in call' from
> /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/util/retryable.rb:17:inretryable'
> from
> /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/wait_till_up.rb:33:in
> block in call' from
> /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/util/timer.rb:9:intime'
> from
> /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/wait_till_up.rb:31:in
> call' from
> /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:incall'
> from
> /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/start_domain.rb:188:in
> call' from
> /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:incall'
> from
> /home/arslan/.vagrant.d/gem...

Read more...

Revision history for this message
Albert Strasheim (fullung) wrote :
Revision history for this message
Arslan Qadeer (arslanq) wrote :
Download full text (8.8 KiB)

i have uninstalled the vagrant-libvirt plugin and installed again but no
change....fog-libvirt version is still 0.0.4
How to fix that and how can i have new code?
Please guide me i have very urgent project on my way pending.
I'll be obliged.

On Mon, Mar 7, 2016 at 12:50 AM, Albert Strasheim <email address hidden> wrote:

> https://github.com/fog/fog-libvirt/issues/16
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1553666
>
> Title:
> `validate_options': Missing required arguments: libvirt_uri
> (ArgumentError)
>
> Status in vagrant package in Ubuntu:
> New
>
> Bug description:
>
>
> /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/service.rb:244:in
> validate_options': Missing required arguments: libvirt_uri (ArgumentError)
> from
> /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/service.rb:268:inhandle_settings'
> from
> /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/service.rb:98:in
> new' from
> /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/services_mixin.rb:16:innew'
> from
> /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/compute.rb:65:in
> new' from
> /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/services_mixin.rb:4:in[]'
> from
> /home/arslan/.vagrant.d/gems/gems/fog-libvirt-0.0.4/lib/fog/libvirt/models/compute/server.rb:269:in
> addresses' from
> /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/wait_till_up.rb:39:inblock
> (3 levels) in call'
> from
> /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/model.rb:72:in
> instance_eval' from
> /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/model.rb:72:inblock
> in wait_for'
> from
> /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/wait_for.rb:7:in
> block in wait_for' from
> /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/wait_for.rb:6:inloop'
> from
> /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/wait_for.rb:6:in
> wait_for' from
> /home/arslan/.vagrant.d/gems/gems/fog-core-1.36.0/lib/fog/core/model.rb:69:inwait_for'
> from
> /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/wait_till_up.rb:38:in
> block (2 levels) in call' from
> /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/util/retryable.rb:17:inretryable'
> from
> /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/wait_till_up.rb:33:in
> block in call' from
> /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/util/timer.rb:9:intime'
> from
> /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/wait_till_up.rb:31:in
> call' from
> /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:incall'
> from
> /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/start_domain.rb:188:in
> call' from
> /opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:incall'
> from
> /home/arslan/.vagrant.d/gems/gems/vagrant-libvirt-0.0.32/lib/vagra...

Read more...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in vagrant (Ubuntu):
status: New → Confirmed
Revision history for this message
Jakub Libosvar (libosvar) wrote :

As per link comment in comment #8, using fog-libvirt 0.0.3 fixes this issue:

vagrant plugin install --plugin-version 0.0.3 fog-libvirt

At least works for me :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.