RE: Packer and Cloudstack

2019-04-05 Thread Andrija Panic
We have internal repo for this - builds for centos 6,7 ubuntu 14,16,18 and can 
be easily tuned to support different SCSI and NIC controllers for other 
hypervisors (atm build targets building vmware templates).
Were thinking making this public at some point in time...

andrija.pa...@shapeblue.com 
www.shapeblue.com
Amadeus House, Floral Street, London  WC2E 9DPUK
@shapeblue
  
 


-Original Message-
From: Nux!  
Sent: 05 April 2019 17:58
To: users 
Subject: Re: Packer and Cloudstack

It'd be nice to share with the mailing list, though.. ;-)

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

- Original Message -
> From: "Ivan Kudryavtsev" 
> To: "users" 
> Sent: Friday, 5 April, 2019 16:06:35
> Subject: Re: Packer and Cloudstack

> Hi, Swen.
> We use Packer for building templates (Ubuntu 16, 18, CentOS 7, Debian 9).
> Please contact me directly and I share what you need.
> 
> пт, 5 апр. 2019 г. в 10:54, Swen - swen.io :
> 
>> Hi all,
>>
>> does anybody have experience with Packer (www.packer.io)? I want to 
>> create templates using Packer and Cloudstack is supported. But I 
>> cannot find a way to use a preseed file to create a Debian/Ubuntu template.
>> Thanks for any help!
>>
>> cu Swen
>>
>>
>>
> 
> --
> With best regards, Ivan Kudryavtsev
> Bitworks LLC
> Cell RU: +7-923-414-1515
> Cell USA: +1-201-257-1512
> WWW: http://bitworks.software/ 


Re: Packer and Cloudstack

2019-04-05 Thread Nux!
It'd be nice to share with the mailing list, though.. ;-)

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

- Original Message -
> From: "Ivan Kudryavtsev" 
> To: "users" 
> Sent: Friday, 5 April, 2019 16:06:35
> Subject: Re: Packer and Cloudstack

> Hi, Swen.
> We use Packer for building templates (Ubuntu 16, 18, CentOS 7, Debian 9).
> Please contact me directly and I share what you need.
> 
> пт, 5 апр. 2019 г. в 10:54, Swen - swen.io :
> 
>> Hi all,
>>
>> does anybody have experience with Packer (www.packer.io)? I want to create
>> templates using Packer and Cloudstack is supported. But I cannot find a way
>> to use a preseed file to create a Debian/Ubuntu template.
>> Thanks for any help!
>>
>> cu Swen
>>
>>
>>
> 
> --
> With best regards, Ivan Kudryavtsev
> Bitworks LLC
> Cell RU: +7-923-414-1515
> Cell USA: +1-201-257-1512
> WWW: http://bitworks.software/ 


Re: Network metrics

2019-04-05 Thread Rakesh v
This include stats from virtual router as well since libvirt exporter use virsh 
libraries to fetch details. For libvirt, virual router is just another VM and 
so it will exporter those stats also.

Run virsh list and you will see virual router entry and using dommemstats or 
other commands you can see other detaila

Sent from my iPhone

On 05-Apr-2019, at 5:09 PM, Riepl, Gregor (SWISS TXT) 
 wrote:

>> You can use "libvirt exporter" to export all stats like cpu utilization,
>> memory consumption, disk read/write, network read/write and export it to
>> prometheus. From prometheus you can use grafana or other monitoring tools
>> to see all stats. We use exporter merger third party tool to merge all the
>> data from all the hypervisors and show it on dashboard. This way if any of
>> your vm is having issues, you can quickly look at graphs and troubleshoot
>> it.
> 
> Good point, but this won't cover metrics that are integral to the virtual 
> router.
> The hypervisor doesn't know about what a VM's network stack does.


Re: Network metrics

2019-04-05 Thread Nux!
What exactly did you have in mind? I mean other than bytes in and out.

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

- Original Message -
> From: "Riepl, Gregor (SWISS TXT)" 
> To: "users" 
> Sent: Friday, 5 April, 2019 16:09:18
> Subject: Re: Network metrics

