Thank you Slavka,

I will open a ticket for the UI later and make amends to documentation for
CLI.

Regards,
Jordan

On Mon, Aug 12, 2024 at 3:05 PM Slavka Peleva <slav...@storpool.com.invalid>
wrote:

> Hi Jordan,
>
> I was able to add local storage via Cloudmonkey. There is no need to
> provide the scope, it will be set depending on the URL scheme (it has to be
> "file")
>
> (admin) 🐵 > create storagepool zoneid=07d64765-3123-4fc2-b947-25d2c36f5bb4
> > name=test provider=DefaultPrimary
> > podid=0af34b96-e88d-440e-a6bd-c4e8aab4aa4a
> > clusterid=49db6a16-2f6c-4583-9d07-37ccceb248ae  url=file://
> > 10.2.32.244/var/lib/libvirt/images
> > {
> >   "storagepool": {
> >     "clusterid": "49db6a16-2f6c-4583-9d07-37ccceb248ae",
> >     "clustername": "Cluster-A-1",
> >     "created": "2024-08-12T14:59:53+0300",
> >     "disksizeallocated": 0,
> >     "disksizetotal": 41001418752,
> >     "hasannotations": false,
> >     "hypervisor": "KVM",
> >     "id": "3714d38e-1842-4689-a162-0c14df06934d",
> >     "ipaddress": "10.2.32.244",
> >     "istagarule": false,
> >     "name": "test",
> >     "overprovisionfactor": "2.0",
> >     "path": "/var/lib/libvirt/images",
> >     "podid": "0af34b96-e88d-440e-a6bd-c4e8aab4aa4a",
> >     "podname": "Pod-A",
> >     "provider": "DefaultPrimary",
> >     "scope": "HOST",
> >     "state": "Up",
> >     "type": "Filesystem",
> >     "zoneid": "07d64765-3123-4fc2-b947-25d2c36f5bb4",
> >     "zonename": "Zone-A"
> >   }
> > }
>
>
> Via UI - probably you're right that there is a bug. When the data is
> fetched it shows only the host from the first cluster in the list.
>
> Best regards,
> Slavka
>
> On Mon, Aug 12, 2024 at 12:37 PM jordan j <yordan...@gmail.com> wrote:
>
> > Hello everyone,
> >
> > The docs claim that this can be done from UI and from manually modifying
> > the agent on the KVM host but I wonder if it can be done from CLI? Here
> is
> > my experience so far (CS 4.19.1.0, one pod with mixed XCP and KVM
> > clusters).
> >
> > - Manually modifying the agent: It works
> > - From Primary storage UI: the KVM host cannot be selected even though a
> > KVM cluster is selected above. Actually the host UI field can only select
> > one of all the hosts in the zone and that host is not part of the
> selected
> > cluster. I wonder if that is a bug?
> > - Cloudmonkey Create StoragePool command:
> >
> https://cloudstack.apache.org/api/apidocs-4.19/apis/createStoragePool.html
> > .
> > When selecting a scope argument there is no HOST value to select (that is
> > the requirement for local disk) but only Zone and Cluster. Also the api
> > command is poorly documented, for example I have no clue what the
> "details"
> > argument is used for.
> >
> > Has anyone had more success with UI and/or CLI?
> >
> > Best regards,
> > Jordan
> >
>

Reply via email to