Re: Fail to configure network interface when booting VM

2014-03-10 Thread Du Jun
Hi Neelarapu,

I am sorry that I did not describe my situation clearly. I am using ubuntu,
and output of `ifconfig -a` shows
the name of interface is "eth0", it has mac address.

When I have a look at /etc/network/interfaces, it shows:
auto eth0
iface eth0 inet dhcp

What's more, I use the same template in the host A, and the interfaces of
VM is okay.

BTW, from web UI, I can see the nic of the VM, but the ip address is
missing when I type `ifconfig -a`. It's so
strange!

--
Regards,
Du Jun


2014-03-11 13:06 GMT+08:00 Sanjeev Neelarapu :

> Hi Jun,
>
> There could be some issue with the template with which you deployed vm.
> Please check "ifconfig -a" output in vm booted on hostB.
> This will give the interface name and make sure that network-scripts
> directory has a file with the interface name.
>
> -Sanjeev
>
> -Original Message-
> From: Du Jun [mailto:dj199...@gmail.com]
> Sent: Monday, March 10, 2014 5:05 PM
> To: users
> Subject: Re: Fail to configure network interface when booting VM
>
> BTW, the /etc/cloudstack/agent/agent.properties is shown below:
> #Storage
> #Mon Mar 10 16:59:56 CST 2014
> guest.network.device=cloudbr0
> workers=5
> private.network.device=cloudbr0
> port=8250
> resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
> pod=1
> zone=1
> guid=e2e402df-6e65-3e08-a680-35ecfb39716b
> public.network.device=cloudbr0
> cluster=1
> local.storage.uuid=05d6ad68-fdd0-4041-8371-a592727d57d4
> domr.scripts.dir=scripts/network/domr/kvm
> LibvirtComputingResource.id=10
> host=10.10.101.103
>
> We can see that, guest, private and public all use the network bridge
> "cloudbr0". And, route table in my agent host(B) is like that:
> root@ubuntu-7:~# route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric RefUse
> Iface
> 0.0.0.0 10.10.101.254   0.0.0.0 UG10000
> cloudbr0
> 10.10.101.0 0.0.0.0 255.255.255.0   U 0  00
> cloudbr0
> 169.254.0.0 0.0.0.0 255.255.0.0 U 0  00
> cloud0
> 192.168.122.0   0.0.0.0 255.255.255.0   U 0  00
> virbr0
>
> It seems all okay. I wonder what I have missed?
>
> --
> Best Regards,
> Du Jun
>
>
>
> 2014-03-10 19:26 GMT+08:00 Du Jun :
>
> > Hi Bharat,
> >
> > Thank you for your prompt reply. As I am new to CloudStack, I have 2
> > questions to consult you.
> >
> > >check if host B  has the systemvm.iso in it. if not copy it manually
> > >from
> > host A.
> > Where can I check if host B has the systemvm.iso?
> >
> > >before adding the host make sure the host tags are cleared.
> > When I add the host B, the tag of the host is empty. After adding the
> > host, I add a tag for host B so that I can always put the VM to host B
> > for testing purpose. Does it matter?
> >
> > Thanks!
> > --
> > Best Regards,
> > Du Jun
> >
> >
> > 2014-03-10 19:10 GMT+08:00 Bharat Kumar :
> >
> > Hi Jun,
> >>
> >> check if host B  has the systemvm.iso in it. if not copy it manually
> >> from host A.
> >>
> >> cloudstack generally dose this for you when you add a host for the
> >> first time.
> >> before adding the host make sure the host tags are cleared.
> >>
> >> Regards,
> >> Bharat.
> >> On 10-Mar-2014, at 4:35 pm, Du Jun  wrote:
> >>
> >> > Hi all,
> >> >
> >> > I am using CloudStack4.2 advanced zone in Ubuntu12.04. I use host
> >> > A(10.10.101.103) as my management server, and use host
> >> > B(10.10.101.107)
> >> as
> >> > my agent host. I meet a problem that the VM booted in host B fail
> >> > to configure network interface when boot up. In other words, when I
> >> > type `ifconfig` in VM booted in host B, I find the IP address is
> missing!
> >> > However, there is no problem with the VM booted in host A.
> >> >
> >> > BTW, I both add a network bridge "cloudbr0" in management server(A)
> >> > and agent host(B). Both server A and B can access the internet and
> >> > I can
> >> access
> >> > them from outside. So, I have no idea now. Can anyone tell me how
> >> > to
> >> debug
> >> > or provide me with some clue? Thanks!
> >> >
> >> > --
> >> > Best Regards,
> >> > Frank
> >>
> >>
> >
>


RE: Fail to configure network interface when booting VM

2014-03-10 Thread Sanjeev Neelarapu
Hi Jun,

There could be some issue with the template with which you deployed vm. Please 
check "ifconfig -a" output in vm booted on hostB.
This will give the interface name and make sure that network-scripts directory 
has a file with the interface name.

-Sanjeev

-Original Message-
From: Du Jun [mailto:dj199...@gmail.com] 
Sent: Monday, March 10, 2014 5:05 PM
To: users
Subject: Re: Fail to configure network interface when booting VM

BTW, the /etc/cloudstack/agent/agent.properties is shown below:
#Storage
#Mon Mar 10 16:59:56 CST 2014
guest.network.device=cloudbr0
workers=5
private.network.device=cloudbr0
port=8250
resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
pod=1
zone=1
guid=e2e402df-6e65-3e08-a680-35ecfb39716b
public.network.device=cloudbr0
cluster=1
local.storage.uuid=05d6ad68-fdd0-4041-8371-a592727d57d4
domr.scripts.dir=scripts/network/domr/kvm
LibvirtComputingResource.id=10
host=10.10.101.103

We can see that, guest, private and public all use the network bridge 
"cloudbr0". And, route table in my agent host(B) is like that:
root@ubuntu-7:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface
0.0.0.0 10.10.101.254   0.0.0.0 UG10000
cloudbr0
10.10.101.0 0.0.0.0 255.255.255.0   U 0  00
cloudbr0
169.254.0.0 0.0.0.0 255.255.0.0 U 0  00
cloud0
192.168.122.0   0.0.0.0 255.255.255.0   U 0  00
virbr0

It seems all okay. I wonder what I have missed?

--
Best Regards,
Du Jun



2014-03-10 19:26 GMT+08:00 Du Jun :

> Hi Bharat,
>
> Thank you for your prompt reply. As I am new to CloudStack, I have 2 
> questions to consult you.
>
> >check if host B  has the systemvm.iso in it. if not copy it manually 
> >from
> host A.
> Where can I check if host B has the systemvm.iso?
>
> >before adding the host make sure the host tags are cleared.
> When I add the host B, the tag of the host is empty. After adding the 
> host, I add a tag for host B so that I can always put the VM to host B 
> for testing purpose. Does it matter?
>
> Thanks!
> --
> Best Regards,
> Du Jun
>
>
> 2014-03-10 19:10 GMT+08:00 Bharat Kumar :
>
> Hi Jun,
>>
>> check if host B  has the systemvm.iso in it. if not copy it manually 
>> from host A.
>>
>> cloudstack generally dose this for you when you add a host for the 
>> first time.
>> before adding the host make sure the host tags are cleared.
>>
>> Regards,
>> Bharat.
>> On 10-Mar-2014, at 4:35 pm, Du Jun  wrote:
>>
>> > Hi all,
>> >
>> > I am using CloudStack4.2 advanced zone in Ubuntu12.04. I use host
>> > A(10.10.101.103) as my management server, and use host 
>> > B(10.10.101.107)
>> as
>> > my agent host. I meet a problem that the VM booted in host B fail 
>> > to configure network interface when boot up. In other words, when I 
>> > type `ifconfig` in VM booted in host B, I find the IP address is missing!
>> > However, there is no problem with the VM booted in host A.
>> >
>> > BTW, I both add a network bridge "cloudbr0" in management server(A) 
>> > and agent host(B). Both server A and B can access the internet and 
>> > I can
>> access
>> > them from outside. So, I have no idea now. Can anyone tell me how 
>> > to
>> debug
>> > or provide me with some clue? Thanks!
>> >
>> > --
>> > Best Regards,
>> > Frank
>>
>>
>


