Re: UI HTTP Status 404 / Tomcat - Address already in use [UNFIXED]

2014-09-11 Thread Kirk Kosinski
The IP that agents connect to is configured in CloudStack itself,
specifically the "host" parameter in Global Settings.  Try setting that
to the IP that the management server is listening on 8250/tcp, and
restart CloudStack.

Best regards,
Kirk

On 09/11/2014 06:31 PM, Piers wrote:
> On 12/09/14 11:13, Rohit Yadav wrote:
>>
>> To start again, you don’t have to remove the package or conf again and
>> again. Just shutdown all java services (management and agent, tomcat
>> etc.) and deploy the database, and finally start the management server.
> 
> Good to know - thank you
> 
>>> # configure with IP thanks to Rohit
>>> cloudstack-setup-databases cloud:@localhost
>>> --deploy-as=root:xx -i 192.168.5.1
>> After you setup databases, just run cloudstack-agent (if KVM) and
>> start the cloudstack-management. And you should be good. Make sure
>> you’ve openjdk 1.7 installed and if you run “java -version” it should
>> say 1.7 version etc. Else google on how to install/setup openjdk 1.7
>> as your default java version/tool.
>>
> 
> java version "1.7.0_65"
> OpenJDK Runtime Environment (rhel-2.5.1.2.el6_5-x86_64 u65-b17)
> OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
> 
> 
> 
>> Look in the logs for possible errors
>> /var/log/cloudstack/management/management-server.log
>>
>> Looks like you’re playing with KVM, you may try to set up CloudStack
>> cloud all in one box: http://bhaisaab.org/logs/cloudstack-kvm/
>>
>>
> 
> Getting closer:
> 
> [root@ade1]# tail /var/log/cloudstack/agent/agent.log
> 
> WARN  [utils.nio.NioConnection] (Agent-Selector:null) Unable to connect
> to remote: is there a server running on port 8250
> 
> 
> 
> 
> [root@ade1]# /etc/init.d/cloudstack-management start
> Starting cloudstack-management:[  OK  ]
> [root@ade1]# netstat -nap | grep 8250
> [root@ade1]#
> 
> I noticed that the IP the agent was looking on was different to the one
> in db.properties
> 
> I am going to wipe the database again and watch the a agent log as well
> as management to see where it is going wrong.
> 
> Thanks
> 
> Piers
> 



Re: UI HTTP Status 404 / Tomcat - Address already in use [UNFIXED]

2014-09-11 Thread Piers

On 12/09/14 11:13, Rohit Yadav wrote:


To start again, you don’t have to remove the package or conf again and again. 
Just shutdown all java services (management and agent, tomcat etc.) and deploy 
the database, and finally start the management server.


Good to know - thank you


# configure with IP thanks to Rohit
cloudstack-setup-databases cloud:@localhost --deploy-as=root:xx -i 
192.168.5.1

After you setup databases, just run cloudstack-agent (if KVM) and start the 
cloudstack-management. And you should be good. Make sure you’ve openjdk 1.7 
installed and if you run “java -version” it should say 1.7 version etc. Else 
google on how to install/setup openjdk 1.7 as your default java version/tool.



java version "1.7.0_65"
OpenJDK Runtime Environment (rhel-2.5.1.2.el6_5-x86_64 u65-b17)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)




Look in the logs for possible errors 
/var/log/cloudstack/management/management-server.log

Looks like you’re playing with KVM, you may try to set up CloudStack cloud all 
in one box: http://bhaisaab.org/logs/cloudstack-kvm/




Getting closer:

[root@ade1]# tail /var/log/cloudstack/agent/agent.log

WARN  [utils.nio.NioConnection] (Agent-Selector:null) Unable to connect 
to remote: is there a server running on port 8250





[root@ade1]# /etc/init.d/cloudstack-management start
Starting cloudstack-management:[  OK  ]
[root@ade1]# netstat -nap | grep 8250
[root@ade1]#

I noticed that the IP the agent was looking on was different to the one 
in db.properties


I am going to wipe the database again and watch the a agent log as well 
as management to see where it is going wrong.


Thanks

Piers



Re: UI HTTP Status 404 / Tomcat - Address already in use [UNFIXED]

2014-09-11 Thread Rohit Yadav
Hi Piers,

On 12-Sep-2014, at 12:42 am, Piers  wrote:
> # purge cloudstack from the system and remove all traces of installation
> yum -y remove cloudstack-* tomcat*
> rm -fR /usr/share/cloudstack-*
> rm -fR /etc/cloudstack/
> # install management & usage
> yum -y install cloudstack-management cloudstack-usage

To start again, you don’t have to remove the package or conf again and again. 
Just shutdown all java services (management and agent, tomcat etc.) and deploy 
the database, and finally start the management server.

> # configure with IP thanks to Rohit
> cloudstack-setup-databases cloud:@localhost --deploy-as=root:xx -i 
> 192.168.5.1