>> You can use "libvirt exporter" to export all stats like cpu utilization,
>> memory consumption, disk read/write, network read/write and export it to
>> prometheus. From prometheus you can use grafana or other monitoring tools
>> to see all stats. We use exporter merger third party tool to merge all the
>> data from all the hypervisors and show it on dashboard. This way if any of
>> your vm is having issues, you can quickly look at graphs and troubleshoot
>> it.
> 
> Good point, but this won't cover metrics that are integral to the virtual
> router.
> The hypervisor doesn't know about what a VM's network stack does.


Re: Network metrics

2019-04-05 Thread Riepl, Gregor (SWISS TXT)
> You can use "libvirt exporter" to export all stats like cpu utilization,
> memory consumption, disk read/write, network read/write and export it to
> prometheus. From prometheus you can use grafana or other monitoring tools
> to see all stats. We use exporter merger third party tool to merge all the
> data from all the hypervisors and show it on dashboard. This way if any of
> your vm is having issues, you can quickly look at graphs and troubleshoot
> it.

Good point, but this won't cover metrics that are integral to the virtual 
router.
The hypervisor doesn't know about what a VM's network stack does.


Re: Packer and Cloudstack

2019-04-05 Thread Ivan Kudryavtsev
Hi, Swen.
We use Packer for building templates (Ubuntu 16, 18, CentOS 7, Debian 9).
Please contact me directly and I share what you need.

пт, 5 апр. 2019 г. в 10:54, Swen - swen.io :

> Hi all,
>
> does anybody have experience with Packer (www.packer.io)? I want to create
> templates using Packer and Cloudstack is supported. But I cannot find a way
> to use a preseed file to create a Debian/Ubuntu template.
> Thanks for any help!
>
> cu Swen
>
>
>

-- 
With best regards, Ivan Kudryavtsev
Bitworks LLC
Cell RU: +7-923-414-1515
Cell USA: +1-201-257-1512
WWW: http://bitworks.software/ 


Packer and Cloudstack

2019-04-05 Thread Swen - swen.io
Hi all,

does anybody have experience with Packer (www.packer.io)? I want to create
templates using Packer and Cloudstack is supported. But I cannot find a way
to use a preseed file to create a Debian/Ubuntu template.
Thanks for any help!

cu Swen




Re: Shutdown VM

2019-04-05 Thread Rakesh Venkatesh
Disable the HA for the vm by changing filed in vm_instance table and
shutdown the vm. The cloudstack wont restart it. That worked for me

On Fri, Apr 5, 2019 at 1:25 PM Alex Adati  wrote:

> Hello,
>
> I'm using a computational offering with HA enabled, and would like to know
> if there is any way to shut down the VM by the operating system.
>
> Thank's.
>
> Em sex, 5 de abr de 2019 às 04:54, Riepl, Gregor (SWISS TXT) <
> gregor.ri...@swisstxt.ch> escreveu:
>
> > > You should be using a computer offering with HA enabled.
> > > When you’re using this option, cloudstack will start vm until you
> > shutdown it by cloudstack interface (UI or api).
> >
> > I think you meant: You should NOT be using a compute offering with HA
> > enabled, right?
> >
>
>
> --
>


-- 
Thanks and regards
Rakesh venkatesh


Re: Network metrics

2019-04-05 Thread Rakesh Venkatesh
Hello Gregor


You can use "libvirt exporter" to export all stats like cpu utilization,
memory consumption, disk read/write, network read/write and export it to
prometheus. From prometheus you can use grafana or other monitoring tools
to see all stats. We use exporter merger third party tool to merge all the
data from all the hypervisors and show it on dashboard. This way if any of
your vm is having issues, you can quickly look at graphs and troubleshoot
it.

On Fri, Apr 5, 2019 at 10:01 AM Riepl, Gregor (SWISS TXT) <
gregor.ri...@swisstxt.ch> wrote:

> Hi,
>
> I recently discovered that CloudStack exposes certain VM metrics like disk
> I/O, network bandwidth, CPU load and (if the HV agent is installed) memory
> usage.
> Presumably, these are fetched directly from the hypervisor.
>
> However: I found no way to get the same statistics for system VMs, in
> particular virtual routers.
> Does the CloudStack API offer a way to obtain per-network metrics?
>
> Regards,
> Gregor



-- 
Thanks and regards
Rakesh venkatesh


Re: Network metrics

2019-04-05 Thread Riepl, Gregor (SWISS TXT)
> How I got stats for all VMs, including system ones, was to install 
> Prometheus, both the cloudstack and the libvirt exporter.
> I know it's "outside" Cloudstack, but may prove useful.

It looks like the Prometheus exporter is limited to per-zone statistics, though?
https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+Metrics+Exporter+for+Prometheus

But yes, we're probably better off with collecting the metrics directly from 
the hypervisor.

Previously, we installed a bunch of monitoring services inside the VRs, but I'd 
like to build a cleaner solution that doesn't require messing with the system 
VMs, if possible.

Since I'm also interested in other metrics besides the very basic ones (such as 
NAT table size, per-network stats in a VPC, etc.), I think it would be best if 
the VR template offered integrated monitoring capabilities.
Should I open a feature request for that?


Re: Network metrics

2019-04-05 Thread Nux!
Hi,

How I got stats for all VMs, including system ones, was to install Prometheus, 
both the cloudstack and the libvirt exporter.
I know it's "outside" Cloudstack, but may prove useful.

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

- Original Message -
> From: "Riepl, Gregor (SWISS TXT)" 
> To: "users" 
> Sent: Friday, 5 April, 2019 09:01:22
> Subject: Network metrics

> Hi,
> 
> I recently discovered that CloudStack exposes certain VM metrics like disk 
> I/O,
> network bandwidth, CPU load and (if the HV agent is installed) memory usage.
> Presumably, these are fetched directly from the hypervisor.
> 
> However: I found no way to get the same statistics for system VMs, in 
> particular
> virtual routers.
> Does the CloudStack API offer a way to obtain per-network metrics?
> 
> Regards,
> Gregor


Re: FreeNAS Secondary Storage anyone?

2019-04-05 Thread Nux!
Ok, found the problem and bug:

- it seems with NFS v4 everyone and their fuckin dog can mount a share, even 
with an address not in the exports ACL (input/output errors on everything then 
on)

- Cloudstack (Adv+SG) uses the guest network instead of the management network 
to mount the share (most likely a bug) - can't allow the guest network to mount 
nfs, any user VM could mount it and read/write everything.

Will open a bug report.

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

- Original Message -
> From: "Nux!" 
> To: "asender" 
> Cc: "users" 
> Sent: Friday, 5 April, 2019 13:39:57
> Subject: Re: FreeNAS Secondary Storage anyone?

> E pur non si muove...
> 
> Mounting the share as nfs4 under CentOS works just fine and ids are 0/0. On 
> the
> Debian sec stor VM it mounts, but operations lead to "input output error".
> 
> --
> Sent from the Delta quadrant using Borg technology!
> 
> Nux!
> www.nux.ro
> 
> - Original Message -
>> From: "Nux!" 
>> To: "asender" 
>> Cc: "users" 
>> Sent: Friday, 5 April, 2019 13:16:56
>> Subject: Re: FreeNAS Secondary Storage anyone?
> 
>> Indeed, apparently you also need to enable "NFSv3 ownership model for NFSv4" 
>> in
>> Services/NFS, but that seems to have done the trick.
>> 
>> Cheers
>> 
>> --
>> Sent from the Delta quadrant using Borg technology!
>> 
>> Nux!
>> www.nux.ro
>> 
>> - Original Message -
>>> From: "Nux!" 
>>> To: "asender" 
>>> Cc: "users" 
>>> Sent: Friday, 5 April, 2019 13:03:59
>>> Subject: Re: FreeNAS Secondary Storage anyone?
>> 
>>> Hi,
>>> 
>>> I had already tried that and failed. I'll try again, maybe I overlooked some
>>> detail.
>>> 
>>> Thanks
>>> 
>>> --
>>> Sent from the Delta quadrant using Borg technology!
>>> 
>>> Nux!
>>> www.nux.ro
>>> 
>>> - Original Message -
 From: "asender" 
 To: "users" 
 Cc: "Nux!" 
 Sent: Friday, 5 April, 2019 00:46:04
 Subject: Re: FreeNAS Secondary Storage anyone?
