Re: [one-users] Failed to create VM.(KVM)

2013-11-13 Thread caohf
How many host do you have? 
It seems the image didn't trans to the correct path.




 Best Wishes!
 Dennis

From: vishnu e divakaran
Date: 2013-11-14 00:26
To: caohf
CC: users@lists.opennebula.org
Subject: Failed to create VM.(KVM)
Wed Nov 13 20:29:00 2013 [TM][D]: Message received: TRANSFER SUCCESS 16 -

Wed Nov 13 20:29:00 2013 [VMM][D]: Message received: LOG I 16 ExitCode: 0

Wed Nov 13 20:29:00 2013 [VMM][D]: Message received: LOG I 16
Successfully execute network driver operation: pre.

Wed Nov 13 20:29:01 2013 [VMM][D]: Message received: LOG I 16 Command
execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy
'/var/lib/one/var//datastores/0/16/deployment.0' 'onevmhost' 16
onevmhost

Wed Nov 13 20:29:01 2013 [VMM][D]: Message received: LOG I 16 error:
Failed to create domain from
/var/lib/one/var//datastores/0/16/deployment.0

Wed Nov 13 20:29:01 2013 [VMM][D]: Message received: LOG I 16 error:
Unable to allow access for disk path
/var/lib/one/var//datastores/0/16/disk.0: No such file or directory

Wed Nov 13 20:29:01 2013 [VMM][D]: Message received: LOG E 16 Could
not create domain from /var/lib/one/var//datastores/0/16/deployment.0

Wed Nov 13 20:29:01 2013 [VMM][D]: Message received: LOG I 16 ExitCode: 255

Wed Nov 13 20:29:01 2013 [VMM][D]: Message received: LOG I 16 Failed
to execute virtualization driver operation: deploy.

Wed Nov 13 20:29:01 2013 [VMM][D]: Message received: DEPLOY FAILURE 16
Could not create domain from
/var/lib/one/var//datastores/0/16/deployment.0


i have attached the datastores image

I have created the image in the default datastore... is it theproblem???___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] ttylinux image from Marketplace fails to boot...

2013-11-13 Thread Javier Fontan
It seems that ttylinux is not running because you are using virtio
disk (vda). ttylinux is just for testing, it lacks virtio drivers and
other amenities. Use hda for the disk and you should be fine.

Concerning the network I think it is behaving as it should. ebtables
drivers do not let to have connectivity to other networks and this is
done by mac addresses. That is, you can only connect to machines with
MAC 02:00:c0:a8:7a:xx.

You can do two things to try the network is working.

A) Use dummy drivers
B) Fire up two VMs and try to ping between them

After checking whether the network is working you can play a bit more
with network isolation

On Wed, Nov 13, 2013 at 8:31 PM, Mark Biggers  wrote:
> ... while a Marketplace "Vyatta V65R1 Router"" (KVM) image, boots just fine.**
>
> Here are the details, below.
>
>    onevnet show 8
>
> VIRTUAL NETWORK 8 INFORMATION
> ID : 8
> NAME   : cloud
> USER   : oneadmin
> GROUP  : oneadmin
> CLUSTER: -
> TYPE   : RANGED
> BRIDGE : br0
> VLAN   : Yes
> VLAN ID: vnet_default
> USED LEASES: 2
>
> PERMISSIONS
> OWNER  : um-
> GROUP  : ---
> OTHER  : ---
>
> VIRTUAL NETWORK TEMPLATE
> DNS="192.168.1.1"
> GATEWAY="192.168.122.1"
> ID="3"
> NETMASK="255.255.255.0"
> NETWORK_ADDRESS="192.168.122.0/24"
> NETWORK_MASK="255.255.255.0"
>
> RANGE
> IP_START   : 192.168.122.1
> IP_END : 192.168.122.254
>
> USED LEASES
> LEASE=[ MAC="02:00:c0:a8:7a:02", IP="192.168.122.2", 
> IP6_LINK="fe80::400:c0ff:fea8:7a02", USED="1", VID="27" ]
> LEASE=[ MAC="02:00:c0:a8:7a:03", IP="192.168.122.3", 
> IP6_LINK="fe80::400:c0ff:fea8:7a03", USED="1", VID="29" ]
>
> VIRTUAL MACHINES
>
> ID USER GROUPNAMESTAT UCPUUMEM HOST 
> TIME
> 27 oneadmin oneadmin vyatta-router   runn0   1024M host01   0d 
> 02h25
> 29 oneadmin oneadmin TTY Linux NOW   runn   99256M host01   0d 
> 01h52
>
>
>    onevm show 29
>
> VIRTUAL MACHINE 29 INFORMATION
> ID  : 29
> NAME: TTY Linux NOW
> USER: oneadmin
> GROUP   : oneadmin
> STATE   : ACTIVE
> LCM_STATE   : RUNNING
> RESCHED : No
> HOST: host01
> START TIME  : 11/13 11:35:22
> END TIME: -
> DEPLOY ID   : one-29
>
> VIRTUAL MACHINE MONITORING
> USED MEMORY : 256M
> USED CPU: 99
> NET_TX  : 0K
> NET_RX  : 0K
>
> PERMISSIONS
> OWNER   : um-
> GROUP   : ---
> OTHER   : ---
>
> VM DISKS
>  ID TARGET IMAGE   TYPE SAVE SAVE_AS
>   0 vdattylinux - kvm  file   NO   -
>
> VM NICS
>  ID NETWORK  VLAN BRIDGE   IP  MAC
>   0 cloud yes br0  192.168.122.3   02:00:c0:a8:7a:03
>fe80::400:c0ff:fea8:7a03
>
> VIRTUAL MACHINE HISTORY
> SEQ HOSTACTION   REAS   STARTTIME 
> PROLOG
>   0 host01  none none  11/13 11:35:30   0d 01h49m   
> 0h00m01s
>
> USER TEMPLATE
> SCHED_REQUIREMENTS="ID=\"5\""
>
> VIRTUAL MACHINE TEMPLATE
> CONTEXT=[
>   DISK_ID="1",
>   ETH0_DNS="192.168.1.1",
>   ETH0_GATEWAY="192.168.122.1",
>   ETH0_IP="192.168.122.3",
>   ETH0_MASK="255.255.255.0",
>   ETH0_NETWORK="192.168.122.0/24",
>   NETWORK="YES",
>   SSH_PUBLIC_KEY="ssh-rsa ...
> ",
>   TARGET="vdb" ]
> CPU="0.4"
> GRAPHICS=[
>   LISTEN="0.0.0.0",
>   PORT="5929",
>   TYPE="VNC" ]
> MEMORY="256"
> OS=[
>   ARCH="i686",
>   BOOT="hd" ]
> TEMPLATE_ID="27"
> VMID="29"
>
> 
>
> ** That Vyatta VR VM gets no working route to the br0 bridge (another issue), 
> and is not pingable at its address from the ONE host (combined host/node, 
> developer desktop).
>
>   Should I just forget about getting even basic ONE network (ebtables) 
> working, on openSUSE 12.3?  I am getting nowhere with it...  "I Am Not A 
> Network Engineer".
> The ONE docs assume a lot of Linux NetEngr background, and/or have some 
> critical details missing.  -- I will send a follow-up email on this, I need 
> spoon-feeding, sorry.
>
>
> thank you.
>
> Mark Biggers
> mbigg...@ine.com
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