Re: How to modify system vm's iptables rules

2014-03-10 Thread Shanker Balan
On 10-Mar-2014, at 9:29 pm, Joaquin Angel Alonso Alvarez  
wrote:

> Hi,
>
> Due to a particular network configuration on the platform we need to access 
> the console proxy from the private IP address and it comes blocked by default 
> for that interface, it´s open only for the public interface.
> At the moment I ssh into the Console Proxy VM and add the rule myself (or 
> just disable the iptables at all), but it´s not permanent.

You can stick it somewhere in the rc scripts. rc.local would be a good place.

Caveats - changes will be lost if CPVM is recreated or when a system VM 
template is updated.


--
@shankerbalan

M: +91 98860 60539 | O: +91 (80) 67935867
shanker.ba...@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue
ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade Centre, 
Bangalore - 560 055

Need Enterprise Grade Support for Apache CloudStack?
Our CloudStack Infrastructure 
Support offers the 
best 24/7 SLA for CloudStack Environments.

Apache CloudStack Bootcamp training courses

**NEW!** CloudStack 4.2.1 training
18th-19th February 2014, Brazil. 
Classroom
17th-23rd March 2014, Region A. Instructor led, 
On-line
24th-28th March 2014, Region B. Instructor led, 
On-line
16th-20th June 2014, Region A. Instructor led, 
On-line
23rd-27th June 2014, Region B. Instructor led, 
On-line

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 is a registered trademark.


About VM network interfaces

2014-03-10 Thread Du Jun
Hi all,

I have two servers, host A as management server and host B as agent host.
The vms booted from host A can access the internet freely and I can access
host A from outside. But, the vms booted from host B have trouble in
configuring its network interface.

For example, from web UI, the VM booted from host B has nic 10.1.1.121.
Indeed, I can also see the information about the dhcp in
/var/dhcp/dhclient.eth0.lease. Everything seems okay. However, when I type
`ifconfig` in the VM, I can't find the ip address 10.1.1.121.

PS: I am using CS 4.2 advanced zone, KVM hypervisor. Both host A and host B
have configured network bridge "cloudbr0".

I really have no idea now, please give me some clues. Thanks!

--
Regards,
Du Jun


RE: SSVM Not coming up

2014-03-10 Thread Amin Samir
Hello,
You need to put it in two locations & grant them scripting rights 
/opt/cloud/bin/
/opt/xensource/bin


Kind Regards
Amin Samir




-Original Message-
From: TommyBW [mailto:cloudst...@altanovabw.com] 
Sent: Tuesday, 11 March 2014 2:25 AM
To: users@cloudstack.apache.org
Subject: Re: SSVM Not coming up

Hi Suresh, 


That is what I thought so I copied it from the cloudstack manager. 

Perhaps I copied to wrong location. Can you give me the right path on xenserver 
6.2 host ? 

Kind regards, 

TS 

- Original Message -
From: "Suresh Sadhu" 
To: users@cloudstack.apache.org
Sent: Monday, March 10, 2014 7:29:32 PM
Subject: RE: SSVM Not coming up

It seems vhd-util is missing in  xenserver host. 

Regards
Sadhu




-Original Message-
From: TommyBW [mailto:cloudst...@altanovabw.com] 
Sent: 10 March 2014 22:48
To: users@cloudstack.apache.org
Subject: Re: SSVM Not coming up

Hi All, 

Did an installation of CS4.2.1 on Xenserver 6.2 SP1 

Haveing a bit of a problem getting the SSVMs to start. Please see logs below : 

