Re: expand root disk type volume

2015-09-23 Thread raja sekhar
Hi Sonali,

It is possible to increase the root disk in cloud.follow the below and
update the size of disk in db tables.

http://www.techmediaconsulting.com/index.php/web-design/cloudstack-citrix-cloudplatform-volume-extension

Regards,
Rajasekhar.

On Wed, Sep 23, 2015 at 1:07 PM, Vadim Kimlaychuk 
wrote:

>
> Sonali,
>
>AFAIK this is possible only for KVM hypervisor, not any other.
>
> Vadim.
>
> On 2015-09-23 10:10, cs user wrote:
>
> Hi There,
>>
>> I'm not sure if this is currently possible for existing root disks.
>> Perhaps
>> someone else can advise if it is?
>>
>> I believe there has been some recent work to allow the size of the root
>> volume to be increased when an instance is deployed however.
>>
>> Take a look at:
>>
>>
>> http://cloudstack.apache.org/api/apidocs-4.5/user/deployVirtualMachine.html
>> [1]
>>
>> And the rootdisksize parameter.
>>
>> I think this is only available through the api (and hence via cloudmonkey)
>> at the moment.
>>
>> Cheers!
>>
>> On Wed, Sep 23, 2015 at 6:40 AM, Sonali Jadhav > >
>> wrote:
>>
>> Hi,
>>>
>>> Why it's not possible to expand root disk type ? I am using ACS 4.5.1
>>>
>>> I have one windows vm, It has only one disk and I need to expand same.
>>> I am using xenservers, I can expand disk from xencenter, but not from cs.
>>> I am Curious to know why.
>>>
>>> /sonali
>>>
>>
>
>


Re: Recurring snapshot taking full every time

2015-09-18 Thread raja sekhar
Hi Abhinandan,

I have force reconnect the hosts but no use and i didn't find any error in
SMlog. please suggest me the error is still
generating.

Regards,
Rajasekhar.

On Wed, Sep 16, 2015 at 8:58 AM, Abhinandan Prateek <
abhinandan.prat...@shapeblue.com> wrote:

> Can you check in the SMlog on the concerned host if you see any error when
> the plugin is being invoked ?
>
> > On 14-Sep-2015, at 5:01 pm, raja sekhar <rajsekhar@gmail.com> wrote:
> >
> > Hi abhinandan,
> >
> > Thanks for your reply.
> > We are facing the issue only for root volumes in that host. The snapshot
> > recurring policy for data disks in same host is working fine.
> > if the host configuration is not properly instrumented the policy for
> data
> > disks also fails, but it is working fine.
> > please suggest us.
> >
> > Note: The manual snapshots for root disk is working fine,and it is taking
> > child when second manual is configured , problem only with root daily
> > snapshots every day it is taking full instead of taking child snapshots
> > throwing error "*Failed to get parent snapshot**, due to There was a
> > failure communicating with the plugin*".
> >
> > Regards,
> > rajasekhar.
> >
> > On Mon, Sep 14, 2015 at 4:00 PM, Abhinandan Prateek <
> > abhinandan.prat...@shapeblue.com> wrote:
> >
> >> Looks like the host is not instrumented properly and management server
> is
> >> unable to invoke plugin on the host.
> >> Can you force-reconnect the host that is throwing this error ? That
> should
> >> recopy the plugins on to the host.
> >>
> >>> On 14-Sep-2015, at 3:15 pm, raja sekhar <rajsekhar@gmail.com>
> wrote:
> >>>
> >>> Hi All,
> >>>
> >>> I am using CS 4.3.1 and xenserver 6.2
> >>> I have configured daily recurring snapshot policy for all the root
> >> volumes.
> >>> but recent three days onwards it is taking full snapshots and not
> taking
> >>> any child snapshots.
> >>> I have configured snapshot.delta.max to 16.
> >>> please help me my secondary storage is becoming full.
> >>>
> >>> The log file details shows:
> >>>
> >>> 2015-09-14 01:03:29,973 DEBUG [c.c.a.m.DirectAgentAttache]
> >>> (DirectAgent-24:ctx-d68622c5) Seq 4-482873005: Response Received:
> >>> 2015-09-14 01:03:29,973 DEBUG [c.c.a.m.ClusteredAgentManagerImpl]
> >>> (DirectAgent-24:ctx-d68622c5) Seq 4-482873005: MgmtId 195780927071877:
> >>> Resp: Routing to peer
> >>> 2015-09-14 01:03:32,233 DEBUG [c.c.c.ConsoleProxyManagerImpl]
> >>> (consoleproxy-1:ctx-b1db30de) Zone 1 is ready to launch console proxy
> >>> 2015-09-14 01:03:32,334 DEBUG [c.c.s.s.SecondaryStorageManagerImpl]
> >>> (secstorage-1:ctx-e024d41b) Zone 1 is ready to launch secondary storage
> >> VM
> >>> 2015-09-14 01:03:33,934 WARN  [c.c.u.n.Link]
> (AgentManager-Selector:null)
> >>> SSL: Fail to find the generated keystore. Loading fail-safe one to
> >> continue.
> >>> 2015-09-14 01:03:34,044 DEBUG [c.c.a.t.Request]
> >>> (AgentManager-Handler-10:null) Seq 1-457572529: Executing:  { Cmd ,
> >> MgmtId:
> >>> 108371418365724, via: 1, Ver: v1, Flags: 100011,
> >>>
> >>
> [{"org.apache.cloudstack.storage.command.CreateObjectCommand":{"data":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"volume":{"uuid":"bcf7653a-33db-461a-9355-e5d518012679","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"165fb777-4225-326a-bc48-f5b465f9486b","id":1,"poolType":"NetworkFilesystem","host":"172.30.36.51","path":"/vS02304090GCSP_NAS05","port":2049,"url":"NetworkFilesystem://
> >>>
> >>
> 172.30.36.51//vS02304090GCSP_NAS05/?ROLE=Primary=165fb777-4225-326a-bc48-f5b465f9486b
> >>>
> >>
> "}},"name":"ROOT-189","size":85899345920,"path":"9deefbf6-86e6-4359-acb3-99e1aebcb359","volumeId":696,"vmName":"i-11-189-VM","accountId":11,"format":"VHD","id":696,"deviceId":0,"hypervisorType":"XenServer"},"parentSnapshotPath":"3a6e9e1a-fd95-4530-ae67-03a368b3e2fd","dataStore":{"org.apache.cloud

Recurring snapshot taking full every time

2015-09-14 Thread raja sekhar
Hi All,

I am using CS 4.3.1 and xenserver 6.2
I have configured daily recurring snapshot policy for all the root volumes.
but recent three days onwards it is taking full snapshots and not taking
any child snapshots.
I have configured snapshot.delta.max to 16.
please help me my secondary storage is becoming full.

The log file details shows:

2015-09-14 01:03:29,973 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-24:ctx-d68622c5) Seq 4-482873005: Response Received:
2015-09-14 01:03:29,973 DEBUG [c.c.a.m.ClusteredAgentManagerImpl]
(DirectAgent-24:ctx-d68622c5) Seq 4-482873005: MgmtId 195780927071877:
Resp: Routing to peer
2015-09-14 01:03:32,233 DEBUG [c.c.c.ConsoleProxyManagerImpl]
(consoleproxy-1:ctx-b1db30de) Zone 1 is ready to launch console proxy
2015-09-14 01:03:32,334 DEBUG [c.c.s.s.SecondaryStorageManagerImpl]
(secstorage-1:ctx-e024d41b) Zone 1 is ready to launch secondary storage VM
2015-09-14 01:03:33,934 WARN  [c.c.u.n.Link] (AgentManager-Selector:null)
SSL: Fail to find the generated keystore. Loading fail-safe one to continue.
2015-09-14 01:03:34,044 DEBUG [c.c.a.t.Request]
(AgentManager-Handler-10:null) Seq 1-457572529: Executing:  { Cmd , MgmtId:
108371418365724, via: 1, Ver: v1, Flags: 100011,
[{"org.apache.cloudstack.storage.command.CreateObjectCommand":{"data":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"volume":{"uuid":"bcf7653a-33db-461a-9355-e5d518012679","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"165fb777-4225-326a-bc48-f5b465f9486b","id":1,"poolType":"NetworkFilesystem","host":"172.30.36.51","path":"/vS02304090GCSP_NAS05","port":2049,"url":"NetworkFilesystem://
172.30.36.51//vS02304090GCSP_NAS05/?ROLE=Primary=165fb777-4225-326a-bc48-f5b465f9486b
"}},"name":"ROOT-189","size":85899345920,"path":"9deefbf6-86e6-4359-acb3-99e1aebcb359","volumeId":696,"vmName":"i-11-189-VM","accountId":11,"format":"VHD","id":696,"deviceId":0,"hypervisorType":"XenServer"},"parentSnapshotPath":"3a6e9e1a-fd95-4530-ae67-03a368b3e2fd","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"165fb777-4225-326a-bc48-f5b465f9486b","id":1,"poolType":"NetworkFilesystem","host":"172.30.36.51","path":"/vS02304090GCSP_NAS05","port":2049,"url":"NetworkFilesystem://
172.30.36.51//vS02304090GCSP_NAS05/?ROLE=Primary=165fb777-4225-326a-bc48-f5b465f9486b"}},"vmName":"i-11-189-VM","name":"SAGXD02_ROOT-189_20150914090333","hypervisorType":"XenServer","id":6732,"quiescevm":false,"parents":["3a6e9e1a-fd95-4530-ae67-03a368b3e2fd"],"physicalSize":0}},"wait":0}}]
}
2015-09-14 01:03:34,045 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-333:ctx-c3e7c331) Seq 1-457572529: Executing request
2015-09-14 01:03:35,421 WARN  [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-333:ctx-c3e7c331) callHostPlugin failed for cmd: getVhdParent
with args snapshotUuid: 3a6e9e1a-fd95-4530-ae67-03a368b3e2fd, isISCSI:
false, primaryStorageSRUuid: a6a7f65a-a1d2-83e3-d3b0-f38792863fb6,  due to
There was a failure communicating with the plugin.
2015-09-14 01:03:35,421 DEBUG [c.c.h.x.r.XenServerStorageProcessor]
(DirectAgent-333:ctx-c3e7c331) Failed to get parent snapshot
com.cloud.utils.exception.CloudRuntimeException: callHostPlugin failed for
cmd: getVhdParent with args snapshotUuid:
3a6e9e1a-fd95-4530-ae67-03a368b3e2fd, isISCSI: false, primaryStorageSRUuid:
a6a7f65a-a1d2-83e3-d3b0-f38792863fb6,  due to There was a failure
communicating with the plugin.
at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.callHostPlugin(CitrixResourceBase.java:4239)
at
com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.getVhdParent(XenServerStorageProcessor.java:879)
at
com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.createSnapshot(XenServerStorageProcessor.java:478)
at
com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:107)
at
com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:52)
at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:609)
 at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
at
com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:106)
at
com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
at
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
at
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at

Usage Sanity Check failed alert type 23

2015-09-05 Thread raja sekhar
Hi all,

Iam getting the below error in cloudstack dashboard.

Usage Sanity Check failed alert type 23

and in usage records same error is found and the records are not generating
after that.
Please help me i am using cloudstack 4.3.1 and xenserver 6.2

2015-09-05 04:49:37,539 WARN  [apache.cloudstack.alerts]
(Usage-Sanity-1:null)  alertType:: 23 // dataCenterId:: 0 // podId:: 0 //
clusterId:: null // message:: Usage Sanity Check failed
2015-09-05 04:49:37,575 DEBUG [cloud.usage.UsageAlertManagerImpl]
(Usage-Sanity-1:null) Have already sent: 1 emails for alert type '23' --
skipping send email

Regards,
Rajasekhar.


Re: Usage Records are still generating even VM removed.

2015-08-24 Thread raja sekhar
Hi Rajini,

I got this information from db and just did the following commands.when
compared to testvm as you told VM.STOP event is missed.
i updated the stop event manually in  both cloud and usage databases, but
still the usage records are generating, is there any thing i missed?

old records:

mysql use cloud_usage
mysql select * from usage_event where resource_name='appserver'\G
*** 10. row ***
   id: 12104
 type: VM.START
   account_id: 29
  created: 2014-04-11 06:01:46
  zone_id: 1
  resource_id: 311
resource_name: AppServer
  offering_id: 34
  template_id: 257
 size: NULL
resource_type: XenServer
processed: 1
 virtual_size: NULL
*** 11. row ***
   id: 12530
 type: VM.START
   account_id: 29
  created: 2014-04-28 15:21:13
  zone_id: 1
  resource_id: 311
resource_name: AppServer
  offering_id: 34
  template_id: 257
 size: NULL
resource_type: XenServer
processed: 1
 virtual_size: NULL
*** 12. row ***
   id: 30714
 type: VM.DESTROY
   account_id: 29
  created: 2015-03-17 14:31:24
  zone_id: 1
  resource_id: 311
resource_name: AppServer
  offering_id: 34
  template_id: 257
 size: NULL
resource_type: XenServer
processed: 1
 virtual_size: NULL

*new updated records:*

mysql select * from usage_event where resource_name='appserver'\G
*** 16. row ***
   id: 12104
 type: VM.START
   account_id: 29
  created: 2014-04-11 06:01:46
  zone_id: 1
  resource_id: 311
resource_name: AppServer
  offering_id: 34
  template_id: 257
 size: NULL
resource_type: XenServer
processed: 1
 virtual_size: NULL
*** 17. row ***
   id: 12530
 type: VM.STOP
   account_id: 29
  created: 2015-08-21 13:15:10
  zone_id: 1
  resource_id: 311
resource_name: AppServer
  offering_id: 34
  template_id: 257
 size: NULL
resource_type: XenServer
processed: 1
 virtual_size: NULL
*** 18. row ***
   id: 30714
 type: VM.DESTROY
   account_id: 29
  created: 2015-08-21 13:15:17
  zone_id: 1
  resource_id: 311
resource_name: AppServer
  offering_id: 34
  template_id: 257
 size: NULL
resource_type: XenServer
processed: 1
 virtual_size: NULL



Regards,
rajasekhar.



On Wed, Aug 19, 2015 at 11:22 AM, Rajani Karuturi raj...@apache.org wrote:

 can you compare events for both the vms using
 select * from usage_event where type like 'VM%' and resource_id in (311,
 752);
 May be a stop event is missing.

 the same table is also present in cloud_usage database. compare the events
 in that table as well.


 ~Rajani

 On Wed, Aug 19, 2015 at 4:42 AM, raja sekhar rajsekhar@gmail.com
 wrote:

  Hi Rajani,
 
  Thanks for your reply.
  i have created one testvm and manually destroyed from cloud ui.
  the db entry in events table is:
 
  select * from usage_event where type='VM.DESTROY'\G
  *** 519. row ***
 id: 36520
   type: VM.DESTROY
 account_id: 62
created: 2015-07-21 07:53:45
zone_id: 1
resource_id: 752
  resource_name: testvm
offering_id: 78
template_id: 333
   size: NULL
  resource_type: XenServer
  processed: 1
   virtual_size: NULL
 
  *i compared these entries to my vm:*
 
  select * from usage_event where resource_name='appserver'\G
  *** 18. row ***
 id: 30714
   type: VM.DESTROY
 account_id: 29
created: 2015-03-17 14:31:24
zone_id: 1
resource_id: 311
  resource_name: AppServer
offering_id: 34
template_id: 257
   size: NULL
  resource_type: XenServer
  processed: 1
   virtual_size: NULL
 
  *i found that these two tables are same.*
  *below are the few tables of the vm.*
  *please suggest me what is the exact table to stop usage records.*
 
  select * from cloud_usage where vm_name='AppServer'\G
  *** 1289. row ***
  id: 679340
 zone_id: 1
  account_id: 29
   domain_id: 12
 description: AppServer running time (ServiceOffering: 34) (Template:
  257)
   usage_display: 24 Hrs
  usage_type: 1
   raw_usage: 24
  vm_instance_id: 311
 vm_name: AppServer
 offering_id: 34
 template_id: 257
usage_id: 311
type: XenServer
size: NULL
  network_id: NULL
  start_date: 2015-08-17 00:00:00
end_date: 2015-08-17 23:59:59
virtual_size: NULL
 
  select * from vm_instance where name='appserver'\G
  *** 2. row ***
id: 311

Re: Usage Records are still generating even VM removed.

2015-08-18 Thread raja sekhar
Hi Rajani,

Thanks for your reply.
i have created one testvm and manually destroyed from cloud ui.
the db entry in events table is:

select * from usage_event where type='VM.DESTROY'\G
*** 519. row ***
   id: 36520
 type: VM.DESTROY
   account_id: 62
  created: 2015-07-21 07:53:45
  zone_id: 1
  resource_id: 752
resource_name: testvm
  offering_id: 78
  template_id: 333
 size: NULL
resource_type: XenServer
processed: 1
 virtual_size: NULL

*i compared these entries to my vm:*

select * from usage_event where resource_name='appserver'\G
*** 18. row ***
   id: 30714
 type: VM.DESTROY
   account_id: 29
  created: 2015-03-17 14:31:24
  zone_id: 1
  resource_id: 311
resource_name: AppServer
  offering_id: 34
  template_id: 257
 size: NULL
resource_type: XenServer
processed: 1
 virtual_size: NULL

*i found that these two tables are same.*
*below are the few tables of the vm.*
*please suggest me what is the exact table to stop usage records.*

select * from cloud_usage where vm_name='AppServer'\G
*** 1289. row ***
id: 679340
   zone_id: 1
account_id: 29
 domain_id: 12
   description: AppServer running time (ServiceOffering: 34) (Template: 257)
 usage_display: 24 Hrs
usage_type: 1
 raw_usage: 24
vm_instance_id: 311
   vm_name: AppServer
   offering_id: 34
   template_id: 257
  usage_id: 311
  type: XenServer
  size: NULL
network_id: NULL
start_date: 2015-08-17 00:00:00
  end_date: 2015-08-17 23:59:59
  virtual_size: NULL

select * from vm_instance where name='appserver'\G
*** 2. row ***
  id: 311
name: AppServer
uuid: 0802d513-0bda-43d5-9600-20f705ca1ed7
   instance_name: i-29-311-VM
   state: Expunging
  vm_template_id: 257
 guest_os_id: 54
 private_mac_address: 02:00:4a:a8:00:04
  private_ip_address: 10.10.10.17
  pod_id: 1
  data_center_id: 1
 host_id: NULL
last_host_id: 14
proxy_id: 299
   proxy_assign_time: 2013-08-26 21:11:17
vnc_password: uPk1EIH5AmWi+djshYFcg7BtBXVzYHgQ866UT0/nV28=
  ha_enabled: 0
   limit_cpu_use: 0
update_count: 33
 update_time: 2015-03-17 14:32:35
 created: 2013-08-23 01:28:39
 removed: 2015-08-14 12:57:21
type: User
 vm_type: User
  account_id: 29
   domain_id: 12
 service_offering_id: 34
  reservation_id: 99128765-61b1-4e9f-b703-f20715a10a78
 hypervisor_type: XenServer
disk_offering_id: NULL
 cpu: NULL
 ram: NULL
   owner: 29
   speed: 1024
   host_name: AppServer
display_name: AppServer
   desired_state: NULL
dynamically_scalable: 0
  display_vm: 1

mysql select * from volumes where instance_id=311\G
*** 1. row ***
id: 427
account_id: 29
 domain_id: 12
   pool_id: 208
  last_pool_id: NULL
   instance_id: 311
 device_id: 0
  name: ROOT-311
  uuid: c253355e-a33c-4590-9b5e-74f7fa0c32cc
  size: 53687091200
folder: lvm
  path: ed119650-671e-4328-9ff2-2aefaac625a9
pod_id: 1
data_center_id: 1
iscsi_name: NULL
   host_ip: NULL
   volume_type: ROOT
 pool_type: LVM
  disk_offering_id: 34
   template_id: 257
first_snapshot_backup_uuid: NULL
   recreatable: 0
   created: 2013-08-23 01:28:39
  attached: NULL
   updated: 2015-03-17 14:32:35
   removed: 2015-05-03 02:57:00
 state: Destroy
chain_info: NULL
  update_count: 1025
 disk_type: NULL
vm_snapshot_chain_size: NULL
iso_id: NULL
display_volume: 1
format: VHD
  min_iops: NULL
  max_iops: NULL


regards,
rajasekhar.

On Tue, Aug 18, 2015 at 11:49 AM, Rajani Karuturi raj...@apache.org wrote:

 update the usage_event table with VM.DESTROY event for this vm.
 I would say create a vm, destroy it and observer the entries in usage_event
 table. create a similar entry for the manually destroyed vm.


 ~Rajani

 On Tue, Aug 18, 2015 at 12:12 AM, raja sekhar rajsekhar@gmail.com
 wrote:

  Hi All,
 
  The usage records are still generating even if the vm is removed from
  cloudstack.
  The actual scenario

Usage Records are still generating even VM removed.

2015-08-17 Thread raja sekhar
Hi All,

The usage records are still generating even if the vm is removed from
cloudstack.
The actual scenario is:
The xenserver host went to alert state and the vms in it are not accessible.
we have removed the vms from backend by updating vm_instance,volume table.
can any one help me what is the exact table to update?
i am using cloudstack 4.2

waiting for your valuable suggestions.


regards,
rajasekhar.


Re: ACS 4.5.1 mgmt DB HA - not working - invalid load balancing strategy

2015-06-26 Thread raja sekhar
Andrija,

file is missing in that path.

Follow the steps to enable the database high availability in cloudstack.

1)   Go to the path:

*“/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/”*

Find the *“cloud-plugin-database-mysqlha-4.3.1.jar”  *file.

2)   Create the path:

*“/usr/share/cloudstack-mysql-ha/lib/”*

Copy the above file to this path.

3)   Edit the file *“/etc/cloudstack/management/catalina.properties”*

check the *“common.loader” *line looks like:

*“common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,/usr/share/java/mysql-connector-java.jar,/usr/share/cloudstack-mysql-ha/lib/*.jar”*

4)   Edit the file *“/etc/cloudstack/management/db.properties”*

*db.ha.enabled=true*

*db.cloud.slaves=slave IP address*

*db.usage.slaves=slave IP address*

5)   Restart the management server.

*“Service cloudstack-management restart”*



*Regards,*

*Rajasekhar.*

On Thu, Jun 11, 2015 at 8:52 PM, Andrija Panic andrija.pa...@gmail.com
wrote:

 HI Marcus, yes I'm familiar with that, that was my guess, based on some
 other ML thread :(

 Thx for confirmation...

 On 11 June 2015 at 17:03, Marcus shadow...@gmail.com wrote:

  When I build CloudStack RPMs on 4.5 branch I get mysql ha RPMs. Looking
 at
  the specfile:
 
  %if %{_ossnoss} == noredist
 
  %package mysql-ha
 
  Summary: Apache CloudStack Balancing Strategy for MySQL
 
  Requires: mysql-connector-java
 
  Requires: %{_tomcatversion}
 
  Group: System Environmnet/Libraries
 
  %description mysql-ha
 
  Apache CloudStack Balancing Strategy for MySQL
 
 
  %endif
 
 
  Looks like you need to ./package.sh -p noredist when packaging. Not
 sure
  what the equivalent is for .deb packaging.  That means you also have to
 be
  set up with the non-oss dependencies. If you're not familiar with that
 let
  us know.
 
  On Thu, Jun 11, 2015 at 7:06 AM, Andrija Panic andrija.pa...@gmail.com
  wrote:
 
   Actually, on another ACS installation, there is file:
  
  
 
 /usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-database-mysqlha-4.3.2.jar
   (acs 4.3.2 :) )
  
   But on this 4.5.1 there is no such file.
  
   Is it possible that we didnt compile 4.5.1 in appropriate way ?
  
   Thanks,
   Andrija
  
   On 11 June 2015 at 15:14, Andrija Panic andrija.pa...@gmail.com
 wrote:
  
Hi,
   
I'm trying the DB HA setup, by chaning 3 lines in db.properties file
(enable HA, define slaves for cloud, define slaves for usage DB)
   
After restart, mgmt server doesn start with folowing error, as it
 seems
invalid load balancing strategy variable...
   
Any clues on this ?
   
mysql setup is galera 3 node cluster, 1st node being used as master
 in
db.properties, and only second node being used as slave (galera2
 node)
I confirmed I can telnet, login etc... also mysql login from mgmt to
   these
master/slaves works of course...
   
   
   
2015-06-11 14:25:03,149 INFO  [c.c.u.d.T.Transaction] (main:null) Is
  Data
Base High Availiability enabled? Ans : true
2015-06-11 14:25:03,191 INFO  [c.c.u.d.T.Transaction] (main:null) The
slaves configured for Cloud Data base is/are : 10.20.10.6
2015-06-11 14:25:03,269 ERROR [c.c.u.d.Merovingian2] (main:null)
 Unable
   to
get a new db connection
java.sql.SQLException: Invalid load balancing strategy
'com.cloud.utils.db.StaticStrategy'.
at
  com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927)
at
  com.mysql.jdbc.SQLError.createSQLException(SQLError.java:924)
at com.mysql.jdbc.Util.loadExtensions(Util.java:602)
at
   
  
 
 com.mysql.jdbc.LoadBalancingConnectionProxy.init(LoadBalancingConnectionProxy.java:285)
at
   
  
 
 com.mysql.jdbc.FailoverConnectionProxy.init(FailoverConnectionProxy.java:67)
at
   
  
 
 com.mysql.jdbc.NonRegisteringDriver.connectFailover(NonRegisteringDriver.java:430)
at
   
  
 
 com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:343)
at
 java.sql.DriverManager.getConnection(DriverManager.java:571)
at
 java.sql.DriverManager.getConnection(DriverManager.java:215)
at
   
  
 
 org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:75)
at
   
  
 
 org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
at
   
  
 
 org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1188)
at
   
  
 
 org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
at
   
  
 
 com.cloud.utils.db.TransactionLegacy.getStandaloneConnectionWithException(TransactionLegacy.java:203)
at
 com.cloud.utils.db.Merovingian2.init(Merovingian2.java:68)
at
   
 

Unable to Deploy Own Router in CS 4.5.1

2015-06-26 Thread raja sekhar
Hi All,

I am using CS 4.5.1 and xen 6.2.
I want to deploy my own router instead of default CS router.
for that i have uploaded vyatta router into cloudstack as template. enabled
routing feature. changed global parameter  router.template.xenserver  
to template id/uuid.
router is deployed from that template but it is still stuck at Starting
stage for a long time in CS UI, but it is running in xencenter.
What is the correct procedure to deploy our own router in cloudstack?
Is cloudstack support Vyatta router?
If not which 3rd party routers will support?
when vm is deployed under this router it is also stuck at starting stage.


Regards,
Rajasekhar.


Re: Public IP Missing.

2015-05-12 Thread raja sekhar
Thanks to all, the IP is free now.

Regards,
Rajasekhar.

On Tue, May 12, 2015 at 1:04 AM, anil lakineni 
anilkumar459.lakin...@gmail.com wrote:

 Hi Sanjeev and Jayapal,

 Thanks it is working, I got my IP back.

 Thanks,
 Anil.

 On Tue, May 12, 2015 at 9:45 AM, Jayapal Reddy Uradi 
 jayapalreddy.ur...@citrix.com wrote:

  Hi Rajsekhar,
 
  Try setting public ip address table columns state=Free, removed=date
 and
  allocated=null.
 
  Thanks,
  Jayapal
 
  On 12-May-2015, at 4:06 AM, raja sekhar rajsekhar@gmail.com wrote:
 
   Hi All,
  
   I have created a shared network in ACS 4.3.1.
   When ever i want to remove the network from UI, it is showing error
  unable
   to remove network. There are no vm's under this network.
   I tried to remove the network from backend by executing these commands
 in
   DB.
  
   update networks set state='Destroy',removed=now() where id=315;
   update vm_instance set state='Stopped' where id=393;
   update vm_instance set removed=now() where id=393;
   update domain_router set public_ip_address='NULL' where id=393;
   update nics set state='Deallocating' where id=747;
   update nics set removed=now() where id=747;
  
   Now the network is removed from ui, but the public ip is not getting
  free.
   what is the procedure and commands to be executed in order to free the
   public ip from backend.
  
  
   Regards,
   Rajasekhar.
 
 



Public IP Missing.

2015-05-11 Thread raja sekhar
Hi All,

I have created a shared network in ACS 4.3.1.
When ever i want to remove the network from UI, it is showing error unable
to remove network. There are no vm's under this network.
I tried to remove the network from backend by executing these commands in
DB.

update networks set state='Destroy',removed=now() where id=315;
update vm_instance set state='Stopped' where id=393;
update vm_instance set removed=now() where id=393;
update domain_router set public_ip_address='NULL' where id=393;
update nics set state='Deallocating' where id=747;
update nics set removed=now() where id=747;

Now the network is removed from ui, but the public ip is not getting free.
what is the procedure and commands to be executed in order to free the
public ip from backend.


Regards,
Rajasekhar.


Re: Routing Feature while registering template.

2015-05-04 Thread raja sekhar
hi prasanth,

thanks for your reply.
now i am getting router from an uploaded template.


Regards,
Rajasekhar.

On Fri, May 1, 2015 at 5:24 AM, Prashant Kumar Mishra 
prashantkumar.mis...@citrix.com wrote:

 Which template r u using ? ,Try with  default system vm template. After
 registering  go to global settings and search for router.template ,depend
 on hypervisor update the setting with template id/uuid .

 prashant

 On 5/1/15, 12:44 PM, raja sekhar rajsekhar@gmail.com wrote:

 Hi all,
 
 while we are uploading template,there is a feature called Routing,when
 it
 is checked it is showing check this if the template is used for deploying
 router.
 but i am unable to deploy router from that template.
  can any one tell me how to use this feature?
  Is there any possibility to use our own router instead of using
 cloudstack
 router?
 please tell me the procedure how to use this in cs 4.4.3.
 
 Regards,
 Rajasekhar.




Re: Routing Feature while registering template.

2015-05-04 Thread raja sekhar
but this will effect every account in cloudstack, is there any account
level setting in order to dedicate this router to a particular account.

Regards,
Rajasekhar.

On Mon, May 4, 2015 at 11:05 AM, raja sekhar rajsekhar@gmail.com
wrote:

 hi prasanth,

 thanks for your reply.
 now i am getting router from an uploaded template.


 Regards,
 Rajasekhar.

 On Fri, May 1, 2015 at 5:24 AM, Prashant Kumar Mishra 
 prashantkumar.mis...@citrix.com wrote:

 Which template r u using ? ,Try with  default system vm template. After
 registering  go to global settings and search for router.template ,depend
 on hypervisor update the setting with template id/uuid .

 prashant

 On 5/1/15, 12:44 PM, raja sekhar rajsekhar@gmail.com wrote:

 Hi all,
 
 while we are uploading template,there is a feature called Routing,when
 it
 is checked it is showing check this if the template is used for
 deploying
 router.
 but i am unable to deploy router from that template.
  can any one tell me how to use this feature?
  Is there any possibility to use our own router instead of using
 cloudstack
 router?
 please tell me the procedure how to use this in cs 4.4.3.
 
 Regards,
 Rajasekhar.





Routing Feature while registering template.

2015-05-01 Thread raja sekhar
Hi all,

while we are uploading template,there is a feature called Routing,when it
is checked it is showing check this if the template is used for deploying
router.
but i am unable to deploy router from that template.
 can any one tell me how to use this feature?
 Is there any possibility to use our own router instead of using cloudstack
router?
please tell me the procedure how to use this in cs 4.4.3.

Regards,
Rajasekhar.


Re: Multiple Disks created on Live Migration

2015-03-17 Thread raja sekhar
Hi ilya,

I am using ACS 4.3.1 with xenserver 6.2
During live migration of root disks, creates two disks in primary
storage.CS know about one disk and doesn,t know about second disk.I
manually tried to boot from second disk by updating volumes table(to check
second disk is useful or not),but CS is throwing error saying invalid uuid
supplied,but in primary storage both disks are showing full size.

Will CloudStack accept to boot vm from outside disks?


Regards,
Rajasekhar.

On Tue, Mar 17, 2015 at 6:35 AM, ilya musayev ilya.mailing.li...@gmail.com
wrote:

 That wont work. You should not bypass cloudstack in this manner as it
 keeps track of all configs in its DB.

 When you do stop and start VM, it recreated the config file each time. If
 you were to add another disk or make any changes outside of cloudstack,
 they will not be persistent.

 This could be a bug, but i'm surprised why no-one else reported this
 behavior yet.

 Tell us about your setup.

 Regards
 ilya


 On 3/16/15 12:48 PM, raja sekhar wrote:

 Hi Andrija,

 I have a small doubt here,why the xenserver is creating two root disks.
 by default cloudstack will boot from one disk,i manually made it to boot
 from another disk by updating volumes table(since two disks are showing
 full size) ,now cloudstack is throwing error invalid uuid supplied.
 any idea?
 one thing we have to observe here is cloudstack doesn't know about the
 second disk.

 On Thu, Mar 12, 2015 at 11:25 PM, raja sekhar rajsekhar@gmail.com
 wrote:

  ok thanks

 On Thu, Mar 12, 2015 at 3:06 AM, Andrija Panic andrija.pa...@gmail.com
 wrote:

  2 volumes are showed while migration is running - old volume should be
 deleted afterwards...
 On Mar 11, 2015 9:51 PM, raja sekhar rajsekhar@gmail.com wrote:

  Hi All,

 Iam using CS 4.3.1
 When ever i have live migrated the root volume from one primary to

 another

 primary, it will creates two root disks after migration and the vm
 boots
 from one of the root disk.
 is this bug?


 Regards,
 Rajasekhar.






Re: Multiple Disks created on Live Migration

2015-03-16 Thread raja sekhar
Hi Andrija,

I have a small doubt here,why the xenserver is creating two root disks.
by default cloudstack will boot from one disk,i manually made it to boot
from another disk by updating volumes table(since two disks are showing
full size) ,now cloudstack is throwing error invalid uuid supplied.
any idea?
one thing we have to observe here is cloudstack doesn't know about the
second disk.

On Thu, Mar 12, 2015 at 11:25 PM, raja sekhar rajsekhar@gmail.com
wrote:

 ok thanks

 On Thu, Mar 12, 2015 at 3:06 AM, Andrija Panic andrija.pa...@gmail.com
 wrote:

 2 volumes are showed while migration is running - old volume should be
 deleted afterwards...
 On Mar 11, 2015 9:51 PM, raja sekhar rajsekhar@gmail.com wrote:

  Hi All,
 
  Iam using CS 4.3.1
  When ever i have live migrated the root volume from one primary to
 another
  primary, it will creates two root disks after migration and the vm boots
  from one of the root disk.
  is this bug?
 
 
  Regards,
  Rajasekhar.
 





Re: Multiple Disks created on Live Migration

2015-03-12 Thread raja sekhar
ok thanks

On Thu, Mar 12, 2015 at 3:06 AM, Andrija Panic andrija.pa...@gmail.com
wrote:

 2 volumes are showed while migration is running - old volume should be
 deleted afterwards...
 On Mar 11, 2015 9:51 PM, raja sekhar rajsekhar@gmail.com wrote:

  Hi All,
 
  Iam using CS 4.3.1
  When ever i have live migrated the root volume from one primary to
 another
  primary, it will creates two root disks after migration and the vm boots
  from one of the root disk.
  is this bug?
 
 
  Regards,
  Rajasekhar.
 



Multiple Disks created on Live Migration

2015-03-11 Thread raja sekhar
Hi All,

Iam using CS 4.3.1
When ever i have live migrated the root volume from one primary to another
primary, it will creates two root disks after migration and the vm boots
from one of the root disk.
is this bug?


Regards,
Rajasekhar.


Re: usage server empty data

2015-03-04 Thread raja sekhar
Hi somesh,

you mean that we have to update the PID of usage server in usage_job table.

service cloudtstack-usage status
PID Value

Regards,
Rajasekhar.

On Wed, Mar 4, 2015 at 2:24 AM, Somesh Naidu somesh.na...@citrix.com
wrote:

 Make sure cloud_usage.usage_job table has correct PID.

 Regards,
 Somesh

 -Original Message-
 From: Gopalakrishnan S [mailto:go...@assistanz.com]
 Sent: Tuesday, March 03, 2015 4:51 AM
 To: users@cloudstack.apache.org
 Subject: usage server empty data

 Hi,

 Usage server keeps sending empty data. I have verified that cloudstack
 database and usage server DB details are configured properly. Noticed the
 following errors in log file, Anyone have the same issues?

 INFO  [cloud.usage.UsageManagerImpl] (Usage-Job-1:null) starting usage
 job...
 DEBUG [cloud.usage.UsageManagerImpl] (Usage-Job-1:null) Not owner of usage
 job, skipping...
 INFO  [cloud.usage.UsageManagerImpl] (Usage-Job-1:null) usage job complete


 Thank You.
 Gopalakrishnan.S



Re: Enabling HA for VM

2015-02-28 Thread raja sekhar
Hi tilak,

HA feature can be enabled in compute offering.create a new compute offering
and check the offer HA check button.
Now create a new VM from that offering which offers HA feature.if one host
is down the vm will run in another host.


Regards,
Rajasekhar.

On Sun, Mar 1, 2015 at 9:04 AM, Tilak Raj Singh tila...@gmail.com wrote:

 Hi All,

 I wish to enable HA feature for my hosts and Vms, but cant seem to find the
 correct way to do it..when creating VMs there is no option as enable HA or
 anything like that so somebody can tell how to enable HA for Vms? The docs
 dont list it out clearly as to how to achieve it.

 Regards



Re: few templates lost, cause cannot download and launch vm from that

2015-02-26 Thread raja sekhar
Hi somesh,

I am able to deploy vm's when the template is in primary storage.i have
manually removed the template from xencenter primary storage, vm 's are not
creating at that moment.but the template is still in secondary storage.
how to create vm's when the template is removed from primary storage?

In this criteria template is not copying to primary storage second time.I
understood that cloudstack doesn't know that template has removed from
primary storage.


Regards,
Rajasekhar.


On Wed, Feb 25, 2015 at 9:38 PM, Somesh Naidu somesh.na...@citrix.com
wrote:

 Raja,

 I am not sure if your understanding on how templates work is correct.

 You do not need to download a template to the primary storage. CS will do
 that as required. Also, CS will clean-up templates from primary if no
 associated VMs are running. This is expected behavior. The state of the
 template that you see in the UI refers to the status of the template on
 secondary storage.

 The exception you are getting while launching the VM seems to be a
 separate issue. You need to share more details and logs (use pastebin or
 similar).

 Regards,
 Somesh


 -Original Message-
 From: raja sekhar [mailto:rajsekhar@gmail.com]
 Sent: Wednesday, February 25, 2015 3:28 AM
 To: users@cloudstack.apache.org; d...@cloudstack.apache.org
 Subject: few templates lost, cause cannot download and launch vm from that

 Hi All,

 I am using CloudStack 4.3.1.
 some of the templates like *Template some unique number* in xencenter
 primary storage are lost.later that iam unable to deploy vm from that
 templates.saying the error

 2015-02-19 11:09:10,541 DEBUG [c.c.a.m.DirectAgentAttache]
 (DirectAgent-206:ctx-0fd9a1dd) Seq 1-1636765165: Executing request
 2015-02-19 11:09:10,597 DEBUG [c.c.h.x.r.XenServerStorageProcessor]
 (DirectAgent-206:ctx-0fd9a1dd) Catch Exception
 com.xensource.xenapi.Types$UuidInvalid :VDI getByUuid
  for uuid: a7406536-3a0a-4e16-a05c-8663af78a894 failed due to The uuid you
 supplied was invalid.
 2015-02-19 11:09:10,597 WARN  [c.c.h.x.r.XenServerStorageProcessor]
 (DirectAgent-206:ctx-0fd9a1dd) Unable to create volume;
 Pool=volumeTO[uuid=7a20df1c-3a98-46a2-92c7-5

 6ca60a9ffaa|path=null|datastore=PrimaryDataStoreTO[uuid=9fb05625-5776-3e19-8317-4812aff592a0|name=null|id=1|pooltype=NetworkFilesystem]];
 Disk:
 com.cloud.utils.exception.CloudRuntimeException: Catch Exception
 com.xensource.xenapi.Types$UuidInvalid :VDI getByUuid for uuid:
 a7406536-3a0a-4e16-a05c-8663af78a894 fa
 iled due to The uuid you supplied was invalid.




 2015-02-19 11:09:10,604 INFO  [c.c.v.VirtualMachineManagerImpl]
 (consoleproxy-1:ctx-6d3b94af) Unable to contact resource.
 com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1]
 is unreachable: Unable to create
 Vol[6|vm=6|ROOT]:com.cloud.utils.exception.CloudRuntimeException: Catch
 Exception com.xensource.xenapi.Types$UuidInvalid :VDI getByUuid for uuid:
 a7406536-3a0a-4e16-a05c-8663af78a894 failed due to The uuid you supplied
 was invalid.


 i have observed that when creating vm first time the template is copying to
 primary storage in xencenter with name *Template some unique
 number, *unfortunately
 i have lost some of the templates in xencenter primary storage, but in
 cloudstack UI it is showing ready state and i have checked SSVM too, the
 template is present.

 how to copy template to xencenter primary storage?
 Is this BUG?
 please help me to deploy vm from that template..


 Regards,
 Rajasekhar.



Re: Usage Records not Generating.

2015-02-26 Thread raja sekhar
Hi All,

Usage records are till not generating.Is there any possibility to
re-install the usage server?
If possible what is the procedure.
will it affects the management server?


Regards,
Rajasekhar.


On Thu, Feb 19, 2015 at 12:46 PM, Rohit Yadav rohit.ya...@shapeblue.com
wrote:

 Try to set the usage related timezone settings to something suitable
 such as IST etc, set the aggregation period to say hourly so you see
 something and restart the usage server and management server. Fire up
 get usage records API for mgmt server to create a usage job for you.
 Make sure both usage and mgmt servers are running. In case of multiple
 mgmt servers make sure all of them have usage servers running on them.


 On Wednesday 18 February 2015 06:12 PM, raja sekhar wrote:

 Hi Gopalakrishnan,

 I have check the db.properties file in both usage and management, both
 seems to be same and i have given usage.sanity.check.interval=1 in global
 conf.

 Regards,
 Rajasekhar.


 On Wed, Feb 18, 2015 at 6:03 PM, Gopalakrishnan S go...@assistanz.com
 wrote:

  Hi RajaSekhar,

 You can review database connection settings in your management server
 db.properties file. also verify that
 usage.sanity.check.interval settings in your global conf.

 /etc/cloudstack/usage/db.properties

 /etc/cloudstack/management/db.properties

 Thank You.
 Gopalakrishnan.S
 Cloud Engineer - Fogpanel

 - Original Message - From: raja sekhar 
 rajsekhar@gmail.com
 To: users@cloudstack.apache.org
 Cc: d...@cloudstack.apache.org
 Sent: Wednesday, February 18, 2015 5:53 PM

 Subject: Re: Usage Records not Generating.


   Hi Kishan,


 I have restarted the usage server, but still i did not get the usage
 records and even i generated the usage record from cloudmonkey,usage_job
 host is showing NULL.The usage server is unable to get the host id in
 usage_job.previously i am getting usage records,this issue arises after
 the
 directly reboot of one of my management server and slave database with
 out
 taking any precautions.

 Any Suggesstions?
 The configuration files also looks good.

 Regards,
 Rajasekhar.




 On Wed, Feb 18, 2015 at 4:59 PM, Kishan Kavala 
 kishan.kav...@citrix.com
 wrote:

   Rajasekhar,

   I do not see any errors in the usage server logs posted earlier. As
 per
 mgmt server heartbeat check, usage server is not updating usage_job
 tables
 also. Did you try restarting usage server?


 -Original Message-
 From: raja sekhar [mailto:rajsekhar@gmail.com]
 Sent: Wednesday, February 18, 2015 4:03 PM
 To: d...@cloudstack.apache.org; users@cloudstack.apache.org
 Subject: Re: Usage Records not Generating.

 Hi All,

 I have found this error in management server log file saying that usage
 server is not running,but usage server is still running. I am using two
 management servers, on Dec 27 2014 i have rebooted manually one of the
 management server,and the log is showing that date, from that date
 onwards
 iam not getting usage records.Is this BUG?
 I heard that this is fixed in 4.3.
 https://issues.apache.org/jira/browse/CLOUDSTACK-5613

 If not what is the procedure to generate usage records again?

 2015-02-18 00:08:49,700 DEBUG [c.c.a.m.DirectAgentAttache]
 (DirectAgent-152:ctx-c1bbf117) Seq 1-1418147853: Executing request
 2015-02-18 00:08:49,991 INFO  [c.c.h.HighAvailabilityManagerImpl]
 (HA-3:ctx-fc33e670) *checking health of usage server*
 2015-02-18 00:08:49,994 DEBUG [c.c.h.HighAvailabilityManagerImpl]
 (HA-3:ctx-fc33e670) *usage server running? false*, heartbeat: *Sat Dec
 27
 23:14:50 PST* *2014*
 2015-02-18 00:08:49,995 WARN  [o.a.c.alerts] (HA-3:ctx-fc33e670)
   alertType:: 13 // dataCenterId:: 0 // podId:: 0 // clusterId:: null
 //
 message:: *No usage server process running*
 2015-02-18 00:08:49,998 DEBUG [c.c.a.AlertManagerImpl]
 (HA-3:ctx-fc33e670)
 Have already sent: 1 emails for alert type '13' -- skipping send email


 Regards,
 Rajasekhar.


 On Mon, Feb 9, 2015 at 5:13 PM, raja sekhar rajsekhar@gmail.com
 wrote:

  Hi Wei,

 Thanks for your reply.
 I have found the file in cd  /etc/cloudstack/management/

 log4j-cloud.xml

 and cd /etc/cloudstack/usage/log4j-cloud.xml.it is same as you
 told.

 The log file i have captured in /var/log/cloudstack/usage/usage.log
 is:


 2014-12-28 07:15:05,773 DEBUG [db.Transaction.Transaction]
 (Usage-Job-1:null) Transaction is not closed properly:
 -UsageEventDaoImpl.getRecentEvents:99-ComponentInstantiationPostProc
 es
 sor$InterceptorDispatcher.intercept:125-
 UsageManagerImpl.parse:556-Usa
 geManagerImpl.runInContextInternal:349-UsageManagerImpl$1.
 runInContext
 :291-ManagedContextRunnable$1.run:49-DefaultManagedContext$
 1.call:56-D
 efaultManagedContext.callWithContext:103-
 DefaultManagedContext.runWith
 Context:53-ManagedContextRunnable.run:46-
 UsageManagerImpl.run:288-Exec
 utors$RunnableAdapter.call:471
 :
 -UsageEventDaoImpl.getRecentEvents:99-ComponentInstantiationPostProc
 es
 sor$InterceptorDispatcher.intercept:125-
 UsageManagerImpl.parse:556

few templates lost, cause cannot download and launch vm from that

2015-02-25 Thread raja sekhar
Hi All,

I am using CloudStack 4.3.1.
some of the templates like *Template some unique number* in xencenter
primary storage are lost.later that iam unable to deploy vm from that
templates.saying the error

2015-02-19 11:09:10,541 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-206:ctx-0fd9a1dd) Seq 1-1636765165: Executing request
2015-02-19 11:09:10,597 DEBUG [c.c.h.x.r.XenServerStorageProcessor]
(DirectAgent-206:ctx-0fd9a1dd) Catch Exception
com.xensource.xenapi.Types$UuidInvalid :VDI getByUuid
 for uuid: a7406536-3a0a-4e16-a05c-8663af78a894 failed due to The uuid you
supplied was invalid.
2015-02-19 11:09:10,597 WARN  [c.c.h.x.r.XenServerStorageProcessor]
(DirectAgent-206:ctx-0fd9a1dd) Unable to create volume;
Pool=volumeTO[uuid=7a20df1c-3a98-46a2-92c7-5
6ca60a9ffaa|path=null|datastore=PrimaryDataStoreTO[uuid=9fb05625-5776-3e19-8317-4812aff592a0|name=null|id=1|pooltype=NetworkFilesystem]];
Disk:
com.cloud.utils.exception.CloudRuntimeException: Catch Exception
com.xensource.xenapi.Types$UuidInvalid :VDI getByUuid for uuid:
a7406536-3a0a-4e16-a05c-8663af78a894 fa
iled due to The uuid you supplied was invalid.




2015-02-19 11:09:10,604 INFO  [c.c.v.VirtualMachineManagerImpl]
(consoleproxy-1:ctx-6d3b94af) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1]
is unreachable: Unable to create
Vol[6|vm=6|ROOT]:com.cloud.utils.exception.CloudRuntimeException: Catch
Exception com.xensource.xenapi.Types$UuidInvalid :VDI getByUuid for uuid:
a7406536-3a0a-4e16-a05c-8663af78a894 failed due to The uuid you supplied
was invalid.


i have observed that when creating vm first time the template is copying to
primary storage in xencenter with name *Template some unique
number, *unfortunately
i have lost some of the templates in xencenter primary storage, but in
cloudstack UI it is showing ready state and i have checked SSVM too, the
template is present.

how to copy template to xencenter primary storage?
Is this BUG?
please help me to deploy vm from that template..


Regards,
Rajasekhar.


Re: Usage Records not Generating.

2015-02-18 Thread raja sekhar
Hi All,

I have found this error in management server log file saying that usage
server is not running,but usage server is still running. I am using two
management servers, on Dec 27 2014 i have rebooted manually one of the
management server,and the log is showing that date, from that date onwards
iam not getting usage records.Is this BUG?
I heard that this is fixed in 4.3.
https://issues.apache.org/jira/browse/CLOUDSTACK-5613

If not what is the procedure to generate usage records again?

2015-02-18 00:08:49,700 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-152:ctx-c1bbf117) Seq 1-1418147853: Executing request
2015-02-18 00:08:49,991 INFO  [c.c.h.HighAvailabilityManagerImpl]
(HA-3:ctx-fc33e670) *checking health of usage server*
2015-02-18 00:08:49,994 DEBUG [c.c.h.HighAvailabilityManagerImpl]
(HA-3:ctx-fc33e670) *usage server running? false*, heartbeat: *Sat Dec 27
23:14:50 PST* *2014*
2015-02-18 00:08:49,995 WARN  [o.a.c.alerts] (HA-3:ctx-fc33e670)
 alertType:: 13 // dataCenterId:: 0 // podId:: 0 // clusterId:: null //
message:: *No usage server process running*
2015-02-18 00:08:49,998 DEBUG [c.c.a.AlertManagerImpl] (HA-3:ctx-fc33e670)
Have already sent: 1 emails for alert type '13' -- skipping send email


Regards,
Rajasekhar.


On Mon, Feb 9, 2015 at 5:13 PM, raja sekhar rajsekhar@gmail.com wrote:

 Hi Wei,

 Thanks for your reply.
 I have found the file in cd /etc/cloudstack/management/log4j-cloud.xml
 and cd /etc/cloudstack/usage/log4j-cloud.xml.it is same as you told.

 The log file i have captured in /var/log/cloudstack/usage/usage.log is:


 2014-12-28 07:15:05,773 DEBUG [db.Transaction.Transaction]
 (Usage-Job-1:null) Transaction is not closed properly:
 -UsageEventDaoImpl.getRecentEvents:99-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:125-UsageManagerImpl.parse:556-UsageManagerImpl.runInContextInternal:349-UsageManagerImpl$1.runInContext:291-ManagedContextRunnable$1.run:49-DefaultManagedContext$1.call:56-DefaultManagedContext.callWithContext:103-DefaultManagedContext.runWithContext:53-ManagedContextRunnable.run:46-UsageManagerImpl.run:288-Executors$RunnableAdapter.call:471
 :
 -UsageEventDaoImpl.getRecentEvents:99-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:125-UsageManagerImpl.parse:556-UsageManagerImpl.runInContextInternal:349-UsageManagerImpl$1.runInContext:291-ManagedContextRunnable$1.run:49-DefaultManagedContext$1.call:56-DefaultManagedContext.callWithContext:103-DefaultManagedContext.runWithContext:53-ManagedContextRunnable.run:46-UsageManagerImpl.run:288-Executors$RunnableAdapter.call:471,
 .  Called by
 -TransactionLegacy.open:166-TransactionLegacy.open:126-UsageManagerImpl.parse:786-UsageManagerImpl.runInContextInternal:349-UsageManagerImpl$1.runInContext:291-ManagedContextRunnable$1.run:49-DefaultManagedContext$1.call:56-DefaultManagedContext.callWithContext:103-DefaultManagedContext.runWithContext:53-ManagedContextRunnable.run:46-UsageManagerImpl.run:288-Executors$RunnableAdapter.call:471
 2014-12-28 07:15:05,776 INFO  [cloud.usage.UsageManagerImpl]
 (Usage-Job-1:null) usage job complete
 2014-12-29 06:39:27,416 INFO
  [context.support.ClassPathXmlApplicationContext] (main:null) Refreshing
 org.springframework.context.support.ClassPathXmlApplicationContext@1055e55f:
 startup date [Sun Dec 28 22:39:27 PST 2014]; root of context hierarchy
 2014-12-29 06:39:27,664 INFO  [factory.xml.XmlBeanDefinitionReader]
 (main:null) Loading XML bean definitions from class path resource
 [usageApplicationContext.xml]
 2014-12-29 06:39:28,929 INFO
  [context.annotation.ClassPathBeanDefinitionScanner] (main:null) JSR-330
 'javax.inject.Named' annotation found and supported for component scanning
 2014-12-29 06:39:30,436 INFO
  [factory.annotation.AutowiredAnnotationBeanPostProcessor] (main:null)
 JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
 2014-12-29 06:39:30,912 INFO
  [context.support.ClassPathXmlApplicationContext] (main:null) Bean
 'transactionContextBuilder' of type [class
 com.cloud.utils.db.TransactionContextBuilder] is not eligible for getting
 processed by all BeanPostProcessors (for example: not eligible for
 auto-proxying)
 2014-12-29 06:39:30,992 INFO  [factory.support.DefaultListableBeanFactory]
 (main:null) Pre-instantiating singletons in
 org.springframework.beans.factory.support.DefaultListableBeanFactory@259e215b:
 defining beans
 [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,volumeUsageParser,vmDiskUsageParser,portForwardingUsageParser,networkOfferingUsageParser,storageUsageParser,securityGroupUsageParser,VMInstanceUsageParser,IPAddressUsageParser,VPNUserUsageParser,VMSnapshotUsageParser,loadBalancerUsageParser,networkUsageParser

Re: Usage Records not Generating.

2015-02-18 Thread raja sekhar
Hi Kishan,

I have restarted the usage server, but still i did not get the usage
records and even i generated the usage record from cloudmonkey,usage_job
host is showing NULL.The usage server is unable to get the host id in
usage_job.previously i am getting usage records,this issue arises after the
directly reboot of one of my management server and slave database with out
taking any precautions.

Any Suggesstions?
The configuration files also looks good.

Regards,
Rajasekhar.




On Wed, Feb 18, 2015 at 4:59 PM, Kishan Kavala kishan.kav...@citrix.com
wrote:

 Rajasekhar,
  I do not see any errors in the usage server logs posted earlier. As per
 mgmt server heartbeat check, usage server is not updating usage_job tables
 also. Did you try restarting usage server?


 -Original Message-
 From: raja sekhar [mailto:rajsekhar@gmail.com]
 Sent: Wednesday, February 18, 2015 4:03 PM
 To: d...@cloudstack.apache.org; users@cloudstack.apache.org
 Subject: Re: Usage Records not Generating.

 Hi All,

 I have found this error in management server log file saying that usage
 server is not running,but usage server is still running. I am using two
 management servers, on Dec 27 2014 i have rebooted manually one of the
 management server,and the log is showing that date, from that date onwards
 iam not getting usage records.Is this BUG?
 I heard that this is fixed in 4.3.
 https://issues.apache.org/jira/browse/CLOUDSTACK-5613

 If not what is the procedure to generate usage records again?

 2015-02-18 00:08:49,700 DEBUG [c.c.a.m.DirectAgentAttache]
 (DirectAgent-152:ctx-c1bbf117) Seq 1-1418147853: Executing request
 2015-02-18 00:08:49,991 INFO  [c.c.h.HighAvailabilityManagerImpl]
 (HA-3:ctx-fc33e670) *checking health of usage server*
 2015-02-18 00:08:49,994 DEBUG [c.c.h.HighAvailabilityManagerImpl]
 (HA-3:ctx-fc33e670) *usage server running? false*, heartbeat: *Sat Dec 27
 23:14:50 PST* *2014*
 2015-02-18 00:08:49,995 WARN  [o.a.c.alerts] (HA-3:ctx-fc33e670)
  alertType:: 13 // dataCenterId:: 0 // podId:: 0 // clusterId:: null //
 message:: *No usage server process running*
 2015-02-18 00:08:49,998 DEBUG [c.c.a.AlertManagerImpl] (HA-3:ctx-fc33e670)
 Have already sent: 1 emails for alert type '13' -- skipping send email


 Regards,
 Rajasekhar.


 On Mon, Feb 9, 2015 at 5:13 PM, raja sekhar rajsekhar@gmail.com
 wrote:

  Hi Wei,
 
  Thanks for your reply.
  I have found the file in cd /etc/cloudstack/management/log4j-cloud.xml
  and cd /etc/cloudstack/usage/log4j-cloud.xml.it is same as you told.
 
  The log file i have captured in /var/log/cloudstack/usage/usage.log is:
 
 
  2014-12-28 07:15:05,773 DEBUG [db.Transaction.Transaction]
  (Usage-Job-1:null) Transaction is not closed properly:
  -UsageEventDaoImpl.getRecentEvents:99-ComponentInstantiationPostProces
  sor$InterceptorDispatcher.intercept:125-UsageManagerImpl.parse:556-Usa
  geManagerImpl.runInContextInternal:349-UsageManagerImpl$1.runInContext
  :291-ManagedContextRunnable$1.run:49-DefaultManagedContext$1.call:56-D
  efaultManagedContext.callWithContext:103-DefaultManagedContext.runWith
  Context:53-ManagedContextRunnable.run:46-UsageManagerImpl.run:288-Exec
  utors$RunnableAdapter.call:471
  :
  -UsageEventDaoImpl.getRecentEvents:99-ComponentInstantiationPostProces
  sor$InterceptorDispatcher.intercept:125-UsageManagerImpl.parse:556-Usa
  geManagerImpl.runInContextInternal:349-UsageManagerImpl$1.runInContext
  :291-ManagedContextRunnable$1.run:49-DefaultManagedContext$1.call:56-D
  efaultManagedContext.callWithContext:103-DefaultManagedContext.runWith
  Context:53-ManagedContextRunnable.run:46-UsageManagerImpl.run:288-Exec
  utors$RunnableAdapter.call:471,
  .  Called by
  -TransactionLegacy.open:166-TransactionLegacy.open:126-UsageManagerImp
  l.parse:786-UsageManagerImpl.runInContextInternal:349-UsageManagerImpl
  $1.runInContext:291-ManagedContextRunnable$1.run:49-DefaultManagedCont
  ext$1.call:56-DefaultManagedContext.callWithContext:103-DefaultManaged
  Context.runWithContext:53-ManagedContextRunnable.run:46-UsageManagerIm
  pl.run:288-Executors$RunnableAdapter.call:471
  2014-12-28 07:15:05,776 INFO  [cloud.usage.UsageManagerImpl]
  (Usage-Job-1:null) usage job complete
  2014-12-29 06:39:27,416 INFO
   [context.support.ClassPathXmlApplicationContext] (main:null)
  Refreshing
 
 org.springframework.context.support.ClassPathXmlApplicationContext@1055e55f
 :
  startup date [Sun Dec 28 22:39:27 PST 2014]; root of context hierarchy
  2014-12-29 06:39:27,664 INFO  [factory.xml.XmlBeanDefinitionReader]
  (main:null) Loading XML bean definitions from class path resource
  [usageApplicationContext.xml]
  2014-12-29 06:39:28,929 INFO
   [context.annotation.ClassPathBeanDefinitionScanner] (main:null)
  JSR-330 'javax.inject.Named' annotation found and supported for
  component scanning
  2014-12-29 06:39:30,436 INFO
   [factory.annotation.AutowiredAnnotationBeanPostProcessor] (main:null)
  JSR-330 'javax.inject.Inject' annotation found

Re: Usage Records not Generating.

2015-02-18 Thread raja sekhar
Hi Gopalakrishnan,

I have check the db.properties file in both usage and management, both
seems to be same and i have given usage.sanity.check.interval=1 in global
conf.

Regards,
Rajasekhar.


On Wed, Feb 18, 2015 at 6:03 PM, Gopalakrishnan S go...@assistanz.com
wrote:

 Hi RajaSekhar,

 You can review database connection settings in your management server
 db.properties file. also verify that
 usage.sanity.check.interval settings in your global conf.

 /etc/cloudstack/usage/db.properties

 /etc/cloudstack/management/db.properties

 Thank You.
 Gopalakrishnan.S
 Cloud Engineer - Fogpanel

 - Original Message - From: raja sekhar rajsekhar@gmail.com
 To: users@cloudstack.apache.org
 Cc: d...@cloudstack.apache.org
 Sent: Wednesday, February 18, 2015 5:53 PM

 Subject: Re: Usage Records not Generating.


  Hi Kishan,

 I have restarted the usage server, but still i did not get the usage
 records and even i generated the usage record from cloudmonkey,usage_job
 host is showing NULL.The usage server is unable to get the host id in
 usage_job.previously i am getting usage records,this issue arises after
 the
 directly reboot of one of my management server and slave database with out
 taking any precautions.

 Any Suggesstions?
 The configuration files also looks good.

 Regards,
 Rajasekhar.




 On Wed, Feb 18, 2015 at 4:59 PM, Kishan Kavala kishan.kav...@citrix.com
 wrote:

  Rajasekhar,
  I do not see any errors in the usage server logs posted earlier. As per
 mgmt server heartbeat check, usage server is not updating usage_job
 tables
 also. Did you try restarting usage server?


 -Original Message-
 From: raja sekhar [mailto:rajsekhar@gmail.com]
 Sent: Wednesday, February 18, 2015 4:03 PM
 To: d...@cloudstack.apache.org; users@cloudstack.apache.org
 Subject: Re: Usage Records not Generating.

 Hi All,

 I have found this error in management server log file saying that usage
 server is not running,but usage server is still running. I am using two
 management servers, on Dec 27 2014 i have rebooted manually one of the
 management server,and the log is showing that date, from that date
 onwards
 iam not getting usage records.Is this BUG?
 I heard that this is fixed in 4.3.
 https://issues.apache.org/jira/browse/CLOUDSTACK-5613

 If not what is the procedure to generate usage records again?

 2015-02-18 00:08:49,700 DEBUG [c.c.a.m.DirectAgentAttache]
 (DirectAgent-152:ctx-c1bbf117) Seq 1-1418147853: Executing request
 2015-02-18 00:08:49,991 INFO  [c.c.h.HighAvailabilityManagerImpl]
 (HA-3:ctx-fc33e670) *checking health of usage server*
 2015-02-18 00:08:49,994 DEBUG [c.c.h.HighAvailabilityManagerImpl]
 (HA-3:ctx-fc33e670) *usage server running? false*, heartbeat: *Sat Dec 27
 23:14:50 PST* *2014*
 2015-02-18 00:08:49,995 WARN  [o.a.c.alerts] (HA-3:ctx-fc33e670)
  alertType:: 13 // dataCenterId:: 0 // podId:: 0 // clusterId:: null //
 message:: *No usage server process running*
 2015-02-18 00:08:49,998 DEBUG [c.c.a.AlertManagerImpl]
 (HA-3:ctx-fc33e670)
 Have already sent: 1 emails for alert type '13' -- skipping send email


 Regards,
 Rajasekhar.


 On Mon, Feb 9, 2015 at 5:13 PM, raja sekhar rajsekhar@gmail.com
 wrote:

  Hi Wei,
 
  Thanks for your reply.
  I have found the file in cd  /etc/cloudstack/management/
 log4j-cloud.xml
  and cd /etc/cloudstack/usage/log4j-cloud.xml.it is same as you told.
 
  The log file i have captured in /var/log/cloudstack/usage/usage.log
  is:
 
 
  2014-12-28 07:15:05,773 DEBUG [db.Transaction.Transaction]
  (Usage-Job-1:null) Transaction is not closed properly:
  -UsageEventDaoImpl.getRecentEvents:99-ComponentInstantiationPostProces
  sor$InterceptorDispatcher.intercept:125-UsageManagerImpl.parse:556-Usa
  geManagerImpl.runInContextInternal:349-UsageManagerImpl$1.runInContext
  :291-ManagedContextRunnable$1.run:49-DefaultManagedContext$1.call:56-D
  efaultManagedContext.callWithContext:103-DefaultManagedContext.runWith
  Context:53-ManagedContextRunnable.run:46-UsageManagerImpl.run:288-Exec
  utors$RunnableAdapter.call:471
  :
  -UsageEventDaoImpl.getRecentEvents:99-ComponentInstantiationPostProces
  sor$InterceptorDispatcher.intercept:125-UsageManagerImpl.parse:556-Usa
  geManagerImpl.runInContextInternal:349-UsageManagerImpl$1.runInContext
  :291-ManagedContextRunnable$1.run:49-DefaultManagedContext$1.call:56-D
  efaultManagedContext.callWithContext:103-DefaultManagedContext.runWith
  Context:53-ManagedContextRunnable.run:46-UsageManagerImpl.run:288-Exec
  utors$RunnableAdapter.call:471,
  .  Called by
  -TransactionLegacy.open:166-TransactionLegacy.open:126-UsageManagerImp
  l.parse:786-UsageManagerImpl.runInContextInternal:349-UsageManagerImpl
  $1.runInContext:291-ManagedContextRunnable$1.run:49-DefaultManagedCont
  ext$1.call:56-DefaultManagedContext.callWithContext:103-DefaultManaged
  Context.runWithContext:53-ManagedContextRunnable.run:46-UsageManagerIm
  pl.run:288-Executors$RunnableAdapter.call:471
  2014-12-28 07:15:05,776 INFO

Usage Records not Generating.

2015-02-09 Thread raja sekhar
Hi All,

I am using CloudStack 4.3.1.Previously the usage records are generated,but
when i observed recently the usage records are not generating.The usage
records ends at 2014-12-27

mysqlselect * from job_usage\G

id: 79
host: testcs01.test.local/xx.xx.xx.xx
 pid: 1675
job_type: 0
   scheduled: 0
start_millis: 141963840
  end_millis: 141972479
   exec_time: 963
  start_date: 2014-12-27 00:00:00
end_date: 2014-12-27 23:59:59
 success: 1
   heartbeat: 2014-12-28 07:14:50

This is last record i found in usage_job.

when i manually generate the usage records from cloudmonkey,it shows
success, but the usage records are not generated in cloud_usage table.

cloudmonkey generate usagerecords startdate=2014-12-28 enddate=2015-02-08
success = true

I found an entry in cloud_job table,after generating usage records through
cloudmonkey.

id: 80
host: NULL
 pid: 0
job_type: 1
   scheduled: 0
start_millis: 0
  end_millis: 0
   exec_time: 0
  start_date: NULL
end_date: NULL
 success: NULL
   heartbeat: 2015-02-09 09:12:20

it is showing host NULL.

Any Suggestions??


Regards,
Rajasekhar.


Re: Usage Records not Generating.

2015-02-09 Thread raja sekhar
]
(main:null) Configuring
com.cloud.usage.dao.UsageVMInstanceDaoImpl_EnhancerByCloudStack_b6089cd2
2015-02-09 07:28:36,955 INFO  [utils.component.ComponentContext]
(main:null) Configuring
com.cloud.usage.dao.UsagePortForwardingRuleDaoImpl_EnhancerByCloudStack_73c7b4b4
2015-02-09 07:28:36,961 INFO  [utils.component.ComponentContext]
(main:null) Configuring
com.cloud.configuration.dao.ResourceLimitDaoImpl_EnhancerByCloudStack_5c979895
2015-02-09 07:28:36,962 INFO  [utils.component.ComponentContext]
(main:null) Configuring
com.cloud.event.dao.UsageEventDaoImpl_EnhancerByCloudStack_dd119339
2015-02-09 07:28:36,962 INFO  [utils.component.ComponentContext]
(main:null) Configuring
com.cloud.usage.dao.UsageNetworkDaoImpl_EnhancerByCloudStack_76dc9de4
2015-02-09 07:28:36,963 INFO  [utils.component.ComponentContext]
(main:null) Configuring
com.cloud.user.dao.UserAccountDaoImpl_EnhancerByCloudStack_d40fb7ef
2015-02-09 07:28:36,972 INFO  [utils.component.ComponentContext]
(main:null) Configuring
com.cloud.alert.dao.AlertDaoImpl_EnhancerByCloudStack_57f37338
2015-02-09 07:28:36,973 INFO  [utils.component.ComponentContext]
(main:null) Configuring
com.cloud.user.dao.VmDiskStatisticsDaoImpl_EnhancerByCloudStack_943707d0
2015-02-09 07:28:36,973 INFO  [utils.component.ComponentContext]
(main:null) Configuring
com.cloud.user.dao.UserDaoImpl_EnhancerByCloudStack_d49ff81c
2015-02-09 07:28:36,974 INFO  [utils.component.ComponentContext]
(main:null) Configuring
com.cloud.usage.dao.UsageVMSnapshotDaoImpl_EnhancerByCloudStack_4eb66eb
2015-02-09 07:28:36,980 INFO  [utils.component.ComponentContext]
(main:null) Configuring
com.cloud.event.dao.EventJoinDaoImpl_EnhancerByCloudStack_57783042
2015-02-09 07:28:36,981 INFO  [utils.component.ComponentContext]
(main:null) Configuring
com.cloud.usage.UsageManagerImpl_EnhancerByCloudStack_d6c7aeb5
2015-02-09 07:28:36,981 DEBUG [cloud.usage.UsageManagerImpl] (main:null)
Checking to see if usage.vmops.pid exists.
2015-02-09 07:28:36,981 INFO  [cloud.usage.UsageManagerImpl] (main:null)
Implementation Version is 4.3.1


and there are no records generated between 2014-12-29 06:39:41
and 2015-02-09 07:23:49.

waiting for your reply.

Regards,
Rajasekhar.


On Mon, Feb 9, 2015 at 3:49 PM, Wei ZHOU ustcweiz...@gmail.com wrote:

 anything in /var/log/cloudstack/usage/usage.log ?
 I guess log4j-cloud.xml is missing ? (it should be log4j-cloud.xml , not
 log4j-cloud-usage.xml)

 2015-02-09 10:47 GMT+01:00 raja sekhar rajsekhar@gmail.com:

  Hi All,
 
  I am using CloudStack 4.3.1.Previously the usage records are
 generated,but
  when i observed recently the usage records are not generating.The usage
  records ends at 2014-12-27
 
  mysqlselect * from job_usage\G
 
  id: 79
  host: testcs01.test.local/xx.xx.xx.xx
   pid: 1675
  job_type: 0
 scheduled: 0
  start_millis: 141963840
end_millis: 141972479
 exec_time: 963
start_date: 2014-12-27 00:00:00
  end_date: 2014-12-27 23:59:59
   success: 1
 heartbeat: 2014-12-28 07:14:50
 
  This is last record i found in usage_job.
 
  when i manually generate the usage records from cloudmonkey,it shows
  success, but the usage records are not generated in cloud_usage table.
 
  cloudmonkey generate usagerecords startdate=2014-12-28
 enddate=2015-02-08
  success = true
 
  I found an entry in cloud_job table,after generating usage records
 through
  cloudmonkey.
 
  id: 80
  host: NULL
   pid: 0
  job_type: 1
 scheduled: 0
  start_millis: 0
end_millis: 0
 exec_time: 0
start_date: NULL
  end_date: NULL
   success: NULL
 heartbeat: 2015-02-09 09:12:20
 
  it is showing host NULL.
 
  Any Suggestions??
 
 
  Regards,
  Rajasekhar.
 



unable to test Network Throttling.

2014-12-08 Thread raja sekhar
Hi all,

i have created one compute offering(2 CPU , 4 GB) and given the Network
Rate as 1024 Mb/s, a VM is deployed from that compute offering and in
global settings i didn't changed any Network Throttling Rate(default 200
Mb/s) and i'm unable to test the network bandwidth rate.

please suggest me how to test the bandwidth rate of the VM.



Regards,
Rajasekhar.


Re: 答复: unable to test Network Throttling.

2014-12-08 Thread raja sekhar
Hi Star,

Thanks for your reply. I'm using XenServer 6.2 and cloudstack 4.3.1.
how can i check the band width rate of the VM, is there any command for
xenserver host?

waiting for your reply.

Regards,
Rajasekhar.

On Mon, Dec 8, 2014 at 10:56 PM, Star Guo st...@ceph.me wrote:

 Hi,

 There is a priority: the network rate of compute offering  the network
 rate of global configuration.
 If you deploy on kvm host, you can use virsh command to dumpxml of the VM
 and focus on  interface ... /interface.

 Best Regards,
 Star Guo

 -邮件原件-
 发件人: raja sekhar [mailto:rajsekhar@gmail.com]
 发送时间: 2014年12月9日 14:28
 收件人: d...@cloudstack.apache.org; users@cloudstack.apache.org
 主题: unable to test Network Throttling.

 Hi all,

 i have created one compute offering(2 CPU , 4 GB) and given the Network
 Rate as 1024 Mb/s, a VM is deployed from that compute offering and in
 global settings i didn't changed any Network Throttling Rate(default 200
 Mb/s) and i'm unable to test the network bandwidth rate.

 please suggest me how to test the bandwidth rate of the VM.



 Regards,
 Rajasekhar.




Re: CloudStack DataBase HA Restoration Test

2014-10-14 Thread raja sekhar
Hi All,

I got the solution for cloudstack database high availability.

Follow the steps to enable the database high availability in cloudstack.

1)   Go to the path:

*“/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/”*

Find the *“cloud-plugin-database-mysqlha-4.3.1.jar”  *file.

2)   Create the path:

*“/usr/share/cloudstack-mysql-ha/lib/”*

Copy the above file to this path.

3)   Edit the file *“/etc/cloudstack/management/catalina.properties” *

check the *“common.loader” *line looks like:

*“common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,/usr/share/java/mysql-connector-java.jar,/usr/share/cloudstack-mysql-ha/lib/*.jar”*

4)   Edit the file *“/etc/cloudstack/management/db.properties”*

*db.ha.enabled=true*

*db.cloud.slaves=slave IP address*

*db.usage.slaves=slave IP address*

5)   Restart the management server.

*“Service cloudstack-management restart”*



*Regards,*

*Rajasekhar.*

On Wed, Sep 24, 2014 at 5:33 PM, Rajani Karuturi raj...@apache.org wrote:

 I dont know if they are readily available. probably you could check
 jenkins.buildacloud.org

 You could build one from source using the procedure at

 http://cloudstack-installation.readthedocs.org/en/latest/building_from_source.html#building-non-oss


 It also has some information about non-oss/no-redist packages.

 ~Rajani

 On Wed, Sep 24, 2014 at 5:11 PM, Venkata Suneel Babu Mallela 
 sunee...@simplifydc.com wrote:

  This setup is installed using RPM package repository. Can you please
 guide
  how to check this is a noredist build or not? And what is the use of it?
 
  There is no directory cloudstack-mysql-ha under /usr/share/.
 
  [root@cs01 share]# ls cloudstack-*
  cloudstack-bridge/ cloudstack-management/
  cloudstack-common/ cloudstack-usage/
 
  Thank you,
  Suneel Mallela.
 
  -Original Message-
  From: Rajani Karuturi [mailto:raj...@apache.org]
  Sent: Wednesday, September 24, 2014 3:30 PM
  To: users@cloudstack.apache.org
  Subject: Re: CloudStack DataBase HA Restoration Test
 
  Is this a noredist build? Did you verify that the mysql-ha jar exists at
  /usr/share/cloudstack-mysql-ha/lib/*jar?
 
 
 
 
 
  ~Rajani
 
  On Wed, Sep 24, 2014 at 12:06 PM, Venkata Suneel Babu Mallela 
  sunee...@simplifydc.com wrote:
 
   Hi Rajani,
  
   Thank you for your response. I was stuck with some work last week.
  
   I've reinstalled a new CloudStack4.4.0 and added below line to the
   file /etc/cloudstack/management/catalina.properties,
  
  
   common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catali
   na.home}/lib,${catalina.home}/lib/*.jar,/usr/share/java/mysql-connecto
   r-java.jar,/usr/share/cloudstack-mysql-ha/lib/*jar
  
   Restarted the management service, but still getting http status 404
   error, the log is below.
  
   2014-09-23 05:24:14,176 INFO
   [o.a.c.s.m.m.i.DefaultModuleDefinitionSet]
   (main:null) Loading module context [system] from URL
   [jar:file:/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/
   cloud-core-4.4.0.jar!/META-INF/cloudstack/system/spring-core-system-co
   ntext-inheritable.xml]
   2014-09-23 05:24:14,176 INFO
   [o.a.c.s.m.m.i.DefaultModuleDefinitionSet]
   (main:null) Loading module context [system] from URL
   [jar:file:/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/
   cloud-framework-config-4.4.0.jar!/META-INF/cloudstack/system/spring-fr
   amework-config-system-context-inheritable.xml]
   2014-09-23 05:24:14,176 INFO
   [o.a.c.s.m.m.i.DefaultModuleDefinitionSet]
   (main:null) Loading module context [system] from URL
   [jar:file:/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/
   cloud-plugin-network-contrail-4.4.0.jar!/META-INF/cloudstack/system/sp
   ring-contrail-system-context-inheritable.xml]
   2014-09-23 05:24:14,176 INFO
   [o.a.c.s.m.m.i.DefaultModuleDefinitionSet]
   (main:null) Loading module context [system] from URL
   [jar:file:/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/
   cloud-core-4.4.0.jar!/META-INF/cloudstack/bootstrap/spring-bootstrap-c
   ontext-inheritable.xml]
   2014-09-23 05:24:18,016 INFO  [c.c.u.d.T.Transaction] (main:null) Is
   Data Base High Availiability enabled? Ans : true
   2014-09-23 05:24:18,053 INFO  [c.c.u.d.T.Transaction] (main:null) The
   slaves configured for Cloud Data base is/are : 10.0.60.204
   2014-09-23 05:24:18,130 ERROR [c.c.u.d.Merovingian2] (main:null)
   Unable to get a new db connection
   java.sql.SQLException: Invalid load balancing strategy
   'com.cloud.utils.db.StaticStrategy'.
   at
 com.mysql.jdbc.SQLError.createSQLException(SQLError.java:934)
   at
 com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
   at com.mysql.jdbc.Util.loadExtensions(Util.java:588)
   at
  
 
 com.mysql.jdbc.LoadBalancingConnectionProxy.init(LoadBalancingConnectionProxy.java:280)
   at
  
 
 

[ERROR] Failed create template from snapshot The uuid you supplied was invalid.

2014-09-23 Thread raja sekhar
Hi All,

I have upgraded ACS 4.3 to 4.4.0.From that time onwards the root volume
snapshots are not taking properly, sometimes the snapshots are taking and
sometimes the snapshots stuck in ERROR state. when ever i want to create
template from a backedup snapshot i'm getting the error Failed create
template from snapshot
The uuid you supplied was invalid.

The log file shows,

2014-09-23 18:55:54,197 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager
Timer:ctx-5e74939f) Acquiring hosts for clusters already owned by this
management server
2014-09-23 18:55:54,199 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager
Timer:ctx-5e74939f) Completed acquiring hosts for clusters already owned by
this management server
2014-09-23 18:55:54,199 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager
Timer:ctx-5e74939f) Acquiring hosts for clusters not owned by any
management server
2014-09-23 18:55:54,200 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager
Timer:ctx-5e74939f) Completed acquiring hosts for clusters not owned by any
management server
2014-09-23 18:56:02,808 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-2:null) SeqA 23-69610: Processing Seq 23-69610:  {
Cmd , MgmtId: -1, via: 23, Ver: v1, Flags: 11,
[{com.cloud.agent.api.ConsoleProxyLoadReportCommand:{_proxyVmId:155,_loadInfo:{\n
 \connections\: []\n},wait:0}}] }
2014-09-23 18:56:02,813 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-2:null) SeqA 23-69610: Sending Seq 23-69610:  { Ans:
, MgmtId: 52244012385, via: 23, Ver: v1, Flags: 100010,
[{com.cloud.agent.api.AgentControlAnswer:{result:true,wait:0}}] }
2014-09-23 18:56:07,809 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-4:null) SeqA 23-69611: Processing Seq 23-69611:  {
Cmd , MgmtId: -1, via: 23, Ver: v1, Flags: 11,
[{com.cloud.agent.api.ConsoleProxyLoadReportCommand:{_proxyVmId:155,_loadInfo:{\n
 \connections\: []\n},wait:0}}] }
2014-09-23 18:56:07,814 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-4:null) SeqA 23-69611: Sending Seq 23-69611:  { Ans:
, MgmtId: 52244012385, via: 23, Ver: v1, Flags: 100010,
[{com.cloud.agent.api.AgentControlAnswer:{result:true,wait:0}}] }
2014-09-23 18:56:10,833 DEBUG [c.c.c.ConsoleProxyManagerImpl]
(consoleproxy-1:ctx-120d1e42) Zone 1 is ready to launch console proxy
2014-09-23 18:56:10,949 DEBUG [o.a.c.s.SecondaryStorageManagerImpl]
(secstorage-1:ctx-2b827d35) Zone 1 is ready to launch secondary storage VM
2014-09-23 18:56:16,215 DEBUG [c.c.a.ApiServlet]
(catalina-exec-2:ctx-1b03b697) ===START===  10.0.1.100 -- GET
 
command=createTemplateresponse=jsonsessionkey=bKgNoaskvKmQI0pYS%2F9DuT4raSA%3Dsnapshotid=907fc0ec-d782-4407-8560-83e335f5c79ename=testtmpdisplayText=testtmposTypeId=d84de96a-1495-11e4-ba8d-000c29a411ceisPublic=falsepasswordEnabled=falseisdynamicallyscalable=false_=1411524124265
2014-09-23 18:56:16,246 DEBUG [c.c.t.TemplateManagerImpl]
(catalina-exec-2:ctx-1b03b697 ctx-11184fc3) This template is getting
created from other template, setting source template Id to: 5
2014-09-23 18:56:16,292 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(catalina-exec-2:ctx-1b03b697 ctx-11184fc3) submit async job-4429, details:
AsyncJobVO {id:4429, userId: 2, accountId: 2, instanceType: Template,
instanceId: 230, cmd:
org.apache.cloudstack.api.command.admin.template.CreateTemplateCmdByAdmin,
cmdInfo:
{sessionkey:bKgNoaskvKmQI0pYS/9DuT4raSA\u003d,cmdEventType:TEMPLATE.CREATE,ctxUserId:2,httpmethod:GET,osTypeId:d84de96a-1495-11e4-ba8d-000c29a411ce,isPublic:false,isdynamicallyscalable:false,response:json,id:230,ctxDetails:{\com.cloud.storage.Snapshot\:\907fc0ec-d782-4407-8560-83e335f5c79e\,\com.cloud.template.VirtualMachineTemplate\:\1c9dff2f-22e9-4349-9bee-3c80d0bb4eea\,\com.cloud.storage.GuestOS\:\d84de96a-1495-11e4-ba8d-000c29a411ce\},displayText:testtmp,snapshotid:907fc0ec-d782-4407-8560-83e335f5c79e,passwordEnabled:false,name:testtmp,_:1411524124265,uuid:1c9dff2f-22e9-4349-9bee-3c80d0bb4eea,ctxAccountId:2,ctxStartEventId:16996},
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0,
result: null, initMsid: 52244012385, completeMsid: null, lastUpdated: null,
lastPolled: null, created: null}
2014-09-23 18:56:16,293 INFO  [o.a.c.f.j.i.AsyncJobMonitor]
(API-Job-Executor-65:ctx-5c66f5fd job-4429) Add job-4429 into job monitoring
2014-09-23 18:56:16,293 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-65:ctx-5c66f5fd job-4429) Executing AsyncJobVO {id:4429,
userId: 2, accountId: 2, instanceType: Template, instanceId: 230, cmd:
org.apache.cloudstack.api.command.admin.template.CreateTemplateCmdByAdmin,
cmdInfo:

console view not coming

2014-05-05 Thread raja sekhar
hii all,

After upgrading from cloudstack 4.2 to cloudstack 4.3,when i click on
console view it shows that google crome(The server refused the connection)
and firefox(can't establish a connection to the server).



regards,
rajasekhar


about api

2014-03-26 Thread raja sekhar
can any one tell me about  How to sign an API call with Python and please
refer any link or material regarding this.


regards,
rajasekhar


Re: No running ssvm is found

2014-03-26 Thread raja sekhar
hii,
can any one tell  How to sign an API call with Python or give any link
regarding this.

regards,
rajasekhar



On Wed, Mar 26, 2014 at 4:12 PM, sandeep khandekar 
cloudstack.sand...@gmail.com wrote:

 Dear All,
 How to remove these error?
 No running ssvm is found

 why do we get these error?

 Thankyou

 --
 SANDEEP KHANDEKAR
 Assistant Professor
 Department of Computer science and engineering
 Sreenidhi Institute of science and Technology
 Hyderabad