cloudstack 4.3 installation on CentOS

2014-05-06 Thread dimas yoga pratama
Hi all,

I'm trying to install cloudstack 4.3 on CentOS 6.5 with single hardware
with proxy environment. I followed this guide
http://cloudstack-installation.readthedocs.org/en/latest/qig.html. I
managed to login to  cloudstack dashboard and succeded to add host. When it
comes to "creating system VMs(this may take a while)" step, it takes a very
very loong time and when I refresh the browser suddenly it redirect to
dashboard. I check the infrastructure tab and I found 2 system VMs already
created and the VM state showed "starting" but the agent showed nothing.
Also in dashboard tab I found this notification : "Management Server:
Management network CIDR is not configured original.type 14"
why is that happening?  anything wrong with my installation?

looking forward for your answer.


using cldstk-dploy with proxy

2014-05-06 Thread dimas yoga pratama
Hi all, is it possible to use cldstk-dply
https://github.com/thehyperadvisor/cldstk-deploy with proxy environment and
a single host?
I want to test it in my college lab.thanks


Re: new installation--ssvm won't start

2014-05-12 Thread dimas yoga pratama
Which version of Cloudstack you installd? If you follow the Cloudstack 4.3
installation guide there is a mistake in system template setup section,

you should change the old URL with:
http://download.cloud.com/templates/4.3/systemvm64template-2014-01-14-master-kvm.qcow2.bz2

hope it works.

On Fri, May 9, 2014 at 7:20 AM, Ian Young  wrote:

> I wiped the server clean and started over again today.  In the process, I
> realized that, the previous time, I forgot to uncomment the Domain line in
> /etc/idmapd.conf.  However, even though I included the step this time, the
> GUI installer still seems to hang on the final "Creating system VMs" step.
>  I see two VMs running when I run "virsh list" (the secondary storage VM
> keeps getting regenerated).  In the primary storage, it looks like there is
> one complete 693 MB image but the other two are only 11 and 12 MB, although
> they are gradually growing.  What's happening here?
>
> [root@virthost1 ~]# ls -hl /var/primary/
> total 715M
> -rwxr--r--. 1 nobody nobody  11M May  8 09:55
> 54de167f-ad9c-453b-91c7-fdd644922932
> -rwxr--r--. 1 nobody nobody  12M May  8 09:55
> 91069b66-b1b3-41aa-8995-874fd4353473
> -rwxr--r--. 1 nobody nobody 693M May  8 09:16
> c2e6efba-d6c7-11e3-9e76-002590c96d30
>
> The management server log keeps reporting that "There is no secondary
> storage VM for secondary storage host nfs://192.168.100.6/var/secondary."
>  Here is a larger section of logs:
> http://pastebin.com/NFf5cBx3
>
>
> On Wed, May 7, 2014 at 10:49 AM, Ian Young  wrote:
>
> > I noticed that in Home > Infrastructure > Zones > Zone1, Resources tab,
> > the Secondary Storage says "Allocated 0.00 KB / 0.00 KB".  However, the
> > secondary storage NFS mount is listed in Home > Infrastructure >
> Secondary
> > Storage and the URL is correct.  Does this mean the secondary storage is
> > unreachable?
> >
> >
> > On Wed, May 7, 2014 at 10:26 AM, Ian Young 
> wrote:
> >
> >> I reinstalled my single server CloudStack system yesterday, following
> the
> >> quick start guide precisely.  The only difference was that I used
> >> /var/primary and /var/secondary instead of /primary and /secondary,
> because
> >> the /var partition on this machine is very large.  The UI installer
> reached
> >> the point where it says "Creating system VMs (this may take a while)"
> but
> >> never finished.  I left it overnight and it still hadn't completed.
>  This
> >> is typically the step that fails, most of the times I've installed
> >> CloudStack, so I imagine I must be making the same fundamental mistake
> each
> >> time, and I'd like to know what that is.
> >>
> >> I checked management.log and it's in a loop where it creates a secondary
> >> storage VM, fails to start it, destroys it, and tries again.  It says
> Host
> >> 1 is unreachable but I'm using the correct password, SELinux is
> permissive,
> >> and all the iptables rules are in place.  In what way is it trying to
> >> connect to Host 1?  SSH?  NFS?  Here's a log excerpt of messages
> related to
> >> the SSVM:
> >>
> >> http://pastebin.com/X11A51bh
> >>
> >> NFS appears to be functional, since CloudStack automatically mounted the
> >> primary storage.
> >>
> >> FilesystemSize  Used Avail Use% Mounted on
> >> /dev/sda3  20G  1.8G   17G  10% /
> >> tmpfs  32G 0   32G   0% /dev/shm
> >> /dev/sda1 194M   42M  143M  23% /boot
> >> /dev/sda4 1.8T  1.9G  1.7T   1% /var
> >> 192.168.100.6:/var/primary
> >>   1.8T  1.9G  1.7T   1%
> >> /mnt/0594caa2-ceb4-36c6-9b13-0ff149a130af
> >>
> >> How can I identify whatever it is that's preventing the SSVM from
> >> starting?  Here is another log excerpt, without any filtering:
> >>
> >> http://pastebin.com/XsPGJQik
> >>
> >
> >
>


Hang when creating system VMs CS 4.3

2014-05-13 Thread dimas yoga pratama
Hi all,

I'm trying to install cloudstack 4.3 on CentOS 6.5 with single hardware and
proxy environment. I followed this guide
http://cloudstack-installation.readthedocs.org/en/latest/qig.html.
I managed to login to  cloudstack dashboard and go to basic installation
wizard. When it comes to creating system VMs step, it takes a very very
long time and when I refresh the browser suddenly it redirect to dashboard.
I check the infrastructure tab and I found 2 system VMs already created,
the VM state showed "starting" but the agent showed nothing.
Also in dashboard tab I found this notification : "Management Server:
Management network CIDR is not configured original.type 14"
why is that happening?  anything wrong with my installation?

This is my management-server.log: http://tny.cz/201f10b4

And this is my configuration with basic installation: http://tny.cz/8b90a0cf

Help me please.


Re: new installation--ssvm won't start

2014-05-13 Thread dimas yoga pratama
oh okay, I should have read that part as well.
What I mean is this :
http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/master/qig.html#system-template-setup



On Tue, May 13, 2014 at 4:01 PM, sebgoa  wrote:

