RE: XCP-NG 8.2 LTS

2021-06-25 Thread Yordan Kostov
Hello Jermaine,

Long story short:
1. Install XCP-NG 8.2 
1.1. Make a a note of the name of the interface OR bond that is 
going to be used for management traffic (this can be seen when you go to 
CLUSTER -> networking tab
1.2. Make a note of the name of the interface OR bond that is 
going to be used for user/public traffic if it is different then the management
For example I use ETH0 for management and have bonded eth2 and eth3 and 
use that bond for Public and user traffic - https://imgur.com/nbV2aAu
So the labels here are MGMT and DATA.
2. If you use presetup storage (for example fiber) attach it as you 
usually do to the XCP cluster and note the name of the LUN in XenCenter.
3. Install Cloudstack somewhere (4.15) and deploy a zone by filling up 
the guide from start to end using the interface labels and the LUN name for 
primary storage.
4. Launch the zone deployment and wait for it to fail.
5. Cancel the wizard and go to Infrastruture tab. You will see that 
Zone, Pod, cluster and hosts are deployed.
6. select primary storage tab. Add new one with presetup type and fill 
in the storage LUN name. It will be added properly.
7. Deploy secondary storage (it was not deployed initially because the 
zone wizard was interrupted before that step)

You environment is now ready!

Note: the deployment guide should be edited as it says XenServer switch 
needs to be in bridge mode in order the system to work which is not correct as 
ACS fully supports OVS.
May be bridge mode is required for some specific network design setting 
which I am not aware of at the moment.

Best regards,
Jordan


-Original Message-
From: Jermaine Kendall  
Sent: Friday, June 25, 2021 10:49 PM
To: users@cloudstack.apache.org
Subject: Re: XCP-NG 8.2 LTS


[X] This message came from outside your organization


On 2021/05/05 09:50:58, Andrija Panic  wrote:
> If you use officially unsupported hypevisor with 4.14 (XCP-ng 8.2), 
> you will be missing the records in the guest_os_hypervisor table, and 
> that means your VMs would be i.e. started as PV instead of HVM etc.
>
> Be warned :)
>
> Best,
> Andrija
>
> On Wed, 5 May 2021 at 09:09, Yordan Kostov  wrote:
>
> > One more problem is that if you deploy a zone with presetup storage 
> > it will give an error when it is at the step when the storage is configured.
> > It is already fixed in 4.15.1:
> >
> > https://urldefense.com/v3/__https://github.com/apache/cloudstack/pul
> > l/4845__;!!A6UyJA!xbgZNCFeV-go7cGrUjQ---_MlaAER2Fdumg-cMdW4msQVKLQOh
> > yt15t8yi-mQoUBNEaGjZ6RgICA$
> >
> > Best regards,
> > Jordan
> >
> > -Original Message-
> > From: Dominik Czerepiński 
> > Sent: Tuesday, May 4, 2021 3:06 PM
> > To: users@cloudstack.apache.org
> > Subject: Re: XCP-NG 8.2 LTS
> >
> >
> > [X] This message came from outside your organization
> >
> >
> > Me. Works stable. One problem is if You don’t use SSL for 
> > consoleproxy change noVNC to older version.
> >
> > Wysłane z iPhone'a
> >
> > > Wiadomość napisana przez Matheus Fontes  w 
> > > dniu
> > 04.05.2021, o godz. 03:18:
> > >
> > > I saw in cloudstack 4.15 documentation that it supports xcp-ng 
> > > 8.1 Does someone tried 8.2 LTS version?
> > >
> > > thanks
> > > Matheus Fontes
> >
>
>
> --
>
> Andrija Panić
> Hi, I have a few questions with regard to setting up xcp-ng with cloudstack, 
> I have never been successful so far. I followed the xenserver hypervisor 
> setup and ran into some issues. Do you have any instructions specifically for 
> setting up XCP-NG with cloudstack? Also is the CSP package needed for XCP-NG 
> becuase the download link is no longer available. The network labels, are 
> they necessary and why can't I use the default networking for XCP-NG which is 
> OVS?


Re: XCP-NG 8.2 LTS

2021-06-25 Thread Jermaine Kendall



On 2021/05/05 09:50:58, Andrija Panic  wrote: 
> If you use officially unsupported hypevisor with 4.14 (XCP-ng 8.2), you
> will be missing the records in the guest_os_hypervisor table, and that
> means your VMs would be i.e. started as PV instead of HVM etc.
> 
> Be warned :)
> 
> Best,
> Andrija
> 
> On Wed, 5 May 2021 at 09:09, Yordan Kostov  wrote:
> 
> > One more problem is that if you deploy a zone with presetup storage it
> > will give an error when it is at the step when the storage is configured.
> > It is already fixed in 4.15.1:
> >
> > https://github.com/apache/cloudstack/pull/4845
> >
> > Best regards,
> > Jordan
> >
> > -Original Message-
> > From: Dominik Czerepiński 
> > Sent: Tuesday, May 4, 2021 3:06 PM
> > To: users@cloudstack.apache.org
> > Subject: Re: XCP-NG 8.2 LTS
> >
> >
> > [X] This message came from outside your organization
> >
> >
> > Me. Works stable. One problem is if You don’t use SSL for consoleproxy
> > change noVNC to older version.
> >
> > Wysłane z iPhone'a
> >
> > > Wiadomość napisana przez Matheus Fontes  w dniu
> > 04.05.2021, o godz. 03:18:
> > >
> > > I saw in cloudstack 4.15 documentation that it supports xcp-ng 8.1
> > > Does someone tried 8.2 LTS version?
> > >
> > > thanks
> > > Matheus Fontes
> >
> 
> 
> -- 
> 
> Andrija Panić
> Hi, I have a few questions with regard to setting up xcp-ng with cloudstack, 
> I have never been successful so far. I followed the xenserver hypervisor 
> setup and ran into some issues. Do you have any instructions specifically for 
> setting up XCP-NG with cloudstack? Also is the CSP package needed for XCP-NG 
> becuase the download link is no longer available. The network labels, are 
> they necessary and why can't I use the default networking for XCP-NG which is 
> OVS?


Re: Cloudstack Usage --- not owner

2021-06-25 Thread Hean Seng
Hi

yes, there are traffic running at the interface .  I not sure the logic
behind on calculating the data, if not would be easy to troubleshoot.




On Fri, Jun 25, 2021 at 10:54 PM Daan Hoogland 
wrote:

> if you look at the hypervisors, do you see traffic data for the nics there?
>
> On Fri, Jun 25, 2021 at 4:32 PM Hean Seng  wrote:
>
> > Yes, thats right,  I am Advance zone with  Security Group,  and Shared
> > Network with Public IP range, However, I had  change value of
> > vm.network.stats.interval.
> > so that calculate the Lan traffic of the Network Interface . So it should
> > work for calculating all traffic incur in the network interface .   But
> > seems not, about 50% of it not calculating.
> >
> >
> >
> > On Fri, Jun 25, 2021 at 9:51 PM Daan Hoogland 
> > wrote:
> >
> > > The only thing I can think of is that the VM is not on a network that
> > > provides routing. for instance in a basic zone or on a shared network
> > with
> > > a public ip range.
> > >
> > > On Fri, Jun 25, 2021 at 12:23 PM Hean Seng  wrote:
> > >
> > > > HI Daan
> > > >
> > > >
> > > > My usage record have this , this is one of the example that do not
> > have.
> > > > record of type 4 and 5, but have type 1,
> > > >
> > > > select * from usage_event where account_id=3391;
> > > >
> > > >
> > > >
> > >
> >
> ---+-++-+-+-++-+-+-++---+--+
> > > >
> > > > | id| type| account_id | created
>  |
> > > > zone_id | resource_id | resource_name  | offering_id |
> template_id
> > |
> > > > size| resource_type  | processed | virtual_size |
> > > >
> > > >
> > > >
> > >
> >
> +---+-++-+-+-++-+-+-++---+--+
> > > >
> > > > | 75910 | NET.IPASSIGN|   3391 | 2021-05-06 10:16:55
> |
> > > >   1 |2396 | 11.11.1.11  |NULL |   0 |
> > > >  0
> > > > | DirectAttached | 1 | NULL |
> > > >
> > > > | 75911 | VOLUME.CREATE   |   3391 | 2021-05-06 10:16:55
> |
> > > >   1 |6472 | ROOT-3649  |NULL | 210 |
> > > > 21474836480 | NULL   | 1 | NULL |
> > > >
> > > > | 75912 | VM.CREATE   |   3391 | 2021-05-06 10:16:55
> |
> > > >   1 |3649 | VM-38629-vasuflor |  51 | 210 |
> > > > NULL
> > > > | KVM| 1 | NULL |
> > > >
> > > > | 75913 | NETWORK.OFFERING.ASSIGN |   3391 | 2021-05-06 10:17:06
> |
> > > >   1 |3649 | 3753   |   6 |NULL |
> > > > 1 | NULL   | 1 | NULL |
> > > >
> > > > | 75914 | SG.ASSIGN   |   3391 | 2021-05-06 10:17:06
> |
> > > >   1 |3649 | NULL   |3664 |NULL |
> > > >  NULL
> > > > | NULL   | 1 | NULL |
> > > >
> > > > | 75915 | VM.START|   3391 | 2021-05-06 10:17:06
> |
> > > >   1 |3649 | VM-38629-vasuflor |  51 | 210 |
> > > > NULL
> > > > | KVM| 1 | NULL |
> > > >
> > > >
> > > >
> > >
> >
> +---+-++-+-+-++-+-+-++---+--+
> > > >
> > > > 6 row
> > > >
> > > > mysql> select * from usage_network where account_id=3391;
> > > >
> > > > Empty set (0.00 sec)
> > > >
> > > >
> > > >
> > > > mysql> select * from usage_network_offering where  account_id=3391
> > > >
> > > > -> ;
> > > >
> > > >
> > > >
> > >
> >
> +-++---++-++-+-++
> > > >
> > > > | zone_id | account_id | domain_id | vm_instance_id |
> > > network_offering_id |
> > > > is_default | created | deleted | nic_id |
> > > >
> > > >
> > > >
> > >
> >
> +-++---++-++-+-++
> > > >
> > > > |   1 |   3391 |  3383 |   3649 |
> > >  6 |
> > > > 1 | 2021-05-06 10:17:06 | NULL|   3753 |
> > > >
> > > >
> > > >
> > >
> >
> +-++---++-++-+-++
> > > >
> > > > 1 row in set (0.01 sec)
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On Fri, Jun 25, 2021 at 3:40 PM Daan Hoogland <
> daan.hoogl...@gmail.com
> > >
> > > > wrote:
> > > >
> > > > > Hean,
> > > > > To be honest, no i don't. You can start looking at any log records
> > > > related
> > > > > to the VMs and than 

Re: Cloudstack Usage --- not owner

2021-06-25 Thread Daan Hoogland
if you look at the hypervisors, do you see traffic data for the nics there?

On Fri, Jun 25, 2021 at 4:32 PM Hean Seng  wrote:

> Yes, thats right,  I am Advance zone with  Security Group,  and Shared
> Network with Public IP range, However, I had  change value of
> vm.network.stats.interval.
> so that calculate the Lan traffic of the Network Interface . So it should
> work for calculating all traffic incur in the network interface .   But
> seems not, about 50% of it not calculating.
>
>
>
> On Fri, Jun 25, 2021 at 9:51 PM Daan Hoogland 
> wrote:
>
> > The only thing I can think of is that the VM is not on a network that
> > provides routing. for instance in a basic zone or on a shared network
> with
> > a public ip range.
> >
> > On Fri, Jun 25, 2021 at 12:23 PM Hean Seng  wrote:
> >
> > > HI Daan
> > >
> > >
> > > My usage record have this , this is one of the example that do not
> have.
> > > record of type 4 and 5, but have type 1,
> > >
> > > select * from usage_event where account_id=3391;
> > >
> > >
> > >
> >
> ---+-++-+-+-++-+-+-++---+--+
> > >
> > > | id| type| account_id | created |
> > > zone_id | resource_id | resource_name  | offering_id | template_id
> |
> > > size| resource_type  | processed | virtual_size |
> > >
> > >
> > >
> >
> +---+-++-+-+-++-+-+-++---+--+
> > >
> > > | 75910 | NET.IPASSIGN|   3391 | 2021-05-06 10:16:55 |
> > >   1 |2396 | 11.11.1.11  |NULL |   0 |
> > >  0
> > > | DirectAttached | 1 | NULL |
> > >
> > > | 75911 | VOLUME.CREATE   |   3391 | 2021-05-06 10:16:55 |
> > >   1 |6472 | ROOT-3649  |NULL | 210 |
> > > 21474836480 | NULL   | 1 | NULL |
> > >
> > > | 75912 | VM.CREATE   |   3391 | 2021-05-06 10:16:55 |
> > >   1 |3649 | VM-38629-vasuflor |  51 | 210 |
> > > NULL
> > > | KVM| 1 | NULL |
> > >
> > > | 75913 | NETWORK.OFFERING.ASSIGN |   3391 | 2021-05-06 10:17:06 |
> > >   1 |3649 | 3753   |   6 |NULL |
> > > 1 | NULL   | 1 | NULL |
> > >
> > > | 75914 | SG.ASSIGN   |   3391 | 2021-05-06 10:17:06 |
> > >   1 |3649 | NULL   |3664 |NULL |
> > >  NULL
> > > | NULL   | 1 | NULL |
> > >
> > > | 75915 | VM.START|   3391 | 2021-05-06 10:17:06 |
> > >   1 |3649 | VM-38629-vasuflor |  51 | 210 |
> > > NULL
> > > | KVM| 1 | NULL |
> > >
> > >
> > >
> >
> +---+-++-+-+-++-+-+-++---+--+
> > >
> > > 6 row
> > >
> > > mysql> select * from usage_network where account_id=3391;
> > >
> > > Empty set (0.00 sec)
> > >
> > >
> > >
> > > mysql> select * from usage_network_offering where  account_id=3391
> > >
> > > -> ;
> > >
> > >
> > >
> >
> +-++---++-++-+-++
> > >
> > > | zone_id | account_id | domain_id | vm_instance_id |
> > network_offering_id |
> > > is_default | created | deleted | nic_id |
> > >
> > >
> > >
> >
> +-++---++-++-+-++
> > >
> > > |   1 |   3391 |  3383 |   3649 |
> >  6 |
> > > 1 | 2021-05-06 10:17:06 | NULL|   3753 |
> > >
> > >
> > >
> >
> +-++---++-++-+-++
> > >
> > > 1 row in set (0.01 sec)
> > >
> > >
> > >
> > >
> > >
> > > On Fri, Jun 25, 2021 at 3:40 PM Daan Hoogland  >
> > > wrote:
> > >
> > > > Hean,
> > > > To be honest, no i don't. You can start looking at any log records
> > > related
> > > > to the VMs and than track to their nics. Also look at the
> > > > usage_event-table, to see if any records are there. First in the
> cloud
> > > DB,
> > > > and if these are there in the cloud_usage DB.
> > > > Sorry to not have an obviously useful clue for you.
> > > >
> > > > On Thu, Jun 24, 2021 at 7:49 PM Hean Seng 
> wrote:
> > > >
> > > > > Hi Daan,
> > > > >
> > > > > Thanks for reply.  I deleted the null record, and manage to make it
> > > work
> > > > > again.  The it will auto generate back the record with correct 

Re: Cloudstack Usage --- not owner

2021-06-25 Thread Hean Seng
Yes, thats right,  I am Advance zone with  Security Group,  and Shared
Network with Public IP range, However, I had  change value of
vm.network.stats.interval.
so that calculate the Lan traffic of the Network Interface . So it should
work for calculating all traffic incur in the network interface .   But
seems not, about 50% of it not calculating.



On Fri, Jun 25, 2021 at 9:51 PM Daan Hoogland 
wrote:

> The only thing I can think of is that the VM is not on a network that
> provides routing. for instance in a basic zone or on a shared network with
> a public ip range.
>
> On Fri, Jun 25, 2021 at 12:23 PM Hean Seng  wrote:
>
> > HI Daan
> >
> >
> > My usage record have this , this is one of the example that do not have.
> > record of type 4 and 5, but have type 1,
> >
> > select * from usage_event where account_id=3391;
> >
> >
> >
> ---+-++-+-+-++-+-+-++---+--+
> >
> > | id| type| account_id | created |
> > zone_id | resource_id | resource_name  | offering_id | template_id |
> > size| resource_type  | processed | virtual_size |
> >
> >
> >
> +---+-++-+-+-++-+-+-++---+--+
> >
> > | 75910 | NET.IPASSIGN|   3391 | 2021-05-06 10:16:55 |
> >   1 |2396 | 11.11.1.11  |NULL |   0 |
> >  0
> > | DirectAttached | 1 | NULL |
> >
> > | 75911 | VOLUME.CREATE   |   3391 | 2021-05-06 10:16:55 |
> >   1 |6472 | ROOT-3649  |NULL | 210 |
> > 21474836480 | NULL   | 1 | NULL |
> >
> > | 75912 | VM.CREATE   |   3391 | 2021-05-06 10:16:55 |
> >   1 |3649 | VM-38629-vasuflor |  51 | 210 |
> > NULL
> > | KVM| 1 | NULL |
> >
> > | 75913 | NETWORK.OFFERING.ASSIGN |   3391 | 2021-05-06 10:17:06 |
> >   1 |3649 | 3753   |   6 |NULL |
> > 1 | NULL   | 1 | NULL |
> >
> > | 75914 | SG.ASSIGN   |   3391 | 2021-05-06 10:17:06 |
> >   1 |3649 | NULL   |3664 |NULL |
> >  NULL
> > | NULL   | 1 | NULL |
> >
> > | 75915 | VM.START|   3391 | 2021-05-06 10:17:06 |
> >   1 |3649 | VM-38629-vasuflor |  51 | 210 |
> > NULL
> > | KVM| 1 | NULL |
> >
> >
> >
> +---+-++-+-+-++-+-+-++---+--+
> >
> > 6 row
> >
> > mysql> select * from usage_network where account_id=3391;
> >
> > Empty set (0.00 sec)
> >
> >
> >
> > mysql> select * from usage_network_offering where  account_id=3391
> >
> > -> ;
> >
> >
> >
> +-++---++-++-+-++
> >
> > | zone_id | account_id | domain_id | vm_instance_id |
> network_offering_id |
> > is_default | created | deleted | nic_id |
> >
> >
> >
> +-++---++-++-+-++
> >
> > |   1 |   3391 |  3383 |   3649 |
>  6 |
> > 1 | 2021-05-06 10:17:06 | NULL|   3753 |
> >
> >
> >
> +-++---++-++-+-++
> >
> > 1 row in set (0.01 sec)
> >
> >
> >
> >
> >
> > On Fri, Jun 25, 2021 at 3:40 PM Daan Hoogland 
> > wrote:
> >
> > > Hean,
> > > To be honest, no i don't. You can start looking at any log records
> > related
> > > to the VMs and than track to their nics. Also look at the
> > > usage_event-table, to see if any records are there. First in the cloud
> > DB,
> > > and if these are there in the cloud_usage DB.
> > > Sorry to not have an obviously useful clue for you.
> > >
> > > On Thu, Jun 24, 2021 at 7:49 PM Hean Seng  wrote:
> > >
> > > > Hi Daan,
> > > >
> > > > Thanks for reply.  I deleted the null record, and manage to make it
> > work
> > > > again.  The it will auto generate back the record with correct ID .
> > > >
> > > >
> > > > However, I am facing the issue is the Usage Type 4, and 5   (Network
> > sent
> > > > and received) are not populated .  Other Type like Type1 is always
> > > working.
> > > >
> > > > Fyi, I am using share network, and set the parameter
> > > > vm.network.stats.interval=300
> > > > so that the VM statistic is updated .
> > > >
> > > > This issue not happen on all VM, 

DEBUG message: Cannot release reservation, Found VM: VM[User|i-5-106-VM] Stopped but reserved on host 1. How to fixed?