-- 
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | @OpenNebula | github.com/jfontan
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Help! with ebtables networking, for ONE 4.2 on openSUSE 12.3

2013-11-13 Thread Mark Biggers
The subject says it all.  I am available on IRC -- see my signature, and Google 
chat.

I can get no "networking across a bridge" working, for the ONE "ebtables" model.

The platform is openSUSE 12.3 on a Thinkpad W530, plenty of memory & disk 
space.Here's the info.   ** Thank you in advance. **
(An aside:   am quite concerned, that I will *not* get the ONE Virtual Router 
going in the future, since docs on that seem very thin.  And I need to be able 
to *drop* contextualization; some VMs we will be running can't be modified for 
that).

Mark Biggers
INE, Inc.
Durham, NC
Internets:  Freenode.net IRC:  markb1, #trizpug #trilug #opennebula
..  Google chat:  mbiggers...@gmail.com

 Script started on Wed Nov 13 14:36:39 2013

root@sealion:.../one > netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags   MSS Window  irtt Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG0 0  0 br0
127.0.0.0   0.0.0.0 255.255.255.0   U 0 0  0 lo
127.0.0.0   0.0.0.0 255.0.0.0   U 0 0  0 lo
192.168.1.0 0.0.0.0 255.255.255.0   U 0 0  0 br0
192.168.122.0   192.168.1.250   255.255.255.0   UG0 0  0 br0

root@sealion:.../one > ip addr  ## EDITED
1: lo: 

2: eth0:  mtu 1500 qdisc pfifo_fast 
master br0 state UP qlen 1000
link/ether 3c:97:0e:ab:0a:de brd ff:ff:ff:ff:ff:ff

3: wlan0:  mtu 1500 qdisc mq state DOWN qlen 1000

4: vboxnet0:  mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 0a:00:27:00:00:00 brd ff:ff:ff:ff:ff:ff

13: tun0:  mtu 1500 qdisc pfifo_fast state DOWN qlen 500
link/ether 4a:2a:6d:26:0c:91 brd ff:ff:ff:ff:ff:ff

23: br0:  mtu 1500 qdisc noqueue state UP 
link/ether 3c:97:0e:ab:0a:de brd ff:ff:ff:ff:ff:ff
inet 192.168.1.250/24 brd 192.168.1.255 scope global br0

27: vnet0:  mtu 1500 qdisc pfifo_fast master 
br0 state UNKNOWN qlen 500
link/ether fe:00:c0:a8:7a:02 brd ff:ff:ff:ff:ff:ff

29: vnet1:  mtu 1500 qdisc pfifo_fast master 
br0 state UNKNOWN qlen 500
link/ether fe:00:c0:a8:7a:03 brd ff:ff:ff:ff:ff:ff


root@sealion:.../one > brctl show
bridge name bridge id   STP enabled interfaces
br0 8000.3c970eab0ade   no  eth0
vnet0
vnet1
root@sealion:.../one > ebtables -t nat -L
Bridge table: nat

Bridge chain: PREROUTING, entries: 2, policy: ACCEPT
-p IPv4 -i eth0 --ip-dst 192.168.122.2 -j dnat --to-dst 2:0:c0:a8:7a:2 
--dnat-target ACCEPT
-p ARP -i eth0 --arp-ip-dst 192.168.122.2 -j dnat --to-dst 2:0:c0:a8:7a:2 
--dnat-target ACCEPT

Bridge chain: OUTPUT, entries: 0, policy: ACCEPT

Bridge chain: POSTROUTING, entries: 1, policy: ACCEPT
-o eth0 -j snat --to-src 3c:97:e:ab:a:de --snat-arp --snat-target ACCEPT

Bridge chain: libvirt-I-vnet0, entries: 0, policy: ACCEPT

Bridge chain: libvirt-O-vnet0, entries: 0, policy: ACCEPT

Bridge chain: I-vnet0-mac, entries: 0, policy: ACCEPT

Bridge chain: I-vnet0-ipv4-ip, entries: 0, policy: ACCEPT

Bridge chain: O-vnet0-ipv4, entries: 0, policy: ACCEPT

Bridge chain: I-vnet0-arp-mac, entries: 0, policy: ACCEPT

Bridge chain: I-vnet0-arp-ip, entries: 0, policy: ACCEPT

Bridge chain: I-vnet0-rarp, entries: 0, policy: ACCEPT

Bridge chain: O-vnet0-rarp, entries: 0, policy: ACCEPT

Bridge chain: libvirt-I-vnet1, entries: 0, policy: ACCEPT

Bridge chain: libvirt-O-vnet1, entries: 0, policy: ACCEPT

Bridge chain: I-vnet1-mac, entries: 0, policy: ACCEPT

Bridge chain: I-vnet1-ipv4-ip, entries: 0, policy: ACCEPT

Bridge chain: O-vnet1-ipv4, entries: 0, policy: ACCEPT

Bridge chain: I-vnet1-arp-mac, entries: 0, policy: ACCEPT

Bridge chain: I-vnet1-arp-ip, entries: 0, policy: ACCEPT

Bridge chain: I-vnet1-rarp, entries: 0, policy: ACCEPT

Bridge chain: O-vnet1-rarp, entries: 0, policy: ACCEPT


r...@sealion.ine.corp:one # ebtables -t broute -L
Bridge table: broute

Bridge chain: BROUTING, entries: 0, policy: ACCEPT

root@sealion:.../one > ebtables -t filter -L
Bridge table: filter

Bridge chain: INPUT, entries: 0, policy: ACCEPT

Bridge chain: FORWARD, entries: 4, policy: ACCEPT
-s ! 2:0:c0:a8:7a:0/ff:ff:ff:ff:ff:0 -o vnet0 -j DROP 
-s ! 2:0:c0:a8:7a:2 -i vnet0 -j DROP 
-s ! 2:0:c0:a8:7a:0/ff:ff:ff:ff:ff:0 -o vnet1 -j DROP 
-s ! 2:0:c0:a8:7a:3 -i vnet1 -j DROP 

