Re: Need help setting up CloudStack 4.13

2020-01-16 Thread Philippe Luneau
PLease help

On 2020/01/15 07:14:42, Philippe Luneau  wrote: 
> Hello,
> 
> I'm installing a cloudstack 4.13 infrastructure, but I'm just getting started.
> 
> In my infrastructure, I have 2 HP Proliant DL360p gen8 servers to create 2 
> managers (Manager 1, Manager 2), 1 HP Proliant DL360p gen 8 server for the 
> database and an HP StoreEasy 1830 storage server for the main storage and 
> secondary on a volume in Raid 5.
> 
> I created my first zone in Advanced network with a Pod and a cluster in which 
> I put 4 hosts.
> 
> My host machines have IP addresses ranging from 192.168.10.101 to 
> 192.168.10.130
> When creating my zone in Network Advanced, I reserved like this:
> - VM Public 192.168.10.200 up to 230
> - Pod from 192.168.10.151 to 170
> - VLAN range 100 to 299
> - my gateway is 192.168.10.1
> 
> If I have an L2 Guest Network, I manage to create my VMs but they do not have 
> an IP address.
> 
> If I create a Guest network I cannot create Vms or any other networks.
> How can I do in Cloudstack so that my virtual machines have an IP address 
> ranging from 192.168.10.200 to 192.168.10.230 with a gateway 192.168.10.1?
> 
> And then I would like to be able to access my Vms from outside my local 
> network.
> 
> I need help, thanks in advance.
> 


How to delete a management server in cloudstak 4.13

2020-01-16 Thread Philippe Luneau
Good morning all,

By dint of manipulating my cloudstack now in infrastructure / Management 
servers I have a management server that appears in "state down", how can I 
delete it?

thank you in advance.


RE: Unable to schedule async job

2020-01-16 Thread cristian.c
Hi Ivan,

   Did you fixed this issue? If yes, can you please tell me what you did?

Thanks in advance.
Cristian

-Original Message-
From: Ivan X Yue  
Sent: Thursday, January 10, 2019 8:18 PM
To: users@cloudstack.apache.org
Subject: Re: Unable to schedule async job

Dag,

That's good idea.  How can I update log to debug / trace mode? 

Thanks
Ivan



From:   Dag Sonstebo 
To: "users@cloudstack.apache.org" 
Date:   2019/01/10 11:40 AM
Subject:Re: Unable to schedule async job



Hi Ivan,

Probably a good idea to bump your logging up to debug or trace – these show the 
SQL queries being prepared in the logs.

Regards,
Dag Sonstebo
Cloud Architect
ShapeBlue


From: Ivan X Yue 
Reply-To: "users@cloudstack.apache.org" 
Date: Thursday, 10 January 2019 at 16:18
To: "users@cloudstack.apache.org" 
Subject: Re: Unable to schedule async job

Hi, Dag,

Thank for the reply.

Below is my async_job table.  Today, I try to delete some VM. 
Interestingly, I can delete some VM and some are failed withthis error:

Caused by: 
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: 
Duplicate entry '387' for key 'PRIMARY'

But in the async_job table, I don't see id=387 there.

I have attached part of the Management Server log wrt the delete VM action.

One minor correction.  I am actually using cloudstack 4.11.1 instead of 4.9.2.

