Skip to content

undefined method `create_pool' for an instance of Fog::Libvirt::Compute::Real (NoMethodError) #147

@davispuh

Description

@davispuh

When doing

compute = Fog::Compute.new(provider: :libvirt, libvirt_uri: 'qemu:///session')
compute.pools.create(xml: xml)

It fails with

fog-libvirt-0.12.0/lib/fog/libvirt/models/compute/pool.rb:28:in `save': undefined method `create_pool' for an instance of Fog::Libvirt::Compute::Real (NoMethodError)

          self.uuid = (persistent ? service.define_pool(xml) : service.create_pool(xml)).uuid
                                                                      ^^^^^^^^^^^^
Did you mean?  create_volume
        from fog-core-2.4.0/lib/fog/core/collection.rb:53:in `create'

There is no such method create_pool. See models/compute/pool.rb#L28

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions