Register ISO

2016-05-05 Thread Mohd Zainal Abidin Rabani
Hi,

 

IS there anyway to quick register without using URL? Like copy-paste and
define back at backend? 

 

Regards,

 

Mohd Zainal Abidin Rabani

Technical Support

 

ModernOne Data Solutions Sdn. Bhd.

[ Dedicated Server | VPS | Co-Location | Hosting ]

[ Managed Service | System Integration | Domain ]

W : www.nocser.net

FB: http://www.facebook.com/nocser

Twitter: @nocsertech

Skype: zabidin5417

 



RE: Error: "Unable to add host"

2016-05-05 Thread Mohd Zainal Abidin Rabani
Does agent on host running? Try to stop libvirt. Check log on agent and 
/var/log/message.

-Original Message-
From: Cayetano Rodríguez [mailto:tfg.cloudcomput...@gmail.com] 
Sent: 06 Mei 2016 1:25
To: users@cloudstack.apache.org
Subject: Re: Error: "Unable to add host"

I am still getting this error. I can't add a host to my Cloudstack 
installation. I followed the Quick Installation Guide and everything works 
okay, except I can't add a host. When I try to do it I see the error message 
"Unable to add the host". I'm using KVM on Centos 6.5, and I want to install 
the management server and first host in the same machine.

Could anyone help me? I really need to get this and I don't have enough 
resources to try Cloudstack with 2 different machines (as it says in the guide, 
it is possible to install everything in a single machine).

Thank you very much.

2016-04-22 13:37 GMT+02:00 Cayetano Rodríguez 
:

> Now it shows the kvm_intel line
>
> [root@srvr1 ~]# lsmod | grep kvm
> kvm_intel  55624  0
> kvm   341551  1 kvm_intel
>
> 2016-04-22 6:12 GMT+02:00 Pavan Bandarupally <
> pavan.bandarupa...@accelerite.com>:
>
>> What did the lsmod | grep kvm output after enabling virtualization ? 
>> Did it show kvm_intel this time ? If it hasn't can you try installing 
>> kvm-qemu package and give it a try ?
>>
>> -Original Message-
>> From: Cayetano Rodríguez [mailto:tfg.cloudcomput...@gmail.com]
>> Sent: Thursday, April 21, 2016 11:56 PM
>> To: users@cloudstack.apache.org
>> Subject: Re: Error: "Unable to add host"
>>
>> It wasn't enabled but I enabled the virtualization in the BIOS and I 
>> still can't add a host
>>
>> El lunes, 18 de abril de 2016, Pavan Bandarupally < 
>> pavan.bandarupa...@accelerite.com> escribió:
>>
>> > Is Virtualization enabled in the BIOS for the machine ?
>> >
>> > -Original Message-
>> > From: Cayetano Rodríguez [mailto:tfg.cloudcomput...@gmail.com
>> > ]
>> > Sent: Friday, April 15, 2016 8:05 PM
>> > To: users@cloudstack.apache.org 
>> > Subject: Re: Error: "Unable to add host"
>> >
>> > Yes, I'm trying to setup everything on a single machine. I followed 
>> > that guide and now I've checked all steps in the KVM section. When 
>> > I
>> execute  "
>> > lsmod | grep kvm "
>> >  I get the following output:
>> > [root@srvr1 ~]# lsmod | grep kvm
>> > kvm   341551  0
>> >
>> > In the guide it appears in the output another line (kvm_intel), am 
>> > I doing something wrong so that line doesn't appear?
>> >
>> > Thank you
>> >
>> > 2016-04-15 4:06 GMT+02:00 Pavan Bandarupally < 
>> > pavan.bandarupa...@accelerite.com >:
>> >
>> > > If you have resources, it is recommended to have management 
>> > > server and host on separate machines. But just to troubleshoot 
>> > > your environment you can check the below link and see if things work.
>> > >
>> > > From my understanding you are trying to setup everything ( 
>> > > management server and hotst) on a single machine. The error you 
>> > > face is generally seen if the hypervisor host doesn't have KVM 
>> > > agent installed properly (I might be wrong here). Can you please 
>> > > go through the below link and make sure that you have followed 
>> > > all the required steps (for KVM installation ) and confirm if KVM 
>> > > is properly installed (say by checking
>> > lsmod | grep kvm ) ?
>> > >
>> > >
>> > > http://docs.cloudstack.apache.org/projects/cloudstack-installatio
>> > > n/e
>> > > n/
>> > > 4.6/qig.html
>> > >
>> > > Regards,
>> > > Pavan
>> > >
>> > >
>> > > -Original Message-
>> > > From: Cayetano Rodríguez [mailto:tfg.cloudcomput...@gmail.com
>> > ]
>> > > Sent: Friday, April 15, 2016 6:08 AM
>> > > To: users@cloudstack.apache.org 
>> > > Subject: Re: Error: "Unable to add host"
>> > >
>> > > The managenent ip address is the same as the host ip address, and 
>> > > the same as the machine that I'm using...
>> > > I've done this because I've followed the Quick Installation Guide 
>> > > that is focused on doing everything in the same machine, and this 
>> > > guide specifies to use the same ip addresses in managenent server 
>> > > and the
>> > first host.
>> > >
>> > > I am interested in getting started on CloudStack doing this "trial"
>> > > installation, so I don't need lots of resources (and actually 
>> > > don't have them at this moment). For this reason I think doing 
>> > > everything in the same machine is the best option for me.
>> > >
>> > > If you could help me doing this that would be great, or if it's 
>> > > not possible and you think it's better and easier separating the 
>> > > management server and host, I could look for another machine to use.
>> > >
>> > > Thank you very much.
>> > >
>> > > El jueves, 14 de abril de 2016, Simon Weller > > > escribió:
>> > >
>> > > > Can you ping the ip address you supplied from 

[SOLVED]: corrupt DB after VM live migration with storage migration

2016-05-05 Thread Yiping Zhang
First,  I’d like to thank Ilya and Ahmad for their feedbacks.

Here is the procedure I followed to get this issue fixed:

1. For safety,  I updated following global settings:
expunge.delay => 86400 (original value: 60 sec)
expunge.interval => 86400 (original value: 60 sec)
storage.cleanup.enabled => false  (original value: true)
2. Shutdown cloudstack-management service
3. Do a full database backup using mysqldump for database cloud.
4. As we are using NetApp for primary storage, I took a manual snapshot of the 
volume.
5. Start cloudstack-management service for new global settings to take effect. 
5. Shut down VM instances from web UI
6. Do database fixups:

6a. Find out volume names for the instance you are fixing. In this example, the 
instance has two volumes with name ROOT-98 and DATA-98’
6b. Get current info for these volumes from volumes table. Here is the current 
entries (before fixing):

mysql> select id, name, instance_id, uuid, path, pool_id, state, removed from 
volumes where name='ROOT-98' or name='DATA-98';
+-+-+-+--+--+-+-+-+
| id  | name| instance_id | uuid | path 
| pool_id | state   | removed |
+-+-+-+--+--+-+-+-+
| 126 | ROOT-98 |  98 | ebc10ccc-9f58-4b2a-8748-f52caacb587c | 
25400c2c-0f39-475f-9f9c-50fdd05afab3 |   1 | Ready   | NULL|
| 127 | DATA-98 |  98 | f8794a2c-6cd0-4e26-a3c7-fdb7ec465ba3 | 
b54b2f04-dfec-4623-90fa-41c726067e7f |   1 | Ready   | NULL|
| 322 | ROOT-98 |NULL | 0f183764-2349-42c9-9fdd-944b892173ab | NULL 
|   8 | Destroy | 2016-05-03 19:06:39 |
| 323 | ROOT-98 |NULL | f2753635-4616-48c8-94bc-97d2a09b72a3 | NULL 
|   8 | Destroy | 2016-05-04 11:01:19 |
+-+-+-+--+--+-+-+-+

6c. Find out UUIDs for volumes ROOT-98 and DATA-98 on the new hypervisor pool, 
using xe CLI tool on one of hypervisors in the pool:


# xe vdi-list name-label=ROOT-98 read-only=false | grep "^uuid"
uuid ( RO): 27be8a27-e26a-457b-9140-6181a1bc6bd2
# xe vdi-list name-label=DATA-98 read-only=false | grep "^uuid"
uuid ( RO): 1c5d388a-fc36-4e0c-94dd-64e450eef7ab

6d. Now run SQL update statements to modify volumes with id=323, the root disk, 
and id=127, the data disk, so that they look like following:


mysql> select id, name, instance_id, uuid, path, pool_id, state, removed from 
volumes where name='ROOT-98' or name='DATA-98’; 
+-+-+-+--+--+-+-+-+
| id  | name| instance_id | uuid | path 
| pool_id | state   | removed |
+-+-+-+--+--+-+-+-+
| 126 | ROOT-98 |NULL | ebc10ccc-9f58-4b2a-8748-f52caacb587c | 
25400c2c-0f39-475f-9f9c-50fdd05afab3 |   1 | Ready   | 2016-05-05 18:53:36 |
| 127 | DATA-98 |  98 | f8794a2c-6cd0-4e26-a3c7-fdb7ec465ba3 | 
1c5d388a-fc36-4e0c-94dd-64e450eef7ab |   8 | Ready   | NULL|
| 322 | ROOT-98 |NULL | 0f183764-2349-42c9-9fdd-944b892173ab | NULL 
|   8 | Destroy | 2016-05-03 19:06:39 |
| 323 | ROOT-98 |  98 | f2753635-4616-48c8-94bc-97d2a09b72a3 | 
27be8a27-e26a-457b-9140-6181a1bc6bd2 |   8 | Ready   | NULL|
+-+-+-+--+--+-+-+-+
4 rows in set (0.00 sec)

Note:  Entry with id-126 has columns instance_id, removed updated;
   Entry with id=127 has columns path, pool_id updated;
   Entry with id=323 has columns instance_id, path, state, removed updated;

6e. Start the VM instance.  Just to be really sure,  I also stop and started 
the instance once more through the web UI to make sure that the instance can be 
rebooted normally.

Repeat steps 5, and 6a-e for each VM instances that need the fix.

That’s all I have to do to recover all four Vm instances.


Now,  I still don’t know what is the root cause of this problem and how can I 
avoid it in the future.


Have a good day, all.

Yiping







On 5/4/16, 11:25 PM, "Yiping Zhang"  wrote:

>Thanks, it’s a good idea to back up those “removed” disks first before 
>attempting DB 

change cache option in existing disk offering

2016-05-05 Thread Andrei Mikhailovsky
Hello guys, 

I've got a bunch of existing vms which were created before the ACS cache option 
could be configured. The existing disk offerings show cache=none and I would 
like to change that. The GUI doesn't give me that option when I am editing the 
disk offering. 

Can I simply change the value in the database and stop/start each vm? Would 
this work? 

Many thanks 

Andrei 


CCCNA -place to stay

2016-05-05 Thread Ron Wheeler

Just in case people are looking for a place to stay in Montreal.

A friend of mine has a place to rent downtown.

https://www.facebook.com/Chickie9/media_set?set=a.10153713527700033.1073741837.614030032=3

--
Ron Wheeler
President
Artifact Software Inc
email: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102



Re: Organizing CCCNA16 Hackathon

2016-05-05 Thread Pierre-Luc Dion
Thanks John  for that initiative.

Good idea to start organizing teams and topics since we won't have much
time on site. As Will said the main theme would be around CI, and we are
working to get enought hardware and ressource so all teams could have their
own setup...

Cheers,

PL

On Thu, May 5, 2016 at 12:02 PM, Will Stevens 
wrote:

> Hey John,
> Thanks for the initiative.  We will be focusing the hackathon mainly
> around testing.  I will be setting up full environments for the teams to
> work with and those details will be made available on the day of the
> hackathon.
>
> I think it is a good idea to have a general theme for the hackathon to
> help focus us on getting actionable work done.
>
> I like the idea of having topics submitted early and teams getting
> organized prior to the actual hackathon.
>
> Cheers,
>
> Will
>
> On Thu, May 5, 2016 at 10:23 AM, John Burwell 
> wrote:
>
>> All,
>>
>> In advance of the CCNA16 Hackathon on Wednesday, 1 June 2016, it seems
>> like it would be wise to organize the topics which people are interested in
>> addressing.  My thought is anyone may suggest a topic and/or register their
>> interest in a topic.  Also, since there will likely be a number of people
>> unable to physically attend, we can create a Google Hangout for each
>> group.  Hopefully, by organizing the topics in advance and broadcasting our
>> work, we can further extend participation across the community.
>>
>> To begin organizing topics, I have created a public Google Spreadsheet
>> [1] with columns for group name, organizer/proposer,  interested
>> participants, and a Hangout URL.  If you would like to propose a topic,
>> create a new row with the name of the group, your name and email, and a
>> Hangout URL (instructions[2]).  If you are interested in one or more
>> topics, please add your name and email to the row.  I would also like to
>> propose that we record the Hangout sessions (upload location TBD), and that
>> the organizer of the topic report any results of their efforts with a URL
>> of the recording back to dev@.
>>
>> Finally, I have included users@ and marketing@ as they may also wish to
>> participate.
>>
>> Thanks,
>> -John
>>
>> [1]:
>> https://docs.google.com/spreadsheets/d/14U0E1YpgZvsBc88SHVojo-XzOLAKs-WFEkMxXlrAl_o/edit#gid=0
>> [2]: https://support.google.com/hangouts/answer/3111943?hl=en
>>
>>
>>
>>
>>
>> john.burw...@shapeblue.com
>> www.shapeblue.com
>> @shapeblue
>>
>
>


Re: Error: "Unable to add host"

2016-05-05 Thread Cayetano Rodríguez
I am still getting this error. I can't add a host to my Cloudstack
installation. I followed the Quick Installation Guide and everything works
okay, except I can't add a host. When I try to do it I see the error
message "Unable to add the host". I'm using KVM on Centos 6.5, and I want
to install the management server and first host in the same machine.

Could anyone help me? I really need to get this and I don't have enough
resources to try Cloudstack with 2 different machines (as it says in the
guide, it is possible to install everything in a single machine).

Thank you very much.

2016-04-22 13:37 GMT+02:00 Cayetano Rodríguez 
:

> Now it shows the kvm_intel line
>
> [root@srvr1 ~]# lsmod | grep kvm
> kvm_intel  55624  0
> kvm   341551  1 kvm_intel
>
> 2016-04-22 6:12 GMT+02:00 Pavan Bandarupally <
> pavan.bandarupa...@accelerite.com>:
>
>> What did the lsmod | grep kvm output after enabling virtualization ? Did
>> it show kvm_intel this time ? If it hasn't can you try installing kvm-qemu
>> package and give it a try ?
>>
>> -Original Message-
>> From: Cayetano Rodríguez [mailto:tfg.cloudcomput...@gmail.com]
>> Sent: Thursday, April 21, 2016 11:56 PM
>> To: users@cloudstack.apache.org
>> Subject: Re: Error: "Unable to add host"
>>
>> It wasn't enabled but I enabled the virtualization in the BIOS and I
>> still can't add a host
>>
>> El lunes, 18 de abril de 2016, Pavan Bandarupally <
>> pavan.bandarupa...@accelerite.com> escribió:
>>
>> > Is Virtualization enabled in the BIOS for the machine ?
>> >
>> > -Original Message-
>> > From: Cayetano Rodríguez [mailto:tfg.cloudcomput...@gmail.com
>> > ]
>> > Sent: Friday, April 15, 2016 8:05 PM
>> > To: users@cloudstack.apache.org 
>> > Subject: Re: Error: "Unable to add host"
>> >
>> > Yes, I'm trying to setup everything on a single machine. I followed
>> > that guide and now I've checked all steps in the KVM section. When I
>> execute  "
>> > lsmod | grep kvm "
>> >  I get the following output:
>> > [root@srvr1 ~]# lsmod | grep kvm
>> > kvm   341551  0
>> >
>> > In the guide it appears in the output another line (kvm_intel), am I
>> > doing something wrong so that line doesn't appear?
>> >
>> > Thank you
>> >
>> > 2016-04-15 4:06 GMT+02:00 Pavan Bandarupally <
>> > pavan.bandarupa...@accelerite.com >:
>> >
>> > > If you have resources, it is recommended to have management server
>> > > and host on separate machines. But just to troubleshoot your
>> > > environment you can check the below link and see if things work.
>> > >
>> > > From my understanding you are trying to setup everything (
>> > > management server and hotst) on a single machine. The error you face
>> > > is generally seen if the hypervisor host doesn't have KVM agent
>> > > installed properly (I might be wrong here). Can you please go
>> > > through the below link and make sure that you have followed all the
>> > > required steps (for KVM installation ) and confirm if KVM is
>> > > properly installed (say by checking
>> > lsmod | grep kvm ) ?
>> > >
>> > >
>> > > http://docs.cloudstack.apache.org/projects/cloudstack-installation/e
>> > > n/
>> > > 4.6/qig.html
>> > >
>> > > Regards,
>> > > Pavan
>> > >
>> > >
>> > > -Original Message-
>> > > From: Cayetano Rodríguez [mailto:tfg.cloudcomput...@gmail.com
>> > ]
>> > > Sent: Friday, April 15, 2016 6:08 AM
>> > > To: users@cloudstack.apache.org 
>> > > Subject: Re: Error: "Unable to add host"
>> > >
>> > > The managenent ip address is the same as the host ip address, and
>> > > the same as the machine that I'm using...
>> > > I've done this because I've followed the Quick Installation Guide
>> > > that is focused on doing everything in the same machine, and this
>> > > guide specifies to use the same ip addresses in managenent server
>> > > and the
>> > first host.
>> > >
>> > > I am interested in getting started on CloudStack doing this "trial"
>> > > installation, so I don't need lots of resources (and actually don't
>> > > have them at this moment). For this reason I think doing everything
>> > > in the same machine is the best option for me.
>> > >
>> > > If you could help me doing this that would be great, or if it's not
>> > > possible and you think it's better and easier separating the
>> > > management server and host, I could look for another machine to use.
>> > >
>> > > Thank you very much.
>> > >
>> > > El jueves, 14 de abril de 2016, Simon Weller > > > escribió:
>> > >
>> > > > Can you ping the ip address you supplied from the management server?
>> > > > Are you able to ssh into it using the credentials (from the
>> > > > management
>> > > > server) you're using in the Cloudstack GUI?
>> > > >
>> > > > ICloudstack is really designed to be deployed on separate servers,
>> > > > so mixing management and hosts can complicate things a fair bit.