Bridge chain: OUTPUT, entries: 0, policy: ACCEPT


root@sealion:.../one > iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source   destination 

Chain FORWARD (policy ACCEPT)
target prot opt source   destination 
TCPMSS tcp  --  anywhere anywhere tcp 
flags:SYN,RST/SYN TCPMSS clamp to PMTU

Chain OUTPUT (policy ACCEPT)
target prot opt source   destination 


root@sealion:.../one > traceroute -nr 192.168.122.2
traceroute to 192.168.122.2 (192.168.122.2), 30

[one-users] ttylinux image from Marketplace fails to boot...

2013-11-13 Thread Mark Biggers
... while a Marketplace "Vyatta V65R1 Router"" (KVM) image, boots just fine.**

Here are the details, below.

   onevnet show 8

VIRTUAL NETWORK 8 INFORMATION   
ID : 8   
NAME   : cloud   
USER   : oneadmin
GROUP  : oneadmin
CLUSTER: -   
TYPE   : RANGED  
BRIDGE : br0 
VLAN   : Yes 
VLAN ID: vnet_default
USED LEASES: 2   

PERMISSIONS 
OWNER  : um- 
GROUP  : --- 
OTHER  : --- 

VIRTUAL NETWORK TEMPLATE
DNS="192.168.1.1"
GATEWAY="192.168.122.1"
ID="3"
NETMASK="255.255.255.0"
NETWORK_ADDRESS="192.168.122.0/24"
NETWORK_MASK="255.255.255.0"

RANGE   
IP_START   : 192.168.122.1   
IP_END : 192.168.122.254 

USED LEASES 
LEASE=[ MAC="02:00:c0:a8:7a:02", IP="192.168.122.2", 
IP6_LINK="fe80::400:c0ff:fea8:7a02", USED="1", VID="27" ]
LEASE=[ MAC="02:00:c0:a8:7a:03", IP="192.168.122.3", 
IP6_LINK="fe80::400:c0ff:fea8:7a03", USED="1", VID="29" ]

VIRTUAL MACHINES

ID USER GROUPNAMESTAT UCPUUMEM HOST TIME
27 oneadmin oneadmin vyatta-router   runn0   1024M host01   0d 02h25
29 oneadmin oneadmin TTY Linux NOW   runn   99256M host01   0d 01h52


   onevm show 29

VIRTUAL MACHINE 29 INFORMATION  
ID  : 29  
NAME: TTY Linux NOW   
USER: oneadmin
GROUP   : oneadmin
STATE   : ACTIVE  
LCM_STATE   : RUNNING 
RESCHED : No  
HOST: host01  
START TIME  : 11/13 11:35:22  
END TIME: -   
DEPLOY ID   : one-29  

VIRTUAL MACHINE MONITORING  
USED MEMORY : 256M
USED CPU: 99  
NET_TX  : 0K  
NET_RX  : 0K  

PERMISSIONS 
OWNER   : um- 
GROUP   : --- 
OTHER   : --- 

VM DISKS
 ID TARGET IMAGE   TYPE SAVE SAVE_AS
  0 vdattylinux - kvm  file   NO   -

VM NICS 
 ID NETWORK  VLAN BRIDGE   IP  MAC  
  0 cloud yes br0  192.168.122.3   02:00:c0:a8:7a:03
   fe80::400:c0ff:fea8:7a03

VIRTUAL MACHINE HISTORY 
SEQ HOSTACTION   REAS   STARTTIME PROLOG
  0 host01  none none  11/13 11:35:30   0d 01h49m   0h00m01s

USER TEMPLATE   
SCHED_REQUIREMENTS="ID=\"5\""

VIRTUAL MACHINE TEMPLATE
CONTEXT=[
  DISK_ID="1",
  ETH0_DNS="192.168.1.1",
  ETH0_GATEWAY="192.168.122.1",
  ETH0_IP="192.168.122.3",
  ETH0_MASK="255.255.255.0",
  ETH0_NETWORK="192.168.122.0/24",
  NETWORK="YES",
  SSH_PUBLIC_KEY="ssh-rsa ...
",
  TARGET="vdb" ]
CPU="0.4"
GRAPHICS=[
  LISTEN="0.0.0.0",
  PORT="5929",
  TYPE="VNC" ]
MEMORY="256"
OS=[
  ARCH="i686",
  BOOT="hd" ]
TEMPLATE_ID="27"
VMID="29"



** That Vyatta VR VM gets no working route to the br0 bridge (another issue), 
and is not pingable at its address from the ONE host (combined host/node, 
developer desktop).

  Should I just forget about getting even basic ONE network (ebtables) working, 
on openSUSE 12.3?  I am getting nowhere with it...  "I Am Not A Network 
Engineer".
The ONE docs assume a lot of Linux NetEngr background, and/or have some 
critical details missing.  -- I will send a follow-up email on this, I need 
spoon-feeding, sorry.


thank you.

Mark Biggers
mbigg...@ine.com
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Failed to create VM.(KVM)

2013-11-13 Thread vishnu e divakaran
datastore image
<>___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Failed to create VM.(KVM)

2013-11-13 Thread vishnu e divakaran
Wed Nov 13 20:29:00 2013 [TM][D]: Message received: TRANSFER SUCCESS 16 -

Wed Nov 13 20:29:00 2013 [VMM][D]: Message received: LOG I 16 ExitCode: 0

Wed Nov 13 20:29:00 2013 [VMM][D]: Message received: LOG I 16
Successfully execute network driver operation: pre.

Wed Nov 13 20:29:01 2013 [VMM][D]: Message received: LOG I 16 Command
execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy
'/var/lib/one/var//datastores/0/16/deployment.0' 'onevmhost' 16
onevmhost

Wed Nov 13 20:29:01 2013 [VMM][D]: Message received: LOG I 16 error:
Failed to create domain from
/var/lib/one/var//datastores/0/16/deployment.0

Wed Nov 13 20:29:01 2013 [VMM][D]: Message received: LOG I 16 error:
Unable to allow access for disk path
/var/lib/one/var//datastores/0/16/disk.0: No such file or directory

Wed Nov 13 20:29:01 2013 [VMM][D]: Message received: LOG E 16 Could
not create domain from /var/lib/one/var//datastores/0/16/deployment.0

Wed Nov 13 20:29:01 2013 [VMM][D]: Message received: LOG I 16 ExitCode: 255

Wed Nov 13 20:29:01 2013 [VMM][D]: Message received: LOG I 16 Failed
to execute virtualization driver operation: deploy.

Wed Nov 13 20:29:01 2013 [VMM][D]: Message received: DEPLOY FAILURE 16
Could not create domain from
/var/lib/one/var//datastores/0/16/deployment.0


i have attached the datastores image