MariaDB [cloud]> select id, job_cmd from async_job order by id;
+-+-+
| id  | job_cmd |
+-+-+
| 275 | org.apache.cloudstack.api.command.user.network.DeleteNetworkCmd |
| 276 | NULL|
| 281 | NULL|
| 287 | NULL|
| 288 | NULL|
| 292 | NULL|
| 305 | org.apache.cloudstack.api.command.admin.router.DestroyRouterCmd 
| |
| 307 | org.apache.cloudstack.api.command.admin.router.DestroyRouterCmd 
| |
| 309 | org.apache.cloudstack.api.command.admin.vm.DestroyVMCmdByAdmin  |
| 313 | org.apache.cloudstack.api.command.admin.router.StartRouterCmd   |
| 314 | NULL|
| 315 | org.apache.cloudstack.api.command.admin.router.StartRouterCmd   |
| 316 | com.cloud.vm.VmWorkStart|
| 317 | org.apache.cloudstack.api.command.admin.router.DestroyRouterCmd 
| |
| 319 | org.apache.cloudstack.api.command.admin.vm.DestroyVMCmdByAdmin  |
| 321 | NULL|
| 322 | com.cloud.vm.VmWorkStop |
| 323 | org.apache.cloudstack.api.command.admin.router.DestroyRouterCmd |
| 327 | com.cloud.vm.VmWorkStart|
| 328 | com.cloud.vm.VmWorkStart|
| 329 | NULL|
| 330 | com.cloud.vm.VmWorkStop |
| 332 | org.apache.cloudstack.api.command.admin.router.DestroyRouterCmd |
| 334 | com.cloud.vm.VmWorkStop |
| 335 | com.cloud.vm.VmWorkStart|
| 336 | com.cloud.vm.VmWorkStart|
| 338 | org.apache.cloudstack.api.command.admin.vpc.CreateVPCCmdByAdmin |
| 340 | com.cloud.vm.VmWorkStop |
| 341 | org.apache.cloudstack.api.command.admin.router.DestroyRouterCmd |
| 342 | com.cloud.vm.VmWorkStop |
| 343 | org.apache.cloudstack.api.command.user.vpc.RestartVPCCmd|
| 344 | com.cloud.vm.VmWorkStart|
| 345 | org.apache.cloudstack.api.command.admin.router.DestroyRouterCmd |
| 346 | com.cloud.vm.VmWorkStop |
| 347 | org.apache.cloudstack.api.command.admin.router.DestroyRouterCmd |
| 348 | com.cloud.vm.VmWorkStop |
| 349 | org.apache.cloudstack.api.command.user.vpc.RestartVPCCmd|
| 350 | com.cloud.vm.VmWorkStart|
| 351 | org.apache.cloudstack.api.command.admin.vm.DestroyVMCmdByAdmin  |
| 352 | com.cloud.vm.VmWorkStop |
| 354 | org.apache.cloudstack.api.command.user.network.DeleteNetworkCmd 
| |
| 355 | org.apache.cloudstack.api.command.admin.vm.DestroyVMCmdByAdmin  |
| 356 | com.cloud.vm.VmWorkStop |
| 357 | com.cloud.vm.snapshot.VmWorkDeleteAllVMSnapshots|
| 358 | com.cloud.vm.VmWorkStop 

Re: How to delete a management server in cloudstak 4.13

2020-01-16 Thread Rakesh v
You can remove the entry from mshost table in cloud db

Sent from my iPhone

> On 16-Jan-2020, at 1:00 PM, Philippe Luneau  
> wrote:
> 
> Good morning all,
> 
> By dint of manipulating my cloudstack now in infrastructure / Management 
> servers I have a management server that appears in "state down", how can I 
> delete it?
> 
> thank you in advance.


Re: How to delete a management server in cloudstak 4.13

2020-01-16 Thread Philippe Luneau
I am a beginner, know the orders to do I am on Centos7.thanks in advance

Télécharger Outlook pour Android


From: Rakesh v 
Sent: Thursday, January 16, 2020 4:55:18 PM
To: users@cloudstack.apache.org 
Subject: Re: How to delete a management server in cloudstak 4.13

You can remove the entry from mshost table in cloud db

Sent from my iPhone

> On 16-Jan-2020, at 1:00 PM, Philippe Luneau  
> wrote:
>
> Good morning all,
>
> By dint of manipulating my cloudstack now in infrastructure / Management 
> servers I have a management server that appears in "state down", how can I 
> delete it?
>
> thank you in advance.


Cloudstack - Unable to Upgrade database

2020-01-16 Thread Cloud Udupi
Hi,

I am installing Cloudstack-4.13 on 3 node setup, earlier It used to work
without any errors. But from 15th of Jan 2020, I'm facing some errors while
setting up Apache Cloudstack-management server.