Re: Organizing CCCNA16 Hackathon

2016-05-05 Thread Will Stevens
Hey John,
Thanks for the initiative.  We will be focusing the hackathon mainly around
testing.  I will be setting up full environments for the teams to work with
and those details will be made available on the day of the hackathon.

I think it is a good idea to have a general theme for the hackathon to help
focus us on getting actionable work done.

I like the idea of having topics submitted early and teams getting
organized prior to the actual hackathon.

Cheers,

Will

On Thu, May 5, 2016 at 10:23 AM, John Burwell 
wrote:

> All,
>
> In advance of the CCNA16 Hackathon on Wednesday, 1 June 2016, it seems
> like it would be wise to organize the topics which people are interested in
> addressing.  My thought is anyone may suggest a topic and/or register their
> interest in a topic.  Also, since there will likely be a number of people
> unable to physically attend, we can create a Google Hangout for each
> group.  Hopefully, by organizing the topics in advance and broadcasting our
> work, we can further extend participation across the community.
>
> To begin organizing topics, I have created a public Google Spreadsheet [1]
> with columns for group name, organizer/proposer,  interested participants,
> and a Hangout URL.  If you would like to propose a topic, create a new row
> with the name of the group, your name and email, and a Hangout URL
> (instructions[2]).  If you are interested in one or more topics, please add
> your name and email to the row.  I would also like to propose that we
> record the Hangout sessions (upload location TBD), and that the organizer
> of the topic report any results of their efforts with a URL of the
> recording back to dev@.
>
> Finally, I have included users@ and marketing@ as they may also wish to
> participate.
>
> Thanks,
> -John
>
> [1]:
> https://docs.google.com/spreadsheets/d/14U0E1YpgZvsBc88SHVojo-XzOLAKs-WFEkMxXlrAl_o/edit#gid=0
> [2]: https://support.google.com/hangouts/answer/3111943?hl=en
>
>
>
>
>
> john.burw...@shapeblue.com
> www.shapeblue.com
> @shapeblue
>


Organizing CCCNA16 Hackathon

2016-05-05 Thread John Burwell
All,

In advance of the CCNA16 Hackathon on Wednesday, 1 June 2016, it seems like it 
would be wise to organize the topics which people are interested in addressing. 
 My thought is anyone may suggest a topic and/or register their interest in a 
topic.  Also, since there will likely be a number of people unable to 
physically attend, we can create a Google Hangout for each group.  Hopefully, 
by organizing the topics in advance and broadcasting our work, we can further 
extend participation across the community.

To begin organizing topics, I have created a public Google Spreadsheet [1] with 
columns for group name, organizer/proposer,  interested participants, and a 
Hangout URL.  If you would like to propose a topic, create a new row with the 
name of the group, your name and email, and a Hangout URL (instructions[2]).  
If you are interested in one or more topics, please add your name and email to 
the row.  I would also like to propose that we record the Hangout sessions 
(upload location TBD), and that the organizer of the topic report any results 
of their efforts with a URL of the recording back to dev@.

Finally, I have included users@ and marketing@ as they may also wish to 
participate.

Thanks,
-John

[1]: 
https://docs.google.com/spreadsheets/d/14U0E1YpgZvsBc88SHVojo-XzOLAKs-WFEkMxXlrAl_o/edit#gid=0
[2]: https://support.google.com/hangouts/answer/3111943?hl=en

Regards,

John Burwell

john.burw...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London VA WC2N 4HSUK
@shapeblue


Re: Live migration causing VM's file system read-only

2016-05-05 Thread Lv Haijiao
Hi, Dag

Thanks for your hint !

We don't have chance to reproduce this on our production platform,  but we
notice most of these VMs hitting this issue are DB server.

Even that, live migration is supposed to consume less bandwidth as majority
of VM data is still on the shared storage, need no replication, except the
data in memory.

Is it right ? :-)

2016-05-05 18:04 GMT+08:00 Lv Haijiao :

> Hi,
>
> Here's our environment,
>
>
>- ACS 4.7.1
>- Ubuntu 14.04 KVM
>- NFS as shared, primary storage
>
>
> While we do a couple of VMs live migration in sequence from physical
> server A to B,  the file system of some VMs goes into 'ready only' status
> unless we reboot the VM again.
>
> No clue why we only hit this issue on some of VMs.
>
> Any advice or experience sharing is most appreciated !
>


Re: Live migration causing VM's file system read-only

2016-05-05 Thread Dag Sonstebo
Hi Lv,

it sounds like you may have disk timeout issues on your VMs, which would 
potentially be a sign of poor performance on your storage network. Does the 
issue hit any specific guest OS more than others?


Regards,
Dag Sonstebo
Cloud Architect 
ShapeBlue






On 05/05/2016, 11:04, "Lv Haijiao"  wrote:

>Hi,
>
>Here's our environment,
>
>
>   - ACS 4.7.1
>   - Ubuntu 14.04 KVM
>   - NFS as shared, primary storage
>
>
>While we do a couple of VMs live migration in sequence from physical server
>A to B,  the file system of some VMs goes into 'ready only' status unless
>we reboot the VM again.
>
>No clue why we only hit this issue on some of VMs.
>
>Any advice or experience sharing is most appreciated !

Regards,

Dag Sonstebo

dag.sonst...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK
@shapeblue


Live migration causing VM's file system read-only

2016-05-05 Thread Lv Haijiao
Hi,

Here's our environment,


   - ACS 4.7.1
   - Ubuntu 14.04 KVM
   - NFS as shared, primary storage


While we do a couple of VMs live migration in sequence from physical server
A to B,  the file system of some VMs goes into 'ready only' status unless
we reboot the VM again.

No clue why we only hit this issue on some of VMs.

Any advice or experience sharing is most appreciated !


RE: Unable to add host

2016-05-05 Thread Mohd Zainal Abidin Rabani
Hi,

I manage to get agent up and running on host. It's cause of libvirtd.service. 
When i stop libvirtd.service, then cloudstack-agent can be up.

-Original Message-
From: Boris Stoyanov [mailto:boris.stoya...@shapeblue.com] 
Sent: 05 Mei 2016 17:07
To: users@cloudstack.apache.org
Subject: Re: Unable to add host

local storage path by default is /var/lib/libvirt/images/ if you have not 
explicitly changed that in agent.properties means you’re using this location. 
Now the error says the directory does not exist, so I would assume something 
went wrong with libvirt installation/configuration. 


> 
Regards,

Boris Stoyanov