>>> 
 Hi Nux,
 
 I use FreeNAS-11.1-U4.
 
 NFS Share: /mnt/tank
 Under the /mnt/tank export I have directories like
 /mnt/tank/cloudstack/secondary.
 [root@cpms1 ~]# mount -t nfs 172.26.7.10:/mnt/tank/cloudstack/secondary
 /mnt/secondary/
 
 
 All Directories: [x] Allow mounting of any subdirectory under this mount
 point ifselected. Otherwise, only the top level directory can be
 mounted.
 Authorized networks: 172.26.7.0/24
 Mapall User: [root]
 Mapall Group: [wheel]
 
 Regards,
 Adrian Sender
 
 
 On 2019-04-04 23:09, Nux! wrote:
> Hi,
> 
> Has anyone managed to use FreeNAS for Secondary Storage?
> Can't seem to get past the no_root_squash requirement which I can't
> seem to enable on FreeNAS.
> 
> 
> --
> Sent from the Delta quadrant using Borg technology!
> 
> Nux!
> > > > > www.nux.ro


Re: Network metrics

2019-04-05 Thread Riepl, Gregor (SWISS TXT)
Hi Boris,

> I don’t think you could directly query for a VR, but you could specify a 
> network ID and it’ll list you all the metrics of VMs on that network. Then I 
> suppose you could work out a summary from that list.
> https://cloudstack.apache.org/api/apidocs-4.12/apis/listVirtualMachinesMetrics.html
> 
> by
> networkid   list by network id

Thanks, but that isn't quite what I'm looking for.
I'm particularly interested in internet traffic that goes through the router.

If I just add up the network bandwidth of the individual machines, that won't 
tell me anything about the incoming/outgoing traffic.

There should be a way to do this, as cloud-usage also records total network 
usage on the virtual router.

Regards,
Gregor

Re: FreeNAS Secondary Storage anyone?

2019-04-05 Thread Nux!
Hi,

I had already tried that and failed. I'll try again, maybe I overlooked some 
detail.

Thanks

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

- Original Message -
> From: "asender" 
> To: "users" 
> Cc: "Nux!" 
> Sent: Friday, 5 April, 2019 00:46:04
> Subject: Re: FreeNAS Secondary Storage anyone?

> Hi Nux,
> 
> I use FreeNAS-11.1-U4.
> 
> NFS Share: /mnt/tank
> Under the /mnt/tank export I have directories like
> /mnt/tank/cloudstack/secondary.
> [root@cpms1 ~]# mount -t nfs 172.26.7.10:/mnt/tank/cloudstack/secondary
> /mnt/secondary/
> 
> 
> All Directories: [x] Allow mounting of any subdirectory under this mount
> point ifselected. Otherwise, only the top level directory can be
> mounted.
> Authorized networks: 172.26.7.0/24
> Mapall User: [root]
> Mapall Group: [wheel]
> 
> Regards,
> Adrian Sender
> 
> 
> On 2019-04-04 23:09, Nux! wrote:
>> Hi,
>> 
>> Has anyone managed to use FreeNAS for Secondary Storage?
>> Can't seem to get past the no_root_squash requirement which I can't
>> seem to enable on FreeNAS.
>> 
>> 
>> --
>> Sent from the Delta quadrant using Borg technology!
>> 
>> Nux!
> > www.nux.ro


RE: Shutdown VM

2019-04-05 Thread Andrija Panic
No. CloudStack is not aware that you did shutdown VM from inside OS - 
CloudStack will consider a VM crashed, and will start it again.