2021-06-25 Thread Kalil de Albuquerque Carvalho

Hello all.

Some days ago I asked how to release the resources when my instances 
been halted. A member reply me with "host.reservation.release.period" 
setting, on global configuration. I changed to 5, the statement, reboot 
the CloudStack service but it is not releasing the resources and it is 
showing me this messages in the management server:


2021-06-25 09:45:54,680 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
(HostReservationReleaseChecker:ctx-6a943f41) (logid:fa97e34d) Checking 
if any host reservation can be released ...
2021-06-25 09:45:54,686 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
(HostReservationReleaseChecker:ctx-6a943f41) (logid:fa97e34d) Cannot 
release reservation, Found VM: VM[User|i-5-106-VM] Stopped but reserved 
on host 1
2021-06-25 09:45:54,691 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
(HostReservationReleaseChecker:ctx-6a943f41) (logid:fa97e34d) Cannot 
release reservation, Found VM: VM[User|i-2-105-VM] Stopped but reserved 
on host 3
2021-06-25 09:45:54,695 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
(HostReservationReleaseChecker:ctx-6a943f41) (logid:fa97e34d) Cannot 
release reservation, Found 1 VMs Running on host 4
2021-06-25 09:45:54,700 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
(HostReservationReleaseChecker:ctx-6a943f41) (logid:fa97e34d) Cannot 
release reservation, Found 3 VMs Running on host 5



this situation keep going and not release the resources.

All my instances are halted, just System VM's and Virtual Routers are 
running.


My environment is:

What am I doing wrong?

Where can I fix this?

CloudStack: 4.15

Distro: CentOS 7.9

Kernel: 3.10.0-1160.25.1.el7.x86_64

Best regards.




Re: Cloudstack Usage --- not owner

2021-06-25 Thread Daan Hoogland
The only thing I can think of is that the VM is not on a network that
provides routing. for instance in a basic zone or on a shared network with
a public ip range.

On Fri, Jun 25, 2021 at 12:23 PM Hean Seng  wrote:

> HI Daan
>
>
> My usage record have this , this is one of the example that do not have.
> record of type 4 and 5, but have type 1,
>
> select * from usage_event where account_id=3391;
>
>
> ---+-++-+-+-++-+-+-++---+--+
>
> | id| type| account_id | created |
> zone_id | resource_id | resource_name  | offering_id | template_id |
> size| resource_type  | processed | virtual_size |
>
>
> +---+-++-+-+-++-+-+-++---+--+
>
> | 75910 | NET.IPASSIGN|   3391 | 2021-05-06 10:16:55 |
>   1 |2396 | 11.11.1.11  |NULL |   0 |
>  0
> | DirectAttached | 1 | NULL |
>
> | 75911 | VOLUME.CREATE   |   3391 | 2021-05-06 10:16:55 |
>   1 |6472 | ROOT-3649  |NULL | 210 |
> 21474836480 | NULL   | 1 | NULL |
>
> | 75912 | VM.CREATE   |   3391 | 2021-05-06 10:16:55 |
>   1 |3649 | VM-38629-vasuflor |  51 | 210 |
> NULL
> | KVM| 1 | NULL |
>
> | 75913 | NETWORK.OFFERING.ASSIGN |   3391 | 2021-05-06 10:17:06 |
>   1 |3649 | 3753   |   6 |NULL |
> 1 | NULL   | 1 | NULL |
>
> | 75914 | SG.ASSIGN   |   3391 | 2021-05-06 10:17:06 |
>   1 |3649 | NULL   |3664 |NULL |
>  NULL
> | NULL   | 1 | NULL |
>
> | 75915 | VM.START|   3391 | 2021-05-06 10:17:06 |
>   1 |3649 | VM-38629-vasuflor |  51 | 210 |
> NULL
> | KVM| 1 | NULL |
>
>
> +---+-++-+-+-++-+-+-++---+--+
>
> 6 row
>
> mysql> select * from usage_network where account_id=3391;
>
> Empty set (0.00 sec)
>
>
>
> mysql> select * from usage_network_offering where  account_id=3391
>
> -> ;
>
>
> +-++---++-++-+-++
>
> | zone_id | account_id | domain_id | vm_instance_id | network_offering_id |
> is_default | created | deleted | nic_id |
>
>
> +-++---++-++-+-++
>
> |   1 |   3391 |  3383 |   3649 |   6 |
> 1 | 2021-05-06 10:17:06 | NULL|   3753 |
>
>
> +-++---++-++-+-++
>
> 1 row in set (0.01 sec)
>
>
>
>
>
> On Fri, Jun 25, 2021 at 3:40 PM Daan Hoogland 
> wrote:
>
> > Hean,
> > To be honest, no i don't. You can start looking at any log records
> related
> > to the VMs and than track to their nics. Also look at the
> > usage_event-table, to see if any records are there. First in the cloud
> DB,
> > and if these are there in the cloud_usage DB.
> > Sorry to not have an obviously useful clue for you.
> >
> > On Thu, Jun 24, 2021 at 7:49 PM Hean Seng  wrote:
> >
> > > Hi Daan,
> > >
> > > Thanks for reply.  I deleted the null record, and manage to make it
> work
> > > again.  The it will auto generate back the record with correct ID .
> > >
> > >
> > > However, I am facing the issue is the Usage Type 4, and 5   (Network
> sent
> > > and received) are not populated .  Other Type like Type1 is always
> > working.
> > >
> > > Fyi, I am using share network, and set the parameter
> > > vm.network.stats.interval=300
> > > so that the VM statistic is updated .
> > >
> > > This issue not happen on all VM, but part of it. ( about 50%) .  I
> > > tried look at the DB, and seem cannot find the clue what actually diff
> ,
> > in
> > > term of those updated and those is not.
> > >
> > > The record is appearing in usage_network_offering and seems good.  Do
> you
> > > have any idea of this ?
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > On Mon, Jun 21, 2021 at 3:19 PM Daan Hoogland  >
> > > wrote:
> > >
> > > > Sorry Hean, wasn't on line most of the weekend, Is it running now?
> > > > as you wrote this two days ago, it should already have run twice
> > > (assuming
> > > > you didn't change a lot)
> > > >
> > > > On Sat, Jun 

Re: User certificate - Cloudmonkey API keys?

2021-06-25 Thread Jeremy Hansen
Beautiful.  Thank you so much!  Exactly what I needed.

So what is the user certificates used for?

-jeremy


> On Jun 25, 2021, at 3:59 AM, Slavka Peleva  
> wrote:
> 
> Hi Jeremy,
> 
> As far as I understand, from your second screenshot get into the View Users 
> -> required user-> user menu and there is an option to generate keys
> 
> Best regards,
> Slavka
> 
> On Fri, Jun 25, 2021 at 12:45 PM Jeremy Hansen  > wrote:
> It seems to have a problem when I use a certificate with a passphrase.  Using 
> -nodes seems to work.  I don’t understand though since the form in the 
> interface has a place to put your passphrase.
> 
> What I’m trying to do here is use Cloudmonkey with api keys, but I see 
> nothing in Cloudstack to generate these keys:
> 
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+cloudmonkey+CLI#CloudStackcloudmonkeyCLI-Gettingstarted
>  
> 
> 
> Maybe this is referencing an older version of Cloudstack?  Nothing in the 
> users section from what I can see mentions anything about generating api keys.
> 
> 
> 
> 
> 
> 
> I see nothing about generating api keys.
> 
> -jeremy
> 
> 
>> On Jun 25, 2021, at 12:30 AM, Daan Hoogland > > wrote:
>> 
>> Jeremy,
>> It seems to me you are creating a certificate request with that command and 
>> not a certificate. What file(s) did you try to upload?
>> Google "creating keys and certificates" to get some clues about how to 
>> create those.
>> regards,
>> 
>> On Thu, Jun 24, 2021 at 9:57 AM Jeremy Hansen > > wrote:
>> I’m trying to understand how to generate a user certificate.  I can’t seem 
>> to find very much information.
>> 
>> 
>> 
>> 
>> I tried:
>> 
>> openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
>> 
>> but the output just results in an error:
>> 
>> 
>> 
>> Any clues?
>> 
>> Thanks
>> -jeremy
>> 
>> 
>> 
>> --
>> Daan
> 



signature.asc
Description: Message signed with OpenPGP


Re: User certificate - Cloudmonkey API keys?

2021-06-25 Thread Slavka Peleva
Hi Jeremy,

As far as I understand, from your second screenshot get into the View Users
-> required user-> user menu and there is an option to generate keys

Best regards,
Slavka

On Fri, Jun 25, 2021 at 12:45 PM Jeremy Hansen  wrote:

> It seems to have a problem when I use a certificate with a passphrase.
> Using -nodes seems to work.  I don’t understand though since the form in
> the interface has a place to put your passphrase.
>
> What I’m trying to do here is use Cloudmonkey with api keys, but I see
> nothing in Cloudstack to generate these keys:
>
>
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+cloudmonkey+CLI#CloudStackcloudmonkeyCLI-Gettingstarted
>
> Maybe this is referencing an older version of Cloudstack?  Nothing in the
> users section from what I can see mentions anything about generating api
> keys.
>
>
>
>
> I see nothing about generating api keys.
>
> -jeremy
>
>
> On Jun 25, 2021, at 12:30 AM, Daan Hoogland 
> wrote:
>
> Jeremy,
> It seems to me you are creating a certificate request with that command
> and not a certificate. What file(s) did you try to upload?
> Google "creating keys and certificates" to get some clues about how to
> create those.
> regards,
>
> On Thu, Jun 24, 2021 at 9:57 AM Jeremy Hansen  wrote:
>
>> I’m trying to understand how to generate a user certificate.  I can’t
>> seem to find very much information.
>>
>>
>>
>> I tried:
>>
>> openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
>>
>> but the output just results in an error:
>>
>>
>> Any clues?
>>
>> Thanks
>> -jeremy
>>
>>
>
> --
> Daan
>
>
>


RE: [!!Mass Mail]RE: Securing CloudStack

2021-06-25 Thread Yordan Kostov
Alright here is what I came up with. This is NOT tested. Let me know if it 
works or where issues arise if it does not.

Prerequisites:
- URL of choice for our landing page - https://acs.sarifindustries.com
- public network range 10.10.10.10 to 10.10.10.19 for the zone
- Generate a key and certificate where during generation process specify the 
common name as wildcard  *. acs.sarifindustries.com
--- # openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem

### SECURING SYSTEM VM COMMUNICATION VIA SELF-SIGNED CERTIFICATE ###

1. Setup communication between ACS and SSVM and user and SSVM to encrypted 
channel
  In ACS global config;
- set consoleproxy.url.domain to *. acs.sarifindustries.com
- consoleproxy.sslEnabled to true
- secstorage.ssl.cert.domain to *. acs.sarifindustries.com
- secstorage.ssl.cert.domain to true

  Restart the management service
  # systemctl restart cloudstack-management

Now users will access SSVMs (for console proxy or ISO/template upload 
purposes) through FQDN instead of IP so put the ip to fqdn matches listed below 
in your DNS.
This must be the DNS the alternative is to put it in the host file of 
the ACS and of every-user-that-will-access-it host file.
10.10.10.10 10-10-10-10.acs.sarifindustries.com
10.10.10.11 10-10-10-11.acs.sarifindustries.com
10.10.10.12 10-10-10-12.acs.sarifindustries.com
10.10.10.13 10-10-10-13.acs.sarifindustries.com
10.10.10.14 10-10-10-14.acs.sarifindustries.com
10.10.10.15 10-10-10-15.acs.sarifindustries.com
10.10.10.16 10-10-10-16.acs.sarifindustries.com
10.10.10.17 10-10-10-17.acs.sarifindustries.com
10.10.10.18 10-10-10-18.acs.sarifindustries.com
10.10.10.19 10-10-10-19.acs.sarifindustries.com

2. Upload keys/certificates from step 1 via cloudmonkey:
 Here the certificate chain should be uploaded (Server -> SUB-CA -> 
ROOT-CA) but as this is self-signed certificate use just that.  
NOTE: This is the step that I consider the caveat as the first 
certificate import requires a chain of certificates. If this guide does not 
work the issue is probably here as if you do this step in the GUI, ROOT 
certificate must be imported.

cloudmonkey upload customcertificate id=1 
name=sarifindustriescert certificate='-BEGIN CERTIFICATE-
IIE0DCCsdf8HqjeIHgkqhkiG9w0BAQsF
-END CERTIFICATE-'
domainsuffix='*. acs.sarifindustries.com'

Upload certificate + private key pair:

cloudmonkey upload customcertificate id=2 
certificate='-BEGIN CERTIFICATE-
MIIGrjCCBZagAwIBAgIJAJ
...xKjPTkOLfwMVWXc8Ul25t7lkyi0+a9jZxFAuDXFRgkQnbw==
-END CERTIFICATE-'
privatekey='-BEGIN PRIVATE KEY-
MIIEvEbidvik1gkqhkiG9w0BAQEFAASCBK
.rEF5Qyuyserre87d234jj/Uddf
-END PRIVATE KEY-'
domainsuffix='*. acs.sarifindustries.com'

3. Reboot system VMs 
4. Import the Sarrifindustries certificates in the user PC truststore so the 
browser can acknowledge the connection as secure.
5. Test according to step "Testing the TLS protected system VMs" in this guide 
- https://www.shapeblue.com/securing-cloudstack-4-11-with-https-tls/

### SECURING GUI VIA SELF-SIGNED CERTIFICATE ###

1. Convert key/certificate to PKCS12
# openssl pkcs12 -export -inkey sarifindustries.key -in sarifindustries.crt 
-out sarifindustries.pkcs12

2. Convert the PKCS12 into java keystore
# keytool -importkeystore -srckeystore sarifindustries.pkcs12 -srcstoretype 
PKCS12 -destkeystore /etc/cloudstack/management/keystore.pkcs12 -deststoretype 
pkcs12

During the convertions you will be asked to set a password. Keep that around.

3. Enable ACS GUI HTTPS by editing the following rows in 
/etc/cloudstack/management/server.properties:
https.enable=true
https.keystore=/etc/cloudstack/management/keystore.pkcs12
https.keystore.password=

4. Restart the management service
# systemctl restart cloudstack-management

5. Import the Sarrifindustries certificates in the user PC truststore (unless 
done from the first guide) so the browser can acknowledge the connection as 
secure.
6. Open GUI and verify secure connection.

Best regards,
Jordan 

-Original Message-
From: Yordan Kostov 
Sent: Thursday, June 24, 2021 12:16 PM
To: 'users@cloudstack.apache.org' 
Subject: RE: [!!Mass Mail]RE: Securing CloudStack

Sorry for no reply I will check and get back to you.

Regards,
Jordan


-Original Message-
From: Дикевич Евгений Александрович  
Sent: Tuesday, June 22, 2021 6:27 PM
To: users@cloudstack.apache.org
Subject: RE: [!!Mass Mail]RE: Securing CloudStack


[X] This message came from outside your organization


HI
Thx for the answer but I stuck on early steps) I generate private.key:
openssl 