After you setup databases, just run cloudstack-agent (if KVM) and start the 
cloudstack-management. And you should be good. Make sure you’ve openjdk 1.7 
installed and if you run “java -version” it should say 1.7 version etc. Else 
google on how to install/setup openjdk 1.7 as your default java version/tool.

> I can't get my head around why a purging followed by a clean install will not 
> eventuate in a web UI and not a 404
>
> Any help appreciated.

Look in the logs for possible errors 
/var/log/cloudstack/management/management-server.log

Looks like you’re playing with KVM, you may try to set up CloudStack cloud all 
in one box: http://bhaisaab.org/logs/cloudstack-kvm/

Hope this helps.

Regards,
Rohit Yadav
Software Architect, ShapeBlue
M. +41 779015219 | rohit.ya...@shapeblue.com
Blog: bhaisaab.org | Twitter: @_bhaisaab



Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build
CSForge – rapid IaaS deployment framework
CloudStack Consulting
CloudStack Infrastructure 
Support
CloudStack Bootcamp Training Courses

This email and any attachments to it may be confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of Shape Blue Ltd or related companies. If you are not the 
intended recipient of this email, you must neither take any action based upon 
its contents, nor copy or show it to anyone. Please contact the sender if you 
believe you have received this email in error. Shape Blue Ltd is a company 
incorporated in England & Wales. ShapeBlue Services India LLP is a company 
incorporated in India and is operated under license from Shape Blue Ltd. Shape 
Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is 
operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company 
registered by The Republic of South Africa and is traded under license from 
Shape Blue Ltd. ShapeBlue is a registered trademark.


Re: UI HTTP Status 404 / Tomcat - Address already in use [FIXED] {reboot}

2014-09-11 Thread Piers

I rebooted the machine and the UI came up.

Somewhere along the line repeatedly installing software leaves some 
remnants that we purged by a reboot.


Thanks

Piers


Re: UI HTTP Status 404 / Tomcat - Address already in use [UNFIXED]

2014-09-11 Thread Piers

On 11/09/14 23:17, Rohit Yadav wrote:


After you install CloudStack and run cloudstack-setup-databases this tool will 
pick IP from the first valid nic it finds (cloud0 being the first one 
alphabetically, do a ifconfig to list nics and ips).

To override, give a -i , example:

cloudstack-setup-database -i  




Thanks for your help Rohit,

I have been running these commands from a batch file and still I get 
404. (I put them into a batch file because I ran into other problems *)


# Stop everything so 8080 is not used
/etc/init.d/cloudstack-management stop
/etc/init.d/cloudstack-agent stop
/etc/init.d/tomcat6 stop
# get rid of the databases
mysqladmin -uroot -ppwd drop cloud
mysqladmin -uroot -ppwd drop cloudbridge
mysqladmin -uroot -ppwd drop cloud_usage
# purge cloudstack from the system and remove all traces of installation
yum -y remove cloudstack-* tomcat*
rm -fR /usr/share/cloudstack-*
rm -fR /etc/cloudstack/
# install management & usage
yum -y install cloudstack-management cloudstack-usage
# configure with IP thanks to Rohit
cloudstack-setup-databases cloud:@localhost --deploy-as=root:xx 
-i 192.168.5.1

cloudstack-setup-management

I can't get my head around why a purging followed by a clean install 
will not eventuate in a web UI and not a 404


Any help appreciated.

Cheers

Piers


* As per my other list posts:

- Getting the networking suiting my set up from the guided install was 
working not desired


I have eth0-eth03 with the secondary storage server on 192.168.5.2 / 
eth2[IP 192.168.5.1] and a public IP on eth0. Ideally I would like to 
create instances on 192.168.5.0 (eth2) and allocate them Public IP's 
from the subnet on eth0


eth0 is bridged to cloudbr0

- Deleting the install via the GUI kept on complaining about things in 
use that I could not turn off


- Not being a production set up it is easier to wipe than 
break-it-until-its-fixed / fix-it-until-its-broken




404 Error

2014-09-11 Thread mo
I am presently getting 404 error when attempting to access the UI. I believe 
it’s due to the version of my Tomcat. However, I am unsure what version I 
should be using. As I seem to have not disabled automatic updates, as such, 
many things have been updated.

Please advise,

Mo



Re: UI HTTP Status 404 / Tomcat - Address already in use [UNFIXED]

2014-09-11 Thread Rohit Yadav

On 11-Sep-2014, at 3:02 pm, Piers  wrote:
> I would appreciate a brief explanation as to why wiping and reinstalling does 
> not lead to..wella functioning web UI. Every time I reinstall the 
> management server IP selected is 165.254.0.1 (which is  cloud0) - my 
> previous fix is to edit /etc/cloudstack/management/db.properties to change it 
> to the public IP. But that does not work now.
>
> Do I have to manually wipe the bridges, reboot and start again?
>
> I am keen to learn a solution and get comfortable with Cloudstack.

After you install CloudStack and run cloudstack-setup-databases this tool will 
pick IP from the first valid nic it finds (cloud0 being the first one 
alphabetically, do a ifconfig to list nics and ips).

To override, give a -i , example:

cloudstack-setup-database -i  