I have created the image in the default datastore... is it theproblem???
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] OpenNebula Puppet module released

2013-11-13 Thread Martin Alfke
Hi Javier,

I already wrote a short article on my blog:
www.unix-freak.org/2013/11/opennebula-puppet-module.html

- Martin

On 08 Nov 2013, at 15:16, Javier Fontan  wrote:

> Thank you! This will make the deployment of OpenNebula much easier.
> 
> Do you want to write a little post in our blog? Maybe we can find some
> other people that can contribute to the module.
> 
> Cheers
> 
> On Fri, Nov 8, 2013 at 2:17 PM, Martin Alfke  wrote:
>> Hi,
>> 
>> my actual project has released our work on an open nebula puppet module:
>> https://github.com/epost-dev/opennebula-puppet-module
>> 
>> The module still needs lots of rework (especially the params.pp needs to get 
>> cleaned up).
>> and adoption to also work nicely with other distributions.
>> (We have done our work on basis of cents 6)
>> 
>> hth,
>> 
>> Martin
>> 
>> ___
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> 
> 
> 
> -- 
> Javier Fontán Muiños
> Developer
> OpenNebula - The Open Source Toolkit for Data Center Virtualization
> www.OpenNebula.org | @OpenNebula | github.com/jfontan

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] LCM Unknown state.

2013-11-13 Thread Ionut Popovici
Qestion it is posible to be limited by sqlite .. because after 44 VM's 
on a host  it happen to see random vm's  on UNKNOWN state but the 
machine is fine and runing fine .

Is someting about monitoring.
If i prepare mysql backend and will restart oned on mysql .. it will 
install database on sql server and runnit as before ?

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] opennebula4.2 with esxi5.1 when install vms faild.

2013-11-13 Thread hansz
hi,
you are so kind to change this guide,could you show me where can i get the new 
guide?
 you mean through the 'vmfs' drivers for the system datastores?or image 
datastores? or both?
cloud you kind enough to show me how can i use opennebula4.2+and esxi  to 
create vms?
thinks 







At 2013-11-13 20:03:37,"Tino Vazquez"  wrote:
>I think a further clarification is in place. OpenNebula 4.0+ supports
>VMware NFS datastores, but through the 'vmfs' drivers, not through the
>'shared' drivers.
>
>Regards,
>
>-Tino
>--
>OpenNebula - Flexible Enterprise Cloud Made Simple
>
>--
>Constantino Vázquez Blanco, PhD, MSc
>Senior Infrastructure Architect at C12G Labs
>www.c12g.com | @C12G | es.linkedin.com/in/tinova
>
>--
>Confidentiality Warning: The information contained in this e-mail and
>any accompanying documents, unless otherwise expressly indicated, is
>confidential and privileged, and is intended solely for the person
>and/or entity to whom it is addressed (i.e. those identified in the
>"To" and "cc" box). They are the property of C12G Labs S.L..
>Unauthorized distribution, review, use, disclosure, or copying of this
>communication, or any part thereof, is strictly prohibited and may be
>unlawful. If you have received this e-mail in error, please notify us
>immediately by e-mail at ab...@c12g.com and delete the e-mail and
>attachments and any copy from your system. C12G thanks you for your
>cooperation.
>
>
>On Wed, Nov 13, 2013 at 10:55 AM, Tino Vazquez  wrote:
>> Hi hansz,
>>
>> The guide you are referring is only meant to be used with OpenNebula 3
>> series (3.8.5 is the latest update). I've updated the text of the
>> guide so this appears more clearly.
>>
>> Since OpenNebula 4.0, there is no support for NFS datastores in VMware.
>>
>> Apologies for the confusion,
>>
>> -Tino
>> --
>> OpenNebula - Flexible Enterprise Cloud Made Simple
>>
>> --
>> Constantino Vázquez Blanco, PhD, MSc
>> Senior Infrastructure Architect at C12G Labs
>> www.c12g.com | @C12G | es.linkedin.com/in/tinova
>>
>> --
>> Confidentiality Warning: The information contained in this e-mail and
>> any accompanying documents, unless otherwise expressly indicated, is
>> confidential and privileged, and is intended solely for the person
>> and/or entity to whom it is addressed (i.e. those identified in the
>> "To" and "cc" box). They are the property of C12G Labs S.L..
>> Unauthorized distribution, review, use, disclosure, or copying of this
>> communication, or any part thereof, is strictly prohibited and may be
>> unlawful. If you have received this e-mail in error, please notify us
>> immediately by e-mail at ab...@c12g.com and delete the e-mail and
>> attachments and any copy from your system. C12G thanks you for your
>> cooperation.
>>
>>
>> On Wed, Nov 13, 2013 at 1:46 AM, hansz  wrote:
>>> hi,
>>> i follow this
>>> http://opennebula.org/cloud:vmware_centos
>>>
>>> share the front-end 's /var/lib/one/datastores/0 and 100 to esxi
>>>
>>>
>>>
>>>
>>> At 2013-11-12 22:24:21,"Tino Vazquez"  wrote:
Hi,

Which guide are you following?

Regards,

-Tino

--
OpenNebula - Flexible Enterprise Cloud Made Simple

--
Constantino Vázquez Blanco, PhD, MSc
Senior Infrastructure Architect at C12G Labs
www.c12g.com | @C12G | es.linkedin.com/in/tinova

--
Confidentiality Warning: The information contained in this e-mail and
any accompanying documents, unless otherwise expressly indicated, is
confidential and privileged, and is intended solely for the person
and/or entity to whom it is addressed (i.e. those identified in the
"To" and "cc" box). They are the property of C12G Labs S.L..
Unauthorized distribution, review, use, disclosure, or copying of this
communication, or any part thereof, is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify us
immediately by e-mail at ab...@c12g.com and delete the e-mail and
attachments and any copy from your system. C12G thanks you for your
cooperation.


On Tue, Nov 12, 2013 at 2:42 PM, hansz  wrote:
> hi,
> a i feel confused,let me make it clearly,
> i use opennebula install on centos6.4(but the server only has i 300G
> disk)
> and esxi5.1 (has 2T disks),i follow the opennebula,
> i shared the front-end's /var/lib/one/datastores/0  and 1  to esxi5.1 use
> nfs,
> and i upload the image from the sunstone ,and then create vms, although
> the
> images and vms storages on the esxi's  /vmfs/volumes/0 and 1 but Actually
> it
> use the front-end's space storage these.and my centos server will full
> soon,
> what i want is that ,i can use the esxi's2T space to storage the images
> or
> vms ?
> can i do like this? how?  i make it clearier? hope so.
>
>
>
>
>
>
> At 2013-11-12 19:08:04,"Tino Vazquez"  wrote:
>>Hi,
>>
>>There must be some misunderstanding

Re: [one-users] Sunstone image upload not working - images not in tmpdir

2013-11-13 Thread Stefan Kooman
Quoting Daniel Molina (dmol...@opennebula.org):
> Hi Stefan,
 
> Could you try exporting the $TMPDIR var before starting the passenger
> processes?
> 
> This is the code that generates the temp file (sunstone-server.rb):
> tmpfile = Tempfile.open('sunstone-upload')
> 
> by default, it uses Dir.tmpdir as temp dir and this method checks the env
> var TMPDIR.  This variable is defined in the sunstone-server script, but
> Apache do not use this script to start new server instances
> 
> You can also specify it as a parameter in the code:
> tmpfile = Tempfile.open('sunstone-upload', '/mnt/sunstone_upload')

I've tried this and that works, i.e. the image gets uploaded and stored
in /mnt/sunstone_upload directory. However, something goes wrong copying
the file to the datastore. The file is empty (0 bytes). Here some logging:

sunstone.log:
[13/Nov/2013 12:19:28] "POST /upload?img=%7B%22i
mage%22%3A%7B%22NAME%22%3A%22ubuntu_saucy%22%2C%22TYPE%22%3A%22CDROM%22%2C%22PERSISTENT%22%3A%22NO%22%7D%2C%22ds_id%2
2%3A%22105%22%7D&file=ubuntu-13.10-server-amd64.iso&qqfile=ubuntu-13.10-server-amd64.iso
" 201 910 11.8890

oned.log:

Wed Nov 13 12:19:23 2013 [ReM][D]: Req:8352 UID:0 ImageAllocate invoked,
"NAME="ubuntu_saucy"...", 105
Wed Nov 13 12:19:23 2013 [ImM][I]: Copying
/mnt/sunstone_upload/sunstone-upload20131113-23887-1gdh6b2 to repository
for image 22
Wed Nov 13 12:19:23 2013 [ReM][D]: Req:8352 UID:0 ImageAllocate result
SUCCESS, 22
Wed Nov 13 12:19:23 2013 [ReM][D]: Req:8624 UID:0 ImageInfo invoked, 22
Wed Nov 13 12:19:23 2013 [ReM][D]: Req:8624 UID:0 ImageInfo result
SUCCESS, "22 Hope this helps
It sure does help but I'm not there yet :).

How can I debug this final step (copy from tempdir to datastore)?

Thanks,

Stefan


-- 
| BIT BV  http://www.bit.nl/Kamer van Koophandel 09090351
| GPG: 0xD14839C6   +31 318 648 688 / i...@bit.nl


signature.asc
Description: Digital signature
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] opennebula4.2 with esxi5.1 when install vms faild.

2013-11-13 Thread Tino Vazquez
I think a further clarification is in place. OpenNebula 4.0+ supports
VMware NFS datastores, but through the 'vmfs' drivers, not through the
'shared' drivers.

Regards,

-Tino
--
OpenNebula - Flexible Enterprise Cloud Made Simple

--
Constantino Vázquez Blanco, PhD, MSc
Senior Infrastructure Architect at C12G Labs
www.c12g.com | @C12G | es.linkedin.com/in/tinova

--
Confidentiality Warning: The information contained in this e-mail and
any accompanying documents, unless otherwise expressly indicated, is
confidential and privileged, and is intended solely for the person
and/or entity to whom it is addressed (i.e. those identified in the
"To" and "cc" box). They are the property of C12G Labs S.L..
Unauthorized distribution, review, use, disclosure, or copying of this
communication, or any part thereof, is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify us
immediately by e-mail at ab...@c12g.com and delete the e-mail and
attachments and any copy from your system. C12G thanks you for your
cooperation.


On Wed, Nov 13, 2013 at 10:55 AM, Tino Vazquez  wrote:
> Hi hansz,
>
> The guide you are referring is only meant to be used with OpenNebula 3
> series (3.8.5 is the latest update). I've updated the text of the
> guide so this appears more clearly.
>
> Since OpenNebula 4.0, there is no support for NFS datastores in VMware.
>
> Apologies for the confusion,
>
> -Tino
> --
> OpenNebula - Flexible Enterprise Cloud Made Simple
>
> --
> Constantino Vázquez Blanco, PhD, MSc
> Senior Infrastructure Architect at C12G Labs
> www.c12g.com | @C12G | es.linkedin.com/in/tinova
>
> --
> Confidentiality Warning: The information contained in this e-mail and
> any accompanying documents, unless otherwise expressly indicated, is
> confidential and privileged, and is intended solely for the person
> and/or entity to whom it is addressed (i.e. those identified in the
> "To" and "cc" box). They are the property of C12G Labs S.L..
> Unauthorized distribution, review, use, disclosure, or copying of this
> communication, or any part thereof, is strictly prohibited and may be
> unlawful. If you have received this e-mail in error, please notify us
> immediately by e-mail at ab...@c12g.com and delete the e-mail and
> attachments and any copy from your system. C12G thanks you for your
> cooperation.
>
>
> On Wed, Nov 13, 2013 at 1:46 AM, hansz  wrote:
>> hi,
>> i follow this
>> http://opennebula.org/cloud:vmware_centos
>>
>> share the front-end 's /var/lib/one/datastores/0 and 100 to esxi
>>
>>
>>
>>
>> At 2013-11-12 22:24:21,"Tino Vazquez"  wrote:
>>>Hi,
>>>
>>>Which guide are you following?
>>>
>>>Regards,
>>>
>>>-Tino
>>>
>>>--
>>>OpenNebula - Flexible Enterprise Cloud Made Simple
>>>
>>>--
>>>Constantino Vázquez Blanco, PhD, MSc
>>>Senior Infrastructure Architect at C12G Labs
>>>www.c12g.com | @C12G | es.linkedin.com/in/tinova
>>>
>>>--
>>>Confidentiality Warning: The information contained in this e-mail and
>>>any accompanying documents, unless otherwise expressly indicated, is
>>>confidential and privileged, and is intended solely for the person
>>>and/or entity to whom it is addressed (i.e. those identified in the
>>>"To" and "cc" box). They are the property of C12G Labs S.L..
>>>Unauthorized distribution, review, use, disclosure, or copying of this
>>>communication, or any part thereof, is strictly prohibited and may be
>>>unlawful. If you have received this e-mail in error, please notify us
>>>immediately by e-mail at ab...@c12g.com and delete the e-mail and
>>>attachments and any copy from your system. C12G thanks you for your
>>>cooperation.
>>>
>>>
>>>On Tue, Nov 12, 2013 at 2:42 PM, hansz  wrote:
 hi,
 a i feel confused,let me make it clearly,
 i use opennebula install on centos6.4(but the server only has i 300G
 disk)
 and esxi5.1 (has 2T disks),i follow the opennebula,
 i shared the front-end's /var/lib/one/datastores/0  and 1  to esxi5.1 use
 nfs,
 and i upload the image from the sunstone ,and then create vms, although
 the
 images and vms storages on the esxi's  /vmfs/volumes/0 and 1 but Actually
 it
 use the front-end's space storage these.and my centos server will full
 soon,
 what i want is that ,i can use the esxi's2T space to storage the images
 or
 vms ?
 can i do like this? how?  i make it clearier? hope so.






 At 2013-11-12 19:08:04,"Tino Vazquez"  wrote:
>Hi,
>
>There must be some misunderstanding. The OpenNebula front-end _cannot_
>have a access to a vmfs system datastore (or vmfs image datastore, for
>that matter).
>
>Regards,
>
>-Tino
>--
>OpenNebula - Flexible Enterprise Cloud Made Simple
>
>--
>Constantino Vázquez Blanco, PhD, MSc
>Senior Infrastructure Architect at C12G Labs
>www.c12g.com | @C12G | es.linkedin.com/in/tinova
>
>--
>Confidentiality Warning: The information contained in this

Re: [one-users] Various issues novnc-server / websockify

2013-11-13 Thread Daniel Molina
Hi Stefan,

comments inline

On 13 November 2013 10:11, Stefan Kooman  wrote:

> Hi list,
>
> Currently there is no option to enable IPv6 for novnc-server
> (websockify) although websockify supports this. I've made a little
> (dirty) hack to enable IPv6 for websockify:
>
> --- /root/OpenNebulaVNC.rb  2013-11-08 21:37:13.958535135 +0100
> +++ /usr/lib/one/ruby/OpenNebulaVNC.rb  2013-11-09 22:08:12.951812886 +0100
> @@ -70,7 +70,7 @@
>
>  @pipe = nil
>  @token_folder = File.join(VAR_LOCATION, opts[:token_folder_name])
> -@proxy_path   = File.join(SHARE_LOCATION,
> "websockify/websocketproxy.py")
> +@proxy_path   = File.join(SHARE_LOCATION,
> "websockify/websocketproxy.py -6")
>  @proxy_port   = config[:vnc_proxy_port]
>
>  @wss = config[:vnc_proxy_support_wss]
>
> If sunstone is reachable over IPv6 your clients might want to reach the
> websockify port over IPv6 as well, if they want to make a VNC
> connection. It would be nice to have a config option in
> sunstone-server.conf to influence this behaviour (i.e :vnc_proxy_ipv6:
> yes/no).
>
>
It makes sense, I have created a ticket to add this parameter
http://dev.opennebula.org/issues/2454



> One of the hints in documentation [1] debugging novnc-server /
> websockify is to run it on a console. But if you do this sunstone will
> give an error message "VNC server is not running" and will refuse to
> initiate a vnc session. Sure, you can hack your way around this but it
> would be nice if either the check in OpenNebulaVNC.rb would be adjusted
> to figure out if there's really nothing listening on vnc port (instead
> of depending on lock file) or include a "debug" option so it skips this
> check altogether.
>

Yes, the documentation should include that you have to generate the lock
file, otherwise the sunstone-server will not work, or modify the code to
include one of your suggestions. (patches are more than welcome)


>
> Another thing biting me are the functions in OpenNebulaVNC.rb creating
> and removing the sunstone_vnc_tokens directory. The directory is created
> with oneadmin as owner and group. If you're running sunstone with Apache
> Passenger it depends on the user you're running passenger with if it's
> able to write new tokens or not. Documentation assumes passenger runs
> as user www-data [2] (although you can easily change that). With the
> default configuration passenger is not allowed to write tokens in that
> directory and an error will be thrown. It would be nice if OpenNebulaVNC
> could check what user passenger runs as, and create the directory
> accordingly. What is the reason this directory should be created "on the
> fly"
> anyway? It seems to complicate things a bit.
>

You are right, the dir should not be recreated if it already exists
http://dev.opennebula.org/issues/2455


>
> Finally, when running "websockify" on command line in "debug" mode it
> gives the
> folllowing warning:
>
> "WARNING: no 'numpy' module, HyBi protocol is slower or disabled
> WebSocket server settings"
>
> Is python-numpy indeed a "performance accelerator" in this case? If so,
> I think this should be (at least) a (recommended) dependency for
> sunstone. Documentation does mention python-numby so I guess it does
> help [1].
>

Yes, it is recommended since it uses some optimized C code instead of
python. I will include it in the docs.

Thank you for your great feedback


>
> Cheers,
>
> Stefan
>
> [1]: http://opennebula.org/documentation:rel4.2:sunstone
> [2]: http://opennebula.org/documentation:rel4.2:suns_advance
>
>
> --
> | BIT BV  http://www.bit.nl/Kamer van Koophandel 09090351
> | GPG: 0xD14839C6   +31 318 648 688 / i...@bit.nl
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iF4EAREIAAYFAlKDQkEACgkQTyGgYdFIOcZeLAEAiRmrySJ9GHtyVjyIepIJ77ct
> 2abudHSLdsPLFzXNavcBAJ3SQn5mFkOtZCBSx9KehF16/HqMpA7Hh0D4SebulA4q
> =IJTP
> -END PGP SIGNATURE-
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] opennebula4.2 with esxi5.1 when install vms faild.

2013-11-13 Thread Tino Vazquez
Hi hansz,

The guide you are referring is only meant to be used with OpenNebula 3
series (3.8.5 is the latest update). I've updated the text of the
guide so this appears more clearly.

Since OpenNebula 4.0, there is no support for NFS datastores in VMware.

Apologies for the confusion,

-Tino
--
OpenNebula - Flexible Enterprise Cloud Made Simple

--
Constantino Vázquez Blanco, PhD, MSc
Senior Infrastructure Architect at C12G Labs
www.c12g.com | @C12G | es.linkedin.com/in/tinova

--
Confidentiality Warning: The information contained in this e-mail and
any accompanying documents, unless otherwise expressly indicated, is
confidential and privileged, and is intended solely for the person
and/or entity to whom it is addressed (i.e. those identified in the
"To" and "cc" box). They are the property of C12G Labs S.L..
Unauthorized distribution, review, use, disclosure, or copying of this
communication, or any part thereof, is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify us
immediately by e-mail at ab...@c12g.com and delete the e-mail and
attachments and any copy from your system. C12G thanks you for your
cooperation.