Re: Cloudstack Usage --- not owner

2021-06-25 Thread Hean Seng
HI Daan


My usage record have this , this is one of the example that do not have.
record of type 4 and 5, but have type 1,

select * from usage_event where account_id=3391;

---+-++-+-+-++-+-+-++---+--+

| id| type| account_id | created |
zone_id | resource_id | resource_name  | offering_id | template_id |
size| resource_type  | processed | virtual_size |

+---+-++-+-+-++-+-+-++---+--+

| 75910 | NET.IPASSIGN|   3391 | 2021-05-06 10:16:55 |
  1 |2396 | 11.11.1.11  |NULL |   0 |   0
| DirectAttached | 1 | NULL |

| 75911 | VOLUME.CREATE   |   3391 | 2021-05-06 10:16:55 |
  1 |6472 | ROOT-3649  |NULL | 210 |
21474836480 | NULL   | 1 | NULL |

| 75912 | VM.CREATE   |   3391 | 2021-05-06 10:16:55 |
  1 |3649 | VM-38629-vasuflor |  51 | 210 |NULL
| KVM| 1 | NULL |

| 75913 | NETWORK.OFFERING.ASSIGN |   3391 | 2021-05-06 10:17:06 |
  1 |3649 | 3753   |   6 |NULL |
1 | NULL   | 1 | NULL |

| 75914 | SG.ASSIGN   |   3391 | 2021-05-06 10:17:06 |
  1 |3649 | NULL   |3664 |NULL |
 NULL
| NULL   | 1 | NULL |

| 75915 | VM.START|   3391 | 2021-05-06 10:17:06 |
  1 |3649 | VM-38629-vasuflor |  51 | 210 |NULL
| KVM| 1 | NULL |

+---+-++-+-+-++-+-+-++---+--+

6 row

mysql> select * from usage_network where account_id=3391;

Empty set (0.00 sec)



mysql> select * from usage_network_offering where  account_id=3391

-> ;

+-++---++-++-+-++

| zone_id | account_id | domain_id | vm_instance_id | network_offering_id |
is_default | created | deleted | nic_id |

+-++---++-++-+-++

|   1 |   3391 |  3383 |   3649 |   6 |
1 | 2021-05-06 10:17:06 | NULL|   3753 |

+-++---++-++-+-++

1 row in set (0.01 sec)





On Fri, Jun 25, 2021 at 3:40 PM Daan Hoogland 
wrote:

> Hean,
> To be honest, no i don't. You can start looking at any log records related
> to the VMs and than track to their nics. Also look at the
> usage_event-table, to see if any records are there. First in the cloud DB,
> and if these are there in the cloud_usage DB.
> Sorry to not have an obviously useful clue for you.
>
> On Thu, Jun 24, 2021 at 7:49 PM Hean Seng  wrote:
>
> > Hi Daan,
> >
> > Thanks for reply.  I deleted the null record, and manage to make it work
> > again.  The it will auto generate back the record with correct ID .
> >
> >
> > However, I am facing the issue is the Usage Type 4, and 5   (Network sent
> > and received) are not populated .  Other Type like Type1 is always
> working.
> >
> > Fyi, I am using share network, and set the parameter
> > vm.network.stats.interval=300
> > so that the VM statistic is updated .
> >
> > This issue not happen on all VM, but part of it. ( about 50%) .  I
> > tried look at the DB, and seem cannot find the clue what actually diff ,
> in
> > term of those updated and those is not.
> >
> > The record is appearing in usage_network_offering and seems good.  Do you
> > have any idea of this ?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Mon, Jun 21, 2021 at 3:19 PM Daan Hoogland 
> > wrote:
> >
> > > Sorry Hean, wasn't on line most of the weekend, Is it running now?
> > > as you wrote this two days ago, it should already have run twice
> > (assuming
> > > you didn't change a lot)
> > >
> > > On Sat, Jun 19, 2021 at 8:41 PM Hean Seng  wrote:
> > >
> > > > And it will insert another success is NULL to usage_job table ,
> right ?
> > > >
> > > > i  deleted the null record and  restart usage servoce and see
> following
> > > in
> > > > usage log :
> > > >
> > > > 2021-06-19 18:37:52,912 INFO  [cloud.usage.UsageManagerImpl]
> > (main:null)
> > > > (logid:) Implementation Version is 4.15.0.0
> > > >
> > > > 2021-06-19 18:37:55,942 DEBUG 

Re: Management server reboot appears to cause vms on other hosts to shutdown?

2021-06-25 Thread Brian Fitzpatrick
Apologies

I should have of stated

Running CloudStack 4.15.0
Ubuntu 20.04
KVM

-Original Message-
From: b.fitzpatr...@chester.ac.uk
To: users@cloudstack.apache.org
Subject: Management server reboot appears to cause vms on other hosts to 
shutdown?
Date: Fri, 25 Jun 2021 10:06:19 +0100

Hi all,

Still relatively new to CloudStack and learning, testing etc.

I have created 1 management server with mysql on it and created 2 clusters with 
a nfs primary storage server in each and a number of hosts in each.

I have been working through the servers, putting them in maintenance mode 
(noting the vm migrations), updating and rebooting them. All working fine

I then wanted to update and reboot the server running the management and mysql. 
It is also a host, so I set it in maintenance mode so no vms running on it.

I thought if I update it and reboot, all I would lose for a period of time was 
access to the management server, the vms should keep running on their various 
hosts

The reboot, took longer than usual, it seemed to hang for 15-20mins before 
shutting down and rebooting. To my surprise though I lost contact to all the 
vms on the other hosts.

They all shut down.

Apologies, if I have missed something here, I thought I understood. All virtual 
routers and system vms appeared to be running on the other hosts.

Is it because the management server took a while to reboot, the other hosts 
have lost contact and shutdown their vms? seems odd?

Any suggestions, help welcome. As I say, still learning!

Thanks

Brian


RE: Management server reboot appears to cause vms on other hosts to shutdown?

2021-06-25 Thread Yordan Kostov
Hello Brian,

May be I did not understand very well but from what you say I get that 
the management server + SQL and NFS are on the same physical hosts that are 
being managed by cloudstack?
If those VMs are not visible in Cloudstack, the system is not aware 
that they exist so it wont try to roll them to another host if you perform 
hypervisor host reboot.

Best regards,
Jordan

-Original Message-
From: Brian Fitzpatrick  
Sent: Friday, June 25, 2021 12:06 PM
To: users@cloudstack.apache.org
Subject: Management server reboot appears to cause vms on other hosts to 
shutdown?


[X] This message came from outside your organization


Hi all,

Still relatively new to CloudStack and learning, testing etc.

I have created 1 management server with mysql on it and created 2 clusters with 
a nfs primary storage server in each and a number of hosts in each.

I have been working through the servers, putting them in maintenance mode 
(noting the vm migrations), updating and rebooting them. All working fine

I then wanted to update and reboot the server running the management and mysql. 
It is also a host, so I set it in maintenance mode so no vms running on it.

I thought if I update it and reboot, all I would lose for a period of time was 
access to the management server, the vms should keep running on their various 
hosts

The reboot, took longer than usual, it seemed to hang for 15-20mins before 
shutting down and rebooting. To my surprise though I lost contact to all the 
vms on the other hosts.

They all shut down.

Apologies, if I have missed something here, I thought I understood. All virtual 
routers and system vms appeared to be running on the other hosts.

Is it because the management server took a while to reboot, the other hosts 
have lost contact and shutdown their vms? seems odd?

Any suggestions, help welcome. As I say, still learning!

Thanks

Brian


Management server reboot appears to cause vms on other hosts to shutdown?

2021-06-25 Thread Brian Fitzpatrick
Hi all,

Still relatively new to CloudStack and learning, testing etc.

I have created 1 management server with mysql on it and created 2 clusters with 
a nfs primary storage server in each and a number of hosts in each.

I have been working through the servers, putting them in maintenance mode 
(noting the vm migrations), updating and rebooting them. All working fine

I then wanted to update and reboot the server running the management and mysql. 
It is also a host, so I set it in maintenance mode so no vms running on it.

I thought if I update it and reboot, all I would lose for a period of time was 
access to the management server, the vms should keep running on their various 
hosts

The reboot, took longer than usual, it seemed to hang for 15-20mins before 
shutting down and rebooting. To my surprise though I lost contact to all the 
vms on the other hosts.

They all shut down.

Apologies, if I have missed something here, I thought I understood. All virtual 
routers and system vms appeared to be running on the other hosts.

Is it because the management server took a while to reboot, the other hosts 
have lost contact and shutdown their vms? seems odd?

Any suggestions, help welcome. As I say, still learning!

Thanks

Brian


AW: CloudStack and Ansible

2021-06-25 Thread peter.muryshkin
Hi Rafael,

as a follow-up to your great talk at the CSEUG session: in your email you wrote,

"The Ansible implementation for ACS is very complete and robust. It made it 
possible for us to fully automate from metal to the service."

Which Ansible implementation do you mean? The one I can find addresses rather 
API usage [1]; for full automation there is probably more scripting required to 
setup the actual
cluster, possibly with some variations depending on the architecture.

[1] 
https://docs.ansible.com/ansible/latest/collections/ngine_io/cloudstack/index.html#plugins-in-ngine-io-cloudstack

kind regards
Peter

Von: Rafael del Valle 
Gesendet: Montag, 10. Mai 2021 21:14:12
An: users@cloudstack.apache.org
Cc: ivet.petr...@shapeblue.com
Betreff: Re: CloudStack and Ansible

Hi ,



The Ansible implementation for ACS is very complete and robust. It made it 
possible for us to fully automate from metal to the service.

I will be presenting this the 27th, and I am happy to participate on the post.

Regards,
Rafael




On Mon, 2021-05-10 05:22 PM, Rene Moser  wrote:
>
Hi Ivet
>
> On 10.05.21 16:52, Ivet Petrova wrote:
> > Hy everyone,
> >
> > I would like to prepare a blog post on CloudStack and Ansible use case. Are 
> > there any users here of this combination, who are willing to share insights 
> > (how you use it, why you selected it, etc.) and help me for the post?
>
> Yes, there are ;)
>
> Actually I am one of the authors and started the cloudstack ansible
> integration.
>
> When I started the project end of 2014, my vision was to not only
> install/update cloudstack (the application) and mysql with ansible, but
> a fully automated cloudstack setup including networking, storage, pod,
> host, cluster, configuration, etc.
>
> Even though I worked hard to cover all related APIs, I've never had the
> chance to actually deploy a cloudstack on the ground up and my daily
> work has shifted away from cloudstack admininistration [shapeblue didn't
> hire my ;)]
>
> Currently "only" using it in combination of exoscale to deploy and
> provision VMs, networks, autoscaling groups, security groups, ssh keys
> etc. So only user facing APIs.
>
> However, Raphael (who is also on the list I guess and in cc) realized my
> vision and did it (what I have heard from him). AFIACS he applied as
> speaker for the CSEUG on May 27th to show it to the community.
>
> Yours
> René
>


Re: Cloudstack Usage --- not owner

2021-06-25 Thread Daan Hoogland
Hean,
To be honest, no i don't. You can start looking at any log records related
to the VMs and than track to their nics. Also look at the
usage_event-table, to see if any records are there. First in the cloud DB,
and if these are there in the cloud_usage DB.
Sorry to not have an obviously useful clue for you.

On Thu, Jun 24, 2021 at 7:49 PM Hean Seng  wrote:

> Hi Daan,
>
> Thanks for reply.  I deleted the null record, and manage to make it work
> again.  The it will auto generate back the record with correct ID .
>
>
> However, I am facing the issue is the Usage Type 4, and 5   (Network sent
> and received) are not populated .  Other Type like Type1 is always working.
>
> Fyi, I am using share network, and set the parameter
> vm.network.stats.interval=300
> so that the VM statistic is updated .
>
> This issue not happen on all VM, but part of it. ( about 50%) .  I
> tried look at the DB, and seem cannot find the clue what actually diff , in
> term of those updated and those is not.
>
> The record is appearing in usage_network_offering and seems good.  Do you
> have any idea of this ?
>
>
>
>
>
>
>
>
>
>
> On Mon, Jun 21, 2021 at 3:19 PM Daan Hoogland 
> wrote:
>
> > Sorry Hean, wasn't on line most of the weekend, Is it running now?
> > as you wrote this two days ago, it should already have run twice
> (assuming
> > you didn't change a lot)
> >
> > On Sat, Jun 19, 2021 at 8:41 PM Hean Seng  wrote:
> >
> > > And it will insert another success is NULL to usage_job table , right ?
> > >
> > > i  deleted the null record and  restart usage servoce and see following
> > in
> > > usage log :
> > >
> > > 2021-06-19 18:37:52,912 INFO  [cloud.usage.UsageManagerImpl]
> (main:null)
> > > (logid:) Implementation Version is 4.15.0.0
> > >
> > > 2021-06-19 18:37:55,942 DEBUG [cloud.usage.UsageManagerImpl]
> (main:null)
> > > (logid:) Usage stats aggregation time zone: GMT
> > >
> > > 2021-06-19 18:37:55,952 DEBUG [cloud.usage.UsageManagerImpl]
> (main:null)
> > > (logid:) Execution Time: Sat Jun 19 00:15:00 UTC 2021
> > >
> > > 2021-06-19 18:37:55,953 DEBUG [cloud.usage.UsageManagerImpl]
> (main:null)
> > > (logid:) Current Time: Sat Jun 19 18:37:55 UTC 2021
> > >
> > > It seem execution time before current time ?  Is that normal ?
> > >
> > >
> > >
> > >
> > >
> > > On Sun, Jun 20, 2021 at 2:39 AM Hean Seng  wrote:
> > >
> > > >
> > > > So, I shall stop the Cloudstack-Usage services and delete all record
> > > where
> > > > success is NULL , and start back the usage service ?
> > > >
> > > >
> > > > On Sat, Jun 19, 2021 at 11:00 PM Daan Hoogland <
> > daan.hoogl...@gmail.com>
> > > > wrote:
> > > >
> > > >> Heanm,
> > > >>
> > > >> On Sat, Jun 19, 2021 at 5:27 AM Hean Seng 
> wrote:
> > > >>
> > > >> > i have no unprocess job , but still have this issue:
> > > >> >
> > > >> > 2021-06-19 10:09:57,657 DEBUG [cloud.usage.UsageManagerImpl]
> > > >> > (Usage-HB-1:null) (logid:) Scheduling Usage job...
> > > >> >
> > > >> > 2021-06-19 10:09:57,657 INFO  [cloud.usage.UsageManagerImpl]
> > > >> > (Usage-Job-1:null) (logid:) starting usage job...
> > > >> >
> > > >> > 2021-06-19 10:09:57,661 DEBUG [cloud.usage.UsageManagerImpl]
> > > >> > (Usage-Job-1:null) (logid:) Not owner of usage job, skipping...
> > > >> >
> > > >> this line ^^ means there is a unprocessed job owned by another
> > proccess
> > > >> ...
> > > >>
> > > >>
> > > >> > 2021-06-19 10:09:57,661 INFO  [cloud.usage.UsageManagerImpl]
> > > >> > (Usage-Job-1:null) (logid:) usage job complete
> > > >> >
> > > >> >
> > > >> >  mysql> select id, pid, start_date ,end_date , success, heartbeat
> > from
> > > >> > usage_job where success=0 order by start_date desc limit 100;
> > > >> >
> > > >> you should search for `where success is null`
> > > >>
> > > >>
> > > >> > Empty set (0.00 sec)
> > > >> >
> > > >> >
> > > >> >
> > > >> >
> > > >> > On Fri, Jun 18, 2021 at 11:01 PM Hean Seng 
> > > wrote:
> > > >> >
> > > >> > > yes,  I restarted the mgmt server,  wait till can login web
> > > interface
> > > >> .
> > > >> > > then only restart usage .
> > > >> > >
> > > >> > > I did follwoig also :
> > > >> > >
> > > >> > > * stop usage server
> > > >> > >
> > > >> > > * remove the record from usage_job for the unprocessed job
> > > >> > >
> > > >> > > * start usage server again
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> > > Still same thing.  Not sure where the Cloudstack keep the Usage
> > > server
> > > >> > PID
> > > >> > > id , and keep getting wrong id.
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> > > On Fri, Jun 18, 2021 at 4:31 PM Boris Stoyanov <
> > > >> > > boris.stoya...@shapeblue.com> wrote:
> > > >> > >
> > > >> > >> Hi Hean Seng,
> > > >> > >>
> > > >> > >> Have you waited the management service to come up and then
> > > restarted
> > > >> > >> usage service? It might be some race condition?
> > > >> > >>
> > > >> > >> Bobby.
> > > >> > >>
> > > >> > >> From: Hean Seng 
> > > >> > >> Date: Friday, 18 June 2021, 

Re: User certificate

2021-06-25 Thread Daan Hoogland
Jeremy,
It seems to me you are creating a certificate request with that command and
not a certificate. What file(s) did you try to upload?
Google "creating keys and certificates" to get some clues about how to
create those.
regards,

On Thu, Jun 24, 2021 at 9:57 AM Jeremy Hansen  wrote:

> I’m trying to understand how to generate a user certificate.  I can’t seem
> to find very much information.
>
>
>
> I tried:
>
> openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
>
> but the output just results in an error:
>
>
> Any clues?
>
> Thanks
> -jeremy
>
>

-- 
Daan


Re: change ntp server of the SSVMs

2021-06-25 Thread Daan Hoogland
Yordan, looks good. Just one question; when you say "semi columns" you mean
double quotes (") right?

Did you observe anything in the log on the management server or in the new
SSVM about ntp?


On Mon, Jun 21, 2021 at 2:11 PM Yordan Kostov  wrote:

> Hey everyone,
>
> ACS 4.15 here. We noticed that SSVMs try to go to internet
> for NTP sync.
> Decided to change that to local ntps so went to ACS GUI ->
> Global settings -> "ntp.server.list"
>
>   *   Set the value to "1.1.1.1,2.2.2.2" without the semi columns
>   *   Restarted ACS
>   *   Destroyed the SSVMs
>
> After SSVMs rebooted they still tried to access the same internet NTPs.
> Is there anything that is done wrong here or am I missing something?
>
> Best regards,
> Jordan
>


-- 
Daan