fog / fog-libvirt

libvirt provider for fog
MIT License
16 stars 42 forks source link

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

Open davispuh opened 1 month ago

davispuh commented 1 month ago

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