Best
Andrija

andrija.pa...@shapeblue.com 
www.shapeblue.com
Amadeus House, Floral Street, London  WC2E 9DPUK
@shapeblue
  
 


-Original Message-
From: Alex Adati  
Sent: 05 April 2019 13:25
To: users@cloudstack.apache.org
Subject: Re: Shutdown VM

Hello,

I'm using a computational offering with HA enabled, and would like to know if 
there is any way to shut down the VM by the operating system.

Thank's.

Em sex, 5 de abr de 2019 às 04:54, Riepl, Gregor (SWISS TXT) < 
gregor.ri...@swisstxt.ch> escreveu:

> > You should be using a computer offering with HA enabled.
> > When you’re using this option, cloudstack will start vm until you
> shutdown it by cloudstack interface (UI or api).
>
> I think you meant: You should NOT be using a compute offering with HA 
> enabled, right?
>


--


Re: CloudStack NoVNC solution in Leaseweb

2019-04-05 Thread Sven Vogel
Hi Wei Zhou,

That would be great.

Thanks for that!

Greetings

Sven


__

Sven Vogel
Teamlead Platform

EWERK RZ GmbH
Br?hl 24, D-04109 Leipzig
P +49 341 42649 - 11
F +49 341 42649 - 18
s.vo...@ewerk.com
www.ewerk.com

Gesch?ftsf?hrer:
Dr. Erik Wende, Hendrik Schubert, Frank Richter, Gerhard Hoyer
Registergericht: Leipzig HRB 17023

Zertifiziert nach:
ISO/IEC 27001:2013
DIN EN ISO 9001:2015
DIN ISO/IEC 2-1:2011

EWERK-Blog | 
LinkedIn | 
Xing | 
Twitter | 
Facebook

Ausk?nfte und Angebote per Mail sind freibleibend und unverbindlich.

Disclaimer Privacy:
Der Inhalt dieser E-Mail (einschlie?lich etwaiger beigef?gter Dateien) ist 
vertraulich und nur f?r den Empf?nger bestimmt. Sollten Sie nicht der 
bestimmungsgem??e Empf?nger sein, ist Ihnen jegliche Offenlegung, 
Vervielf?ltigung, Weitergabe oder Nutzung des Inhalts untersagt. Bitte 
informieren Sie in diesem Fall unverz?glich den Absender und l?schen Sie die 
E-Mail (einschlie?lich etwaiger beigef?gter Dateien) von Ihrem System. Vielen 
Dank.

The contents of this e-mail (including any attachments) are confidential and 
may be legally privileged. If you are not the intended recipient of this 
e-mail, any disclosure, copying, distribution or use of its contents is 
strictly prohibited, and you should please notify the sender immediately and 
then delete it (including any attachments) from your system. Thank you.

Am 04.04.2019 um 13:06 schrieb Rohit Yadav 
mailto:rohit.ya...@shapeblue.com>>:

012 and we have made some changes since that. We have used it for more
than 7 years and it is very stable.



Re: Shutdown VM

2019-04-05 Thread Alex Adati
Hello,

I'm using a computational offering with HA enabled, and would like to know
if there is any way to shut down the VM by the operating system.

Thank's.

Em sex, 5 de abr de 2019 às 04:54, Riepl, Gregor (SWISS TXT) <
gregor.ri...@swisstxt.ch> escreveu:

> > You should be using a computer offering with HA enabled.
> > When you’re using this option, cloudstack will start vm until you
> shutdown it by cloudstack interface (UI or api).
>
> I think you meant: You should NOT be using a compute offering with HA
> enabled, right?
>


--


AW: Resource type for an ACL? (API)

2019-04-05 Thread peter.muryshkin
Hi, Anurag,

I have tested so far only as domain admin.

kind regards
Peter

Von: Anurag A [anuraga.i...@gmail.com]
Gesendet: Freitag, 5. April 2019 12:45
An: users@cloudstack.apache.org
Cc: anurag.awas...@shapeblue.com
Betreff: Re: Resource type for an ACL? (API)