Hope this helps.

Regards,
Rohit Yadav
Software Architect, ShapeBlue
M. +41 779015219 | rohit.ya...@shapeblue.com
Blog: bhaisaab.org | Twitter: @_bhaisaab



Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build
CSForge – rapid IaaS deployment framework
CloudStack Consulting
CloudStack Infrastructure 
Support
CloudStack Bootcamp Training Courses

This email and any attachments to it may be confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of Shape Blue Ltd or related companies. If you are not the 
intended recipient of this email, you must neither take any action based upon 
its contents, nor copy or show it to anyone. Please contact the sender if you 
believe you have received this email in error. Shape Blue Ltd is a company 
incorporated in England & Wales. ShapeBlue Services India LLP is a company 
incorporated in India and is operated under license from Shape Blue Ltd. Shape 
Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is 
operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company 
registered by The Republic of South Africa and is traded under license from 
Shape Blue Ltd. ShapeBlue is a registered trademark.


Re: UI HTTP Status 404 / Tomcat - Address already in use [UNFIXED]

2014-09-11 Thread Piers

On 11/09/14 19:11, Rohit Yadav wrote:

Are you trying to setup a host where you want to run CloudStack and also use 
this host as a KVM host?
If this is the case, then yes you can install cloudstack-agent and 
cloudstack-management on the same server.


Yes I am and this is understood. Thanks


When you deploy cloudstack database give it a -i . Stop tomcat, make sure it’s not running along 
with CloudStack management server (which explains address/port in use issue).


I am not seeing anything in the logs that suggest the database server 
cannot be found (except for secondary storage this is a single machine 
set up).


I would appreciate a brief explanation as to why wiping and reinstalling 
does not lead to..wella functioning web UI. Every time I 
reinstall the management server IP selected is 165.254.0.1 (which is 
 cloud0) - my previous fix is to edit 
/etc/cloudstack/management/db.properties to change it to the public IP. 
But that does not work now.


Do I have to manually wipe the bridges, reboot and start again?

I am keen to learn a solution and get comfortable with Cloudstack.

Any help appreciated

Cheers


Piers






Re: Billing/Helpdesk systems for CloudStack

2014-09-11 Thread GopalaKrishnan

Hi Sam,

Checkout new fogpanel billing feature for cloudstack.

http://fogpanel.com

Thank You.
GopalaKrishnan.S

- Original Message - 
From: "Sam" 

To: 
Sent: Thursday, September 11, 2014 5:32 PM
Subject: Re: Billing/Helpdesk systems for CloudStack



Giles Sirett  writes:



Amysta is a good technology: they've integrated into the CS GUI

Lots of other people (mostly already mentioned) do basic integration. 

Add  Ubersmith to you list.
Theres some people here in UK called Biomni who make a nice service 

catalogue offering that integrates well


Kind Regards
Giles


Giles Sirett
Managing Consultant






This is quite an old topic, but I was wondering if there are any new 
options available for CloudStack billing.








---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



Re: Billing/Helpdesk systems for CloudStack

2014-09-11 Thread Sam
Giles Sirett  writes:

> 
> Amysta is a good technology: they've integrated into the CS GUI
> 
> Lots of other people (mostly already mentioned) do basic integration. 
Add  Ubersmith to you list.
> Theres some people here in UK called Biomni who make a nice service 
catalogue offering that integrates well
> 
> Kind Regards
> Giles
> 
> 
> Giles Sirett
> Managing Consultant

> 

This is quite an old topic, but I was wondering if there are any new 
options available for CloudStack billing.







Re: UI HTTP Status 404 / Tomcat - Address already in use

2014-09-11 Thread Rohit Yadav
Piers,

On 11-Sep-2014, at 10:56 am, Piers  wrote:
> But don't you need to install the cloudstack-agent as well?

Are you trying to setup a host where you want to run CloudStack and also use 
this host as a KVM host?
If this is the case, then yes you can install cloudstack-agent and 
cloudstack-management on the same server.

When you deploy cloudstack database give it a -i . Stop tomcat, make sure it’s not 
running along with CloudStack management server (which explains address/port in 
use issue).

Regards,
Rohit Yadav
Software Architect, ShapeBlue
M. +41 779015219 | rohit.ya...@shapeblue.com
Blog: bhaisaab.org | Twitter: @_bhaisaab



Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build
CSForge – rapid IaaS deployment framework
CloudStack Consulting
CloudStack Infrastructure 
Support
CloudStack Bootcamp Training Courses

This email and any attachments to it may be confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of Shape Blue Ltd or related companies. If you are not the 
intended recipient of this email, you must neither take any action based upon 
its contents, nor copy or show it to anyone. Please contact the sender if you 
believe you have received this email in error. Shape Blue Ltd is a company 
incorporated in England & Wales. ShapeBlue Services India LLP is a company 
incorporated in India and is operated under license from Shape Blue Ltd. Shape 
Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is 
operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company 
registered by The Republic of South Africa and is traded under license from 
Shape Blue Ltd. ShapeBlue is a registered trademark.


Re: UI HTTP Status 404 / Tomcat - Address already in use [FIXED]

2014-09-11 Thread Piers

On 11/09/14 16:17, Piers wrote:

Can I get some advice on the Tomcat 404 error.




I reinstalled making sure to run commands in this order:

yum -y remove cloudstack-*
rm -fR /usr/share/cloudstack-*
rm -fR /etc/cloudstack/

yum -y install cloudstack-management
cloudstack-setup-databases cloud:@localhost --deploy-as=root:
cloudstack-setup-management

yum -y install cloudstack-agent


I noticed the the IP given was 165.254.0.1 and this caused an exception

Set it to the server's real IP and now the UI is up and working.

Thanks for all the help.

Cheers


Piers



Re: UI HTTP Status 404 / Tomcat - Address already in use

2014-09-11 Thread Piers

On 11/09/14 18:48, Geoff Higginbottom wrote:

The only command you need to install Cloudstack is

yum install cloudstack-management

It will install all the other dependencies including tomcat




Thanks Geoff,

But don't you need to install the cloudstack-agent as well?

The docs indicate so and yum install cloudstack-management does not 
provide agent:


http://cloudstack-installation.readthedocs.org/en/latest/qig.html

[root@ade1 ~]# yum install cloudstack-management
Loaded plugins: fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
 * Webmin: download.webmin.com
 * epel: mirror.as24220.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package cloudstack-management.x86_64 0:4.4.0-NONOSS_3.el6 will be 
installed
--> Processing Dependency: cloudstack-common = 4.4.0 for package: 
cloudstack-management-4.4.0-NONOSS_3.el6.x86_64
--> Processing Dependency: cloudstack-awsapi = 4.4.0 for package: 
cloudstack-management-4.4.0-NONOSS_3.el6.x86_64
--> Processing Dependency: tomcat6 for package: 
cloudstack-management-4.4.0-NONOSS_3.el6.x86_64

--> Running transaction check
---> Package cloudstack-awsapi.x86_64 0:4.4.0-NONOSS_3.el6 will be installed
---> Package cloudstack-common.x86_64 0:4.4.0-NONOSS_3.el6 will be installed
---> Package tomcat6.noarch 0:6.0.24-78.el6_5 will be installed
--> Finished Dependency Resolution

Dependencies Resolved


 Package Arch Version Repository  Size

Installing:
 cloudstack-management x86_64 4.4.0-NONOSS_3.el6 
cloudstack  79 M

Installing for dependencies:
 cloudstack-awsapi x86_64 4.4.0-NONOSS_3.el6 
cloudstack  85 M
 cloudstack-common x86_64 4.4.0-NONOSS_3.el6 
cloudstack  96 M
 tomcat6 noarch 6.0.24-78.el6_5 
updates 92 k


Transaction Summary

Install   4 Package(s)

Total size: 260 M
Installed size: 310 M
Is this ok [y/N]:



Re: UI HTTP Status 404 / Tomcat - Address already in use

2014-09-11 Thread Geoff Higginbottom
The only command you need to install Cloudstack is

yum install cloudstack-management

It will install all the other dependencies including tomcat

Regards

Geoff Higginbottom
CTO / Cloud Architect


D: +44 20 3603 0542 | S: +44 20 3603 0540 
| M: +447968161581

geoff.higginbot...@shapeblue.com | 
www.shapeblue.com

ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 
4HS



On 11 Sep 2014, at 09:22, "Piers" mailto:pi...@rowan.id.au>> 
wrote:

On 11/09/14 18:17, Kirk Kosinski wrote:
I see, thanks for clarifying.  Which encryption type did you specify
during installation: "file" (the default) or "web"?  If the latter, are
you providing the password with EncryptionSecretKeySender after starting
each CloudStack service?



Thanks for the reply.

The install is a clean install on CentOS using the RPM repo.

I have done this 20 times today - each time purging the databases, etc:


yum -y remove cloudstack-* tomcat6
rm -fR /usr/share/cloudstack-*
rm -fR /etc/cloudstack/
yum -y install cloudstack-* tomcat6
cloudstack-setup-databases cloud:@localhost --deploy-as=root:x
cloudstack-setup-management


= 404

Any ideas?

Cheers

Piers
Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build
CSForge - rapid IaaS deployment framework
CloudStack Consulting
CloudStack Infrastructure 
Support
CloudStack Bootcamp Training Courses

This email and any attachments to it may be confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of Shape Blue Ltd or related companies. If you are not the 
intended recipient of this email, you must neither take any action based upon 
its contents, nor copy or show it to anyone. Please contact the sender if you 
believe you have received this email in error. Shape Blue Ltd is a company 
incorporated in England & Wales. ShapeBlue Services India LLP is a company 
incorporated in India and is operated under license from Shape Blue Ltd. Shape 
Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is 
operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company 
registered by The Republic of South Africa and is traded under license from 
Shape Blue Ltd. ShapeBlue is a registered trademark.


Re: Unable to start a VM due to insufficient capacity