>
> On May 13, 2014, at 10:02 AM, Geoff Higginbottom <
> geoff.higginbot...@shapeblue.com> wrote:
>
> > Just for the record, the latest install doc does have the correct URLs
> for the System VM Templates
> >
> >
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/master/installation.html
> >
>
> Yep, I just checked the master and the 4.3 version and the url seem
> correct:
>
>
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/master/installation.html#prepare-the-system-vm-template
>
> if it' snot let me know or submit a patch
>
> >
> > Regards
> >
> > Geoff Higginbottom
> >
> > D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
> >
> > geoff.higginbot...@shapeblue.com
> >
> > -Original Message-
> > From: dimas yoga pratama [mailto:smid...@gmail.com]
> > Sent: 12 May 2014 17:44
> > To: users@cloudstack.apache.org
> > Subject: Re: new installation--ssvm won't start
> >
> > Which version of Cloudstack you installd? If you follow the Cloudstack
> 4.3 installation guide there is a mistake in system template setup section,
> >
> > you should change the old URL with:
> >
> http://download.cloud.com/templates/4.3/systemvm64template-2014-01-14-master-kvm.qcow2.bz2
> >
> > hope it works.
> >
> > On Fri, May 9, 2014 at 7:20 AM, Ian Young 
> wrote:
> >
> >> I wiped the server clean and started over again today.  In the
> >> process, I realized that, the previous time, I forgot to uncomment the
> >> Domain line in /etc/idmapd.conf.  However, even though I included the
> >> step this time, the GUI installer still seems to hang on the final
> "Creating system VMs" step.
> >> I see two VMs running when I run "virsh list" (the secondary storage
> >> VM keeps getting regenerated).  In the primary storage, it looks like
> >> there is one complete 693 MB image but the other two are only 11 and
> >> 12 MB, although they are gradually growing.  What's happening here?
> >>
> >> [root@virthost1 ~]# ls -hl /var/primary/ total 715M -rwxr--r--. 1
> >> nobody nobody  11M May  8 09:55
> >> 54de167f-ad9c-453b-91c7-fdd644922932
> >> -rwxr--r--. 1 nobody nobody  12M May  8 09:55
> >> 91069b66-b1b3-41aa-8995-874fd4353473
> >> -rwxr--r--. 1 nobody nobody 693M May  8 09:16
> >> c2e6efba-d6c7-11e3-9e76-002590c96d30
> >>
> >> The management server log keeps reporting that "There is no secondary
> >> storage VM for secondary storage host nfs://192.168.100.6/var/secondary
> ."
> >> Here is a larger section of logs:
> >> http://pastebin.com/NFf5cBx3
> >>
> >>
> >> On Wed, May 7, 2014 at 10:49 AM, Ian Young 
> wrote:
> >>
> >>> I noticed that in Home > Infrastructure > Zones > Zone1, Resources
> >>> tab, the Secondary Storage says "Allocated 0.00 KB / 0.00 KB".
> >>> However, the secondary storage NFS mount is listed in Home >
> >>> Infrastructure >
> >> Secondary
> >>> Storage and the URL is correct.  Does this mean the secondary
> >>> storage is unreachable?
> >>>
> >>>
> >>> On Wed, May 7, 2014 at 10:26 AM, Ian Young 
> >> wrote:
> >>>
> >>>> I reinstalled my single server CloudStack system yesterday,
> >>>> following
> >> the
> >>>> quick start guide precisely.  The only difference was that I used
> >>>> /var/primary and /var/secondary instead of /primary and /secondary,
> >> because
> >>>> the /var partition on this machine is very large.  The UI installer
> >> reached
> >>>> the point where it says "Creating system VMs (this may take a while)"
> >> but
> >>>> never finished.  I left it overnight and it still hadn't completed.
> >> This
> >>>> is typically the step that fails, most of the times I've installed
> >>>> CloudStack, so I imagine I must be making the same fundamental
> >>>> mistake
> >> each
> >>>> time, and I'd like to know what that is.
> >>>>
> >>>> I checked management.log and it's in a loop where it cre

Re: Hang when creating system VMs CS 4.3

2014-05-13 Thread dimas yoga pratama
Hi,

Finally I managed to install cloudstack 4.3. There is a minor mistake in
quick install guide, I change the URL of system VM template to :
http://download.cloud.com/templates/4.3/systemvm64template-2014-01-14-master-kvm.qcow2.bz2
There should be someone who is responsible for updating the documentation,
because the system VM URL listed in the documentation is outdated, it causes
confusion to new users.

Now I can see System VMs are in a running and up state. But when I want to
create instance there is no available template.  and in Dashboard tab it
show me thath there is no secondary storage detected in system capacity
section.

I ran the ssvm health scripts it show like this:


First DNS server is  202.46.129.2
PING 202.46.129.2 (202.46.129.2): 48 data bytes
56 bytes from 202.46.129.2: icmp_seq=0 ttl=59 time=0.686 ms
56 bytes from 202.46.129.2: icmp_seq=1 ttl=59 time=0.813 ms
--- 202.46.129.2 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.686/0.750/0.813/0.064 ms
Good: Can ping DNS server

Good: DNS resolves download.cloud.com



*ERROR: NFS is not currently mountedTry manually mounting from inside the
VMNFS server is  169.254.2.172*
PING 169.254.2.172 (169.254.2.172): 48 data bytes
56 bytes from 169.254.2.172: icmp_seq=0 ttl=64 time=0.055 ms
56 bytes from 169.254.2.172: icmp_seq=1 ttl=64 time=0.040 ms
--- 169.254.2.172 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.040/0.048/0.055/0.000 ms
Good: Can ping nfs server

Management server is 10.151.32.51. Checking connectivity.
Good: Can connect to management server port 8250

Good: Java process is running

Tests Complete. Look for ERROR or WARNING above.


df -h

FilesystemSize  Used Avail Use% Mounted on
/dev/mapper/vg_srvr1-lv_root
   50G  3.1G   44G   7% /
tmpfs 1.9G 0  1.9G   0% /dev/shm
/dev/sda2 485M   55M  405M  12% /boot
/dev/mapper/vg_srvr1-lv_home
   69G  180M   65G   1% /home
10.151.32.51:/primary
   50G  3.1G   44G   7%
/mnt/4277132b-4059-34da-918f-ad4b870c1b4f

is there something wrong?help me please.
<http://download.cloud.com/templates/4.3/systemvm64template-2014-01-14-master-kvm.qcow2.bz2>


On Mon, May 12, 2014 at 9:13 AM, CP Yahoo Mail wrote:

> Hi,
>
> you might want to double check your NFS / secondary storage to see if its
> really mountable. Base on the logs, it appears that your system vm is not
> launching (console proxy).
>
>
>
> Blog.CripperZ.SG - Tech Tips Talk
> #CripperzProdigy (Irc.Freenode.Net)
> On Monday, May 12, 2014 2:52 AM, dimas yoga pratama 
> wrote:
>
> Hi all,
>
> I'm trying to install cloudstack 4.3 on CentOS 6.5 with single hardware and
> proxy environment. I followed this guide
> http://cloudstack-installation.readthedocs.org/en/latest/qig.html.
> I managed to login to  cloudstack dashboard and go to basic installation
> wizard. When it comes to creating system VMs step, it takes a very very
> long time and when I refresh the browser suddenly it redirect to dashboard.
> I check the infrastructure tab and I found 2 system VMs already created,
> the VM state showed "starting" but the agent showed nothing.
> Also in dashboard tab I found this notification : "Management Server:
> Management network CIDR is not configured original.type 14"
> why is that happening?  anything wrong with my installation?
>
> This is my management-server.log: http://tny.cz/201f10b4
>
> And this is my configuration with basic installation:
> http://tny.cz/8b90a0cf
>
> Help me please.
>


Re: cloudstack 4.3 installation on CentOS

2014-05-15 Thread dimas yoga pratama
yes I follow the wizard.
This is my configuration with basic installation.

management server IP : 10.151.32.51

Zone Configuration:

Name : Zone1
Public DNS1: 202.46.129.2 (College DNS)
Public DNS2: -
Internal DNS1: 10.151.32.6 (My Lab DNS)
Internal DNS2: -

Pod Configuration:

Name : Pod1
Gateway : 10.151.32.1
Netmask : 255.255.255.0
Start/end reserved system IPs : 10.151.32.60 - 10.151.32.80
Guest Gateway : 10.151.32.1
Guest Netmask : 255.255.255.0
Guest start/end IP : 10.151.32.90 - 10.151.32.200


Cluster Configuration:

Name: Cluster1
Hypervisor:KVM


Host Configuration:

Hostname:10.151.32.51 (Because I build cloudstack with single hardware)
Username:root
Password:password

Primary storage:

Name:  Primary1
Server: 10.151.32.51
Path :/primary

Secondary storage:

NFS server: 10.151.32.51
Path :/secondary


Is there anything wrong with my configurations?
I wanna test cloudstack in my Lab environment.
Thanks.


On Wed, May 7, 2014 at 6:31 AM, Pierre-Luc Dion  wrote:

> Hi,
> Did you follow the zone creation wizard from the ui?
>
> Could it be possible their is not enough management IP in the pod?
>
> Le mardi 6 mai 2014, dimas yoga pratama  a écrit :
>
> > Hi all,
> >
> > I'm trying to install cloudstack 4.3 on CentOS 6.5 with single hardware
> > with proxy environment. I followed this guide
> > http://cloudstack-installation.readthedocs.org/en/latest/qig.html. I
> > managed to login to  cloudstack dashboard and succeded to add host. When
> it
> > comes to "creating system VMs(this may take a while)" step, it takes a
> very
> > very loong time and when I refresh the browser suddenly it redirect to
> > dashboard. I check the infrastructure tab and I found 2 system VMs
> already
> > created and the VM state showed "starting" but the agent showed nothing.
> > Also in dashboard tab I found this notification : "Management Server:
> > Management network CIDR is not configured original.type 14"
> > why is that happening?  anything wrong with my installation?
> >
> > looking forward for your answer.
> >
>
>
> --
>
> Pierre-Luc Dion
> Architecte de Solution Cloud | Cloud Solutions Architect
> 855-OK-CLOUD (855-652-5683) x1101
> - - -
>
> *CloudOps*420 rue Guy
> Montréal QC  H3J 1S6
> www.cloudops.com
> @CloudOps_
>


Hang when creating system VMs CS 4.3

2014-05-15 Thread dimas yoga pratama
Hi all,

I'm trying to install cloudstack 4.3 on CentOS 6.5 with single hardware and
proxy environment. I followed this guide
http://cloudstack-installation.readthedocs.org/en/latest/qig.html.
I managed to login to  cloudstack dashboard and go to basic installation
wizard. When it comes to creating system VMs step, it takes a very very
long time and when I refresh the browser suddenly it redirect to dashboard.
I check the infrastructure tab and I found 2 system VMs already created,
the VM state showed "starting" but the agent showed nothing.
Also in dashboard tab I found this notification : "Management Server:
Management network CIDR is not configured original.type 14"
why is that happening?  anything wrong with my installation?

This is my management-server.log: http://tny.cz/201f10b4

And this is my configuration with basic installation: http://tny.cz/8b90a0cf

Help me please.


Re: using cldstk-dploy with proxy

2014-05-15 Thread dimas yoga pratama
thank you very much Ian, very helpful.


On Wed, May 7, 2014 at 3:13 AM, Ian Duffy  wrote:

> Sorry and NPM: http://jjasonclark.com/how-to-setup-node-behind-web-proxy
>
>
> On 6 May 2014 21:12, Ian Duffy  wrote:
>
> > I don't know the script in detail just briefly glanced over it.
> >
> > It looks like it should work if you
> >
> > 1) Set the proxy for yum. Modify /etc/yum.conf add in
> > proxy=http://whatever:port
> > 2) Modify /etc/bashrc and do exports for http_proxy and https_proxy
> > 3) Modify /etc/wgetrc and do http_proxy=http://whatever:portanduse_proxy = 
> > on
> >
> >
> > On 6 May 2014 13:45, dimas yoga pratama  wrote:
> >
> >> Hi all, is it possible to use cldstk-dply
> >> https://github.com/thehyperadvisor/cldstk-deploy with proxy environment
> >> and
> >> a single host?
> >> I want to test it in my college lab.thanks
> >>
> >
> >
>


Re: cloudstack 4.3 installation on CentOS

2014-05-16 Thread dimas yoga pratama
Update:
I can see VM state of two system VMs are running, but Agent State column
showed nothing. and I can't access system Vms console too.And there is no
virtual routers running in my cloudstack dashboard.


On Thu, May 8, 2014 at 12:26 AM, dimas yoga pratama wrote:

> yes I follow the wizard.
> This is my configuration with basic installation.
>
> management server IP : 10.151.32.51
>
> Zone Configuration:
>
> Name : Zone1
> Public DNS1: 202.46.129.2 (College DNS)
> Public DNS2: -
> Internal DNS1: 10.151.32.6 (My Lab DNS)
> Internal DNS2: -
>
> Pod Configuration:
>
> Name : Pod1
> Gateway : 10.151.32.1
> Netmask : 255.255.255.0
> Start/end reserved system IPs : 10.151.32.60 - 10.151.32.80
> Guest Gateway : 10.151.32.1
> Guest Netmask : 255.255.255.0
> Guest start/end IP : 10.151.32.90 - 10.151.32.200
>
>
> Cluster Configuration:
>
> Name: Cluster1
> Hypervisor:KVM
>
>
> Host Configuration:
>
> Hostname:10.151.32.51 (Because I build cloudstack with single hardware)
> Username:root
> Password:password
>
> Primary storage:
>
> Name:  Primary1
> Server: 10.151.32.51
> Path :/primary
>
> Secondary storage:
>
> NFS server: 10.151.32.51
> Path :/secondary
>
>
> Is there anything wrong with my configurations?
> I wanna test cloudstack in my Lab environment.
> Thanks.
>
>
> On Wed, May 7, 2014 at 6:31 AM, Pierre-Luc Dion wrote:
>
>> Hi,
>> Did you follow the zone creation wizard from the ui?
>>
>> Could it be possible their is not enough management IP in the pod?
>>
>> Le mardi 6 mai 2014, dimas yoga pratama  a écrit :
>>
>> > Hi all,
>> >
>> > I'm trying to install cloudstack 4.3 on CentOS 6.5 with single hardware
>> > with proxy environment. I followed this guide
>> > http://cloudstack-installation.readthedocs.org/en/latest/qig.html. I
>> > managed to login to  cloudstack dashboard and succeded to add host.
>> When it
>> > comes to "creating system VMs(this may take a while)" step, it takes a
>> very
>> > very loong time and when I refresh the browser suddenly it redirect to
>> > dashboard. I check the infrastructure tab and I found 2 system VMs
>> already
>> > created and the VM state showed "starting" but the agent showed nothing.
>> > Also in dashboard tab I found this notification : "Management Server:
>> > Management network CIDR is not configured original.type 14"
>> > why is that happening?  anything wrong with my installation?
>> >
>> > looking forward for your answer.
>> >
>>
>>
>> --
>>
>> Pierre-Luc Dion
>> Architecte de Solution Cloud | Cloud Solutions Architect
>> 855-OK-CLOUD (855-652-5683) x1101
>> - - -
>>
>> *CloudOps*420 rue Guy
>> Montréal QC  H3J 1S6
>> www.cloudops.com
>> @CloudOps_
>>
>
>


Problem when using Cloudstack Login API

2014-06-01 Thread dimas yoga pratama
Hi All,

I'm doing an experiment on using Cloudstack API.
>From what I read here
http://cloudstack.apache.org/docs/api/apidocs-4.3/user/login.html when the
login succeeds,it will generate cookie JSESSIONID.
My question is, when I create login page, and succsfull login will redirect
to another page, do I have to pass JSESSIONID to another page like
SESSIONKEY?


Re: Problem when using Cloudstack Login API

2014-06-02 Thread dimas yoga pratama
Hi,

Thanks Ove and Erik for your clear explanation I understand now.


On Mon, Jun 2, 2014 at 2:25 PM, Erik Weber  wrote:

> On Sun, Jun 1, 2014 at 10:51 PM, dimas yoga pratama 
> wrote:
>
> > Hi All,
> >
> > I'm doing an experiment on using Cloudstack API.
> > From what I read here
> > http://cloudstack.apache.org/docs/api/apidocs-4.3/user/login.html when
> the
> > login succeeds,it will generate cookie JSESSIONID.
> > My question is, when I create login page, and succsfull login will
> redirect
> > to another page, do I have to pass JSESSIONID to another page like
> > SESSIONKEY?
> >
>
>
> Here's an example with curl.
>
> Remember that parameters has to be encoded if they contain any kind of
> special characters.
>
> Login:
> curl -i '
>
> http://localhost:8080/client/api?command=login&user=admin&password=MyPassword&response=json
> '
> returns a snippet like this:
>
> Set-Cookie: JSESSIONID=07CA185081E6A476775ECA9D190EF1F8; Path=/client
>
> { "loginresponse" : { "timeout" : "1800", "lastname" : "cloud",
> "registered" : "false", "username" : "admin", "firstname" : "admin",
> "domainid" : "6f920fbd-94fc-11e3-b2e0-0050568c15a3", "type" : "1", "userid"
> : "d68e7072-94fc-11e3-b2e0-0050568c15a3", "sessionkey" :
> "WxjAu9zZzbmrBGDarnW1cVfm+/g=", "account" : "admin" } }
>
>
> Then you take the JSESSIONID and sessionkey and pass them as Ove said.
>
> List Zones example using above
>
> curl -i -H "Cookie: JSESSIONID=07CA185081E6A476775ECA9D190EF1F8;
> Path=/client" '
>
> http://localhost:8008/client/api?command=listZones&sessionkey=WxjAu9zZzbmrBGDarnW1cVfm%2B%2Fg%3D&response=json
> '
>
>
> --
>
> Erik Weber
>


[URGENT] cannot access management server after restarting service

2014-06-02 Thread dimas yoga pratama
Hi,
Ok this is my problem, I change parameter in global settings, and I unset
some value and I restarted the management server using "service
cloudstack-management restart".
I tried to access the MS back in http://10.151.32.51:8080/client/ and no
luck, it returned 404 resource not available.
Is it a bug or something? How I can get my MS back?

looking forward for your answer,


Re: [URGENT] cannot access management server after restarting service

2014-06-02 Thread dimas yoga pratama
Ok I found the error now, How I revert back my configuration?


2014-06-03 04:13:41,608 ERROR [c.c.r.ResourceLimitManagerImpl] (main:null)
NumberFormatException during configuration
java.lang.NumberFormatException: null
at java.lang.Long.parseLong(Long.java:404)
at java.lang.Long.parseLong(Long.java:483)
at
com.cloud.resourcelimit.ResourceLimitManagerImpl.configure(ResourceLimitManagerImpl.java:231)
at
org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle$3.with(CloudStackExtendedLifeCycle.java:117)
at
org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.with(CloudStackExtendedLifeCycle.java:156)
at
org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.configure(CloudStackExtendedLifeCycle.java:113)
at
org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.start(CloudStackExtendedLifeCycle.java:59)
at
org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:167)
at
org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:51)
at
org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:339)
at
org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:143)
at
org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:108)
at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:945)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)

2014-06-03 04:13:41,609 ERROR [o.a.c.s.l.CloudStackExtendedLifeCycle]
(main:null) Failed to configure ResourceLimitManagerImpl
javax.naming.ConfigurationException: Configuration failed due to
NumberFormatException, see log for the stacktrace
at
com.cloud.resourcelimit.ResourceLimitManagerImpl.configure(ResourceLimitManagerImpl.java:241)
at
org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle$3.with(CloudStackExtendedLifeCycle.java:117)
at
org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.with(CloudStackExtendedLifeCycle.java:156)
at
org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.configure(CloudStackExtendedLifeCycle.java:113)
at
org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.start(CloudStackExtendedLifeCycle.java:59)
at
org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:167)
at
org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:51)
at
org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:339)



On Tue, Jun 3, 2014 at 4:22 AM, Bret Mette 
wrote:

> You should probably start by including what parameter(s) you changed and
> any relavent log entries.
>
> > On Jun 2, 2014, at 2:20 PM, dimas yoga pratama 
> wrote:
> >
> > Hi,
> > Ok this is my problem, I change parameter in global settings, and I unset
> > some value and I restarted the management server using "service
> > cloudstack-management restart".
> > I tried to access the MS back in http://10.151.32.51:8080/client/ and no
> > luck, it returned 404 resource not available.
> > Is it a bug or something? How I can get my MS back?
> >
> > looking forward for your answer,
>


Re: [URGENT] cannot access management server after restarting service

2014-06-02 Thread dimas yoga pratama
I accidentally unset vm limit in global settings, how to restore it? is it
possible to change it via database?


On Tue, Jun 3, 2014 at 4:38 AM, dimas yoga pratama 
wrote:

> Ok I found the error now, How I revert back my configuration?
>
>
> 2014-06-03 04:13:41,608 ERROR [c.c.r.ResourceLimitManagerImpl] (main:null)
> NumberFormatException during configuration
> java.lang.NumberFormatException: null
> at java.lang.Long.parseLong(Long.java:404)
> at java.lang.Long.parseLong(Long.java:483)
> at
> com.cloud.resourcelimit.ResourceLimitManagerImpl.configure(ResourceLimitManagerImpl.java:231)
> at
> org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle$3.with(CloudStackExtendedLifeCycle.java:117)
> at
> org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.with(CloudStackExtendedLifeCycle.java:156)
> at
> org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.configure(CloudStackExtendedLifeCycle.java:113)
> at
> org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.start(CloudStackExtendedLifeCycle.java:59)
> at
> org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:167)
> at
> org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:51)
> at
> org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:339)
> at
> org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:143)
> at
> org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:108)
> at
> org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:945)
> at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
>
> 2014-06-03 04:13:41,609 ERROR [o.a.c.s.l.CloudStackExtendedLifeCycle]
> (main:null) Failed to configure ResourceLimitManagerImpl
> javax.naming.ConfigurationException: Configuration failed due to
> NumberFormatException, see log for the stacktrace
> at
> com.cloud.resourcelimit.ResourceLimitManagerImpl.configure(ResourceLimitManagerImpl.java:241)
> at
> org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle$3.with(CloudStackExtendedLifeCycle.java:117)
> at
> org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.with(CloudStackExtendedLifeCycle.java:156)
> at
> org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.configure(CloudStackExtendedLifeCycle.java:113)
> at
> org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.start(CloudStackExtendedLifeCycle.java:59)
> at
> org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:167)
> at
> org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:51)
> at
> org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:339)
>
>
>
> On Tue, Jun 3, 2014 at 4:22 AM, Bret Mette 
> wrote:
>
>> You should probably start by including what parameter(s) you changed and
>> any relavent log entries.
>>
>> > On Jun 2, 2014, at 2:20 PM, dimas yoga pratama 
>> wrote:
>> >
>> > Hi,
>> > Ok this is my problem, I change parameter in global settings, and I
>> unset
>> > some value and I restarted the management server using "service
>> > cloudstack-management restart".
>> > I tried to access the MS back in http://10.151.32.51:8080/client/ and
>> no
>> > luck, it returned 404 resource not available.
>> > Is it a bug or something? How I can get my MS back?
>> >
>> > looking forward for your answer,
>>
>
>


Re: [URGENT] cannot access management server after restarting service

2014-06-02 Thread dimas yoga pratama
It works! Many thanks Erik.

Thanks all.
On Jun 3, 2014 1:13 PM, "Erik Weber"  wrote:

> Would that be max.account.user.vms?
>
> If so; this would fix it. Run on your mysql server:
>
> mysql -p -e 'UPDATE configuration SET value = "20" WHERE name =
> "max.account.user.vms"' cloud
>
> enter mysql root password when prompted
>
> To see all the values with their defaults, you can run this:
> mysql -p -e 'SELECT name,value,default_value FROM configuration' cloud
>
>
> Hope that helps.
>
> --
> Erik Weber
>
>
> On Tue, Jun 3, 2014 at 12:04 AM, dimas yoga pratama 
> wrote:
>
> > I accidentally unset vm limit in global settings, how to restore it? is
> it
> > possible to change it via database?
> >
> >
> > On Tue, Jun 3, 2014 at 4:38 AM, dimas yoga pratama 
> > wrote:
> >
> > > Ok I found the error now, How I revert back my configuration?
> > >
> > >
> > > 2014-06-03 04:13:41,608 ERROR [c.c.r.ResourceLimitManagerImpl]
> > (main:null)
> > > NumberFormatException during configuration
> > > java.lang.NumberFormatException: null
> > > at java.lang.Long.parseLong(Long.java:404)
> > > at java.lang.Long.parseLong(Long.java:483)
> > > at
> > >
> >
> com.cloud.resourcelimit.ResourceLimitManagerImpl.configure(ResourceLimitManagerImpl.java:231)
> > > at
> > >
> >
> org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle$3.with(CloudStackExtendedLifeCycle.java:117)
> > > at
> > >
> >
> org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.with(CloudStackExtendedLifeCycle.java:156)
> > > at
> > >
> >
> org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.configure(CloudStackExtendedLifeCycle.java:113)
> > > at
> > >
> >
> org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.start(CloudStackExtendedLifeCycle.java:59)
> > > at
> > >
> >
> org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:167)
> > > at
> > >
> >
> org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:51)
> > > at
> > >
> >
> org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:339)
> > > at
> > >
> >
> org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:143)
> > > at
> > >
> >
> org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:108)
> > > at
> > >
> >
> org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:945)
> > > at
> > >
> >
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
> > >
> > > 2014-06-03 04:13:41,609 ERROR [o.a.c.s.l.CloudStackExtendedLifeCycle]
> > > (main:null) Failed to configure ResourceLimitManagerImpl
> > > javax.naming.ConfigurationException: Configuration failed due to
> > > NumberFormatException, see log for the stacktrace
> > > at
> > >
> >
> com.cloud.resourcelimit.ResourceLimitManagerImpl.configure(ResourceLimitManagerImpl.java:241)
> > > at
> > >
> >
> org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle$3.with(CloudStackExtendedLifeCycle.java:117)
> > > at
> > >
> >
> org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.with(CloudStackExtendedLifeCycle.java:156)
> > > at
> > >
> >
> org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.configure(CloudStackExtendedLifeCycle.java:113)
> > > at
> > >
> >
> org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.start(CloudStackExtendedLifeCycle.java:59)
> > > at
> > >
> >
> org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:167)
> > > at
> > >
> >
> org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:51)
> > > at
> > >
> >
> org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:339)
> > >
> > >
> > >
> > > On Tue, Jun 3, 2014 at 4:22 AM, Bret Mette 
> > > wrote:
> > >
> > >> You should probably start by including what parameter(s) you changed
> and
> > >> any relavent log entries.
> > >>
> > >> > On Jun 2, 2014, at 2:20 PM, dimas yoga pratama 
> > >> wrote:
> > >> >
> > >> > Hi,
> > >> > Ok this is my problem, I change parameter in global settings, and I
> > >> unset
> > >> > some value and I restarted the management server using "service
> > >> > cloudstack-management restart".
> > >> > I tried to access the MS back in http://10.151.32.51:8080/client/
> and
> > >> no
> > >> > luck, it returned 404 resource not available.
> > >> > Is it a bug or something? How I can get my MS back?
> > >> >
> > >> > looking forward for your answer,
> > >>
> > >
> > >
> >
>


Access console VM via custom portal.

2014-06-03 Thread dimas yoga pratama
Hi all,

I create a custom web portal that provide some provisioning for user
I want user can access cloudstack VM from my web , but I kept gtting this
message: "Access denied. Invalid web session or API key in request"

I already pass the sessionkey like this :
http://10.151.32.11:8080/client/console?cmd=access&vm=018f88b2-4edc-4e6d-b318-3ec02029180f&sessionkey=d01AlQ2ZzwKBVqB2Rkj0qsHP/aw=

how can I access it from outside cloudstack UI?  Is there any API that can
handle this request?

thanks, looking forward for the answr.


Access console VM via custom portal

2014-06-04 Thread dimas yoga pratama
Hello,
can anyone answer my question?

I create a custom web portal that provide some provisioning for user
I want user can access cloudstack VM from my web , but I kept gtting this
message: "Access denied. Invalid web session or API key in request"

I already pass the sessionkey like this :
http://10.151.32.11:8080/client/console?cmd=access&vm=018f88b2-4edc-4e6d-b318-3ec02029180f&sessionkey=d01AlQ2ZzwKBVqB2Rkj0qsHP/aw=

how can I access it from outside cloudstack UI?  Is there any API that can
handle this request?

thanks, looking forward for the answr.


STATUS : HTTP Server returned 504 when registering Template

2014-06-05 Thread dimas yoga pratama
Hi all,

I want to register template to my cloudstack,
The image location is on my management server, 10.151.32.51
I already activate simple http server in my management server, listening to
port 443
so I enter The URL  http://10.151.32.51:443/filename.qcow2
but I kept getting error status HTTP Server returned 504 (expected 200 OK)
why is that?


install usage server

2014-06-09 Thread dimas yoga pratama
Hi all,

I want to monitor every VMs in my apache cloudstack, how I can install
cloudstack-usage in my management server?
Because my cloud_usage database is empty, apparently it need
cloudstack-usage that has been installed in my MS.
I'm using basic networking in my apache cloudstack.  I trid to follow the
instruction in
http://cloudstack-installation.readthedocs.org/en/latest/optional_installation.html#installing-the-usage-server-optional
but it shows that the ./install is not valid,
Can someone show me the correct way to install it?

Thanks, looking forward for your answer.
Dimas.


Re: install usage server

2014-06-09 Thread dimas yoga pratama
Hi, thanks for quick response

I encounter this following error when i try to start cloudstack-usage :
Starting CloudStack Usage Monitor cloudstack-usage09/06/2014 23:04:13 31554
jsvc
error: Cannot locate Java Home
cat: /var/run/cloudstack-usage.pid: No such file or directoryAILED]
   [FAILED]




On Mon, Jun 9, 2014 at 10:25 PM, Nux!  wrote:

> On 09.06.2014 15:41, dimas yoga pratama wrote:
>
>> Hi all,
>>
>> I want to monitor every VMs in my apache cloudstack, how I can install
>> cloudstack-usage in my management server?
>> Because my cloud_usage database is empty, apparently it need
>> cloudstack-usage that has been installed in my MS.
>> I'm using basic networking in my apache cloudstack.  I trid to follow the
>> instruction in
>> http://cloudstack-installation.readthedocs.org/en/latest/optional_
>> installation.html#installing-the-usage-server-optional
>> but it shows that the ./install is not valid,
>> Can someone show me the correct way to install it?
>>
>> Thanks, looking forward for your answer.
>> Dimas.
>>
>
> You should use the provided packages[1] and also be aware of the following
> gotcha, the usage server will not have access to all the libraries it
> requires for a DB connection, so you need to do:
> ln -s /usr/share/java/mysql-connector-java.jar
> /usr/share/cloudstack-usage/lib/mysql-connector-java.jar
>
> [1] - http://cloudstack.apt-get.eu/
>
> --
> Sent from the Delta quadrant using Borg technology!
>
> Nux!
> www.nux.ro
>


Re: install usage server

2014-06-09 Thread dimas yoga pratama
Thanks Luc, I installed java-1.6.0 and it works. :)


On Mon, Jun 9, 2014 at 11:39 PM, Pierre-Luc Dion  wrote:

> look like a missing path to find java.
>
> I've fixed that on centos-6.5 by installing java1.6:
>
> yum install java-1.6.0-openjdk
>
>
>
> Pierre-Luc Dion
> Architecte de Solution Cloud | Cloud Solutions Architect
> 855-OK-CLOUD (855-652-5683) x1101
> - - -
>
> *CloudOps*420 rue Guy
> Montréal QC  H3J 1S6
> www.cloudops.com
> @CloudOps_
>
>
> On Mon, Jun 9, 2014 at 12:10 PM, dimas yoga pratama 
> wrote:
>
> > Hi, thanks for quick response
> >
> > I encounter this following error when i try to start cloudstack-usage :
> > Starting CloudStack Usage Monitor cloudstack-usage09/06/2014 23:04:13
> 31554
> > jsvc
> > error: Cannot locate Java Home
> > cat: /var/run/cloudstack-usage.pid: No such file or directoryAILED]
> >    [FAILED]
> >
> >
> >
> >
> > On Mon, Jun 9, 2014 at 10:25 PM, Nux!  wrote:
> >
> > > On 09.06.2014 15:41, dimas yoga pratama wrote:
> > >
> > >> Hi all,
> > >>
> > >> I want to monitor every VMs in my apache cloudstack, how I can install
> > >> cloudstack-usage in my management server?
> > >> Because my cloud_usage database is empty, apparently it need
> > >> cloudstack-usage that has been installed in my MS.
> > >> I'm using basic networking in my apache cloudstack.  I trid to follow
> > the
> > >> instruction in
> > >> http://cloudstack-installation.readthedocs.org/en/latest/optional_
> > >> installation.html#installing-the-usage-server-optional
> > >> but it shows that the ./install is not valid,
> > >> Can someone show me the correct way to install it?
> > >>
> > >> Thanks, looking forward for your answer.
> > >> Dimas.
> > >>
> > >
> > > You should use the provided packages[1] and also be aware of the
> > following
> > > gotcha, the usage server will not have access to all the libraries it
> > > requires for a DB connection, so you need to do:
> > > ln -s /usr/share/java/mysql-connector-java.jar
> > > /usr/share/cloudstack-usage/lib/mysql-connector-java.jar
> > >
> > > [1] - http://cloudstack.apt-get.eu/
> > >
> > > --
> > > Sent from the Delta quadrant using Borg technology!
> > >
> > > Nux!
> > > www.nux.ro
> > >
> >
>


cannot call listUsageRecords API

2014-06-10 Thread dimas yoga pratama
Hi all,

I want to records cpu and memory in usage records, so I call
listUsageRecords API but I kept getting following error :

{ "listusagerecordsresponse" :
{"uuidList":[],"errorcode":530,"cserrorcode":} }