Typo - Just to clarify - you are able to create tags as root admin and
domain admins but not as user?


On Fri, Apr 5, 2019 at 4:11 PM Anurag A  wrote:

> Hi Peter,
>
> Just to clarify - you unable to create tags as root admin and domain
> admins but not as user?
>
> That seems expected and there are some open issues around that too -
> https://github.com/apache/cloudstack/issues/2823
>
> May be someone else has more inputs on this so you can wait for their
> response.
>
> Thanks!
> Regards,
> Anurag
>
> On Fri, Apr 5, 2019 at 3:20 PM  wrote:
>
>>
>> Hi, Anurag,
>>
>> thank you for your quick response - as I've found out, I am actually NOT
>> able to create a tag.
>>
>> Error message:
>> "The user is not allowed to request the API command or the API command
>> does not exist"
>>
>> But, I tried it as a root user of an account - is tagging then allowed
>> for the global root admin only?
>>
>> Call:
>> result = self.cs.create_tags(resourceids=self.firewallruleid,
>> resourcetype='FirewallRule', tags = {'foo':'bar'})
>>
>> kind regards
>> Peter
>>
>> 
>> Von: Anurag Awasthi [anurag.awas...@shapeblue.com]
>> Gesendet: Freitag, 5. April 2019 07:04
>> An: Muryshkin, Peter; users@cloudstack.apache.org
>> Betreff: Re: Resource type for an ACL? (API)
>>
>> Hi Peter,
>>
>> Welcome to the community!
>>
>> I think you may be looking at "create tags resourcetype=networkacl  "
>> call.
>>
>> Kind Regards,
>> Anurag
>>
>> anurag.awas...@shapeblue.com
>> www.shapeblue.com
>> @shapeblue
>>
>>
>>
>>
>> 
>> From: peter.murysh...@zv.fraunhofer.de 
>> Sent: Thursday, April 4, 2019 8:31 PM
>> To: users@cloudstack.apache.org
>> Subject: Resource type for an ACL? (API)
>>
>> Hi, all,
>>
>> while I can create a tag for a firewall rule, I can't find the resource
>> name for network ACL item.
>>
>> Is it anyhow possible to set a tag there?
>>
>>
>> P.S. This is my first time I post to this mailing list, so hello
>> everybody - Apache CloudStack is really great and from the first impression
>> the community seems to be very enjoyable!
>>
>> kind regards
>> Peter
>>
>>
>>


Re: Resource type for an ACL? (API)

2019-04-05 Thread Anurag A
Typo - Just to clarify - you are able to create tags as root admin and
domain admins but not as user?


On Fri, Apr 5, 2019 at 4:11 PM Anurag A  wrote:

> Hi Peter,
>
> Just to clarify - you unable to create tags as root admin and domain
> admins but not as user?
>
> That seems expected and there are some open issues around that too -
> https://github.com/apache/cloudstack/issues/2823
>
> May be someone else has more inputs on this so you can wait for their
> response.
>
> Thanks!
> Regards,
> Anurag
>
> On Fri, Apr 5, 2019 at 3:20 PM  wrote:
>
>>
>> Hi, Anurag,
>>
>> thank you for your quick response - as I've found out, I am actually NOT
>> able to create a tag.
>>
>> Error message:
>> "The user is not allowed to request the API command or the API command
>> does not exist"
>>
>> But, I tried it as a root user of an account - is tagging then allowed
>> for the global root admin only?
>>
>> Call:
>> result = self.cs.create_tags(resourceids=self.firewallruleid,
>> resourcetype='FirewallRule', tags = {'foo':'bar'})
>>
>> kind regards
>> Peter
>>
>> 
>> Von: Anurag Awasthi [anurag.awas...@shapeblue.com]
>> Gesendet: Freitag, 5. April 2019 07:04
>> An: Muryshkin, Peter; users@cloudstack.apache.org
>> Betreff: Re: Resource type for an ACL? (API)
>>
>> Hi Peter,
>>
>> Welcome to the community!
>>
>> I think you may be looking at "create tags resourcetype=networkacl  "
>> call.
>>
>> Kind Regards,
>> Anurag
>>
>> anurag.awas...@shapeblue.com
>> www.shapeblue.com
>> @shapeblue
>>
>>
>>
>>
>> 
>> From: peter.murysh...@zv.fraunhofer.de 
>> Sent: Thursday, April 4, 2019 8:31 PM
>> To: users@cloudstack.apache.org
>> Subject: Resource type for an ACL? (API)
>>
>> Hi, all,
>>
>> while I can create a tag for a firewall rule, I can't find the resource
>> name for network ACL item.
>>
>> Is it anyhow possible to set a tag there?
>>
>>
>> P.S. This is my first time I post to this mailing list, so hello
>> everybody - Apache CloudStack is really great and from the first impression
>> the community seems to be very enjoyable!
>>
>> kind regards
>> Peter
>>
>>
>>