10 19:12:05,871 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] 
(consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.AgentUnavailableException: Resource [Host:2] is 
unreachable: Host 2: Unable to start instance due to null Caused by: 
java.lang.NullPointerException
2014-03-10 19:12:32,887 WARN  [xen.resource.XenServerStorageProcessor] 
(DirectAgent-9:null) destoryVDIbyNameLabel failed due to there are 0 VDIs with 
name cloud-d8bffd1d-a9c6-4100-8851-0ef754c18796
2014-03-10 19:12:32,888 WARN  [xen.resource.XenServerStorageProcessor] 
(DirectAgent-9:null) can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,888 WARN  [xen.resource.XenServerStorageProcessor] 
(DirectAgent-9:null) Catch Exception 
com.cloud.utils.exception.CloudRuntimeException for template +  due to 
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,889 DEBUG [agent.transport.Request] (DirectAgent-9:null) 
Seq 2-1529413662: Processing:  { Ans: , MgmtId: 345049202885, via: 2, Ver: v1, 
Flags: 110, 
[{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch
 Exception com.cloud.utils.exception.CloudRuntimeException for template +  due 
to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd","wait":0}}] }
2014-03-10 19:12:32,922 WARN  [utils.db.Merovingian2] (secstorage-1:null) Was 
unable to find lock for the key template_spool_ref9 and thread id 171531
2014-03-10 19:12:32,922 DEBUG [cloud.storage.VolumeManagerImpl] 
(secstorage-1:null) Unable to create Vol[71|vm=71|ROOT]:Catch Exception 
com.cloud.utils.exception.CloudRuntimeException for template +  due to 
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,922 INFO  [cloud.vm.VirtualMachineManagerImpl] 
(secstorage-1:null) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is 
unreachable: Unable to create Vol[71|vm=71|ROOT]:Catch Exception 
com.cloud.utils.exception.CloudRuntimeException for template +  due to 
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:33,092 DEBUG [cloud.capacity.CapacityManagerImpl] 
(secstorage-1:null) VM state transitted from :Starting to Stopped with event: 
OperationFailedvm's original host id: null new host id: null host id before 
state transition: 1
2014-03-10 19:12:33,102 WARN  [storage.secondary.SecondaryStorageManagerImpl] 
(secstorage-1:null) Exception while trying to start secondary storage vm
com.cloud.exception.InsufficientServerCapacityException: Unable to create a 
deployment for VM[SecondaryStorageVm|s-71-VM]Scope=interface 
com.cloud.dc.DataCenter; id=1
2014-03-10 19:12:33,104 INFO  [storage.secondary.SecondaryStorageManagerImpl] 
(secstorage-1:null) Unable to start secondary storage vm for standby capacity, 
secStorageVm vm Id : 71, will recycle it and start a new one
2014-03-10 19:12:35,797 INFO  [storage.volume.VolumeServiceImpl] 
(consoleproxy-1:null) Unable to acquire lock on VMTemplateStoragePool 9
2014-03-10 19:12:35,798 ERROR [cloud.vm.VirtualMachineManagerImpl] 
(consoleproxy-1:null) Failed to start instance VM[ConsoleProxy|v-2-VM] 
java.lang.NullPointerException
2014-03-10 19:12:35,923 DEBUG [cloud.capacity.CapacityManagerImpl] 
(consoleproxy-1:null) VM state transitted from :Starting to Stopped with event: 
OperationFailedvm's original host id: null new host id: null host id before 
state transition: 1
2014-03-10 19:12:35,934 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] 
(consoleproxy-1:null) Exception while trying to start console proxy
c

Re: NFS machine not responding, timed out issue

2014-03-10 Thread Umair Azam

Hi,

Finally After replacing machines NIC's/cables i have figured out the 
exact issue, It is related to nfs request timed out, this issue has been 
mentioned in 6.0 release notes but i am using xenserver 6.2 and still 
having the same problem, somebody can help me out ?


Mar 11 02:49:05 xenserver-1 kernel: [ 1848.148548] nfs: server 
10.11.17.33 not responding, timed out


 * In some 10 Gigabit Ethernet environments, occasional performance
   problems with disk throughput on NFS SRs have been observed. The
   problem can be identified by a log entry in/var/log/messagessimilar
   to:kernel: nfs: server 10.0.0.1 not responding, timed out. Citrix
   continues to investigate this issue with an aim to resolve it in a
   future release. [CA-59187]

http://support.citrix.com/article/CTX130418

Umair Azam

On 2/13/2014 9:31 AM, Umair Azam wrote:
I have been so much frustrated, couldn't find any solution and unable 
to resolve the problem, I can mount primary secondary storage 
manually, copy  data also, but hypervisor logs show me nfs server not 
responding and timed out
heartbeat: Problem with heartbeat, no iSCSI or NFS mount defined in 
/opt/cloud/bin/heartbeat!


Umair Azam

On 2/13/2014 9:22 AM, Carlos Reategui wrote:
If you had it on the management server then it would have been copied 
over to the hosts when you added them and there is no need for you to 
do it now.



On Feb 12, 2014, at 5:46 PM, Umair Azam  wrote:

Hi,

Carlos thanks for the follow up I really appreciate that, Well i 
have got the vhd-util placed in 
/usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/vhd-util on 
managment server but missed to place it on XS host in 
/opt/xensource/bin. I probably missed or couldn't find anything in 
cloudstack installation guide to place vhd-util in Xen hosts at 
/opt/xensource/bin.


I will do that right away and see if it works or not. Thanks again

Umair Azam


On 2/13/2014 6:36 AM, Carlos Reategui wrote:
Hi Umair (sorry missed the 'i' last time)

Haven't been able to digest your logs but one common problem with 
XS is

forgetting to get the specific vhd-util mentioned in the docs:
section 4.5.3.3 of
https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Installation_Guide/management-server-install-flow.html 

If you missed this, you can manually copy that vhd-util to the XS 
hosts

to /opt/xensource/bin/

Also if you are using basic network, don't forget to switch the XS 
hosts to

bridge (xe-switch-network-backend bridge)

Finally one thing that has helped me is to disable iptables on the 
XS hosts

(service iptables stop; chkconfig iptables off)

regards,
Carlos


On Feb 12, 2014, at 5:13 PM, Umair Azam  wrote:

Hi carlos,

I have changed switch ports, cables etc, I am successfully able to 
mount

and copy data. Below logs in the thread are latest after this fix.

Umair Azam

On 2/13/2014 6:03 AM, Carlos Reategui wrote:

Hi Umar,
Did you verify your network per Shanker's suggestion?  You need to 
make
sure the NIC flapping is fixed first before you can expect anything 
to run
stably.  When you say you are able to mount it manually, did you 
also try
copying data over that mount?  I had a similar problem once and it 
ended up

being a bad cable.
Regards,
-Carlos

On Feb 12, 2014, at 4:09 PM, Umair Azam  wrote:

Thanks for the follow up shanker. Please go through below details 
and help

me dig out the issue,

I am using cloudstack 4.2.1 installed through yum and xenserver 
6.2, I am

getting very strange errors and i have no idea whats going on.

Managment server IP: 10.11.17.30
Primary/secondar Storage IP: 10.11.17.31
PoD IP range 10.11.17.100 to 10.11.17.112 (for system VM's)
Guest IP range: 10.11.17.113 to 10.11.17.120
Primary storage path: /export/primary
Secondary storage IP: /export/secondary


*logs from the management server* (I know i have posted lengthy 
logs but it

would of great help if u help to make me understand the issue:

2014-02-13 09:38:35,497 DEBUG [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) *Trying to connect to 169.254.1.149*
2014-02-13 09:38:35,542 DEBUG [cloud.api.ApiServlet]
(catalina-exec-21:null) ===START===  10.11.17.22 --
GET 
command=listSystemVms&response=json&sessionkey=XDoj6Eke%2Brel612mP%2FBXLiaLwk8%3D&_=1392248334219

2014-02-13 09:38:35,611 DEBUG [cloud.api.ApiServlet]
(catalina-exec-21:null) ===END===  10.11.17.22 --
GET 
command=listSystemVms&response=json&sessionkey=XDoj6Eke%2Brel612mP%2FBXLiaLwk8%3D&_=1392248334219

2014-02-13 09:38:38,931 DEBUG [cloud.server.StatsCollector]
(StatsCollector-1:null) StorageCollector is running...
2014-02-13 09:38:38,934 INFO 
[storage.endpoint.DefaultEndPointSelector]
(StatsCollector-1:null) *No running ssvm is found, so command will 
be sent

to LocalHostEndPoint*
2014-02-13 09:38:38,939 DEBUG [agent.manager.DirectAgentAttache]
(DirectAgent-37:null) Seq 1-535822363: Executing request
2014-02-13 09:38:39,184 DEBUG [agent.manager.DirectAgentAttache]
(DirectAgent-37:null) Seq 1-535822363: R

Re: about openvswitch

2014-03-10 Thread Carlos Reátegui
Steven,
I am using ovs on xenserver 6.0.2 and 6.1 with CS 4.1.  The main benefit for me 
was being able to create 4 nic bonds, with bridge you are limited to 2 nics per 
bond.  The downside however is that you can not use security groups in a basic 
network so I had to create an offering without them.  For my use that was ok.  
This may have changed in more recent versions of CS.

-Carlos

On Mar 10, 2014, at 1:59 PM, Steven Liang  wrote:

> Hi,
> 
> I found from the document that we can use openvswitch instead of
> traditional bridge.
> Who can tell me the benefit using openvswitch?
> I used basic zone, and I cannot read usage info. If I use openvswitch,
> can I get usage info?
> Thank you.
> 
> Regards,
> Steven
> 



Re: NFS machine not responding, timed out issue

2014-03-10 Thread Umair Azam

Hi Carlos,

I see following management servers logs, what could be the possible 
reasons for these exceptions.


2014-03-11 08:05:47,985 DEBUG [xen.resource.CitrixResourceBase] 
(DirectAgent-1:null) Unable to create destination path: 
/etc/xapi.d/plugins on 10.11.17.32 but trying anyway
2014-03-11 08:05:48,092 DEBUG [xen.resource.CitrixResourceBase] 
(DirectAgent-1:null) Unable to create destination path: /opt/cloud/bin 
on 10.11.17.32 but trying anyway
2014-03-11 08:05:48,338 DEBUG [xen.resource.CitrixResourceBase] 
(DirectAgent-1:null) Unable to create destination path: 
/etc/xapi.d/plugins on 10.11.17.32 but trying anyway
2014-03-11 08:05:48,675 DEBUG [xen.resource.CitrixResourceBase] 
(DirectAgent-1:null) Unable to create destination path: /opt/cloud/bin 
on 10.11.17.32 but trying anyway
2014-03-11 08:05:48,759 DEBUG [xen.resource.CitrixResourceBase] 
(DirectAgent-1:null) Unable to create destination path: /opt/cloud/bin 
on 10.11.17.32 but trying anyway
2014-03-11 08:05:48,843 DEBUG [xen.resource.CitrixResourceBase] 
(DirectAgent-1:null) Unable to create destination path: 
/opt/xensource/packages/iso on 10.11.17.32 but trying anyway
2014-03-11 08:05:52,854 DEBUG [xen.resource.CitrixResourceBase] 
(DirectAgent-1:null) Unable to create destination path: /opt/cloud/bin 
on 10.11.17.32 but trying anyway
2014-03-11 08:05:52,939 DEBUG [xen.resource.CitrixResourceBase] 
(DirectAgent-1:null) Unable to create destination path: 
/etc/xapi.d/plugins on 10.11.17.32 but trying anyway


Umair Azam

On 2/13/2014 9:22 AM, Carlos Reategui wrote:

If you had it on the management server then it would have been copied over to 
the hosts when you added them and there is no need for you to do it now.


On Feb 12, 2014, at 5:46 PM, Umair Azam  wrote:

Hi,

Carlos thanks for the follow up I really appreciate that, Well i have got the 
vhd-util placed in 
/usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/vhd-util on 
managment server but missed to place it on XS host in /opt/xensource/bin. I 
probably missed or couldn't find anything in cloudstack installation guide to 
place vhd-util in Xen hosts at /opt/xensource/bin.

I will do that right away and see if it works or not. Thanks again

Umair Azam


On 2/13/2014 6:36 AM, Carlos Reategui wrote:
Hi Umair (sorry missed the 'i' last time)

Haven't been able to digest your logs but one common problem with XS is
forgetting to get the specific vhd-util mentioned in the docs:
section 4.5.3.3 of
https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Installation_Guide/management-server-install-flow.html
If you missed this, you can manually copy that vhd-util to the XS hosts
to /opt/xensource/bin/

Also if you are using basic network, don't forget to switch the XS hosts to
bridge (xe-switch-network-backend bridge)

Finally one thing that has helped me is to disable iptables on the XS hosts
(service iptables stop; chkconfig iptables off)

regards,
Carlos


On Feb 12, 2014, at 5:13 PM, Umair Azam  wrote:

Hi carlos,

I have changed switch ports, cables etc, I am successfully able to mount
and copy data. Below logs in the thread are latest after this fix.

Umair Azam

On 2/13/2014 6:03 AM, Carlos Reategui wrote:

Hi Umar,
Did you verify your network per Shanker's suggestion?  You need to make
sure the NIC flapping is fixed first before you can expect anything to run
stably.  When you say you are able to mount it manually, did you also try
copying data over that mount?  I had a similar problem once and it ended up
being a bad cable.
Regards,
-Carlos

On Feb 12, 2014, at 4:09 PM, Umair Azam  wrote:

Thanks for the follow up shanker. Please go through below details and help
me dig out the issue,

I am using cloudstack 4.2.1 installed through yum and xenserver 6.2, I am
getting very strange errors and i have no idea whats going on.

Managment server IP: 10.11.17.30
Primary/secondar Storage IP: 10.11.17.31
PoD IP range 10.11.17.100 to 10.11.17.112 (for system VM's)
Guest IP range: 10.11.17.113 to 10.11.17.120
Primary storage path: /export/primary
Secondary storage IP: /export/secondary


*logs from the management server* (I know i have posted lengthy logs but it
would of great help if u help to make me understand the issue:

2014-02-13 09:38:35,497 DEBUG [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) *Trying to connect to 169.254.1.149*
2014-02-13 09:38:35,542 DEBUG [cloud.api.ApiServlet]
(catalina-exec-21:null) ===START===  10.11.17.22 --
GET 
command=listSystemVms&response=json&sessionkey=XDoj6Eke%2Brel612mP%2FBXLiaLwk8%3D&_=1392248334219
2014-02-13 09:38:35,611 DEBUG [cloud.api.ApiServlet]
(catalina-exec-21:null) ===END===  10.11.17.22 --
GET 
command=listSystemVms&response=json&sessionkey=XDoj6Eke%2Brel612mP%2FBXLiaLwk8%3D&_=1392248334219
2014-02-13 09:38:38,931 DEBUG [cloud.server.StatsCollector]
(StatsCollector-1:null) StorageCollector is running...
2014-02-13 09:38:38,934 INFO [storage.endpoint.DefaultEndPointSelector]
(StatsCollector-1:null) *No run

Unable to create destination path: /opt/cloud/bin on

2014-03-10 Thread Umair Azam

Hi,

Does anybody know why i m getting this exception in management server 
logs, I think its related to vhd-util, but cant guess why its not being 
copied.


2014-03-11 08:05:47,985 DEBUG [xen.resource.CitrixResourceBase] 
(DirectAgent-1:null) Unable to create destination path: 
/etc/xapi.d/plugins on 10.11.17.32 but trying anyway
2014-03-11 08:05:48,092 DEBUG [xen.resource.CitrixResourceBase] 
(DirectAgent-1:null) Unable to create destination path: /opt/cloud/bin 
on 10.11.17.32 but trying anyway
2014-03-11 08:05:48,338 DEBUG [xen.resource.CitrixResourceBase] 
(DirectAgent-1:null) Unable to create destination path: 
/etc/xapi.d/plugins on 10.11.17.32 but trying anyway
2014-03-11 08:05:48,675 DEBUG [xen.resource.CitrixResourceBase] 
(DirectAgent-1:null) Unable to create destination path: /opt/cloud/bin 
on 10.11.17.32 but trying anyway
2014-03-11 08:05:48,759 DEBUG [xen.resource.CitrixResourceBase] 
(DirectAgent-1:null) Unable to create destination path: /opt/cloud/bin 
on 10.11.17.32 but trying anyway
2014-03-11 08:05:48,843 DEBUG [xen.resource.CitrixResourceBase] 
(DirectAgent-1:null) Unable to create destination path: 
/opt/xensource/packages/iso on 10.11.17.32 but trying anyway
2014-03-11 08:05:52,854 DEBUG [xen.resource.CitrixResourceBase] 
(DirectAgent-1:null) Unable to create destination path: /opt/cloud/bin 
on 10.11.17.32 but trying anyway
2014-03-11 08:05:52,939 DEBUG [xen.resource.CitrixResourceBase] 
(DirectAgent-1:null) Unable to create destination path: 
/etc/xapi.d/plugins on 10.11.17.32 but trying anyway
2014-03-11 08:05:53,277 DEBUG [xen.resource.CitrixResourceBase] 
(DirectAgent-1:null) Unable to create destination path: /etc/xensource 
on 10.11.17.32 but trying anyway
2014-03-11 08:05:53,360 DEBUG [xen.resource.CitrixResourceBase] 
(DirectAgent-1:null) Unable to create destination path: /opt/cloud/bin 
on 10.11.17.32 but trying anyway
2014-03-11 08:05:54,119 DEBUG [xen.resource.CitrixResourceBase] 
(DirectAgent-1:null) Unable to create destination path: /root/.ssh on 
10.11.17.32 but trying anyway
2014-03-11 08:05:54,210 DEBUG [xen.resource.CitrixResourceBase] 
(DirectAgent-1:null) Unable to create destination path: /opt/cloud/bin 
on 10.11.17.32 but trying anyway
2014-03-11 08:05:54,921 DEBUG [xen.resource.CitrixResourceBase] 
(DirectAgent-1:null) Unable to create destination path: 
/etc/xapi.d/plugins on 10.11.17.32 but trying anyway
2014-03-11 08:05:55,010 DEBUG [xen.resource.CitrixResourceBase] 
(DirectAgent-1:null) Unable to create destination path: 
/opt/xensource/sm on 10.11.17.32 but trying anyway
2014-03-11 08:05:55,095 DEBUG [xen.resource.CitrixResourceBase] 
(DirectAgent-1:null) Unable to create destination path: /opt/cloud/bin 
on 10.11.17.32 but trying anyway


--
Umair Azam



about openvswitch

2014-03-10 Thread Steven Liang
Hi,

I found from the document that we can use openvswitch instead of
traditional bridge.
Who can tell me the benefit using openvswitch?
I used basic zone, and I cannot read usage info. If I use openvswitch,
can I get usage info?
Thank you.

Regards,
Steven



Re: SSVM Not coming up

2014-03-10 Thread TommyBW
Hi Suresh, 


That is what I thought so I copied it from the cloudstack manager. 

Perhaps I copied to wrong location. Can you give me the right path on xenserver 
6.2 host ? 

Kind regards, 

TS 

- Original Message -
From: "Suresh Sadhu" 
To: users@cloudstack.apache.org
Sent: Monday, March 10, 2014 7:29:32 PM
Subject: RE: SSVM Not coming up

It seems vhd-util is missing in  xenserver host. 

Regards
Sadhu




-Original Message-
From: TommyBW [mailto:cloudst...@altanovabw.com] 
Sent: 10 March 2014 22:48
To: users@cloudstack.apache.org
Subject: Re: SSVM Not coming up

Hi All, 

Did an installation of CS4.2.1 on Xenserver 6.2 SP1 

Haveing a bit of a problem getting the SSVMs to start. Please see logs below : 

10 19:12:05,871 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] 
(consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.AgentUnavailableException: Resource [Host:2] is 
unreachable: Host 2: Unable to start instance due to null Caused by: 
java.lang.NullPointerException
2014-03-10 19:12:32,887 WARN  [xen.resource.XenServerStorageProcessor] 
(DirectAgent-9:null) destoryVDIbyNameLabel failed due to there are 0 VDIs with 
name cloud-d8bffd1d-a9c6-4100-8851-0ef754c18796
2014-03-10 19:12:32,888 WARN  [xen.resource.XenServerStorageProcessor] 
(DirectAgent-9:null) can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,888 WARN  [xen.resource.XenServerStorageProcessor] 
(DirectAgent-9:null) Catch Exception 
com.cloud.utils.exception.CloudRuntimeException for template +  due to 
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,889 DEBUG [agent.transport.Request] (DirectAgent-9:null) 
Seq 2-1529413662: Processing:  { Ans: , MgmtId: 345049202885, via: 2, Ver: v1, 
Flags: 110, 
[{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch
 Exception com.cloud.utils.exception.CloudRuntimeException for template +  due 
to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd","wait":0}}] }
2014-03-10 19:12:32,922 WARN  [utils.db.Merovingian2] (secstorage-1:null) Was 
unable to find lock for the key template_spool_ref9 and thread id 171531
2014-03-10 19:12:32,922 DEBUG [cloud.storage.VolumeManagerImpl] 
(secstorage-1:null) Unable to create Vol[71|vm=71|ROOT]:Catch Exception 
com.cloud.utils.exception.CloudRuntimeException for template +  due to 
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,922 INFO  [cloud.vm.VirtualMachineManagerImpl] 
(secstorage-1:null) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is 
unreachable: Unable to create Vol[71|vm=71|ROOT]:Catch Exception 
com.cloud.utils.exception.CloudRuntimeException for template +  due to 
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:33,092 DEBUG [cloud.capacity.CapacityManagerImpl] 
(secstorage-1:null) VM state transitted from :Starting to Stopped with event: 
OperationFailedvm's original host id: null new host id: null host id before 
state transition: 1
2014-03-10 19:12:33,102 WARN  [storage.secondary.SecondaryStorageManagerImpl] 
(secstorage-1:null) Exception while trying to start secondary storage vm
com.cloud.exception.InsufficientServerCapacityException: Unable to create a 
deployment for VM[SecondaryStorageVm|s-71-VM]Scope=interface 
com.cloud.dc.DataCenter; id=1
2014-03-10 19:12:33,104 INFO  [storage.secondary.SecondaryStorageManagerImpl] 
(secstorage-1:null) Unable to start secondary storage vm for standby capacity, 
secStorageVm vm Id : 71, will recycle it and start a new one
2014-03-10 19:12:35,797 INFO  [storage.volume.VolumeServiceImpl] 
(consoleproxy-1:null) Unable to acquire lock on VMTemplateStoragePool 9
2014-03-10 19:12:35,798 ERROR [cloud.vm.VirtualMachineManagerImpl] 
(consoleproxy-1:null) Failed to start instance VM[ConsoleProxy|v-2-VM] 
java.lang.NullPointerException
2014-03-10 19:12:35,923 DEBUG [cloud.capacity.CapacityManagerImpl] 
(consoleproxy-1:null) VM state transitted from :Starting to Stopped with event: 
OperationFailedvm's original host id: null new host id: null host id before 
state transition: 1
2014-03-10 19:12:35,934 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] 
(consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.AgentUnavailableException: Resource [Host:1] is 
unreachable: Host 1: Unable to start instance due to null Caused by: 
java.lang.NullPointerException
2014-03-10 19:13:02,809 WARN  [xen.resource.XenServerStorageProcessor] 
(DirectAgent-84:null) destoryVDIbyNameLabel failed due to there are 0 VDIs wi

RE: SSVM Not coming up

2014-03-10 Thread Suresh Sadhu
It seems vhd-util is missing in  xenserver host. 

Regards
Sadhu




-Original Message-
From: TommyBW [mailto:cloudst...@altanovabw.com] 
Sent: 10 March 2014 22:48
To: users@cloudstack.apache.org
Subject: Re: SSVM Not coming up

Hi All, 

Did an installation of CS4.2.1 on Xenserver 6.2 SP1 

Haveing a bit of a problem getting the SSVMs to start. Please see logs below : 

10 19:12:05,871 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] 
(consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.AgentUnavailableException: Resource [Host:2] is 
unreachable: Host 2: Unable to start instance due to null Caused by: 
java.lang.NullPointerException
2014-03-10 19:12:32,887 WARN  [xen.resource.XenServerStorageProcessor] 
(DirectAgent-9:null) destoryVDIbyNameLabel failed due to there are 0 VDIs with 
name cloud-d8bffd1d-a9c6-4100-8851-0ef754c18796
2014-03-10 19:12:32,888 WARN  [xen.resource.XenServerStorageProcessor] 
(DirectAgent-9:null) can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,888 WARN  [xen.resource.XenServerStorageProcessor] 
(DirectAgent-9:null) Catch Exception 
com.cloud.utils.exception.CloudRuntimeException for template +  due to 
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,889 DEBUG [agent.transport.Request] (DirectAgent-9:null) 
Seq 2-1529413662: Processing:  { Ans: , MgmtId: 345049202885, via: 2, Ver: v1, 
Flags: 110, 
[{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch
 Exception com.cloud.utils.exception.CloudRuntimeException for template +  due 
to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd","wait":0}}] }
2014-03-10 19:12:32,922 WARN  [utils.db.Merovingian2] (secstorage-1:null) Was 
unable to find lock for the key template_spool_ref9 and thread id 171531
2014-03-10 19:12:32,922 DEBUG [cloud.storage.VolumeManagerImpl] 
(secstorage-1:null) Unable to create Vol[71|vm=71|ROOT]:Catch Exception 
com.cloud.utils.exception.CloudRuntimeException for template +  due to 
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,922 INFO  [cloud.vm.VirtualMachineManagerImpl] 
(secstorage-1:null) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is 
unreachable: Unable to create Vol[71|vm=71|ROOT]:Catch Exception 
com.cloud.utils.exception.CloudRuntimeException for template +  due to 
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:33,092 DEBUG [cloud.capacity.CapacityManagerImpl] 
(secstorage-1:null) VM state transitted from :Starting to Stopped with event: 
OperationFailedvm's original host id: null new host id: null host id before 
state transition: 1
2014-03-10 19:12:33,102 WARN  [storage.secondary.SecondaryStorageManagerImpl] 
(secstorage-1:null) Exception while trying to start secondary storage vm
com.cloud.exception.InsufficientServerCapacityException: Unable to create a 
deployment for VM[SecondaryStorageVm|s-71-VM]Scope=interface 
com.cloud.dc.DataCenter; id=1
2014-03-10 19:12:33,104 INFO  [storage.secondary.SecondaryStorageManagerImpl] 
(secstorage-1:null) Unable to start secondary storage vm for standby capacity, 
secStorageVm vm Id : 71, will recycle it and start a new one
2014-03-10 19:12:35,797 INFO  [storage.volume.VolumeServiceImpl] 
(consoleproxy-1:null) Unable to acquire lock on VMTemplateStoragePool 9
2014-03-10 19:12:35,798 ERROR [cloud.vm.VirtualMachineManagerImpl] 
(consoleproxy-1:null) Failed to start instance VM[ConsoleProxy|v-2-VM] 
java.lang.NullPointerException
2014-03-10 19:12:35,923 DEBUG [cloud.capacity.CapacityManagerImpl] 
(consoleproxy-1:null) VM state transitted from :Starting to Stopped with event: 
OperationFailedvm's original host id: null new host id: null host id before 
state transition: 1
2014-03-10 19:12:35,934 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] 
(consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.AgentUnavailableException: Resource [Host:1] is 
unreachable: Host 1: Unable to start instance due to null Caused by: 
java.lang.NullPointerException
2014-03-10 19:13:02,809 WARN  [xen.resource.XenServerStorageProcessor] 
(DirectAgent-84:null) destoryVDIbyNameLabel failed due to there are 0 VDIs with 
name cloud-844432b3-e616-415e-971e-90e85f5b0fd4
2014-03-10 19:13:02,810 WARN  [xen.resource.XenServerStorageProcessor] 
(DirectAgent-84:null) can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:02,810 WARN  [xen.resource.XenServerStorageProcessor] 
(DirectAgent-84:null) Catch Exception 
com.cloud.utils.exception.CloudRun

Re: SSVM Not coming up

2014-03-10 Thread TommyBW
Hi All, 

Did an installation of CS4.2.1 on Xenserver 6.2 SP1 

Haveing a bit of a problem getting the SSVMs to start. Please see logs below : 

10 19:12:05,871 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] 
(consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.AgentUnavailableException: Resource [Host:2] is 
unreachable: Host 2: Unable to start instance due to null
Caused by: java.lang.NullPointerException
2014-03-10 19:12:32,887 WARN  [xen.resource.XenServerStorageProcessor] 
(DirectAgent-9:null) destoryVDIbyNameLabel failed due to there are 0 VDIs with 
name cloud-d8bffd1d-a9c6-4100-8851-0ef754c18796
2014-03-10 19:12:32,888 WARN  [xen.resource.XenServerStorageProcessor] 
(DirectAgent-9:null) can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,888 WARN  [xen.resource.XenServerStorageProcessor] 
(DirectAgent-9:null) Catch Exception 
com.cloud.utils.exception.CloudRuntimeException for template +  due to 
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,889 DEBUG [agent.transport.Request] (DirectAgent-9:null) 
Seq 2-1529413662: Processing:  { Ans: , MgmtId: 345049202885, via: 2, Ver: v1, 
Flags: 110, 
[{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch
 Exception com.cloud.utils.exception.CloudRuntimeException for template +  due 
to com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd","wait":0}}] }
2014-03-10 19:12:32,922 WARN  [utils.db.Merovingian2] (secstorage-1:null) Was 
unable to find lock for the key template_spool_ref9 and thread id 171531
2014-03-10 19:12:32,922 DEBUG [cloud.storage.VolumeManagerImpl] 
(secstorage-1:null) Unable to create Vol[71|vm=71|ROOT]:Catch Exception 
com.cloud.utils.exception.CloudRuntimeException for template +  due to 
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:32,922 INFO  [cloud.vm.VirtualMachineManagerImpl] 
(secstorage-1:null) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is 
unreachable: Unable to create Vol[71|vm=71|ROOT]:Catch Exception 
com.cloud.utils.exception.CloudRuntimeException for template +  due to 
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:12:33,092 DEBUG [cloud.capacity.CapacityManagerImpl] 
(secstorage-1:null) VM state transitted from :Starting to Stopped with event: 
OperationFailedvm's original host id: null new host id: null host id before 
state transition: 1
2014-03-10 19:12:33,102 WARN  [storage.secondary.SecondaryStorageManagerImpl] 
(secstorage-1:null) Exception while trying to start secondary storage vm
com.cloud.exception.InsufficientServerCapacityException: Unable to create a 
deployment for VM[SecondaryStorageVm|s-71-VM]Scope=interface 
com.cloud.dc.DataCenter; id=1
2014-03-10 19:12:33,104 INFO  [storage.secondary.SecondaryStorageManagerImpl] 
(secstorage-1:null) Unable to start secondary storage vm for standby capacity, 
secStorageVm vm Id : 71, will recycle it and start a new one
2014-03-10 19:12:35,797 INFO  [storage.volume.VolumeServiceImpl] 
(consoleproxy-1:null) Unable to acquire lock on VMTemplateStoragePool 9
2014-03-10 19:12:35,798 ERROR [cloud.vm.VirtualMachineManagerImpl] 
(consoleproxy-1:null) Failed to start instance VM[ConsoleProxy|v-2-VM]
java.lang.NullPointerException
2014-03-10 19:12:35,923 DEBUG [cloud.capacity.CapacityManagerImpl] 
(consoleproxy-1:null) VM state transitted from :Starting to Stopped with event: 
OperationFailedvm's original host id: null new host id: null host id before 
state transition: 1
2014-03-10 19:12:35,934 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] 
(consoleproxy-1:null) Exception while trying to start console proxy
com.cloud.exception.AgentUnavailableException: Resource [Host:1] is 
unreachable: Host 1: Unable to start instance due to null
Caused by: java.lang.NullPointerException
2014-03-10 19:13:02,809 WARN  [xen.resource.XenServerStorageProcessor] 
(DirectAgent-84:null) destoryVDIbyNameLabel failed due to there are 0 VDIs with 
name cloud-844432b3-e616-415e-971e-90e85f5b0fd4
2014-03-10 19:13:02,810 WARN  [xen.resource.XenServerStorageProcessor] 
(DirectAgent-84:null) can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd
2014-03-10 19:13:02,810 WARN  [xen.resource.XenServerStorageProcessor] 
(DirectAgent-84:null) Catch Exception 
com.cloud.utils.exception.CloudRuntimeException for template +  due to 
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
7a5cf014-ef47-393d-ea1d-e14c029bd5dd
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
7a5cf014-ef47-3

RE: How to modify system vm's iptables rules

2014-03-10 Thread Joaquin Angel Alonso Alvarez
Hi,

Due to a particular network configuration on the platform we need to access the 
console proxy from the private IP address and it comes blocked by default for 
that interface, it´s open only for the public interface.
At the moment I ssh into the Console Proxy VM and add the rule myself (or just 
disable the iptables at all), but it´s not permanent.

Kind Regards,

Joaquín Angel Alonso Alvarez 
Administrador de Sistemas
Infraestructura y Sistemas
Tel: +34 902 932 400
jalo...@izertis.com 

-Mensaje original-
De: Shanker Balan [mailto:shanker.ba...@shapeblue.com] 
Enviado el: viernes, 07 de marzo de 2014 15:33
Para: CloudStack-Users
Asunto: Re: How to modify system vm's iptables rules

Comments inline.

On 07-Mar-2014, at 6:15 pm, Joaquin Angel Alonso Alvarez 
mailto:jalo...@izertis.com>> wrote:

Hi,

I´m wondering if it´s possible to make modifications to the iptables rules on 
the system vm (cpvm and ssvm) permanent. No problem to logon into and change 
them, but after rebooting the new rules are gone.

Hi Joaquin,

What kind of What additional rules do you add to the system VMs?



--
@shankerbalan

M: +91 98860 60539 | O: +91 (80) 67935867 
shanker.ba...@shapeblue.com | 
www.shapeblue.com | Twitter:@shapeblue ShapeBlue 
Services India LLP, 22nd floor, Unit 2201A, World Trade Centre, Bangalore - 560 
055

Need Enterprise Grade Support for Apache CloudStack?
Our CloudStack Infrastructure 
Support offers the 
best 24/7 SLA for CloudStack Environments.

Apache CloudStack Bootcamp training courses

**NEW!** CloudStack 4.2.1 training
18th-19th February 2014, Brazil. 
Classroom
17th-23rd March 2014, Region A. Instructor led, 
On-line
24th-28th March 2014, Region B. Instructor led, 
On-line
16th-20th June 2014, Region A. Instructor led, 
On-line
23rd-27th June 2014, Region B. Instructor led, 
On-line

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 is a registered trademark.


Primary Storage PreSetup Configuration

2014-03-10 Thread iliyas shirol
Greetings !

Do we want to use the *presetup* configuration of the primary storage if we
want to define timeout(s) for iSCSI mounts / NFS shares from a central
storage ?

We are using XenServer-6.2 as our hypervisor.

Thanks.

-- 
-
Md. Iliyas Shirol
Mobile : +91 9902 977 800
Google : iliyas.shirol@ gmail.com


RE: Management Server Load Balancing

2014-03-10 Thread Michael Phillips
I got Haproxy working by changing the LB type from RR to source IP hash. 
However I think I will checkout Zen LB as a training exercise.

> From: shanker.ba...@shapeblue.com
> To: users@cloudstack.apache.org
> Subject: Re: Management Server Load Balancing
> Date: Mon, 10 Mar 2014 05:03:57 +
> 
> Comments inline.
> 
> On 10-Mar-2014, at 9:10 am, Michael Phillips  wrote:
> 
> > I noticed in the docs it states to LB the mgmt servers you need to use 
> > persistence.
> > Has anyone had any luck using cookie persistence? I am attempting to use 
> > HAproxy for LB, but anytime I enable persistence using cookies I get a 503 
> > service unavailable.
> 
> Hi Michael,
> 
> While I have used HA Proxy, I am yet to use it for CloudStack management 
> server
> load balancing.
> 
> I have however, used Zen Loadbalancer (OpenSource and available at
> http://www.zenloadbalancer.com) to load balance management servers with
> HTTP and HTTPS “session” persistence without issues.
> 
> I’ll be happy to answer any queries on Zen LB if you have.
> 
> 
> Regards.
> @shankerbalan
> 
> --
> @shankerbalan
> 
> M: +91 98860 60539 | O: +91 (80) 67935867
> shanker.ba...@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue
> ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade Centre, 
> Bangalore - 560 055
> 
> Need Enterprise Grade Support for Apache CloudStack?
> Our CloudStack Infrastructure 
> Support offers the 
> best 24/7 SLA for CloudStack Environments.
> 
> Apache CloudStack Bootcamp training courses
> 
> **NEW!** CloudStack 4.2.1 training
> 18th-19th February 2014, Brazil. 
> Classroom
> 17th-23rd March 2014, Region A. Instructor led, 
> On-line
> 24th-28th March 2014, Region B. Instructor led, 
> On-line
> 16th-20th June 2014, Region A. Instructor led, 
> On-line
> 23rd-27th June 2014, Region B. Instructor led, 
> On-line
> 
> 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 is a registered 
> trademark.
  

VHD file of a template is deleted from Secondary Storage

2014-03-10 Thread Marco Sinhoreli
Hi community:

I have some templates registered in ACS like Windows, CentOS, etc. When I asked 
to download these templates, after some time (I don't know the exact time) the 
VHD file go away from the secondary storage. Have no information in the ACS 
logs about it or anything. The template.properties metafile remain there but 
the VHD file no. In the database and UI the template is apparently ok and ready 
to use. If I try to build an instance from any template that have no VHD file 
it fail. The link below is a similar issue I have:

http://discussions.citrix.com/topic/348319-template-vhd-disappears-when-download-symlink-is-cleaned-up/

Best regards,


Marco Sinhoreli

Consultant Manager



 [cid:F8FB894E-5425-43AC-A062-B01738323FA9]



Phone: +55 21 2586 6390 | Fax: +55 21 2586 6002 | Mobile: +55 21 98276 3636



Praia de Botafogo 501, bloco 1 - sala 101, Botafogo, Rio de Janeiro, RJ - 
Brazil - CEP 22250-040



marco.sinhor...@shapeblue.com| 
www.shapeblue.com | Twitter: 
@shapeblue

Apache CloudStack Bootcamp training courses:

**NEW!** CloudStack 4.2 training

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 and ShapeBlue 
Brasil Consultoria LTDA are operated under license from Shape Blue Ltd. 
ShapeBlue is a registered trademark.
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 is a registered trademark.


Re: Fail to configure network interface when booting VM

2014-03-10 Thread Du Jun
BTW, the /etc/cloudstack/agent/agent.properties is shown below:
#Storage
#Mon Mar 10 16:59:56 CST 2014
guest.network.device=cloudbr0
workers=5
private.network.device=cloudbr0
port=8250
resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
pod=1
zone=1
guid=e2e402df-6e65-3e08-a680-35ecfb39716b
public.network.device=cloudbr0
cluster=1
local.storage.uuid=05d6ad68-fdd0-4041-8371-a592727d57d4
domr.scripts.dir=scripts/network/domr/kvm
LibvirtComputingResource.id=10
host=10.10.101.103

We can see that, guest, private and public all use the network bridge
"cloudbr0". And, route table in my agent host(B) is like that:
root@ubuntu-7:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface
0.0.0.0 10.10.101.254   0.0.0.0 UG10000
cloudbr0
10.10.101.0 0.0.0.0 255.255.255.0   U 0  00
cloudbr0
169.254.0.0 0.0.0.0 255.255.0.0 U 0  00
cloud0
192.168.122.0   0.0.0.0 255.255.255.0   U 0  00
virbr0

It seems all okay. I wonder what I have missed?

--
Best Regards,
Du Jun



2014-03-10 19:26 GMT+08:00 Du Jun :

> Hi Bharat,
>
> Thank you for your prompt reply. As I am new to CloudStack, I have 2
> questions to consult you.
>
> >check if host B  has the systemvm.iso in it. if not copy it manually from
> host A.
> Where can I check if host B has the systemvm.iso?
>
> >before adding the host make sure the host tags are cleared.
> When I add the host B, the tag of the host is empty. After adding the
> host, I add a tag for host B so that I can always put the VM to host B for
> testing purpose. Does it matter?
>
> Thanks!
> --
> Best Regards,
> Du Jun
>
>
> 2014-03-10 19:10 GMT+08:00 Bharat Kumar :
>
> Hi Jun,
>>
>> check if host B  has the systemvm.iso in it. if not copy it manually from
>> host A.
>>
>> cloudstack generally dose this for you when you add a host for the first
>> time.
>> before adding the host make sure the host tags are cleared.
>>
>> Regards,
>> Bharat.
>> On 10-Mar-2014, at 4:35 pm, Du Jun  wrote:
>>
>> > Hi all,
>> >
>> > I am using CloudStack4.2 advanced zone in Ubuntu12.04. I use host
>> > A(10.10.101.103) as my management server, and use host B(10.10.101.107)
>> as
>> > my agent host. I meet a problem that the VM booted in host B fail to
>> > configure network interface when boot up. In other words, when I type
>> > `ifconfig` in VM booted in host B, I find the IP address is missing!
>> > However, there is no problem with the VM booted in host A.
>> >
>> > BTW, I both add a network bridge "cloudbr0" in management server(A) and
>> > agent host(B). Both server A and B can access the internet and I can
>> access
>> > them from outside. So, I have no idea now. Can anyone tell me how to
>> debug
>> > or provide me with some clue? Thanks!
>> >
>> > --
>> > Best Regards,
>> > Frank
>>
>>
>


Re: Fail to configure network interface when booting VM

2014-03-10 Thread Du Jun
Hi Bharat,

Thank you for your prompt reply. As I am new to CloudStack, I have 2
questions to consult you.

>check if host B  has the systemvm.iso in it. if not copy it manually from
host A.
Where can I check if host B has the systemvm.iso?

>before adding the host make sure the host tags are cleared.
When I add the host B, the tag of the host is empty. After adding the host,
I add a tag for host B so that I can always put the VM to host B for
testing purpose. Does it matter?

Thanks!
--
Best Regards,
Du Jun


2014-03-10 19:10 GMT+08:00 Bharat Kumar :

> Hi Jun,
>
> check if host B  has the systemvm.iso in it. if not copy it manually from
> host A.
>
> cloudstack generally dose this for you when you add a host for the first
> time.
> before adding the host make sure the host tags are cleared.
>
> Regards,
> Bharat.
> On 10-Mar-2014, at 4:35 pm, Du Jun  wrote:
>
> > Hi all,
> >
> > I am using CloudStack4.2 advanced zone in Ubuntu12.04. I use host
> > A(10.10.101.103) as my management server, and use host B(10.10.101.107)
> as
> > my agent host. I meet a problem that the VM booted in host B fail to
> > configure network interface when boot up. In other words, when I type
> > `ifconfig` in VM booted in host B, I find the IP address is missing!
> > However, there is no problem with the VM booted in host A.
> >
> > BTW, I both add a network bridge "cloudbr0" in management server(A) and
> > agent host(B). Both server A and B can access the internet and I can
> access
> > them from outside. So, I have no idea now. Can anyone tell me how to
> debug
> > or provide me with some clue? Thanks!
> >
> > --
> > Best Regards,
> > Frank
>
>


Re: Fail to configure network interface when booting VM

2014-03-10 Thread Bharat Kumar
Hi Jun,

check if host B  has the systemvm.iso in it. if not copy it manually from host 
A. 

cloudstack generally dose this for you when you add a host for the first time.
before adding the host make sure the host tags are cleared.

Regards,
Bharat.
On 10-Mar-2014, at 4:35 pm, Du Jun  wrote:

> Hi all,
> 
> I am using CloudStack4.2 advanced zone in Ubuntu12.04. I use host
> A(10.10.101.103) as my management server, and use host B(10.10.101.107) as
> my agent host. I meet a problem that the VM booted in host B fail to
> configure network interface when boot up. In other words, when I type
> `ifconfig` in VM booted in host B, I find the IP address is missing!
> However, there is no problem with the VM booted in host A.
> 
> BTW, I both add a network bridge "cloudbr0" in management server(A) and
> agent host(B). Both server A and B can access the internet and I can access
> them from outside. So, I have no idea now. Can anyone tell me how to debug
> or provide me with some clue? Thanks!
> 
> --
> Best Regards,
> Frank



Fail to configure network interface when booting VM

2014-03-10 Thread Du Jun
Hi all,

I am using CloudStack4.2 advanced zone in Ubuntu12.04. I use host
A(10.10.101.103) as my management server, and use host B(10.10.101.107) as
my agent host. I meet a problem that the VM booted in host B fail to
configure network interface when boot up. In other words, when I type
`ifconfig` in VM booted in host B, I find the IP address is missing!
However, there is no problem with the VM booted in host A.

BTW, I both add a network bridge "cloudbr0" in management server(A) and
agent host(B). Both server A and B can access the internet and I can access
them from outside. So, I have no idea now. Can anyone tell me how to debug
or provide me with some clue? Thanks!

--
Best Regards,
Frank


NFS server

2014-03-10 Thread sandeep khandekar
Dear users,

4.5.7.2. Using the Management Server as the NFS Server

how to setup in ubuntu
Thanks.
-- 
SANDEEP KHANDEKAR
Assistant Professor
Department of Computer science and engineering
Sreenidhi Institute of science and Technology
Hyderabad


Changing the default password encryption

2014-03-10 Thread sandeep khandekar
Dear,
In which bean should I insert the above code?
in the following files
componentContext.xml.in
nonossComponentContext.xml.in



 









 
 



Thank you

sandeep