2014-09-11 Thread Ugo Vasi

Hi Geoff,
I had not tried to restart the network, I just restarted the virtual router.
I'll try tomorrow morning when the network server is not used, and I 
will tell you.


thanks

Il 11/09/2014 09:28, Geoff Higginbottom ha scritto:

Hi Ugo,

Did restarting the network with cleanup option resolve your issue last time, if 
yes have you tried the same on this network?

Regards

Geoff Higginbottom
CTO / Cloud Architect

D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: 
+447968161581

geoff.higginbot...@shapeblue.com | 
www.shapeblue.com | 
Twitter:@cloudstackguru

ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 
4HS


On 11 Sep 2014, at 08:17, "Ugo Vasi" 
mailto:ugo.v...@procne.it>> wrote:

Hi Geoff,
I still have the problem creating new VMs but in another isolated network. The 
problem seems to be the same:

2014-09-11 08:55:27,048 DEBUG [c.c.v.VirtualMachineManagerImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) VM is being created in podId: 1
2014-09-11 08:55:27,050 DEBUG [o.a.c.e.o.NetworkOrchestrator] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Network id=212 is already 
implemented
2014-09-11 08:55:27,118 DEBUG [c.c.n.NetworkModelImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Service SecurityGroup is not 
supported in the network id=212
2014-09-11 08:55:27,122 DEBUG [o.a.c.e.o.NetworkOrchestrator] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Changing active number of nics for 
network id=212 on 1
2014-09-11 08:55:27,174 DEBUG [o.a.c.e.o.NetworkOrchestrator] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Asking VirtualRouter to prepare for 
Nic[116-86-8429f13f-7c3b-4b8a-aea3-9b8e9a3f4c03-10.1.1.19]
2014-09-11 08:55:27,181 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Lock is acquired for network id 212 as a 
part of router startup in 
Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type-->Pool(Id))] : 
Dest[Zone(1)-Pod(1)-Cluster(1)-Host(7)-Storage(Volume(98|ROOT-->Pool(6))]
2014-09-11 08:55:27,183 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Lock is released for network id 212 as a 
part of router startup in 
Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type-->Pool(Id))] : 
Dest[Zone(1)-Pod(1)-Cluster(1)-Host(7)-Storage(Volume(98|ROOT-->Pool(6))]
2014-09-11 08:55:27,189 DEBUG [c.c.n.NetworkModelImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Service SecurityGroup is not 
supported in the network id=212
2014-09-11 08:55:27,198 DEBUG [c.c.n.NetworkModelImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Service SecurityGroup is not 
supported in the network id=212
2014-09-11 08:55:27,202 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Applying dhcp entry in network 
Ntwk[212|Guest|8]
2014-09-11 08:55:27,215 DEBUG [c.c.a.t.Request] (Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Seq 7-564304056: Sending  { Cmd , MgmtId: 77916390353436, via: 7(csh1b), Ver: v1, Flags: 100011, 
[{"com.cloud.agent.api.routing.DhcpEntryCommand":{"vmMac":"02:00:15:76:00:0e","vmIpAddress":"10.1.1.19","vmName":"giannitest","defaultRouter":"10.1.1.1","defaultDns":"10.1.1.1","duid":"00:03:00:01:02:00:15:76:00:0e","isDefault":true,"executeInSequence":false,"accessDetails":{"router.guest.ip":"10.1.1.1","zone.network.type":"Advanced","router.name":"r-60-VM","router.ip":"169.254.1.230"},"wait":0}}]
 }
2014-09-11 08:55:27,941 DEBUG [c.c.s.s.SecondaryStorageManagerImpl] 
(secstorage-1:ctx-327037b2) Zone 1 is ready to launch secondary storage VM
2014-09-11 08:55:28,022 DEBUG [c.c.c.ConsoleProxyManagerImpl] 
(consoleproxy-1:ctx-a8ba3b1e) Zone 1 is ready to launch console proxy
2014-09-11 08:55:28,820 DEBUG [c.c.a.ApiServlet] (catalina-exec-16:ctx-58e92382) ===START===  
192.168.130.89 -- GET 
command=queryAsyncJobResult&jobId=195bf80a-9823-4ec3-add4-8907b98fbaf0&response=json&sessionkey=qGZA6KYoc1SB%2Bq2k70HoM%2BBBQTU%3D&_=1410418528731
2014-09-11 08:55:29,069 DEBUG [c.c.a.t.Request] (AgentManager-Handler-13:null) Seq 7-564304056: Processing:  
{ Ans: , MgmtId: 77916390353436, via: 7, Ver: v1, Flags: 10, 
[{"com.cloud.agent.api.Answer":{"result":true,"wait":0}}] }
2014-09-11 08:55:29,069 DEBUG [c.c.a.t.Request] (Job-Executor-55:ctx-b5c34ec7 
ctx-3715f5de) Seq 7-564304056: Received:  { Ans: , MgmtId: 77916390353436, via: 
7, Ver: v1, Flags: 10, { Answer } }
2014-09-11 08:55:29,075 DEBUG [c.c.n.NetworkModelImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Service SecurityGroup is not 
supported in the network id=212
2014-09-11 08:55:29,078 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Applying userdata and password 
entry in network Ntwk[212|Guest|8]
2014-09-11 08:55:29,089 DEBUG [c.c.a.t.Request] (Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Seq 7-564304057: Sending  { Cmd , MgmtId: 77916390353436, via: 7(csh1b), Ver: v1, Fl

Re: UI HTTP Status 404 / Tomcat - Address already in use

2014-09-11 Thread Piers

On 11/09/14 18:17, Kirk Kosinski wrote:

I see, thanks for clarifying.  Which encryption type did you specify
during installation: "file" (the default) or "web"?  If the latter, are
you providing the password with EncryptionSecretKeySender after starting
each CloudStack service?




Thanks for the reply.

The install is a clean install on CentOS using the RPM repo.

I have done this 20 times today - each time purging the databases, etc:


yum -y remove cloudstack-* tomcat6
rm -fR /usr/share/cloudstack-*
rm -fR /etc/cloudstack/
yum -y install cloudstack-* tomcat6
cloudstack-setup-databases cloud:@localhost --deploy-as=root:x
cloudstack-setup-management


= 404

Any ideas?

Cheers

Piers


Re: UI HTTP Status 404 / Tomcat - Address already in use

2014-09-11 Thread Kirk Kosinski
I see, thanks for clarifying.  Which encryption type did you specify
during installation: "file" (the default) or "web"?  If the latter, are
you providing the password with EncryptionSecretKeySender after starting
each CloudStack service?

On 09/11/2014 12:17 AM, Piers wrote:
> On 11/09/14 16:29, Kirk Kosinski wrote:
>> Hi, Piers.  The cloudstack-management init script starts Tomcat for you.
>>   You shouldn't use the tomcat6 init script to start Tomcat.
>>
>>
> 
> I realise that - I was trying to show how I manually stooped the tomcat
> server and searched for things using the 8080 port and made sure nothing
> was.
> 
> The error I see is a tomcat log showing "Address in use" but I cannot
> see why since nothing else uses that port.
> 
> Could it be that its trying to run on a bridged eth0 which means that
> one IP address has two interfaces? I am clutching at straws here.
> 
> That is the only reason I mention tomcat explicitly.
> 
> Thanks
> 
> Piers
> 
> 


Re: Unable to start a VM due to insufficient capacity

2014-09-11 Thread Geoff Higginbottom
Hi Ugo,

Did restarting the network with cleanup option resolve your issue last time, if 
yes have you tried the same on this network?

Regards

Geoff Higginbottom
CTO / Cloud Architect

D: +44 20 3603 0542 | S: +44 20 3603 0540 
| M: +447968161581

geoff.higginbot...@shapeblue.com | 
www.shapeblue.com | 
Twitter:@cloudstackguru

ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 
4HS


On 11 Sep 2014, at 08:17, "Ugo Vasi" 
mailto:ugo.v...@procne.it>> wrote:

Hi Geoff,
I still have the problem creating new VMs but in another isolated network. The 
problem seems to be the same:

2014-09-11 08:55:27,048 DEBUG [c.c.v.VirtualMachineManagerImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) VM is being created in podId: 1
2014-09-11 08:55:27,050 DEBUG [o.a.c.e.o.NetworkOrchestrator] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Network id=212 is already 
implemented
2014-09-11 08:55:27,118 DEBUG [c.c.n.NetworkModelImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Service SecurityGroup is not 
supported in the network id=212
2014-09-11 08:55:27,122 DEBUG [o.a.c.e.o.NetworkOrchestrator] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Changing active number of nics for 
network id=212 on 1
2014-09-11 08:55:27,174 DEBUG [o.a.c.e.o.NetworkOrchestrator] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Asking VirtualRouter to prepare for 
Nic[116-86-8429f13f-7c3b-4b8a-aea3-9b8e9a3f4c03-10.1.1.19]
2014-09-11 08:55:27,181 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Lock is acquired for network id 212 
as a part of router startup in 
Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type-->Pool(Id))] 
: Dest[Zone(1)-Pod(1)-Cluster(1)-Host(7)-Storage(Volume(98|ROOT-->Pool(6))]
2014-09-11 08:55:27,183 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Lock is released for network id 212 
as a part of router startup in 
Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type-->Pool(Id))] 
: Dest[Zone(1)-Pod(1)-Cluster(1)-Host(7)-Storage(Volume(98|ROOT-->Pool(6))]
2014-09-11 08:55:27,189 DEBUG [c.c.n.NetworkModelImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Service SecurityGroup is not 
supported in the network id=212
2014-09-11 08:55:27,198 DEBUG [c.c.n.NetworkModelImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Service SecurityGroup is not 
supported in the network id=212
2014-09-11 08:55:27,202 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Applying dhcp entry in network 
Ntwk[212|Guest|8]
2014-09-11 08:55:27,215 DEBUG [c.c.a.t.Request] (Job-Executor-55:ctx-b5c34ec7 
ctx-3715f5de) Seq 7-564304056: Sending  { Cmd , MgmtId: 77916390353436, via: 
7(csh1b), Ver: v1, Flags: 100011, 
[{"com.cloud.agent.api.routing.DhcpEntryCommand":{"vmMac":"02:00:15:76:00:0e","vmIpAddress":"10.1.1.19","vmName":"giannitest","defaultRouter":"10.1.1.1","defaultDns":"10.1.1.1","duid":"00:03:00:01:02:00:15:76:00:0e","isDefault":true,"executeInSequence":false,"accessDetails":{"router.guest.ip":"10.1.1.1","zone.network.type":"Advanced","router.name":"r-60-VM","router.ip":"169.254.1.230"},"wait":0}}]
 }
2014-09-11 08:55:27,941 DEBUG [c.c.s.s.SecondaryStorageManagerImpl] 
(secstorage-1:ctx-327037b2) Zone 1 is ready to launch secondary storage VM
2014-09-11 08:55:28,022 DEBUG [c.c.c.ConsoleProxyManagerImpl] 
(consoleproxy-1:ctx-a8ba3b1e) Zone 1 is ready to launch console proxy
2014-09-11 08:55:28,820 DEBUG [c.c.a.ApiServlet] 
(catalina-exec-16:ctx-58e92382) ===START===  192.168.130.89 -- GET 
command=queryAsyncJobResult&jobId=195bf80a-9823-4ec3-add4-8907b98fbaf0&response=json&sessionkey=qGZA6KYoc1SB%2Bq2k70HoM%2BBBQTU%3D&_=1410418528731
2014-09-11 08:55:29,069 DEBUG [c.c.a.t.Request] (AgentManager-Handler-13:null) 
Seq 7-564304056: Processing:  { Ans: , MgmtId: 77916390353436, via: 7, Ver: v1, 
Flags: 10, [{"com.cloud.agent.api.Answer":{"result":true,"wait":0}}] }
2014-09-11 08:55:29,069 DEBUG [c.c.a.t.Request] (Job-Executor-55:ctx-b5c34ec7 
ctx-3715f5de) Seq 7-564304056: Received:  { Ans: , MgmtId: 77916390353436, via: 
7, Ver: v1, Flags: 10, { Answer } }
2014-09-11 08:55:29,075 DEBUG [c.c.n.NetworkModelImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Service SecurityGroup is not 
supported in the network id=212
2014-09-11 08:55:29,078 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Applying userdata and password 
entry in network Ntwk[212|Guest|8]
2014-09-11 08:55:29,089 DEBUG [c.c.a.t.Request] (Job-Executor-55:ctx-b5c34ec7 
ctx-3715f5de) Seq 7-564304057: Sending  { Cmd , MgmtId: 77916390353436, via: 
7(csh1b), Ver: v1, Flags: 100011, 
[{"com.cloud.agent.api.routing.SavePasswordCommand":{,"vmIpAddress":"10.1.1.19","vmName":"giannitest","executeInSequence":false,"accessDetails":{"router.guest.ip":"10.1.1.1","zone.network.type":"Advanced","router.ip":"

Re: Unable to start a VM due to insufficient capacity

2014-09-11 Thread Ugo Vasi

Hi Geoff,
I still have the problem creating new VMs but in another isolated 
network. The problem seems to be the same:


2014-09-11 08:55:27,048 DEBUG [c.c.v.VirtualMachineManagerImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) VM is being created in podId: 1
2014-09-11 08:55:27,050 DEBUG [o.a.c.e.o.NetworkOrchestrator] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Network id=212 is already 
implemented
2014-09-11 08:55:27,118 DEBUG [c.c.n.NetworkModelImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Service SecurityGroup is not 
supported in the network id=212
2014-09-11 08:55:27,122 DEBUG [o.a.c.e.o.NetworkOrchestrator] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Changing active number of 
nics for network id=212 on 1
2014-09-11 08:55:27,174 DEBUG [o.a.c.e.o.NetworkOrchestrator] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Asking VirtualRouter to 
prepare for Nic[116-86-8429f13f-7c3b-4b8a-aea3-9b8e9a3f4c03-10.1.1.19]
2014-09-11 08:55:27,181 DEBUG 
[c.c.n.r.VirtualNetworkApplianceManagerImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Lock is acquired for network 
id 212 as a part of router startup in 
Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type-->Pool(Id))] 
: Dest[Zone(1)-Pod(1)-Cluster(1)-Host(7)-Storage(Volume(98|ROOT-->Pool(6))]
2014-09-11 08:55:27,183 DEBUG 
[c.c.n.r.VirtualNetworkApplianceManagerImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Lock is released for network 
id 212 as a part of router startup in 
Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type-->Pool(Id))] 
: Dest[Zone(1)-Pod(1)-Cluster(1)-Host(7)-Storage(Volume(98|ROOT-->Pool(6))]
2014-09-11 08:55:27,189 DEBUG [c.c.n.NetworkModelImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Service SecurityGroup is not 
supported in the network id=212
2014-09-11 08:55:27,198 DEBUG [c.c.n.NetworkModelImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Service SecurityGroup is not 
supported in the network id=212
2014-09-11 08:55:27,202 DEBUG 
[c.c.n.r.VirtualNetworkApplianceManagerImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Applying dhcp entry in 
network Ntwk[212|Guest|8]
2014-09-11 08:55:27,215 DEBUG [c.c.a.t.Request] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Seq 7-564304056: Sending  { 
Cmd , MgmtId: 77916390353436, via: 7(csh1b), Ver: v1, Flags: 100011, 
[{"com.cloud.agent.api.routing.DhcpEntryCommand":{"vmMac":"02:00:15:76:00:0e","vmIpAddress":"10.1.1.19","vmName":"giannitest","defaultRouter":"10.1.1.1","defaultDns":"10.1.1.1","duid":"00:03:00:01:02:00:15:76:00:0e","isDefault":true,"executeInSequence":false,"accessDetails":{"router.guest.ip":"10.1.1.1","zone.network.type":"Advanced","router.name":"r-60-VM","router.ip":"169.254.1.230"},"wait":0}}] 
}
2014-09-11 08:55:27,941 DEBUG [c.c.s.s.SecondaryStorageManagerImpl] 
(secstorage-1:ctx-327037b2) Zone 1 is ready to launch secondary storage VM
2014-09-11 08:55:28,022 DEBUG [c.c.c.ConsoleProxyManagerImpl] 
(consoleproxy-1:ctx-a8ba3b1e) Zone 1 is ready to launch console proxy
2014-09-11 08:55:28,820 DEBUG [c.c.a.ApiServlet] 
(catalina-exec-16:ctx-58e92382) ===START===  192.168.130.89 -- GET 
command=queryAsyncJobResult&jobId=195bf80a-9823-4ec3-add4-8907b98fbaf0&response=json&sessionkey=qGZA6KYoc1SB%2Bq2k70HoM%2BBBQTU%3D&_=1410418528731
2014-09-11 08:55:29,069 DEBUG [c.c.a.t.Request] 
(AgentManager-Handler-13:null) Seq 7-564304056: Processing:  { Ans: , 
MgmtId: 77916390353436, via: 7, Ver: v1, Flags: 10, 
[{"com.cloud.agent.api.Answer":{"result":true,"wait":0}}] }
2014-09-11 08:55:29,069 DEBUG [c.c.a.t.Request] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Seq 7-564304056: Received:  
{ Ans: , MgmtId: 77916390353436, via: 7, Ver: v1, Flags: 10, { Answer } }
2014-09-11 08:55:29,075 DEBUG [c.c.n.NetworkModelImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Service SecurityGroup is not 
supported in the network id=212
2014-09-11 08:55:29,078 DEBUG 
[c.c.n.r.VirtualNetworkApplianceManagerImpl] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Applying userdata and 
password entry in network Ntwk[212|Guest|8]
2014-09-11 08:55:29,089 DEBUG [c.c.a.t.Request] 
(Job-Executor-55:ctx-b5c34ec7 ctx-3715f5de) Seq 7-564304057: Sending  { 
Cmd , MgmtId: 77916390353436, via: 7(csh1b), Ver: v1, Flags: 100011, 
[{"com.cloud.agent.api.routing.SavePasswordCommand":{,"vmIpAddress":"10.1.1.19","vmName":"giannitest","executeInSequence":false,"accessDetails":{"router.guest.ip":"10.1.1.1","zone.network.type":"Advanced","router.ip":"169.254.1.230","router.name":"r-60-VM"},"wait":0}},{"com.cloud.agent.api.routing.VmDataCommand":{"vmIpAddress":"10.1.1.19","vmName":"giannitest","executeInSequence":false,"accessDetails":{"router.guest.ip":"10.1.1.1","zone.network.type":"Advanced","router.ip":"169.254.1.230","router.name":"r-60-VM"},"wait":0}}] 
}
2014-09-11 08:55:29,399 DEBUG [c.c.a.t.Request] 
(AgentManager-Handler-10:null) Seq 7-564304057: Processing:  { Ans: , 
MgmtId: 77916390353436, via: 7, Ver: v1, Flags: 10, 
[{"com.cloud.agent.api.Answer":{"result":true,"wait":0}},{

Re: UI HTTP Status 404 / Tomcat - Address already in use

2014-09-11 Thread Piers

On 11/09/14 16:29, Kirk Kosinski wrote:

Hi, Piers.  The cloudstack-management init script starts Tomcat for you.
  You shouldn't use the tomcat6 init script to start Tomcat.




I realise that - I was trying to show how I manually stooped the tomcat 
server and searched for things using the 8080 port and made sure nothing 
was.


The error I see is a tomcat log showing "Address in use" but I cannot 
see why since nothing else uses that port.


Could it be that its trying to run on a bridged eth0 which means that 
one IP address has two interfaces? I am clutching at straws here.


That is the only reason I mention tomcat explicitly.

Thanks

Piers