Re: Resource type for an ACL? (API)

2019-04-05 Thread Anurag A
Hi Peter,

Just to clarify - you unable to create tags as root admin and domain admins
but not as user?

That seems expected and there are some open issues around that too -
https://github.com/apache/cloudstack/issues/2823

May be someone else has more inputs on this so you can wait for their
response.

Thanks!
Regards,
Anurag

On Fri, Apr 5, 2019 at 3:20 PM  wrote:

>
> Hi, Anurag,
>
> thank you for your quick response - as I've found out, I am actually NOT
> able to create a tag.
>
> Error message:
> "The user is not allowed to request the API command or the API command
> does not exist"
>
> But, I tried it as a root user of an account - is tagging then allowed for
> the global root admin only?
>
> Call:
> result = self.cs.create_tags(resourceids=self.firewallruleid,
> resourcetype='FirewallRule', tags = {'foo':'bar'})
>
> kind regards
> Peter
>
> 
> Von: Anurag Awasthi [anurag.awas...@shapeblue.com]
> Gesendet: Freitag, 5. April 2019 07:04
> An: Muryshkin, Peter; users@cloudstack.apache.org
> Betreff: Re: Resource type for an ACL? (API)
>
> Hi Peter,
>
> Welcome to the community!
>
> I think you may be looking at "create tags resourcetype=networkacl  "
> call.
>
> Kind Regards,
> Anurag
>
> anurag.awas...@shapeblue.com
> www.shapeblue.com
> @shapeblue
>
>
>
>
> 
> From: peter.murysh...@zv.fraunhofer.de 
> Sent: Thursday, April 4, 2019 8:31 PM
> To: users@cloudstack.apache.org
> Subject: Resource type for an ACL? (API)
>
> Hi, all,
>
> while I can create a tag for a firewall rule, I can't find the resource
> name for network ACL item.
>
> Is it anyhow possible to set a tag there?
>
>
> P.S. This is my first time I post to this mailing list, so hello everybody
> - Apache CloudStack is really great and from the first impression the
> community seems to be very enjoyable!
>
> kind regards
> Peter
>
>
>


Re: Network metrics

2019-04-05 Thread Boris Stoyanov
Hi Gregor,

I don’t think you could directly query for a VR, but you could specify a 
network ID and it’ll list you all the metrics of VMs on that network. Then I 
suppose you could work out a summary from that list.
https://cloudstack.apache.org/api/apidocs-4.12/apis/listVirtualMachinesMetrics.html

by
networkid   list by network id

Regards,
Bobby.


boris.stoya...@shapeblue.com 
www.shapeblue.com
Amadeus House, Floral Street, London  WC2E 9DPUK
@shapeblue
  
 

On 5 Apr 2019, at 11:01, Riepl, Gregor (SWISS TXT) 
mailto:gregor.ri...@swisstxt.ch>> wrote:

Hi,

I recently discovered that CloudStack exposes certain VM metrics like disk I/O, 
network bandwidth, CPU load and (if the HV agent is installed) memory usage.
Presumably, these are fetched directly from the hypervisor.