*Using this guide:*
http://docs.cloudstack.apache.org/en/latest/quickinstallationguide/qig.html#mysql-connector-installation

Following are the errors;
*I got this error while running 'cloudstack-setup-management'*

[root@cloud1 ~]# *cloudstack-setup-management*

Traceback (most recent call last):

  File "/usr/bin/cloudstack-setup-management", line 24, in 

from cloudutils.serviceConfigServer import cloudManagementConfig

  File
"/usr/lib64/python2.7/site-packages/cloudutils/serviceConfigServer.py",
line 17, in 

from db import Database

  File "/usr/lib64/python2.7/site-packages/cloudutils/db.py", line 20, in


import mysql.connector

  File "/usr/lib64/python2.7/site-packages/mysql/connector/__init__.py",
line 41, in 

import dns.resolver

ImportError: No module named dns.resolver



After this I tried Installing python-dns, I was able to run
"cloudstack-setup-management", but had issue with the dashboard not coming
up. When I checked the log file, I found the below errors.


*Error Message from the Apache CloudStack Management server.*


2020-01-17 11:35:05,275 ERROR [c.c.u.DatabaseUpgradeChecker] (main:null)
(logid:) Unable to upgrade the database

com.cloud.utils.exception.CloudRuntimeException: Problem with getting the
ec attribute

Caused by: java.lang.IllegalArgumentException: Can not set long field
com.cloud.upgrade.dao.VersionVO.id to java.math.BigInteger

at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException
(UnsafeFieldAccessorImpl.java:167)

at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException
(UnsafeFieldAccessorImpl.java:171)

2020-01-17 11:35:05,283 WARN  [o.a.c.s.m.c.ResourceApplicationContext]
(main:null) (logid:) Exception encountered during context initialization -
cancelling refresh attempt: org.springframework.context.ApplicationContext
Exception: Failed to start bean 'cloudStackLifeCycle'; nested exception is
com.cloud.utils.exception.CloudRuntimeException: Unable to upgrade the
database

2020-01-17 11:35:05,285 WARN  [o.e.j.w.WebAppContext] (main:null) (logid:)
Failed startup of context o.e.j.w.WebAppContext@6e38921c
{/client,file:///usr/share/cloudstack-management/webapp/,UNAVAILABLE}{/usr/share/cloudstack-management/webapp}

org.springframework.context.ApplicationContextException: Failed to start
bean 'cloudStackLifeCycle'; nested exception is com.cloud.utils.exception
.CloudRuntimeException: Unable to upgrade the database

Caused by: com.cloud.utils.exception.CloudRuntimeException: Unable to
upgrade the database

Caused by: com.cloud.utils.exception.CloudRuntimeException: Problem with
getting the ec attribute

Caused by: java.lang.IllegalArgumentException: Can not set long field
com.cloud.upgrade.dao.VersionVO.id to java.math.BigInteger

at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException
(UnsafeFieldAccessorImpl.java:167)

at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException
(UnsafeFieldAccessorImpl.java:171)



*This is management status:*


[root@cloud1 management]# tail -f management-server.log

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

... 61 more

Caused by: java.lang.IllegalArgumentException: Can not set long field
com.cloud.upgrade.dao.VersionVO.id to java.math.BigInteger

at
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)

at
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)

at
sun.reflect.UnsafeLongFieldAccessorImpl.set(UnsafeLongFieldAccessorImpl.java:102)

... 65 more

2020-01-17 11:35:05,291 INFO  [o.e.j.s.h.ContextHandler] (main:null)
(logid:) Started o.e.j.s.h.MovedContextHandler@6e2c9341{/,null,AVAILABLE}

2020-01-17 11:35:05,341 INFO  [o.e.j.s.AbstractConnector] (main:null)
(logid:) Started ServerConnector@51e2adc7{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}

2020-01-17 11:35:05,341 INFO  [o.e.j.s.Server] (main:null) (logid:) Started
@23495ms



Please help,

Thanks In advance,

Mark.