this is my example request :
http://10.151.32.51:8080/client/api?apiKey=Fh4eX2m8gm4St28GjowZ79byBKD6bewD4SQZIwDJed_E9QAwucvIXG39aa86kv5IlimjwZoM_1sFSHufSr-PzQ&command=listUsageRecords&enddate=2014-06-10&response=json&startdate=2014-06-09&signature=Qn1szkTAAIoIXFSIigIk3xqtAiU%3D

I can call another API, except this one.

Thanks, looking forward for your answer.

Dimas.


Re: cannot call listUsageRecords API

2014-06-10 Thread dimas yoga pratama
Hi,

Yes I'm using ACS 4.3 version and this is my MS log:

ERROR [c.c.a.ApiServer] (catalina-exec-22:ctx-cc6f745d ctx-d76a4da9
ctx-316bd6f5) unhandled exception executing api command: listUsageRecords
java.lang.NullPointerException
at
com.cloud.api.ApiResponseHelper.createUsageResponse(ApiResponseHelper.java:3367)
at
org.apache.cloudstack.api.command.admin.usage.GetUsageRecordsCmd.execute(GetUsageRecordsCmd.java:119)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:531)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:374)
at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:323)
at com.cloud.api.ApiServlet.access$000(ApiServlet.java:53)
at com.cloud.api.ApiServlet$1.run(ApiServlet.java:115)
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 com.cloud.api.ApiServlet.processRequest(ApiServlet.java:112)
at com.cloud.api.ApiServlet.doGet(ApiServlet.java:74)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
2014-06-10 17:38:19,850 DEBUG [c.c.a.ApiServlet]
(catalina-exec-22:ctx-cc6f745d ctx-d76a4da9 ctx-316bd6f5) ===END===
10.151.32.52 -- GET
apiKey=Fh4eX2m8gm4St28GjowZ79byBKD6bewD4SQZIwDJed_E9QAwucvIXG39aa86kv5IlimjwZoM_1sFSHufSr-PzQ&command=listUsageRecords&enddate=2014-06-10&response=json&startdate=2014-06-09&signature=Qn1szkTAAIoIXFSIigIk3xqtAiU%3D


How I can fix this?How I can apply the patch?
sorry I'm new to Cloudstack.

Thanks,
Dimas.


On Tue, Jun 10, 2014 at 5:28 PM, Rajani Karuturi  wrote:

> Can you share the logs and ACS version?
>
> you might be hitting this bug
> https://issues.apache.org/jira/browse/CLOUDSTACK-6472 which is fixed in
> 4.4 and will also be 4.3.1 if there is a a release.
>
>
>
> ~Rajani
>
>
>
> On 10-Jun-2014, at 3:39 pm, dimas yoga pratama  smid...@gmail.com>> wrote:
>
> Hi all,
>
> I want to records cpu and memory in usage records, so I call
> listUsageRecords API but I kept getting following error :
>
> { "listusagerecordsresponse" :
> {"uuidList":[],"errorcode":530,"cserrorcode":} }
>
> this is my example request :
>
> http://10.151.32.51:8080/client/api?apiKey=Fh4eX2m8gm4St28GjowZ79byBKD6bewD4SQZIwDJed_E9QAwucvIXG39aa86kv5IlimjwZoM_1sFSHufSr-PzQ&command=listUsageRecords&enddate=2014-06-10&response=json&startdate=2014-06-09&signature=Qn1szkTAAIoIXFSIigIk3xqtAiU%3D
>
> I can call another API, except this one.
>
> Thanks, looking forward for your answer.
>
> Dimas.
>
>


cannot access VMs in particular Host

2014-06-10 Thread dimas yoga pratama
Hi all,

I build cloudstack with 2 host with basic networking,

When I create VMs in Host A I can ping it from outside,
but when I create VMs in host B I cant ping it and access it, all VMs are
under same account and security groups.
why is that?anything wrong with my configuration in Host B?


VM created in particular host cannot access internet

2014-06-13 Thread dimas yoga pratama
Hi all,

I have installed Cloudstack with KVM hypervisor in 2 machines. One machine
(A) act as MS and Agent, and the other machine (B) act as an Agent.
I can access the internet from all VMs created in machine B and ping the
VMs from outside, but I can't access the internet from VMs created in
Machine (A). I already set the ingress and egres rule to all VMs.

Is there any misconfiguration in my cloudstack?I'm using basic networking
and in a proxy environment.

Thanks, looking forward for your answer
Dimas.


VM created in particular host cannot access internet

2014-06-14 Thread dimas yoga pratama
Hi all,

I have installed Cloudstack with KVM hypervisor in 2 machines. One machine
(A) act as MS and Agent, and the other machine (B) act as an Agent.
I can access the internet from all VMs created in machine B and ping the
VMs from outside, but I can't access the internet from VMs created in
Machine (A). I already set the ingress and egres rule to all VMs.

Is there any misconfiguration in my cloudstack?I'm using basic networking
and in a proxy environment.

Thanks, looking forward for your answer


VM created in different hosts with CPVM can not access the internet

2014-06-17 Thread dimas yoga pratama
Hi all,

I build Cloudstack KVM hypervisor with 2 machines. One machine(A) act as an
Agent and MS and the other machine (B) act as an Agent only.

When I create VMs on same location with CPVM, the VM can access the
internet.
But when I create Vms on different host with CPVM, all the VM I created is
not accessible, I can use console view from MS but cannot access the
internet.

Is there any misconfiguration in my cloudstack?I'm using basic networking
and in a proxy environment.

Thanks, looking forward for your answer


[URGENT] cloudstack SSVM and router failed to start after power blackout

2014-06-19 Thread dimas yoga pratama
OK this is my problem, after blackout I can''t start virtual router, and
ssvm not detected in my cloudstack system. SSVM recreated itself but stuck
in starting state.

What should I do?Please help me..


Re: [URGENT] cloudstack SSVM and router failed to start after power blackout

2014-06-19 Thread dimas yoga pratama
Hi, from the infrastructure tab I can detect the hosts, but  both of the
hosts show alert state., I already try to force reconnect but it fails.
What should I do? Now the CPVM fail to start too.


On Thu, Jun 19, 2014 at 9:17 PM, Rohit Yadav  wrote:

> Hi,
>
> SSVMs and VRs are stateless so if restarts are not working for you, you may
> (force) stop and remove them. The CloudStack HA thread(s) would kickstart
> new ones after a certain timeout, to speed this behaviour you may restart
> CloudStack as well.
>
> If your problem still persists after trying above you may try debugging the
> issue:
>
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/SSVM,+templates,+Secondary+storage+troubleshooting
>
> Regards.
>
>
> On Thu, Jun 19, 2014 at 7:34 PM, dimas yoga pratama 
> wrote:
>
> > OK this is my problem, after blackout I can''t start virtual router, and
> > ssvm not detected in my cloudstack system. SSVM recreated itself but
> stuck
> > in starting state.
> >
> > What should I do?Please help me..
> >
>


Re: [URGENT] cloudstack SSVM and router failed to start after power blackout

2014-06-19 Thread dimas yoga pratama
ue to Host 2 is not up


Host log:

2014-06-19 21:19:35,890 INFO  [cloud.agent.Agent] (Agent-Handler-3:null)
Lost connection to the server. Dealing with the remaining commands...
2014-06-19 21:19:40,891 INFO  [cloud.agent.Agent] (Agent-Handler-3:null)
Reconnecting...
2014-06-19 21:19:40,891 INFO  [utils.nio.NioClient] (Agent-Selector:null)
Connecting to 10.151.32.51:8250
2014-06-19 21:19:40,989 INFO  [utils.nio.NioClient] (Agent-Selector:null)
SSL: Handshake done
2014-06-19 21:19:40,989 INFO  [utils.nio.NioClient] (Agent-Selector:null)
Connected to 10.151.32.51:8250
2014-06-19 21:19:41,084 INFO  [cloud.agent.Agent] (Agent-Handler-2:null)
Proccess agent startup answer, agent id = 0
2014-06-19 21:19:41,084 INFO  [cloud.agent.Agent] (Agent-Handler-2:null)
Set agent id 0
2014-06-19 21:19:41,085 INFO  [cloud.agent.Agent] (Agent-Handler-2:null)
Startup Response Received: agent id = 0
2014-06-19 21:19:45,990 INFO  [cloud.agent.Agent] (Agent-Handler-3:null)
Connected to the server
2014-06-19 21:19:46,595 INFO  [cloud.agent.Agent] (Agent-Handler-3:null)
Lost connection to the server. Dealing with the remaining commands...
2014-06-19 21:19:51,596 INFO  [cloud.agent.Agent] (Agent-Handler-3:null)
Reconnecting...