boris.stoya...@shapeblue.com
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK @shapeblue On May 5, 2016, 
at 11:57 AM, Mohd Zainal Abidin Rabani  wrote:
> 
> This error keep repeating in agent.log.
> 
> -Original Message-
> From: Mohd Zainal Abidin Rabani [mailto:zai...@nocser.net]
> Sent: 05 Mei 2016 16:53
> To: users@cloudstack.apache.org
> Subject: RE: Unable to add host
> 
> Need to use pastebin as qmail apache have limit size email:
> http://pastebin.com/4yt1ivcY
> 
> -Original Message-
> From: Boris Stoyanov [mailto:boris.stoya...@shapeblue.com]
> Sent: 05 Mei 2016 16:38
> To: users@cloudstack.apache.org
> Subject: Re: Unable to add host
> 
> Hi Mohd,
> 
> In the same logs location you should be able to find agent logs, can you 
> share what’s there?
> 
> Thanks.
> 
>> 
> Regards,
> 
> Boris Stoyanov
> 
> boris.stoya...@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK @shapeblue On May 5, 
> 2016, at 11:34 AM, Mohd Zainal Abidin Rabani  wrote:
>> 
>> Seem like something wrong some where. Agent not stable. Runing and not 
>> running:
>> 
>> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
>> cloudstack-agent.service - CloudStack Agent
>>  Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; 
>> enabled; vendor preset: disabled)
>>  Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
>> 16:32:19 MYT; 5s ago
>>Docs: http://www.cloudstack.org/
>> Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
>> /usr/share/cloudstack-agent/lib/*.jar 
>> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
>> export 
>> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts"; 
>>  ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
>> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
>> Main PID: 20105 (code=exited, status=1/FAILURE)
>> 
>> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
>> failed state.
>> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
>> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
>> cloudstack-agent.service - CloudStack Agent
>>  Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; 
>> enabled; vendor preset: disabled)
>>  Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
>> 16:32:19 MYT; 7s ago
>>Docs: http://www.cloudstack.org/
>> Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
>> /usr/share/cloudstack-agent/lib/*.jar 
>> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
>> export 
>> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts"; 
>>  ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
>> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
>> Main PID: 20105 (code=exited, status=1/FAILURE)
>> 
>> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
>> failed state.
>> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
>> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
>> cloudstack-agent.service - CloudStack Agent
>>  Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; 
>> enabled; vendor preset: disabled)
>>  Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
>> 16:32:19 MYT; 8s ago
>>Docs: http://www.cloudstack.org/
>> Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
>> /usr/share/cloudstack-agent/lib/*.jar 
>> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
>> export 
>> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts"; 
>>  ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
>> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
>> Main PID: 20105 (code=exited, status=1/FAILURE)
>> 
>> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
>> failed state.
>> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
>> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
>> cloudstack-agent.service - CloudStack Agent
>>  Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; 

RE: Unable to add host

2016-05-05 Thread Mohd Zainal Abidin Rabani
This is from /var/log/messages :
http://pastebin.com/pY57cHK5

-Original Message-
From: Boris Stoyanov [mailto:boris.stoya...@shapeblue.com] 
Sent: 05 Mei 2016 17:07
To: users@cloudstack.apache.org
Subject: Re: Unable to add host

local storage path by default is /var/lib/libvirt/images/ if you have not 
explicitly changed that in agent.properties means you’re using this location. 
Now the error says the directory does not exist, so I would assume something 
went wrong with libvirt installation/configuration. 


> 
Regards,

Boris Stoyanov

boris.stoya...@shapeblue.com
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK @shapeblue On May 5, 2016, 
at 11:57 AM, Mohd Zainal Abidin Rabani  wrote:
> 
> This error keep repeating in agent.log.
> 
> -Original Message-
> From: Mohd Zainal Abidin Rabani [mailto:zai...@nocser.net]
> Sent: 05 Mei 2016 16:53
> To: users@cloudstack.apache.org
> Subject: RE: Unable to add host
> 
> Need to use pastebin as qmail apache have limit size email:
> http://pastebin.com/4yt1ivcY
> 
> -Original Message-
> From: Boris Stoyanov [mailto:boris.stoya...@shapeblue.com]
> Sent: 05 Mei 2016 16:38
> To: users@cloudstack.apache.org
> Subject: Re: Unable to add host
> 
> Hi Mohd,
> 
> In the same logs location you should be able to find agent logs, can you 
> share what’s there?
> 
> Thanks.
> 
>> 
> Regards,
> 
> Boris Stoyanov
> 
> boris.stoya...@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK @shapeblue On May 5, 
> 2016, at 11:34 AM, Mohd Zainal Abidin Rabani  wrote:
>> 
>> Seem like something wrong some where. Agent not stable. Runing and not 
>> running:
>> 
>> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
>> cloudstack-agent.service - CloudStack Agent
>>  Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; 
>> enabled; vendor preset: disabled)
>>  Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
>> 16:32:19 MYT; 5s ago
>>Docs: http://www.cloudstack.org/
>> Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
>> /usr/share/cloudstack-agent/lib/*.jar 
>> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
>> export 
>> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts"; 
>>  ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
>> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
>> Main PID: 20105 (code=exited, status=1/FAILURE)
>> 
>> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
>> failed state.
>> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
>> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
>> cloudstack-agent.service - CloudStack Agent
>>  Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; 
>> enabled; vendor preset: disabled)
>>  Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
>> 16:32:19 MYT; 7s ago
>>Docs: http://www.cloudstack.org/
>> Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
>> /usr/share/cloudstack-agent/lib/*.jar 
>> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
>> export 
>> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts"; 
>>  ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
>> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
>> Main PID: 20105 (code=exited, status=1/FAILURE)
>> 
>> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
>> failed state.
>> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
>> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
>> cloudstack-agent.service - CloudStack Agent
>>  Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; 
>> enabled; vendor preset: disabled)
>>  Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
>> 16:32:19 MYT; 8s ago
>>Docs: http://www.cloudstack.org/
>> Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
>> /usr/share/cloudstack-agent/lib/*.jar 
>> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
>> export 
>> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts"; 
>>  ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
>> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
>> Main PID: 20105 (code=exited, status=1/FAILURE)
>> 
>> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
>> failed state.
>> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
>> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
>> cloudstack-agent.service - CloudStack Agent
>>  Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; 
>> enabled; vendor preset: disabled)
>>  Active: activating (auto-restart) (Result: 

Re: Unable to add host

2016-05-05 Thread Boris Stoyanov
local storage path by default is /var/lib/libvirt/images/
if you have not explicitly changed that in agent.properties means you’re using 
this location. Now the error says the directory does not exist, so I would 
assume something went wrong with libvirt installation/configuration. 


> 
Regards,

Boris Stoyanov

boris.stoya...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK
@shapeblue
On May 5, 2016, at 11:57 AM, Mohd Zainal Abidin Rabani  
wrote:
> 
> This error keep repeating in agent.log.
> 
> -Original Message-
> From: Mohd Zainal Abidin Rabani [mailto:zai...@nocser.net] 
> Sent: 05 Mei 2016 16:53
> To: users@cloudstack.apache.org
> Subject: RE: Unable to add host
> 
> Need to use pastebin as qmail apache have limit size email:
> http://pastebin.com/4yt1ivcY
> 
> -Original Message-
> From: Boris Stoyanov [mailto:boris.stoya...@shapeblue.com]
> Sent: 05 Mei 2016 16:38
> To: users@cloudstack.apache.org
> Subject: Re: Unable to add host
> 
> Hi Mohd,
> 
> In the same logs location you should be able to find agent logs, can you 
> share what’s there?
> 
> Thanks.
> 
>> 
> Regards,
> 
> Boris Stoyanov
> 
> boris.stoya...@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK @shapeblue On May 5, 
> 2016, at 11:34 AM, Mohd Zainal Abidin Rabani  wrote:
>> 
>> Seem like something wrong some where. Agent not stable. Runing and not 
>> running:
>> 
>> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
>> cloudstack-agent.service - CloudStack Agent
>>  Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
>> vendor preset: disabled)
>>  Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
>> 16:32:19 MYT; 5s ago
>>Docs: http://www.cloudstack.org/
>> Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
>> /usr/share/cloudstack-agent/lib/*.jar 
>> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
>> export 
>> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts"; 
>>  ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
>> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
>> Main PID: 20105 (code=exited, status=1/FAILURE)
>> 
>> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
>> failed state.
>> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
>> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
>> cloudstack-agent.service - CloudStack Agent
>>  Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
>> vendor preset: disabled)
>>  Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
>> 16:32:19 MYT; 7s ago
>>Docs: http://www.cloudstack.org/
>> Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
>> /usr/share/cloudstack-agent/lib/*.jar 
>> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
>> export 
>> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts"; 
>>  ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
>> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
>> Main PID: 20105 (code=exited, status=1/FAILURE)
>> 
>> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
>> failed state.
>> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
>> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
>> cloudstack-agent.service - CloudStack Agent
>>  Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
>> vendor preset: disabled)
>>  Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
>> 16:32:19 MYT; 8s ago
>>Docs: http://www.cloudstack.org/
>> Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
>> /usr/share/cloudstack-agent/lib/*.jar 
>> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
>> export 
>> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts"; 
>>  ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
>> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
>> Main PID: 20105 (code=exited, status=1/FAILURE)
>> 
>> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
>> failed state.
>> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
>> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
>> cloudstack-agent.service - CloudStack Agent
>>  Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
>> vendor preset: disabled)
>>  Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
>> 16:32:19 MYT; 9s ago
>>Docs: http://www.cloudstack.org/
>> Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
>> /usr/share/cloudstack-agent/lib/*.jar 
>> 

RE: Unable to add host

2016-05-05 Thread Mohd Zainal Abidin Rabani
Yes, i have follow the document.

-Original Message-
From: Boris Stoyanov [mailto:boris.stoya...@shapeblue.com] 
Sent: 05 Mei 2016 16:56
To: users@cloudstack.apache.org
Subject: Re: Unable to add host

Hi Mohd

Unfortunately these logs does not help a lot. I can’t find any error/exception 
there.

>From your previous message I can find:
2016-05-05 16:08:35,882 ERROR [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) /var/lib/libvirt/images does not exists. Check 
local.storage.path in agent.properties.

Have followed these installation instructions?
http://cloudstack-installation.readthedocs.io/en/4.8/hypervisor/kvm.html
 - there’s a section about libvirt configuration

Can you please revise if some of the steps is missed.

Thanks.



Regards,

Boris Stoyanov

boris.stoya...@shapeblue.com
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK @shapeblue On May 5, 2016, 
at 11:48 AM, Mohd Zainal Abidin Rabani 
> wrote:

This is log from agent.log in /var/log/cloudstack/agent :

2016-05-05 16:46:49,383 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Attempting to create storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda (Filesystem) in libvirt
2016-05-05 16:46:49,387 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Found existing defined storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda, using it.
2016-05-05 16:46:49,387 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Trying to fetch storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda from libvirt
2016-05-05 16:46:49,447 INFO  [cloud.serializer.GsonHelper] 
(Agent-Handler-1:null) Default Builder inited.
2016-05-05 16:46:49,482 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Proccess agent startup answer, agent id = 0
2016-05-05 16:46:49,483 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set 
agent id 0
2016-05-05 16:46:49,488 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Startup Response Received: agent id = 0
2016-05-05 16:46:49,489 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) 
Stopping the agent: Reason = sig.kill
2016-05-05 16:47:01,466 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2016-05-05 16:47:01,467 INFO  [cloud.agent.AgentShell] (main:null) 
Implementation Version is 4.6.2
2016-05-05 16:47:01,468 INFO  [cloud.agent.AgentShell] (main:null) 
agent.properties found at /etc/cloudstack/agent/agent.properties
2016-05-05 16:47:01,472 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to using properties file for storage
2016-05-05 16:47:01,474 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to the constant time backoff algorithm
2016-05-05 16:47:01,486 INFO  [cloud.utils.LogUtils] (main:null) log4j 
configuration found at /etc/cloudstack/agent/log4j-cloud.xml
2016-05-05 16:47:01,503 INFO  [cloud.agent.AgentShell] (main:null) Preferring 
IPv4 address family for agent connection
2016-05-05 16:47:01,634 INFO  [cloud.agent.Agent] (main:null) id is 0
2016-05-05 16:47:01,662 INFO  [kvm.resource.LibvirtConnection] (main:null) No 
existing libvirtd connection found. Opening a new one
2016-05-05 16:47:01,919 INFO  [org.reflections.Reflections] (main:null) 
Reflections took 50 ms to scan 1 urls, producing 7 keys and 10 values
2016-05-05 16:47:02,077 INFO  [kvm.resource.LibvirtComputingResource] 
(main:null) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
2016-05-05 16:47:02,103 INFO  [cloud.agent.Agent] (main:null) Agent [id = 0 : 
type = LibvirtComputingResource : zone = AIMS KL : pod = 3F-G-13 : workers = 5 
: host = 10.2.30.11 : port = 8250
2016-05-05 16:47:02,108 INFO  [utils.nio.NioClient] (main:null) Connecting to 
10.2.30.11:8250
2016-05-05 16:47:02,315 INFO  [utils.nio.NioClient] (main:null) SSL: Handshake 
done
2016-05-05 16:47:02,315 INFO  [utils.nio.NioClient] (main:null) Connected to 
10.2.30.11:8250
2016-05-05 16:47:02,387 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Attempting to create storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda (Filesystem) in libvirt
2016-05-05 16:47:02,390 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Found existing defined storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda, using it.
2016-05-05 16:47:02,391 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Trying to fetch storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda from libvirt
2016-05-05 16:47:02,450 INFO  [cloud.serializer.GsonHelper] 
(Agent-Handler-1:null) Default Builder inited.
2016-05-05 16:47:02,484 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Proccess agent startup answer, agent id = 0
2016-05-05 16:47:02,484 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set 
agent id 0
2016-05-05 16:47:02,489 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Startup Response Received: agent id = 0
2016-05-05 16:47:02,491 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) 
Stopping the agent: Reason = sig.kill
2016-05-05 

RE: Unable to add host

2016-05-05 Thread Mohd Zainal Abidin Rabani
This error keep repeating in agent.log.

-Original Message-
From: Mohd Zainal Abidin Rabani [mailto:zai...@nocser.net] 
Sent: 05 Mei 2016 16:53
To: users@cloudstack.apache.org
Subject: RE: Unable to add host

Need to use pastebin as qmail apache have limit size email:
http://pastebin.com/4yt1ivcY

-Original Message-
From: Boris Stoyanov [mailto:boris.stoya...@shapeblue.com]
Sent: 05 Mei 2016 16:38
To: users@cloudstack.apache.org
Subject: Re: Unable to add host

Hi Mohd,

In the same logs location you should be able to find agent logs, can you share 
what’s there?

Thanks.

> 
Regards,

Boris Stoyanov

boris.stoya...@shapeblue.com
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK @shapeblue On May 5, 2016, 
at 11:34 AM, Mohd Zainal Abidin Rabani  wrote:
> 
> Seem like something wrong some where. Agent not stable. Runing and not 
> running:
> 
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 5s ago
> Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
> ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
> failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 7s ago
> Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
> ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
> failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 8s ago
> Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
> ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
> failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 9s ago
> Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
> ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
> failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded 

Re: Unable to add host

2016-05-05 Thread Boris Stoyanov
Hi Mohd

Unfortunately these logs does not help a lot. I can’t find any error/exception 
there.

From your previous message I can find:
2016-05-05 16:08:35,882 ERROR [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) /var/lib/libvirt/images does not exists. Check 
local.storage.path in agent.properties.

Have followed these installation instructions?
http://cloudstack-installation.readthedocs.io/en/4.8/hypervisor/kvm.html
 - there’s a section about libvirt configuration

Can you please revise if some of the steps is missed.

Thanks.



Regards,

Boris Stoyanov

boris.stoya...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK
@shapeblue
On May 5, 2016, at 11:48 AM, Mohd Zainal Abidin Rabani 
> wrote:

This is log from agent.log in /var/log/cloudstack/agent :

2016-05-05 16:46:49,383 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Attempting to create storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda (Filesystem) in libvirt
2016-05-05 16:46:49,387 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Found existing defined storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda, using it.
2016-05-05 16:46:49,387 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Trying to fetch storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda from libvirt
2016-05-05 16:46:49,447 INFO  [cloud.serializer.GsonHelper] 
(Agent-Handler-1:null) Default Builder inited.
2016-05-05 16:46:49,482 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Proccess agent startup answer, agent id = 0
2016-05-05 16:46:49,483 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set 
agent id 0
2016-05-05 16:46:49,488 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Startup Response Received: agent id = 0
2016-05-05 16:46:49,489 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) 
Stopping the agent: Reason = sig.kill
2016-05-05 16:47:01,466 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2016-05-05 16:47:01,467 INFO  [cloud.agent.AgentShell] (main:null) 
Implementation Version is 4.6.2
2016-05-05 16:47:01,468 INFO  [cloud.agent.AgentShell] (main:null) 
agent.properties found at /etc/cloudstack/agent/agent.properties
2016-05-05 16:47:01,472 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to using properties file for storage
2016-05-05 16:47:01,474 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to the constant time backoff algorithm
2016-05-05 16:47:01,486 INFO  [cloud.utils.LogUtils] (main:null) log4j 
configuration found at /etc/cloudstack/agent/log4j-cloud.xml
2016-05-05 16:47:01,503 INFO  [cloud.agent.AgentShell] (main:null) Preferring 
IPv4 address family for agent connection
2016-05-05 16:47:01,634 INFO  [cloud.agent.Agent] (main:null) id is 0
2016-05-05 16:47:01,662 INFO  [kvm.resource.LibvirtConnection] (main:null) No 
existing libvirtd connection found. Opening a new one
2016-05-05 16:47:01,919 INFO  [org.reflections.Reflections] (main:null) 
Reflections took 50 ms to scan 1 urls, producing 7 keys and 10 values
2016-05-05 16:47:02,077 INFO  [kvm.resource.LibvirtComputingResource] 
(main:null) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
2016-05-05 16:47:02,103 INFO  [cloud.agent.Agent] (main:null) Agent [id = 0 : 
type = LibvirtComputingResource : zone = AIMS KL : pod = 3F-G-13 : workers = 5 
: host = 10.2.30.11 : port = 8250
2016-05-05 16:47:02,108 INFO  [utils.nio.NioClient] (main:null) Connecting to 
10.2.30.11:8250
2016-05-05 16:47:02,315 INFO  [utils.nio.NioClient] (main:null) SSL: Handshake 
done
2016-05-05 16:47:02,315 INFO  [utils.nio.NioClient] (main:null) Connected to 
10.2.30.11:8250
2016-05-05 16:47:02,387 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Attempting to create storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda (Filesystem) in libvirt
2016-05-05 16:47:02,390 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Found existing defined storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda, using it.
2016-05-05 16:47:02,391 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Trying to fetch storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda from libvirt
2016-05-05 16:47:02,450 INFO  [cloud.serializer.GsonHelper] 
(Agent-Handler-1:null) Default Builder inited.
2016-05-05 16:47:02,484 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Proccess agent startup answer, agent id = 0
2016-05-05 16:47:02,484 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set 
agent id 0
2016-05-05 16:47:02,489 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Startup Response Received: agent id = 0
2016-05-05 16:47:02,491 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) 
Stopping the agent: Reason = sig.kill
2016-05-05 16:47:14,464 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2016-05-05 16:47:14,465 INFO  [cloud.agent.AgentShell] (main:null) 
Implementation Version is 4.6.2
2016-05-05 16:47:14,466 INFO  

RE: Unable to add host

2016-05-05 Thread Mohd Zainal Abidin Rabani
Need to use pastebin as qmail apache have limit size email:
http://pastebin.com/4yt1ivcY

-Original Message-
From: Boris Stoyanov [mailto:boris.stoya...@shapeblue.com] 
Sent: 05 Mei 2016 16:38
To: users@cloudstack.apache.org
Subject: Re: Unable to add host

Hi Mohd,

In the same logs location you should be able to find agent logs, can you share 
what’s there?

Thanks.

> 
Regards,

Boris Stoyanov

boris.stoya...@shapeblue.com
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK @shapeblue On May 5, 2016, 
at 11:34 AM, Mohd Zainal Abidin Rabani  wrote:
> 
> Seem like something wrong some where. Agent not stable. Runing and not 
> running:
> 
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 5s ago
> Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
> ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
> failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 7s ago
> Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
> ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
> failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 8s ago
> Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
> ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
> failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 9s ago
> Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
> ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
> failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 9s ago
> Docs: http://www.cloudstack.org/
>  

RE: Unable to add host

2016-05-05 Thread Mohd Zainal Abidin Rabani
This is log from agent.log in /var/log/cloudstack/agent :

2016-05-05 16:46:49,383 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Attempting to create storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda (Filesystem) in libvirt
2016-05-05 16:46:49,387 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Found existing defined storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda, using it.
2016-05-05 16:46:49,387 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Trying to fetch storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda from libvirt
2016-05-05 16:46:49,447 INFO  [cloud.serializer.GsonHelper] 
(Agent-Handler-1:null) Default Builder inited.
2016-05-05 16:46:49,482 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Proccess agent startup answer, agent id = 0
2016-05-05 16:46:49,483 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set 
agent id 0
2016-05-05 16:46:49,488 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Startup Response Received: agent id = 0
2016-05-05 16:46:49,489 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) 
Stopping the agent: Reason = sig.kill
2016-05-05 16:47:01,466 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2016-05-05 16:47:01,467 INFO  [cloud.agent.AgentShell] (main:null) 
Implementation Version is 4.6.2
2016-05-05 16:47:01,468 INFO  [cloud.agent.AgentShell] (main:null) 
agent.properties found at /etc/cloudstack/agent/agent.properties
2016-05-05 16:47:01,472 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to using properties file for storage
2016-05-05 16:47:01,474 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to the constant time backoff algorithm
2016-05-05 16:47:01,486 INFO  [cloud.utils.LogUtils] (main:null) log4j 
configuration found at /etc/cloudstack/agent/log4j-cloud.xml
2016-05-05 16:47:01,503 INFO  [cloud.agent.AgentShell] (main:null) Preferring 
IPv4 address family for agent connection
2016-05-05 16:47:01,634 INFO  [cloud.agent.Agent] (main:null) id is 0
2016-05-05 16:47:01,662 INFO  [kvm.resource.LibvirtConnection] (main:null) No 
existing libvirtd connection found. Opening a new one
2016-05-05 16:47:01,919 INFO  [org.reflections.Reflections] (main:null) 
Reflections took 50 ms to scan 1 urls, producing 7 keys and 10 values
2016-05-05 16:47:02,077 INFO  [kvm.resource.LibvirtComputingResource] 
(main:null) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
2016-05-05 16:47:02,103 INFO  [cloud.agent.Agent] (main:null) Agent [id = 0 : 
type = LibvirtComputingResource : zone = AIMS KL : pod = 3F-G-13 : workers = 5 
: host = 10.2.30.11 : port = 8250
2016-05-05 16:47:02,108 INFO  [utils.nio.NioClient] (main:null) Connecting to 
10.2.30.11:8250
2016-05-05 16:47:02,315 INFO  [utils.nio.NioClient] (main:null) SSL: Handshake 
done
2016-05-05 16:47:02,315 INFO  [utils.nio.NioClient] (main:null) Connected to 
10.2.30.11:8250
2016-05-05 16:47:02,387 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Attempting to create storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda (Filesystem) in libvirt
2016-05-05 16:47:02,390 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Found existing defined storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda, using it.
2016-05-05 16:47:02,391 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Trying to fetch storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda from libvirt
2016-05-05 16:47:02,450 INFO  [cloud.serializer.GsonHelper] 
(Agent-Handler-1:null) Default Builder inited.
2016-05-05 16:47:02,484 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Proccess agent startup answer, agent id = 0
2016-05-05 16:47:02,484 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set 
agent id 0
2016-05-05 16:47:02,489 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Startup Response Received: agent id = 0
2016-05-05 16:47:02,491 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) 
Stopping the agent: Reason = sig.kill
2016-05-05 16:47:14,464 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2016-05-05 16:47:14,465 INFO  [cloud.agent.AgentShell] (main:null) 
Implementation Version is 4.6.2
2016-05-05 16:47:14,466 INFO  [cloud.agent.AgentShell] (main:null) 
agent.properties found at /etc/cloudstack/agent/agent.properties
2016-05-05 16:47:14,470 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to using properties file for storage
2016-05-05 16:47:14,472 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to the constant time backoff algorithm
2016-05-05 16:47:14,484 INFO  [cloud.utils.LogUtils] (main:null) log4j 
configuration found at /etc/cloudstack/agent/log4j-cloud.xml
2016-05-05 16:47:14,498 INFO  [cloud.agent.AgentShell] (main:null) Preferring 
IPv4 address family for agent connection
2016-05-05 16:47:14,618 INFO  [cloud.agent.Agent] (main:null) id is 0
2016-05-05 16:47:14,644 INFO  [kvm.resource.LibvirtConnection] (main:null) No 
existing libvirtd connection found. Opening a new one
2016-05-05 16:47:14,899 

Re: Unable to add host

2016-05-05 Thread Boris Stoyanov
Hi Mohd,

In the same logs location you should be able to find agent logs, can you share 
what’s there?

Thanks.

> 
Regards,

Boris Stoyanov

boris.stoya...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK
@shapeblue
On May 5, 2016, at 11:34 AM, Mohd Zainal Abidin Rabani  
wrote:
> 
> Seem like something wrong some where. Agent not stable. Runing and not 
> running:
> 
> [root@host29-01 agent]# systemctl status cloudstack-agent
> ● cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 5s ago
> Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
> ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
> failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent
> ● cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 7s ago
> Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
> ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
> failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent
> ● cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 8s ago
> Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
> ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
> failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent
> ● cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 9s ago
> Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
> ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
> failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent
> ● cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 9s ago
> Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
>

RE: Create Local Storage on Host Cloudstack

2016-05-05 Thread Shweta Agarwal
Hi Zainal,

You need to edit your zone in UI and you will find a checkbox for enabling 
local storage for both local vm and user VM . You need to Select it and save 
the changes. Then  restart the MS . Then in the primary storage tab you can see 
local storage of Host available for use.

Thanks
Shweta

-Original Message-
From: Mohd Zainal Abidin Rabani [mailto:zai...@nocser.net]
Sent: Thursday, May 05, 2016 1:28 PM
To: users@cloudstack.apache.org
Subject: RE: Create Local Storage on Host Cloudstack

Can you explain more?

-Original Message-
From: Prashant Mishra [mailto:prashant.mis...@accelerite.com]
Sent: 25 April 2016 13:12
To: users@cloudstack.apache.org
Subject: Re: Create Local Storage on Host Cloudstack

At zone level check  local storage box and restart MS.

On 4/25/16, 9:57 AM, "Mohd Zainal Abidin Rabani"  wrote:

>Hi,
>
>
>
>How to create local storage on cloudtack host? From the documentation
>i'm not detail how to setup. Any advice appriciated.
>
>
>
>Thanks.
>




DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Accelerite, a Persistent Systems business. It is intended only for 
the use of the individual or entity to which it is addressed. If you are not 
the intended recipient, you are not authorized to read, retain, copy, print, 
distribute or use this message. If you have received this communication in 
error, please notify the sender and delete all copies of this message. 
Accelerite, a Persistent Systems business does not accept any liability for 
virus infected mails.




DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Accelerite, a Persistent Systems business. It is intended only for 
the use of the individual or entity to which it is addressed. If you are not 
the intended recipient, you are not authorized to read, retain, copy, print, 
distribute or use this message. If you have received this communication in 
error, please notify the sender and delete all copies of this message. 
Accelerite, a Persistent Systems business does not accept any liability for 
virus infected mails.


RE: Unable to add host

2016-05-05 Thread Mohd Zainal Abidin Rabani
Seem like something wrong some where. Agent not stable. Runing and not running:

[root@host29-01 agent]# systemctl status cloudstack-agent
● cloudstack-agent.service - CloudStack Agent
   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
vendor preset: disabled)
   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
16:32:19 MYT; 5s ago
 Docs: http://www.cloudstack.org/
  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
/usr/share/cloudstack-agent/lib/*.jar /usr/share/cloudstack-agent/plugins/*.jar 
2>/dev/null|tr "\n" ":"`;  export 
CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";
  ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
"$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
 Main PID: 20105 (code=exited, status=1/FAILURE)

May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
failed state.
May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
[root@host29-01 agent]# systemctl status cloudstack-agent
● cloudstack-agent.service - CloudStack Agent
   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
vendor preset: disabled)
   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
16:32:19 MYT; 7s ago
 Docs: http://www.cloudstack.org/
  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
/usr/share/cloudstack-agent/lib/*.jar /usr/share/cloudstack-agent/plugins/*.jar 
2>/dev/null|tr "\n" ":"`;  export 
CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";
  ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
"$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
 Main PID: 20105 (code=exited, status=1/FAILURE)

May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
failed state.
May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
[root@host29-01 agent]# systemctl status cloudstack-agent
● cloudstack-agent.service - CloudStack Agent
   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
vendor preset: disabled)
   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
16:32:19 MYT; 8s ago
 Docs: http://www.cloudstack.org/
  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
/usr/share/cloudstack-agent/lib/*.jar /usr/share/cloudstack-agent/plugins/*.jar 
2>/dev/null|tr "\n" ":"`;  export 
CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";
  ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
"$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
 Main PID: 20105 (code=exited, status=1/FAILURE)

May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
failed state.
May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
[root@host29-01 agent]# systemctl status cloudstack-agent
● cloudstack-agent.service - CloudStack Agent
   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
vendor preset: disabled)
   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
16:32:19 MYT; 9s ago
 Docs: http://www.cloudstack.org/
  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
/usr/share/cloudstack-agent/lib/*.jar /usr/share/cloudstack-agent/plugins/*.jar 
2>/dev/null|tr "\n" ":"`;  export 
CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";
  ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
"$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
 Main PID: 20105 (code=exited, status=1/FAILURE)

May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
failed state.
May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
[root@host29-01 agent]# systemctl status cloudstack-agent
● cloudstack-agent.service - CloudStack Agent
   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
vendor preset: disabled)
   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
16:32:19 MYT; 9s ago
 Docs: http://www.cloudstack.org/
  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
/usr/share/cloudstack-agent/lib/*.jar /usr/share/cloudstack-agent/plugins/*.jar 
2>/dev/null|tr "\n" ":"`;  export 
CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";
  ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
"$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
 Main PID: 20105 (code=exited, status=1/FAILURE)

May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
failed state.
May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
[root@host29-01 agent]# systemctl status cloudstack-agent
● cloudstack-agent.service - CloudStack Agent
   Loaded: loaded 

RE: Unable to add host

2016-05-05 Thread Mohd Zainal Abidin Rabani
Hi, 

Sorry for late reply. Cloudstack agent not running. Getting same error:

2016-05-05 16:08:22,929 INFO  [cloud.serializer.GsonHelper] 
(Agent-Handler-1:null) Default Builder inited.
2016-05-05 16:08:23,002 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Proccess agent startup answer, agent id = 0
2016-05-05 16:08:23,002 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set 
agent id 0
2016-05-05 16:08:23,007 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Startup Response Received: agent id = 0
2016-05-05 16:08:23,010 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) 
Stopping the agent: Reason = sig.kill
2016-05-05 16:08:34,963 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2016-05-05 16:08:34,965 INFO  [cloud.agent.AgentShell] (main:null) 
Implementation Version is 4.6.2
2016-05-05 16:08:34,966 INFO  [cloud.agent.AgentShell] (main:null) 
agent.properties found at /etc/cloudstack/agent/agent.properties
2016-05-05 16:08:34,970 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to using properties file for storage
2016-05-05 16:08:34,972 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to the constant time backoff algorithm
2016-05-05 16:08:34,984 INFO  [cloud.utils.LogUtils] (main:null) log4j 
configuration found at /etc/cloudstack/agent/log4j-cloud.xml
2016-05-05 16:08:35,001 INFO  [cloud.agent.AgentShell] (main:null) Preferring 
IPv4 address family for agent connection
2016-05-05 16:08:35,128 INFO  [cloud.agent.Agent] (main:null) id is 0
2016-05-05 16:08:35,154 INFO  [kvm.resource.LibvirtConnection] (main:null) No 
existing libvirtd connection found. Opening a new one
2016-05-05 16:08:35,405 INFO  [org.reflections.Reflections] (main:null) 
Reflections took 48 ms to scan 1 urls, producing 7 keys and 10 values
2016-05-05 16:08:35,543 INFO  [kvm.resource.LibvirtComputingResource] 
(main:null) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
2016-05-05 16:08:35,568 INFO  [cloud.agent.Agent] (main:null) Agent [id = 0 : 
type = LibvirtComputingResource : zone = AIMS KL : pod = 3F-G-13 : workers = 5 
: host = 10.2.30.11 : port = 8250
2016-05-05 16:08:35,572 INFO  [utils.nio.NioClient] (main:null) Connecting to 
10.2.30.11:8250
2016-05-05 16:08:35,799 INFO  [utils.nio.NioClient] (main:null) SSL: Handshake 
done
2016-05-05 16:08:35,799 INFO  [utils.nio.NioClient] (main:null) Connected to 
10.2.30.11:8250
2016-05-05 16:08:35,875 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Attempting to create storage pool 
7968e68b-9ffe-4436-86b9-fe2adbd873cf (Filesystem) in libvirt
2016-05-05 16:08:35,881 WARN  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Storage pool 7968e68b-9ffe-4436-86b9-fe2adbd873cf was 
not found running in libvirt. Need to create it.
2016-05-05 16:08:35,881 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Didn't find an existing storage pool 
7968e68b-9ffe-4436-86b9-fe2adbd873cf by UUID, checking for pools with duplicate 
paths
2016-05-05 16:08:35,882 ERROR [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) /var/lib/libvirt/images does not exists. Check 
local.storage.path in agent.properties.
2016-05-05 16:08:35,927 INFO  [cloud.serializer.GsonHelper] 
(Agent-Handler-1:null) Default Builder inited.
2016-05-05 16:08:36,001 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Proccess agent startup answer, agent id = 0
2016-05-05 16:08:36,002 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set 
agent id 0
2016-05-05 16:08:36,008 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) 
Stopping the agent: Reason = sig.kill
2016-05-05 16:08:36,008 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Startup Response Received: agent id = 0

I already enable use.local.storage = true in "Global Settings". 

-Original Message-
From: kotipalli venkatesh [mailto:venkateshcloudt...@gmail.com] 
Sent: 05 Mei 2016 15:23
To: users@cloudstack.apache.org
Subject: Re: Unable to add host

Hi Mohd,

Could you please share the info of your environment version details.

Rergards,
Venkatesh.k

On Thu, May 5, 2016 at 12:50 PM, Mohd Zainal Abidin Rabani < zai...@nocser.net> 
wrote:

> On the kvm host, cloudstack agent not list in systemctl. But when i issue:
> rpm -qa | grep cloudstack, it's already install. This is bug?
>
> -Original Message-
> From: Mohd Zainal Abidin Rabani [mailto:zai...@nocser.net]
> Sent: 05 Mei 2016 14:56
> To: users@cloudstack.apache.org
> Subject: Unable to add host
>
> Hi,
>
>
>
> The last issue is WebUI. Now i can access webUI. But other error 
> occur. I manage to setup cloudstack management server. But when i try 
> to add management server in UI i get error: Unable to add host. Unable 
> to find the server resources at http://10.2.30.11
>
>
>
> Any idea what wrong?
>
>
>
> Regards,
>
>
>
> Mohd Zainal Abidin Rabani
>
> Technical Support
>
>
>
> ModernOne Data Solutions Sdn. Bhd.
>
> [ Dedicated Server | VPS | Co-Location | Hosting ]
>
> [ Managed Service | System Integration | Domain ]

RE: Create Local Storage on Host Cloudstack

2016-05-05 Thread Mohd Zainal Abidin Rabani
Can you explain more?

-Original Message-
From: Prashant Mishra [mailto:prashant.mis...@accelerite.com] 
Sent: 25 April 2016 13:12
To: users@cloudstack.apache.org
Subject: Re: Create Local Storage on Host Cloudstack

At zone level check  local storage box and restart MS.

On 4/25/16, 9:57 AM, "Mohd Zainal Abidin Rabani"  wrote:

>Hi,
>
> 
>
>How to create local storage on cloudtack host? From the documentation 
>i'm not detail how to setup. Any advice appriciated.
>
> 
>
>Thanks.
>




DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the
property of Accelerite, a Persistent Systems business. It is intended only
for the use of the individual or entity to which it is addressed. If you are
not the intended recipient, you are not authorized to read, retain, copy,
print, distribute or use this message. If you have received this
communication in error, please notify the sender and delete all copies of
this message. Accelerite, a Persistent Systems business does not accept any
liability for virus infected mails.



Re: Unable to add host

2016-05-05 Thread Boris Stoyanov
Hi Mohd,
I would assume the cloudstack-agent service is running, if so, could you please 
provide management logs usually it’s under /var/log/cloudstack/

Also you might want to check ant connection/firewall issues. 

Regards,
Boris Stoyanov

> 
Regards,

Boris Stoyanov

boris.stoya...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK
@shapeblue
On May 5, 2016, at 10:20 AM, Mohd Zainal Abidin Rabani  
wrote:
> 
> On the kvm host, cloudstack agent not list in systemctl. But when i issue:
> rpm -qa | grep cloudstack, it's already install. This is bug?
> 
> -Original Message-
> From: Mohd Zainal Abidin Rabani [mailto:zai...@nocser.net] 
> Sent: 05 Mei 2016 14:56
> To: users@cloudstack.apache.org
> Subject: Unable to add host
> 
> Hi,
> 
> 
> 
> The last issue is WebUI. Now i can access webUI. But other error occur. I
> manage to setup cloudstack management server. But when i try to add
> management server in UI i get error: Unable to add host. Unable to find the
> server resources at http://10.2.30.11
> 
> 
> 
> Any idea what wrong?
> 
> 
> 
> Regards,
> 
> 
> 
> Mohd Zainal Abidin Rabani
> 
> Technical Support
> 
> 
> 
> ModernOne Data Solutions Sdn. Bhd.
> 
> [ Dedicated Server | VPS | Co-Location | Hosting ]
> 
> [ Managed Service | System Integration | Domain ]
> 
> W : www.nocser.net
> 
> FB: http://www.facebook.com/nocser
> 
> Twitter: @nocsertech
> 
> Skype: zabidin5417
> 
> 
> 
> 



Re: Unable to add host

2016-05-05 Thread kotipalli venkatesh
Hi Mohd,

Could you please share the info of your environment version details.

Rergards,
Venkatesh.k

On Thu, May 5, 2016 at 12:50 PM, Mohd Zainal Abidin Rabani <
zai...@nocser.net> wrote:

> On the kvm host, cloudstack agent not list in systemctl. But when i issue:
> rpm -qa | grep cloudstack, it's already install. This is bug?
>
> -Original Message-
> From: Mohd Zainal Abidin Rabani [mailto:zai...@nocser.net]
> Sent: 05 Mei 2016 14:56
> To: users@cloudstack.apache.org
> Subject: Unable to add host
>
> Hi,
>
>
>
> The last issue is WebUI. Now i can access webUI. But other error occur. I
> manage to setup cloudstack management server. But when i try to add
> management server in UI i get error: Unable to add host. Unable to find the
> server resources at http://10.2.30.11
>
>
>
> Any idea what wrong?
>
>
>
> Regards,
>
>
>
> Mohd Zainal Abidin Rabani
>
> Technical Support
>
>
>
> ModernOne Data Solutions Sdn. Bhd.
>
> [ Dedicated Server | VPS | Co-Location | Hosting ]
>
> [ Managed Service | System Integration | Domain ]
>
> W : www.nocser.net
>
> FB: http://www.facebook.com/nocser
>
> Twitter: @nocsertech
>
> Skype: zabidin5417
>
>
>
>
>


RE: Unable to add host

2016-05-05 Thread Mohd Zainal Abidin Rabani
On the kvm host, cloudstack agent not list in systemctl. But when i issue:
rpm -qa | grep cloudstack, it's already install. This is bug?

-Original Message-
From: Mohd Zainal Abidin Rabani [mailto:zai...@nocser.net] 
Sent: 05 Mei 2016 14:56
To: users@cloudstack.apache.org
Subject: Unable to add host

Hi,

 

The last issue is WebUI. Now i can access webUI. But other error occur. I
manage to setup cloudstack management server. But when i try to add
management server in UI i get error: Unable to add host. Unable to find the
server resources at http://10.2.30.11

 

Any idea what wrong?

 

Regards,

 

Mohd Zainal Abidin Rabani

Technical Support

 

ModernOne Data Solutions Sdn. Bhd.

[ Dedicated Server | VPS | Co-Location | Hosting ]

[ Managed Service | System Integration | Domain ]

W : www.nocser.net

FB: http://www.facebook.com/nocser

Twitter: @nocsertech

Skype: zabidin5417

 




Re: Diff between Service Offering and Actual CPU

2016-05-05 Thread Nux!
Zain,

Capping should work, at least with some HV technology, it will still not help 
with the GHz shown inside the VM afaik, it just enforces the VM never gets too 
much CPU time.

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

- Original Message -
> From: "Zain Abideen" 
> To: users@cloudstack.apache.org
> Sent: Thursday, 5 May, 2016 05:26:42
> Subject: Re: Diff between Service Offering and Actual CPU

> Hi all,
> 
> @tim: I tried with CPU cap but it didn't work and shouldn't work as
> explained by Nux. Thanks a lot Nux for explanation.
> 
> Regards,
> Zain ul Abideen
> 
> 
> On Wed, May 4, 2016 at 8:26 PM, Nux!  wrote:
> 
>> Hello Zain,
>>
>> Those G/MHz in the compute offering are a bit misleading as they have
>> nothing to do with the "clock speed" of the VM's CPU; instead that value is
>> used as a "weight" when allocating host CPU time.
>> E.g. a VM with 2GHz will get twice as much host CPU cycles than one with
>> 1GHz.
>>
>> hth
>>
>> --
>> Sent from the Delta quadrant using Borg technology!
>>
>> Nux!
>> www.nux.ro
>>
>> - Original Message -
>> > From: "Zain Abideen" 
>> > To: users@cloudstack.apache.org
>> > Sent: Wednesday, 4 May, 2016 09:53:28
>> > Subject: Diff between Service Offering and Actual CPU
>>
>> > Hi All,
>> >
>> > I've recently setup CS and created an instance with a service offering
>> > of 1GHz clock speed but when I log into the instance and check the CPU
>> > speed, it is showing speed as 3.4GHz which is the actual clock speed of
>> the
>> > host
>> >
>> > Instance Operating System: Win Server 2008 R2 (64bit)
>> > Host: Xen Server
>> > Cloudstack version: 4.6
>> >
>> > Regards,
>> > Zain ul Abideen


Unable to add host

2016-05-05 Thread Mohd Zainal Abidin Rabani
Hi,

 

The last issue is WebUI. Now i can access webUI. But other error occur. I
manage to setup cloudstack management server. But when i try to add
management server in UI i get error: Unable to add host. Unable to find the
server resources at http://10.2.30.11

 

Any idea what wrong?

 

Regards,

 

Mohd Zainal Abidin Rabani

Technical Support

 

ModernOne Data Solutions Sdn. Bhd.

[ Dedicated Server | VPS | Co-Location | Hosting ]

[ Managed Service | System Integration | Domain ]

W : www.nocser.net

FB: http://www.facebook.com/nocser

Twitter: @nocsertech

Skype: zabidin5417

 



Re: [Urgent]: corrupt DB after VM live migration with storage migration

2016-05-05 Thread Yiping Zhang
Thanks, it’s a good idea to back up those “removed” disks first before 
attempting DB surgery!




On 5/4/16, 9:57 PM, "ilya"  wrote:

>never mind - on the "removed" disks - it deletes well.
>
>On 5/4/16 9:55 PM, ilya wrote:
>> I'm pretty certain cloudstack does not have purging on data disks as i
>> had to write my own :)
>> 
>> On 5/4/16 9:51 PM, Ahmad Emneina wrote:
>>> I'm not sure if the expunge interval/delay plays a part... but you might
>>> want to set: storage.cleanup.enabled to false. That might prevent your
>>> disks from being purged. You might also look to export those volumes, or
>>> copy them to a safe location, out of band.
>>>
>>> On Wed, May 4, 2016 at 8:49 PM, Yiping Zhang  wrote:
>>>
 Before I try the direct DB modifications, I would first:

 * shutdown the VM instances
 * stop cloudstack-management service
 * do a DB backup with mysqldump

 What I worry the most is that the volumes on new cluster’s primary storage
 device are marked as “removed”, so if I shutdown the instances, the
 cloudstack may kick off a storage cleanup job to remove them from new
 cluster’s primary storage  before I can get the fixes in.

 Is there a way to temporarily disable storage cleanups ?

 Yiping




 On 5/4/16, 3:22 PM, "Yiping Zhang"  wrote:

> Hi, all:
>
> I am in a situation that I need some help:
>
> I did a live migration with storage migration required for a production
 VM instance from one cluster to another.  The first migration attempt
 failed after some time, but the second attempt succeeded. During all this
 time the VM instance is accessible (and it is still up and running).
 However, when I use my api script to query volumes, it still reports that
 the volume is on the old cluster’s primary storage.  If I shut down this
 VM,  I am afraid that it won’t start again as it would try to use
 non-existing volumes.
>
> Checking database, sure enough, the DB still has old info about these
 volumes:
>
>
> mysql> select id,name from storage_pool where id=1 or id=8;
>
> ++--+
>
> | id | name |
>
> ++--+
>
> |  1 | abprod-primary1  |
>
> |  8 | abprod-p1c2-pri1 |
>
> ++--+
>
> 2 rows in set (0.01 sec)
>
>
> Here the old cluster’s primary storage has id=1, and the new cluster’s
 primary storage has id=8.
>
>
> Here are the entries with wrong info in volumes table:
>
>
> mysql> select id,name, uuid, path,pool_id, removed from volumes where
 name='ROOT-97' or name='DATA-97';
>

> +-+-+--+--+-+-+
>
> | id  | name| uuid | path
  | pool_id | removed |
>

> +-+-+--+--+-+-+
>
> | 124 | ROOT-97 | 224bf673-fda8-4ccc-9c30-fd1068aee005 |
 5d1ab4ef-2629-4384-a56a-e2dc1055d032 |   1 | NULL|
>
> | 125 | DATA-97 | d385d635-9230-4130-8d1f-702dbcf0f22c |
 6b75496d-5907-46c3-8836-5618f11dac8e |   1 | NULL|
>
> | 316 | ROOT-97 | 691b5c12-7ec4-408d-b66f-1ff041f149c1 | NULL
  |   8 | 2016-05-03 06:10:40 |
>
> | 317 | ROOT-97 | 8ba29fcf-a81a-4ca0-9540-0287230f10c7 | NULL
  |   8 | 2016-05-03 06:10:45 |
>

> +-+-+--+--+-+-+
>
> 4 rows in set (0.01 sec)
>
> On the xenserver of old cluster, the volumes do not exist:
>
>
> [root@abmpc-hv01 ~]# xe vdi-list name-label='ROOT-97'
>
> [root@abmpc-hv01 ~]# xe vdi-list name-label='DATA-97'
>
> [root@abmpc-hv01 ~]#
>
> But the volumes are on the new cluster’s primary storage:
>
>
> [root@abmpc-hv04 ~]# xe vdi-list name-label=ROOT-97
>
> uuid ( RO): a253b217-8cdc-4d4a-a111-e5b6ad48a1d5
>
>  name-label ( RW): ROOT-97
>
>name-description ( RW):
>
> sr-uuid ( RO): 6d4bea51-f253-3b43-2f2f-6d7ba3261ed3
>
>virtual-size ( RO): 34359738368
>
>sharable ( RO): false
>
>   read-only ( RO): true
>
>
> uuid ( RO): c46b7a61-9e82-4ea1-88ca-692cd4a9204b
>
>  name-label ( RW): ROOT-97
>
>name-description ( RW):
>
> sr-uuid ( RO): 6d4bea51-f253-3b43-2f2f-6d7ba3261ed3
>
>