Re: [one-users] Haven't authorized while using Java API

2012-11-26 Thread Hoàng Thái Xuân Khoa

On 11/25/2012 10:33 PM, Giovanni Toraldo wrote:

Hi Giovanni,

Thanks you so much for your reply.

if you instance Client without parameters, will be assumed to be at 
$ONE_AUTH, and the endpoint will be set to the environment variable 
$ONE_XMLRPC. 
I set the environment variable $ONE_AUTH and $ONE_XMLRPC when i managed 
private cloud. Here is the result in the command line:

/root@cluster:~# echo $ONE_AUTH//
///var/lib/one/.one/one_auth//
//root@cluster:~# echo $ONE_XMLRPC//
//http://localhost:2633/RPC2//
/
You may want to instance Client with: Client client = new 
Client(oneadmin:password,http://localhost:2633/RPC2;); 

I tried your solution but i got the same error:
/Client client = new Client(oneadmin:7f44b494160f2e69fed6c21b2ce555b8, 
http://localhost:2633/RPC2;);/
/Error message: [HostPoolInfo] User couldn't be authenticated, aborting 
call./


My password is correct because i used it to log on to SunStone Server 
successfully. When i entered http://localhost:2633/RPC2 address in the 
browser, it returned a message:

Error 405
POST is the only HTTP method this server understands

I don't know where i was wrong. Can you give me a hint to solve this 
problem?


Thanks you in advance.

--
Hoang Thai Xuan Khoa
Ho Chi Minh city, Vietnam

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


Re: [one-users] Haven't authorized while using Java API

2012-11-26 Thread Giovanni Toraldo
On Mon, Nov 26, 2012 at 10:43 AM, Hoàng Thái Xuân Khoa
htxuank...@gmail.com wrote:
 Client client = new Client(oneadmin:7f44b494160f2e69fed6c21b2ce555b8,
 http://localhost:2633/RPC2;);

This looks like an md5 hash, you should put your *real* password instead.

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


Re: [one-users] failed to attached disk in KVM

2012-11-26 Thread Javier Fontan
I can not reproduce this problem in 3.8.1. Try to add DRIVER=raw to
the image before attaching it.

2012/11/24 jd daniel ch juni...@gmail.com:
 Hello there,

 Scenario: OpenNebula 3.6+CentOS 6.3x86_64bit

 Issues: When I attached Disk (Type: Existing Image; Device prefix: sd) on my
 VM. Image created dev prefix is sd, target is sdb.

 Error log below when I attached the disk -

 Fri Nov 23 16:54:50 2012 [VMM][I]: Successfully execute transfer manager
 driver operation: tm_attach.
 Fri Nov 23 16:54:51 2012 [VMM][I]: Command execution fail:
 /var/tmp/one/vmm/kvm/attach_disk one-305
 /var/lib/one//datastores/0/305/disk.2 sdb 1
 

Re: [one-users] Save As and Detach option

2012-11-26 Thread Roberto Rosende Dopazo

Hi Javier,

Comments inline,

El 23/11/12 11:08, Javier Fontan escribió:

Image ownership can be changed by the hypervisor (kvm) when it is
configured with dynamic_ownership=1. Is that the case?

It didn't now it's fixed


Are you using the same datastores for both tests, raw and qcow2?

Yes, I'm using the same


Save as marks a disk to be saved AFTER shutdown. So that is the normal
way of working. In fact it will only be save if the VM is powered off
using SHUTDOWN or CANCEL but not DELETE.

The last test, when the image seems to ve saved but in fact it is not
there, seems a bit more problematic. Can you please dig a bit in
oned.log to check if there was something strange copying that file?


With dynamic_ownership=1 save as create a new image entry with
Source /var/lib/one/datastores/100/a3e076f377a855dc76f44ac373c9b0ca

After shutdown owner and group are ok and in log:

# grep -n5 a3e076f377a855dc76f44ac373c9b0ca /var/log/one/oned.log
426622-Mon Nov 26 14:06:42 2012 [ImM][I]: Creating disk at  of 2216Mb 
(type: save_as)
426623-Mon Nov 26 14:06:42 2012 [ReM][D]: Req:1584 UID:10 
VirtualMachineSaveDisk result SUCCESS, 25
426624-Mon Nov 26 14:06:42 2012 [ImG][D]: Message received: LOG I 25 
ExitCode: 0

426625-
426626-Mon Nov 26 14:06:42 2012 [ImM][I]: ExitCode: 0
426627:Mon Nov 26 14:06:42 2012 [ImG][D]: Message received: MKFS SUCCESS 
25 /var/lib/one/datastores/100/a3e076f377a855dc76f44ac373c9b0ca

426628-
426629-Mon Nov 26 14:06:42 2012 [ReM][D]: Req:4256 UID:10 
VirtualMachineInfo invoked, 123
426630-Mon Nov 26 14:06:42 2012 [ReM][D]: Req:4256 UID:10 
VirtualMachineInfo result SUCCESS, VMID123/IDUID...
426631-Mon Nov 26 14:06:44 2012 [ReM][D]: Req:3104 UID:2 
VirtualNetworkPoolInfo invoked, -2, -1, -1
426632-Mon Nov 26 14:06:44 2012 [ReM][D]: Req:3104 UID:2 
VirtualNetworkPoolInfo result SUCCESS, VNET_POOLVNETID...



But file /var/lib/one/datastores/100/a3e076f377a855dc76f44ac373c9b0ca 
doesn't exist


While in Sunstone new image appears as LOCKED

After delete machine image state is showed as READY in Sunstone.
In dom0 deployment dir and file are still present and disk files disk.0 
and disk.1 have their user and group changed to root.root and image file 
doesn't exist

A new file appears
# file /var/lib/one/datastores/0/123/checkpoint
/var/lib/one/datastores/0/123/checkpoint: data

Also with root.root but 666 file permission and in this case directory 
and files of this machine are never deleted from running datastore



Cheers,
 Roberto




Cheers

On Wed, Nov 21, 2012 at 12:02 PM, Roberto Rosende Dopazo
rrose...@cesga.es wrote:

Hi,

I'm trying with OpenNebula 3.8 Save As and Detach option and I found some
problems.

With raw image:
I start virtual machine, save changes from Sunstone and I saw that nothing
happens until I press shutdown for that machine.
Then system try an mv from deploy.0 file to main datastore, but it can't
because when shutdown is pressed owner and group for deploy.0 are changed to
root.root

With qcow2 image:
I start virtual machine, save changes from Sunstone and I saw that nothing
happens until I press shutdown for that machine.
Then I can see in Images section a new image with changes and in its
information a Source tag with physical path in datastore. If I check that path
file image doesn't exist but there is not any error, Sunstone show it as READY
In this case owner and group of deploy.0 are not changed.

Do you have any hint or documentation about that?

Cheers,
  Roberto


--
Roberto Rosende Dopazo
CESGA
Avda. de Vigo s/n. Campus Vida
Tel.: (+34) 981569810, ext. 229
15705 - Santiago de Compostela
SPAIN
-
Follow CESGA in Twitter:
  https://twitter.com/#!/CESGA_

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





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


[one-users] Opennebula on Slackware

2012-11-26 Thread Guilherme Guimaraes
There is OpenNebula installation on Slackware as my infrastructure
contains this
OS

-- 
*Atenciosamente,
Guilherme B. Guimarães*
*Mestrando em Ciência da Computação - PPGCC/UFPA*
*Especialista em desenvovilemento para Internet - UFPA
Bacharel em Ciência da Computação - UNAMA *
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] New Tools to Get Started with OpenNebula

2012-11-26 Thread Tino Vazquez
Dear users,

Just a line to let you know that there is a new member in the
OpenNebula Sandbox family. The newcomer is prepared to be run on top
of ESX hypervisors

 http://opennebula.org/cloud:sandboxesx

Hope you like it,

-Tino

--
Constantino Vázquez Blanco, PhD, MSc
Project Engineer
OpenNebula - The Open-Source Solution for Data Center Virtualization
www.OpenNebula.org | @tinova79 | @OpenNebula


On Thu, Nov 22, 2012 at 4:56 PM, Tino Vazquez tin...@opennebula.org wrote:
 Dear users,

 We are putting forward a set of efforts to ease the path for newcomers
 willing to try out OpenNebula [1].

 For starters, we are creating a new set of OpenNebula Sandboxes that
 will enable users to launch a complete cloud in 5 minutes in their
 laptops, following a minimal set of steps. We have currently prepared
 KVM [2] and VirtualBox [3] Sandboxes, and an Amazon EC2 AMI is under
 way.

 We will be gradually shutdown the previous try out mechanisms, like
 the VMware and previous KVM Sandbox, as well as the demo public cloud.
 More information in the OpenNebula blog [4].

 Best regards,

 The OpenNebula Team

 [1] http://opennebula.org/cloud:tryout
 [2] http://opennebula.org/cloud:sandboxkvm
 [3] http://opennebula.org/cloud:sandboxvirtualbox
 [4] http://blog.opennebula.org/?p=3794

 --
 Constantino Vázquez Blanco, PhD, MSc
 Project Engineer
 OpenNebula - The Open-Source Solution for Data Center Virtualization
 www.OpenNebula.org | @tinova79 | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Info noVNC

2012-11-26 Thread Duverne, Cyrille
Dear ONE users,

It seems that noVNC and 3.8 are trendy topics these days :)

I've followed the troubleshooting section of noVNC in the doc, but I
can't access my VMs through it : VNC icon remains grey

- Template includes a GRAPHICS section :
GRAPHICS=[
  LISTEN=0.0.0.0,
  TYPE=VNC ]

- VMs created in 3.6 don't show anything in the logs, unlike the ones
created in 3.8 :
Mon Nov 26 22:59:31 2012 [VMM][I]: Generating deployment file:
/var/lib/one/224/deployment.0 Mon Nov 26 22:59:31 2012 [VMM][W]:
Graphics not supported or undefined, ignored.

- I checked the noVNC installation and found that numpy was missing, I
installed it and relaunched the novnc_install script

- I tried to launch the websockify command with oneadmin and I get the
following error :

oneadmin@inferno:/home/manager$ python
/usr/share/opennebula/websockify/websocketproxy.py
--target-config=/var/lib/one/sunstone_vnc_tokens
Traceback (most recent call last):
File /usr/share/opennebula/websockify/websocketproxy.py, line 390,
in 
websockify_init()
File /usr/share/opennebula/websockify/websocketproxy.py, line 364,
in websockify_init
if args[0].count(':')  0:
IndexError: list index out of range

I'm using KVM as hypervisor.

Any help on this ?

Thanks in advance
CyD


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


[one-users] upgrade to latest from 1.4

2012-11-26 Thread Seth Daniel
Hello,

I have a (very) old installation of several hundred VMs that are still
being managed by ONE 1.4.  Based on the docs I have seen I am assuming I
need to upgrade to 2.x and then to 3.x from 2.x.  Is this assumption
correct and where can I download older versions of ONE?  The ONE website
only seems to have recent downloads available.

Thank you.
-- 
seth /\ sethdaniel.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Haven't authorized while using Java API

2012-11-26 Thread Hoàng Thái Xuân Khoa

On 11/26/2012 4:47 PM, Giovanni Toraldo wrote:

On Mon, Nov 26, 2012 at 10:43 AM, Hoàng Thái Xuân Khoa
htxuank...@gmail.com wrote:

Client client = new Client(oneadmin:7f44b494160f2e69fed6c21b2ce555b8,
http://localhost:2633/RPC2;);

This looks like an md5 hash, you should put your *real* password instead.

--
Giovanni Toraldo
http://gionn.net

It's still didn't work.

The 7f44b494160f2e69fed6c21b2ce555b8 is a default password when i 
installed OpenNebula. So, i don't know *real* password behind it. I 
decide use oneuser command to change oneadmin's password:

oneadmin@cluster:~#oneuser passwd 0 123
with 0 is the id of oneadmin user and 123 is a new password. After that, 
i can use password 123 to logon to SunStone server, managed private 
cloud via command line successfully. But, when i used it in Java code, 
it's didn't work.

Client client = new Client(oneadmin:123,http://localhost:2633/RPC2;);
I got the same error:
/Error message: [HostPoolInfo] User couldn't be authenticated, aborting 
call./


--
Hoang Thai Xuan Khoa
Ho Chi Minh city, Vietnam

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


[one-users] Issues starting a VM

2012-11-26 Thread Stuart Longland
Hi all,

Firstly I'll start by pointing out that I'm very new to OpenNebula,
having grown used to just using plain shell scripts to fire up QEMU
instances.

My workplace is looking to use OpenNebula on a multi-node cluster for
their server infrastructure.  The machines are Intel Core i3 systems
with Intel DQ77KB mainboards.  The systems run Ubuntu 12.04 AMD64.

The plan is to use the mainboard's two onboard network cards in LACP to
facilitate high-speed data transfer between VMs for live migration and
for distributed storage using Ceph, and a third PCI express card on a
VLAN trunk port facing the network.

Right now I'm testing on a single node, not one of the ones we'll
eventually use but rather an older, former VMWare ESX box.

The status:

- Ubuntu 12.04 is installed.  OpenNebula 3.8.1 packages installed from
the OpenNebula website.
- I have the switch port connected to eth0 set up as a VLAN trunk
- I have /etc/network/interfaces set up to create the eth0.XXX devices
for each VLAN, and sensibly named bridge devices, `brctl show` looks
like this:
 root@bneprdvm0:~# brctl show
 bridge name bridge id   STP enabled interfaces
 client130   8000.00101814cb1b   no  eth0.130
 project144  8000.00101814cb1b   no  eth0.144
 project159  8000.00101814cb1b   no  eth0.159
 server160   8000.00101814cb1b   no  eth0.160

This works fine with plain QEMU.

Now, I've tried to create a virtual network to place a VM on the
'server160' bridge (i.e. I'd expect kvm to start; then it do a `brctl
addif server160 tapX`).  The following is my configuration for that
network interface:

 oneadmin@bneprdvm0:~$ onevnet show 4
 VIRTUAL NETWORK 4 INFORMATION 
   
 ID : 4   
 NAME   : Server 160 LAN  
 USER   : oneadmin
 GROUP  : oneadmin
 CLUSTER: -   
 TYPE   : FIXED   
 BRIDGE : server160   
 VLAN   : No  
 PHYSICAL DEVICE: 
 VLAN ID: 
 USED LEASES: 0   
 
 PERMISSIONS   
   
 OWNER  : um- 
 GROUP  : --- 
 OTHER  : --- 
 
 VIRTUAL NETWORK TEMPLATE  
   
 
 
 FREE LEASES   
   
 LEASE=[ IP=10.87.160.13, MAC=52:54:00:12:34:58, USED=0, VID=-1 ]

The VM template looks like this:
 CPU=1.0
 DISK=[
   CLONE=NO,
   CLUSTER_ID=100,
   DATASTORE=default,
   DATASTORE_ID=1,
   DEV_PREFIX=hd,
   DISK_ID=0,
   IMAGE=bneprdsrv5-hda,
   IMAGE_ID=3,
   IMAGE_UNAME=vrtadmin,
   PERSISTENT=YES,
   READONLY=NO,
   SAVE=YES,
   SOURCE=/var/lib/one/datastores/1/301aac89561c0fbeaf140cb09124f941,
   TARGET=hda,
   TM_MAD=shared,
   TYPE=FILE ]
 MEMORY=256
 NAME=bneprdsrv5
 NIC=[
   BRIDGE=project160,
   IP=10.87.160.13,
   MAC=52:54:00:12:34:58,
   NETWORK=server160,
   NETWORK_ID=2,
   NETWORK_UNAME=vrtadmin,
   PHYDEV=eth0.160,
   VLAN=YES ]
 REQUIREMENTS=CLUSTER_ID = 100
 VMID=3
(Anyone know how to edit that by the way?  So far all I seem to be able
to do is blow away the VM configuration and rebuild from scratch!)

I get the following error (apologies for the wall of text in advance):
 Tue Nov 27 17:09:35 2012 [LCM][I]: New VM state is BOOT
 Tue Nov 27 17:09:35 2012 [VMM][I]: Generating deployment file: 
 /var/lib/one/3/deployment.0
 Tue Nov 27 17:09:36 2012 [VMM][I]: Command execution fail: 
 /var/tmp/one/vnm/802.1Q/pre PFZNPjxJ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