I'm using Centos 6.5 and Cloudstack 4.3 with basic networking.

Please help me..


On Thu, Jun 19, 2014 at 9:42 PM, Rohit Yadav  wrote:

> I'm not sure what could be the specific issue. You can tail the management
> server logs to see what is failing. After you figure out the specific
> issue, you may share it with us with your host os, CloudStack version
> details and the connected host details.
>
> Regards.
>
>
> On Thu, Jun 19, 2014 at 8:01 PM, dimas yoga pratama 
> wrote:
>
> > Hi, from the infrastructure tab I can detect the hosts, but  both of the
> > hosts show alert state., I already try to force reconnect but it fails.
> > What should I do? Now the CPVM fail to start too.
> >
> >
> > On Thu, Jun 19, 2014 at 9:17 PM, Rohit Yadav 
> wrote:
> >
> > > Hi,
> > >
> > > SSVMs and VRs are stateless so if restarts are not working for you, you
> > may
> > > (force) stop and remove them. The CloudStack HA thread(s) would
> kickstart
> > > new ones after a certain timeout, to speed this behaviour you may
> restart
> > > CloudStack as well.
> > >
> > > If your problem still persists after trying above you may try debugging
> > the
> > > issue:
> > >
> > >
> >
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/SSVM,+templates,+Secondary+storage+troubleshooting
> > >
> > > Regards.
> > >
> > >
> > > On Thu, Jun 19, 2014 at 7:34 PM, dimas yoga pratama  >
> > > wrote:
> > >
> > > > OK this is my problem, after blackout I can''t start virtual router,
> > and
> > > > ssvm not detected in my cloudstack system. SSVM recreated itself but
> > > stuck
> > > > in starting state.
> > > >
> > > > What should I do?Please help me..
> > > >
> > >
> >
>


Re: [URGENT] cloudstack SSVM and router failed to start after power blackout

2014-06-19 Thread dimas yoga pratama
Thanks Rohit, I will give feedback as soon as I tried it


On Thu, Jun 19, 2014 at 10:38 PM, Rohit Yadav  wrote:

> Hi Dimas,
>
> Looks like the VM is in starting state and CloudStack is unable to contact
> the agent. Hope you've removed the VR from CloudStack using the UI. You can
> try restarting the management server. The issue is of sync, where one party
> (mgmt server) has different view of the world than the other (the
> host/agent). In such cases, do not remove the host else when you re-add it,
> it may destroy all the (user) VMs on it or simply fail.
>
> If restarting won't fix the problem, in global settings reduce the expunge
> timeout (that's when CloudStack marks a VM as removed, since you've just
> destroyed it, it can take some time to get expunged) and try again.
>
> As a final course of action I would stop the management server, then ssh to
> the host and destroy SSVMs, using mysql client I would change db entries
> for SSVM to removed/expunged (simply mark by updating row, do not remove
> the row), start the mgmt server again and hope it would work this time.
>
> Suggestions anyone in such a case?
>
> Regards.
>
>
> On Thu, Jun 19, 2014 at 8:29 PM, dimas yoga pratama 
> wrote:
>
> > management log :
> >
> > 2014-06-19 21:49:21,312 WARN  [c.c.u.n.Link] (AgentManager-Selector:null)
> > SSL: Fail to find the generated keystore. Loading fail-safe one to
> > continue.
> >
> > 2014-06-19 21:49:11,585 DEBUG [c.c.v.VirtualMachineManagerImpl]
> > (AgentConnectTaskPool-344:ctx-07431045) Ignoring VM in starting mode:
> > r-71-VM
> > 2014-06-19 21:49:11,585 DEBUG [c.c.h.HighAvailabilityManagerImpl]
> > (AgentConnectTaskPool-344:ctx-07431045) VM does not require investigation
> > so I'm marking it as Stopped: VM[DomainRouter|r-71-VM]
> > 2014-06-19 21:49:11,585 WARN  [o.a.c.f.j.AsyncJobExecutionContext]
> > (AgentConnectTaskPool-344:ctx-07431045) Job is executed without a
> context,
> > setup psudo job for the executing thread
> > 2014-06-19 21:49:11,651 DEBUG [c.c.v.VirtualMachineManagerImpl]
> > (AgentConnectTaskPool-344:ctx-07431045) Unable to transition the state
> but
> > we're moving on because it's forced stop
> > 2014-06-19 21:49:11,651 DEBUG [c.c.v.VirtualMachineManagerImpl]
> > (AgentConnectTaskPool-344:ctx-07431045) Unable to cleanup VM:
> > VM[DomainRouter|r-71-VM] ,since outstanding work item is not found
> > 2014-06-19 21:49:11,651 ERROR [c.c.a.m.AgentManagerImpl]
> > (AgentConnectTaskPool-344:ctx-07431045) Monitor
> > ClusteredVirtualMachineManagerImpl says there is an error in the connect
> > process for 2 due to Work item not found, We cannot stop
> > VM[DomainRouter|r-71-VM] when it is in state Starting
> > com.cloud.utils.exception.CloudRuntimeException: Work item not found, We
> > cannot stop VM[DomainRouter|r-71-VM] when it is in state Starting
> > at
> >
> >
> com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1415)
> > at
> >
> >
> com.cloud.vm.VirtualMachineManagerImpl.orchestrateStop(VirtualMachineManagerImpl.java:1344)
> > at
> >
> >
> com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1312)
> > at
> >
> >
> com.cloud.ha.HighAvailabilityManagerImpl.scheduleRestart(HighAvailabilityManagerImpl.java:346)
> > at
> >
> >
> com.cloud.vm.VirtualMachineManagerImpl.compareState(VirtualMachineManagerImpl.java:2827)
> > at
> >
> >
> com.cloud.vm.VirtualMachineManagerImpl.fullHostSync(VirtualMachineManagerImpl.java:2384)
> > at
> >
> >
> com.cloud.vm.VirtualMachineManagerImpl.processConnect(VirtualMachineManagerImpl.java:3035)
> > at
> >
> >
> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:495)
> > at
> >
> >
> com.cloud.agent.manager.AgentManagerImpl.handleConnectedAgent(AgentManagerImpl.java:999)
> > at
> >
> >
> com.cloud.agent.manager.AgentManagerImpl.access$000(AgentManagerImpl.java:117)
> > at
> >
> >
> com.cloud.agent.manager.AgentManagerImpl$HandleAgentConnectTask.runInContext(AgentManagerImpl.java:1082)
> > 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.conte

unable to add host KVM

2014-06-24 Thread dimas yoga pratama
Hi all,

I want to add host in my cloudstack with kvm basic networking.
I follow this guide
http://cloudstack-installation.readthedocs.org/en/latest/hypervisor/kvm.html
but I'm unable to add host.
this is my management-server.log

anybody know how to solve this???

thanks.

-8:ctx-af20f8f7 ctx-ce74c51b)  can't setup agent, due to
java.net.SocketTimeoutException: The kexTimeout (6 ms) expired. - The
kexTimeout (6 ms) expired.
2014-06-25 00:20:14,035 WARN  [c.c.r.ResourceManagerImpl]
(catalina-exec-8:ctx-af20f8f7 ctx-ce74c51b) Unable to find the server
resources at http://10.151.32.53
2014-06-25 00:20:14,035 INFO  [c.c.u.e.CSExceptionErrorCode]
(catalina-exec-8:ctx-af20f8f7 ctx-ce74c51b) Could not find exception:
com.cloud.exception.DiscoveryException in error code list for exceptions
com.cloud.exception.DiscoveryException: Unable to add the host
at
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:780)
at
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:575)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy145.discoverHosts(Unknown Source)
at
org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:531)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:374)
at
com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:323)
at com.cloud.api.ApiServlet.access$000(ApiServlet.java:53)
at com.cloud.api.ApiServlet$1.run(ApiServlet.java:115)
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 com.cloud.api.ApiServlet.processRequest(ApiServlet.java:112)
at com.cloud.api.ApiServlet.doPost(ApiServlet.java:79)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)