On Wed, Nov 13, 2013 at 1:46 AM, hansz  wrote:
> hi,
> i follow this
> http://opennebula.org/cloud:vmware_centos
>
> share the front-end 's /var/lib/one/datastores/0 and 100 to esxi
>
>
>
>
> At 2013-11-12 22:24:21,"Tino Vazquez"  wrote:
>>Hi,
>>
>>Which guide are you following?
>>
>>Regards,
>>
>>-Tino
>>
>>--
>>OpenNebula - Flexible Enterprise Cloud Made Simple
>>
>>--
>>Constantino Vázquez Blanco, PhD, MSc
>>Senior Infrastructure Architect at C12G Labs
>>www.c12g.com | @C12G | es.linkedin.com/in/tinova
>>
>>--
>>Confidentiality Warning: The information contained in this e-mail and
>>any accompanying documents, unless otherwise expressly indicated, is
>>confidential and privileged, and is intended solely for the person
>>and/or entity to whom it is addressed (i.e. those identified in the
>>"To" and "cc" box). They are the property of C12G Labs S.L..
>>Unauthorized distribution, review, use, disclosure, or copying of this
>>communication, or any part thereof, is strictly prohibited and may be
>>unlawful. If you have received this e-mail in error, please notify us
>>immediately by e-mail at ab...@c12g.com and delete the e-mail and
>>attachments and any copy from your system. C12G thanks you for your
>>cooperation.
>>
>>
>>On Tue, Nov 12, 2013 at 2:42 PM, hansz  wrote:
>>> hi,
>>> a i feel confused,let me make it clearly,
>>> i use opennebula install on centos6.4(but the server only has i 300G
>>> disk)
>>> and esxi5.1 (has 2T disks),i follow the opennebula,
>>> i shared the front-end's /var/lib/one/datastores/0  and 1  to esxi5.1 use
>>> nfs,
>>> and i upload the image from the sunstone ,and then create vms, although
>>> the
>>> images and vms storages on the esxi's  /vmfs/volumes/0 and 1 but Actually
>>> it
>>> use the front-end's space storage these.and my centos server will full
>>> soon,
>>> what i want is that ,i can use the esxi's2T space to storage the images
>>> or
>>> vms ?
>>> can i do like this? how?  i make it clearier? hope so.
>>>
>>>
>>>
>>>
>>>
>>>
>>> At 2013-11-12 19:08:04,"Tino Vazquez"  wrote:
Hi,

There must be some misunderstanding. The OpenNebula front-end _cannot_
have a access to a vmfs system datastore (or vmfs image datastore, for
that matter).

Regards,

-Tino
--
OpenNebula - Flexible Enterprise Cloud Made Simple

--
Constantino Vázquez Blanco, PhD, MSc
Senior Infrastructure Architect at C12G Labs
www.c12g.com | @C12G | es.linkedin.com/in/tinova

--
Confidentiality Warning: The information contained in this e-mail and
any accompanying documents, unless otherwise expressly indicated, is
confidential and privileged, and is intended solely for the person
and/or entity to whom it is addressed (i.e. those identified in the
"To" and "cc" box). They are the property of C12G Labs S.L..
Unauthorized distribution, review, use, disclosure, or copying of this
communication, or any part thereof, is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify us
immediately by e-mail at ab...@c12g.com and delete the e-mail and
attachments and any copy from your system. C12G thanks you for your
cooperation.


On Tue, Nov 12, 2013 at 11:23 AM, hansz  wrote:
> hi,
>
> i mean if i cloud use esxi's storage space to  storage the front-end's
> system datastores?
>
>
>
>
>
>
>
> At 2013-11-12 18:04:10,"Tino Vazquez"  wrote:
>>Hi,
>>
>>>  as for my front-end has a limited storage.
>>
>>
>>Not sure if I follow correctly, the front-end cannot access any VMFS
>> volume.
>>
>>OpenNebula currently supports only shared vmfs system datastores.
>>
>>Regards,
>>
>>-Tino
>>
>>--
>

Re: [one-users] Sunstone image upload not working - images not in tmpdir

2013-11-13 Thread Daniel Molina
Hi Stefan,


On 13 November 2013 08:57, Stefan Kooman  wrote:

> Hi List,
>
> I'm a bit puzzled. I have a set of load-balanced sunstone nodes with
> ":tmpdir" set to "/mnt/sunstone_upload". This is an nfs share accessible
> by both "front-end" and "sunstone" nodes. If I upload an image it fails
> like this (from oned.log):
>
> Tue Nov 12 22:26:02 2013 [ReM][D]: Req:3824 UID:0 ImageAllocate invoked,
> "NAME="ubuntu_saucy"...", 105
> Tue Nov 12 22:26:02 2013 [ImM][I]: Command execution fail:
> /var/lib/one/remotes/datastore/fs/stat
>
> PERTX0RSSVZFUl9BQ1RJT05fREFUQT48SU1BR0U+PFBBVEg+L3RtcC9zdW5zdG9uZS11cGxvYWQyMDEzMTExMi0xMzUyLTFtNWlmcHg8L1BBVEg+PC9JT
>
> UFHRT48REFUQVNUT1JFPjxJRD4xMDU8L0lEPjxVSUQ+MDwvVUlEPjxHSUQ+MDwvR0lEPjxVTkFNRT5vbmVhZG1pbjwvVU5BTUU+PEdOQU1FPm9uZWFkbW
>
> luPC9HTkFNRT48TkFNRT5pbWFnZXNfZHNfMV9rdm1fY2x1c3RlcjwvTkFNRT48UEVSTUlTU0lPTlM+PE9XTkVSX1U+MTwvT1dORVJfVT48T1dORVJfTT4
>
> xPC9PV05FUl9NPjxPV05FUl9BPjA8L09XTkVSX0E+PEdST1VQX1U+MTwvR1JPVVBfVT48R1JPVVBfTT4wPC9HUk9VUF9NPjxHUk9VUF9BPjA8L0dST1VQ
>
> X0E+PE9USEVSX1U+MDwvT1RIRVJfVT48T1RIRVJfTT4wPC9PVEhFUl9NPjxPVEhFUl9BPjA8L09USEVSX0E+PC9QRVJNSVNTSU9OUz48RFNfTUFEPmZzP
>
> C9EU19NQUQ+PFRNX01BRD5zaGFyZWQ8L1RNX01BRD48QkFTRV9QQVRIPi92YXIvbGliL29uZS8vZGF0YXN0b3Jlcy8xMDU8L0JBU0VfUEFUSD48VFlQRT
>
> 4wPC9UWVBFPjxESVNLX1RZUEU+MDwvRElTS19UWVBFPjxDTFVTVEVSX0lEPjEwMDwvQ0xVU1RFUl9JRD48Q0xVU1RFUj5LVk08L0NMVVNURVI+PFRPVEF
>
> MX01CPjk5NjE0ODwvVE9UQUxfTUI+PEZSRUVfTUI+OTQyODAwPC9GUkVFX01CPjxVU0VEX01CPjE8L1VTRURfTUI+PElNQUdFUz48L0lNQUdFUz48VEVN
>
> UExBVEU+PERTX01BRD48IVtDREFUQVtmc11dPjwvRFNfTUFEPjxUTV9NQUQ+PCFbQ0RBVEFbc2hhcmVkXV0+PC9
>
> UTV9NQUQ+PFRZUEU+PCFbQ0RBVEFbSU1BR0VfRFNdXT48L1RZUEU+PC9URU1QTEFURT48L0RBVEFTVE9SRT48L0RTX0RSSVZFUl9BQ1RJT05fREFUQT4=
> 11178
> Tue Nov 12 22:26:02 2013 [ImM][I]: stat: cannot stat
> '/tmp/sunstone-upload20131112-1352-1m5ifpx': No such file or directory
> Tue Nov 12 22:26:02 2013 [ImM][E]: stat: Cannot determine size for
> /tmp/sunstone-upload20131112-1352-1m5ifpx
>
> It's trying to stat the file in /tmp while the tempdir should be
> "/mnt/sunstone_upload". The file does not apear in /tmp, /var/tmp on the
> sunstone nodes either.
>
> Sunstone nodes are running sunstone with Apache Passenger, running as
> "www-data" user. Permissions on /mnt/sunstone_upload are as follow:
>
> drwxrwxr-x 2 www-data oneadmin 4096 Nov 12 22:09 sunstone_upload
>
> Any hints?
>