However: I found no way to get the same statistics for system VMs, in 
particular virtual routers.
Does the CloudStack API offer a way to obtain per-network metrics?

Regards,
Gregor



AW: Resource type for an ACL? (API)

2019-04-05 Thread peter.muryshkin

Hi, Anurag,

thank you for your quick response - as I've found out, I am actually NOT able 
to create a tag.

Error message:
"The user is not allowed to request the API command or the API command does not 
exist"

But, I tried it as a root user of an account - is tagging then allowed for the 
global root admin only?

Call:
result = self.cs.create_tags(resourceids=self.firewallruleid, 
resourcetype='FirewallRule', tags = {'foo':'bar'})

kind regards
Peter


Von: Anurag Awasthi [anurag.awas...@shapeblue.com]
Gesendet: Freitag, 5. April 2019 07:04
An: Muryshkin, Peter; users@cloudstack.apache.org
Betreff: Re: Resource type for an ACL? (API)

Hi Peter,

Welcome to the community!

I think you may be looking at "create tags resourcetype=networkacl  " call.

Kind Regards,
Anurag

anurag.awas...@shapeblue.com
www.shapeblue.com
@shapeblue





From: peter.murysh...@zv.fraunhofer.de 
Sent: Thursday, April 4, 2019 8:31 PM
To: users@cloudstack.apache.org
Subject: Resource type for an ACL? (API)

Hi, all,

while I can create a tag for a firewall rule, I can't find the resource name 
for network ACL item.

Is it anyhow possible to set a tag there?


P.S. This is my first time I post to this mailing list, so hello everybody - 
Apache CloudStack is really great and from the first impression the community 
seems to be very enjoyable!

kind regards
Peter




RE: pci passthrough

2019-04-05 Thread Andrija Panic
Hi Piotr,

Have a look at a video from last London User Group that explains (beside other 
new things) passing extra configuration flags for KVM VM, which might give you 
an idea how you can achieve PCI passthrough: 
https://www.shapeblue.com/cloudstack-european-user-group-cseug-roundup-london-march-2019/
 - video from Bobby Stoyanov.

Basically, and admin needs to approve what kind of additional XML stuff can be 
sent (for security reasons), then user can consume that (i.e. pass additional 
URL encoded XML chunk).

Best,
Andrija

andrija.pa...@shapeblue.com 
www.shapeblue.com
Amadeus House, Floral Street, London  WC2E 9DPUK
@shapeblue
  
 


-Original Message-
From: Piotr Pisz  
Sent: 05 April 2019 08:37
To: users@cloudstack.apache.org
Subject: pci passthrough

Hello,

Is there a way to do pci passthrough to vm (eg. via VFIO/IOMMU)?

On this article:
https://www.shapeblue.com/openvswitch-with-dpdk-support-on-cloudstack/

There is talk of additional options sent to vm, can we use this to pci 
passthrough?

Regards,
Piotr




Network metrics

2019-04-05 Thread Riepl, Gregor (SWISS TXT)
Hi,

I recently discovered that CloudStack exposes certain VM metrics like disk I/O, 
network bandwidth, CPU load and (if the HV agent is installed) memory usage.
Presumably, these are fetched directly from the hypervisor.

However: I found no way to get the same statistics for system VMs, in 
particular virtual routers.
Does the CloudStack API offer a way to obtain per-network metrics?

Regards,
Gregor

Re: Shutdown VM

2019-04-05 Thread Riepl, Gregor (SWISS TXT)
> You should be using a computer offering with HA enabled.
> When you’re using this option, cloudstack will start vm until you shutdown it 
> by cloudstack interface (UI or api).

I think you meant: You should NOT be using a compute offering with HA enabled, 
right?


pci passthrough

2019-04-05 Thread Piotr Pisz
Hello,

Is there a way to do pci passthrough to vm (eg. via VFIO/IOMMU)?

On this article:
https://www.shapeblue.com/openvswitch-with-dpdk-support-on-cloudstack/

There is talk of additional options sent to vm, can we use this to pci 
passthrough?

Regards,
Piotr