Devcloud:Can't create host

2014-03-31 Thread dimas yoga pratama
Hi, my name is Dimas,

I'm very new to Cloudstack, I'm trying to build Cloudstack on my laptop
using Devcloud with virtualbox and managed to login in CS dashboard, but
I've got the following error when I try to create host.
why is this happen?

WARN  [c.c.a.d.ParamGenericValidationWorker]
(1583536287@qtp-102099346-7:ctx-d4dd6064
ctx-08f90d59) Received unknown parameters for command addHost. Unknown
parameters : clustertype
INFO  [c.c.r.ResourceManagerImpl] (1583536287@qtp-102099346-7:ctx-d4dd6064
ctx-08f90d59) Trying to add a new host at http://192.168.56.10 in data
center 2
INFO  [c.c.h.x.d.XcpServerDiscoverer] (1583536287@qtp-102099346-7:ctx-d4dd6064
ctx-08f90d59) Found host devcloud ip=192.168.56.10 product version=1.6.0
INFO  [c.c.h.x.r.CitrixResourceBase] (1583536287@qtp-102099346-7:ctx-d4dd6064
ctx-08f90d59) Private Network is Pool-wide network associated with eth0 for
host 192.168.56.10
INFO  [c.c.h.x.r.CitrixResourceBase] (1583536287@qtp-102099346-7:ctx-d4dd6064
ctx-08f90d59) Guest Network is Pool-wide network associated with eth0 for
host 192.168.56.10
INFO  [c.c.h.x.r.CitrixResourceBase] (1583536287@qtp-102099346-7:ctx-d4dd6064
ctx-08f90d59) Public Network is Pool-wide network associated with eth0 for
host 192.168.56.10
INFO  [c.c.h.x.d.XcpServerDiscoverer] (1583536287@qtp-102099346-7:ctx-d4dd6064
ctx-08f90d59) Host: devcloud connected with hypervisor type: XenServer.
Checking CIDR...
INFO  [c.c.a.m.DirectAgentAttache] (1583536287@qtp-102099346-7:ctx-d4dd6064
ctx-08f90d59) StartupAnswer received 4 Interval = 60
WARN  [c.c.a.m.DirectAgentAttache] (DirectAgent-2:ctx-1dd57f8e) Seq
4-7148901458497241089: Exception Caught while executing command
com.cloud.utils.exception.CloudRuntimeException: Cannot create directory
/opt/cloud/bin on XenServer hosts
at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.setupServer(CitrixResourceBase.java:4892)
at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:4718)
at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:497)
at
com.cloud.hypervisor.xen.resource.XcpOssResource.executeRequest(XcpOssResource.java:176)
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
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
WARN  [c.c.h.x.d.XcpServerDiscoverer] (1583536287@qtp-102099346-7:ctx-d4dd6064
ctx-08f90d59) Unable to setup agent 4 due to
com.cloud.utils.exception.CloudRuntimeException: Cannot create directory
/opt/cloud/bin on XenServer hosts
INFO  [c.c.u.e.CSExceptionErrorCode] (1583536287@qtp-102099346-7:ctx-d4dd6064
ctx-08f90d59) Could not find exception:
com.cloud.exception.ConnectionException in error code list for exceptions
WARN  [c.c.a.m.AgentManagerImpl] (1583536287@qtp-102099346-7:ctx-d4dd6064
ctx-08f90d59) Monitor XcpServerDiscoverer says there is an error in the
connect process for 4 due to Reinitialize agent after setup.
INFO  [c.c.a.m.AgentManagerImpl] (1583536287@qtp-102099346-7:ctx-d4dd6064
ctx-08f90d59) Host 4 is disconnecting with event AgentDisconnected
WARN  [c.c.r.ResourceManagerImpl] (1583536287@qtp-102099346-7:ctx-d4dd6064
ctx-08f90d59) Unable to connect due to
com.cloud.exception.ConnectionException: Reinitialize agent after setup.
at
com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(XcpServerDiscoverer.java:647)
at
com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:514)
at
com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentManagerImpl.java:1427)
at
com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManagerImpl.java:1764)
at
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:773)
at
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:586)

unable to deploy instance

2014-04-09 Thread dimas yoga pratama
Hi all,

I am trying to build build cloudstack 4.2 using my laptop by following this
guideand,
everything went smooth. But when I tried to create an instance I've
got this following error :

WARN  [apache.cloudstack.alerts] (Job-Executor-1:job-11 = [
b3f84a36-095d-460d-a577-e8ef202cc218 ])  alertType:: 8 //
dataCenterId:: 1 // podId:: null // clusterId:: null // message::
Failed to deploy Vm with Id: 5, on Host with Id: null
INFO  [user.vm.DeployVMCmd] (Job-Executor-1:job-11 = [
b3f84a36-095d-460d-a577-e8ef202cc218 ])
com.cloud.exception.InsufficientServerCapacityException: Unable to
create a deployment for
VM[User|3ce1dd42-8daf-43b8-891c-3c05827ff159]Scope=interface
com.cloud.dc.DataCenter; id=1
INFO  [user.vm.DeployVMCmd] (Job-Executor-1:job-11 = [
b3f84a36-095d-460d-a577-e8ef202cc218 ]) Unable to create a deployment
for VM[User|3ce1dd42-8daf-43b8-891c-3c05827ff159]
com.cloud.exception.InsufficientServerCapacityException: Unable to
create a deployment for
VM[User|3ce1dd42-8daf-43b8-891c-3c05827ff159]Scope=interface
com.cloud.dc.DataCenter; id=1
at 
org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.reserveVirtualMachine(VMEntityManagerImpl.java:209)
at 
org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.reserve(VirtualMachineEntityImpl.java:198)
at 
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3412)
at 
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3000)
at 
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2986)
at 
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at 
org.apache.cloudstack.api.command.user.vm.DeployVMCmd.execute(DeployVMCmd.java:420)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)


This is happen when I create an Instance with Data Disk Offering
enabled,
why is this happen? I want to test Cloudstack with complete
functionality. Is there any suggestion what version of Cloudstack I
should use?


Instance can't use data disk in Devcloud

2014-04-11 Thread dimas yoga pratama
Hi all,

I am trying to build cloudstack 4.2 using my laptop with Devcloud by
following this 
guideand,
everything went smooth. But when I tried to create an instance with
data disk offering I've got this following error :


WARN  [apache.cloudstack.alerts] (Job-Executor-1:job-11 = [
b3f84a36-095d-460d-a577-e8ef202cc218 ])  alertType:: 8 //
dataCenterId:: 1 // podId:: null // clusterId:: null // message::
Failed to deploy Vm with Id: 5, on Host with Id: null
INFO  [user.vm.DeployVMCmd] (Job-Executor-1:job-11 = [
b3f84a36-095d-460d-a577-e8ef202cc218 ])
com.cloud.exception.InsufficientServerCapacityException: Unable to
create a deployment for
VM[User|3ce1dd42-8daf-43b8-891c-3c05827ff159]Scope=interface
com.cloud.dc.DataCenter; id=1
INFO  [user.vm.DeployVMCmd] (Job-Executor-1:job-11 = [
b3f84a36-095d-460d-a577-e8ef202cc218 ]) Unable to create a deployment
for VM[User|3ce1dd42-8daf-43b8-891c-3c05827ff159]
com.cloud.exception.InsufficientServerCapacityException: Unable to
create a deployment for
VM[User|3ce1dd42-8daf-43b8-891c-3c05827ff159]Scope=interface
com.cloud.dc.DataCenter; id=1
at 
org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.reserveVirtualMachine(VMEntityManagerImpl.java:209)
at 
org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.reserve(VirtualMachineEntityImpl.java:198)
at 
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3412)
at 
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3000)
at 
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2986)
at 
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at 
org.apache.cloudstack.api.command.user.vm.DeployVMCmd.execute(DeployVMCmd.java:420)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)



According to what I've just read from here :
http://mail-archives.apache.org/mod_mbox/cloudstack-dev/201401.mbox/%3ccefd7abe.40328%25gprab...@juniper.net%3E

Devcloud can't create an instance with data disk enabled, is it true?
So I only allowed to create instance with no data disk?

Please answer me.