Could you try exporting the $TMPDIR var before starting the passenger
processes?

This is the code that generates the temp file (sunstone-server.rb):
tmpfile = Tempfile.open('sunstone-upload')

by default, it uses Dir.tmpdir as temp dir and this method checks the env
var TMPDIR.  This variable is defined in the sunstone-server script, but
Apache do not use this script to start new server instances

You can also specify it as a parameter in the code:
tmpfile = Tempfile.open('sunstone-upload', '/mnt/sunstone_upload')

Hope this helps


>
> Thanks,
>
> Stefan
>
> P.s. I did apply patch http://dev.opennebula.org/issues/2407
>
>
> --
> | BIT BV  http://www.bit.nl/Kamer van Koophandel 09090351
> | GPG: 0xD14839C6   +31 318 648 688 / i...@bit.nl
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iF4EAREIAAYFAlKDMNQACgkQTyGgYdFIOcYGYQD9FD/dfdHhWJdqgU9dI6huVnQx
> +ybFuGMhIU5waGUyrnMA/0kBHhX7Ejx3CzhYfbdIjpIBY0AdaVD57Gf7UVo+/nWm
> =qysQ
> -END PGP SIGNATURE-
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Sunstone redundant memcached setup

2013-11-13 Thread Stefan Kooman
Hi List,

If you have a setup consisting of more than one "front-end" server I
think it would make sense to be able to specify more than one memcached
server in sunstone. If for one reason or another a memcached server is
not available anymore it can automatically try the next one configured
(after $timeout value). Building this funtionality directly into
sunstone gives you the benefit of "redundant" memcached servers without
the need for cluster software taking care of this. If you let sunstone
server A point to memcached server A (primary) and memached server B
(secondary) and sunstone server B point to memcached server B (primary)
and memcached server A (secondary) you've doubled the available
memcached capacity during normal operations.

Are there any reasons _not_ to use two different (active) memcached
servers?

Cheers,

Stefan


-- 
| BIT BV  http://www.bit.nl/Kamer van Koophandel 09090351
| GPG: 0xD14839C6   +31 318 648 688 / i...@bit.nl


signature.asc
Description: Digital signature
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Various issues novnc-server / websockify

2013-11-13 Thread Stefan Kooman
Hi list,

Currently there is no option to enable IPv6 for novnc-server
(websockify) although websockify supports this. I've made a little
(dirty) hack to enable IPv6 for websockify:

--- /root/OpenNebulaVNC.rb  2013-11-08 21:37:13.958535135 +0100
+++ /usr/lib/one/ruby/OpenNebulaVNC.rb  2013-11-09 22:08:12.951812886 +0100
@@ -70,7 +70,7 @@
 
 @pipe = nil
 @token_folder = File.join(VAR_LOCATION, opts[:token_folder_name])
-@proxy_path   = File.join(SHARE_LOCATION, 
"websockify/websocketproxy.py")
+@proxy_path   = File.join(SHARE_LOCATION, 
"websockify/websocketproxy.py -6")
 @proxy_port   = config[:vnc_proxy_port]
 
 @wss = config[:vnc_proxy_support_wss]

If sunstone is reachable over IPv6 your clients might want to reach the
websockify port over IPv6 as well, if they want to make a VNC
connection. It would be nice to have a config option in
sunstone-server.conf to influence this behaviour (i.e :vnc_proxy_ipv6:
yes/no).

One of the hints in documentation [1] debugging novnc-server /
websockify is to run it on a console. But if you do this sunstone will
give an error message "VNC server is not running" and will refuse to
initiate a vnc session. Sure, you can hack your way around this but it
would be nice if either the check in OpenNebulaVNC.rb would be adjusted
to figure out if there's really nothing listening on vnc port (instead
of depending on lock file) or include a "debug" option so it skips this
check altogether.

Another thing biting me are the functions in OpenNebulaVNC.rb creating
and removing the sunstone_vnc_tokens directory. The directory is created
with oneadmin as owner and group. If you're running sunstone with Apache
Passenger it depends on the user you're running passenger with if it's
able to write new tokens or not. Documentation assumes passenger runs
as user www-data [2] (although you can easily change that). With the
default configuration passenger is not allowed to write tokens in that
directory and an error will be thrown. It would be nice if OpenNebulaVNC
could check what user passenger runs as, and create the directory
accordingly. What is the reason this directory should be created "on the fly"
anyway? It seems to complicate things a bit.

Finally, when running "websockify" on command line in "debug" mode it gives the
folllowing warning:

"WARNING: no 'numpy' module, HyBi protocol is slower or disabled
WebSocket server settings"

Is python-numpy indeed a "performance accelerator" in this case? If so,
I think this should be (at least) a (recommended) dependency for
sunstone. Documentation does mention python-numby so I guess it does
help [1].

Cheers,

Stefan

[1]: http://opennebula.org/documentation:rel4.2:sunstone
[2]: http://opennebula.org/documentation:rel4.2:suns_advance


-- 
| BIT BV  http://www.bit.nl/Kamer van Koophandel 09090351
| GPG: 0xD14839C6   +31 318 648 688 / i...@bit.nl


signature.asc
Description: Digital signature
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org