[one-users] move VM to different host

2014-11-19 Thread Karsten Nielsen

HI,

Is there a way to move a VM from one host to an other when migrate/live 
migrate fails.


We are using ceph as backend and have ssh systemstore.

A process like
1 poweroff VM
2 Move the configs
3 -- I guess that we should do some manual db changes --
4 poweron machine on new host

Any comments would be great.

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


Re: [one-users] move VM to different host

2014-11-19 Thread Ruben S. Montero
If you are using 4.10, we do support migrations when a VM is in unknown
(i.e. hypervisor is down) provided there is a shared storage. Next release
(4.12) will include the ability to migrate in poweroff.

Meanwhile a work around, (there are two actually fake a hypervisor failure
to get the VM in unknown and use the previous feature or fake a migration
failure).

I've not tested this myself so watch out:

1.- Update the kvm migrate script by adding at the very beginning something
like:

sleep 600
return

We want to get the VM in MIGRATE state for a while

2.- Manually move the VM: Go to the hypervisor, and shut it down (i.e.
virsh...); move the config files (those in ssh system datastore); got to
the other hypervisor and manually create the VM.

3.- use onevm recover vmid success, the VM should become running in the
new host. (The sleep'ed migrate operation should be ignored as the VM would
be RUNNING)

4.- Undo the changes in the migrate script.

Good Luck

On Wed Nov 19 2014 at 9:54:52 AM Karsten Nielsen kars...@unity3d.com
wrote:

 HI,

 Is there a way to move a VM from one host to an other when migrate/live
 migrate fails.

 We are using ceph as backend and have ssh systemstore.

 A process like
 1 poweroff VM
 2 Move the configs
 3 -- I guess that we should do some manual db changes --
 4 poweron machine on new host

 Any comments would be great.

 Thanks,
 - Karsten
 ___
 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


Re: [one-users] onevm nic-attach and onevm resize

2014-11-19 Thread Ruben S. Montero
Hi

You are quite right, the ability to cold attach nic and disks are also high
priority and probably ready for 4.12

Cheers

On Wed Nov 19 2014 at 9:32:15 AM Karsten Nielsen kars...@unity3d.com
wrote:

 Hi,

 I was looking at the onevm man pages.

 The nic-attach the state required is running.
 The resize the state is offline.

 I do not quit understand why you cannot do both regardless if the vm is
 running or in poweroff state.
 Switching networks would be much easier if it could be done in poweroff
 state and it would be handy to be able to hot add cpu + memory..

 - Karsten
 ___
 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


Re: [one-users] No option to remove quota from sunstone (4.10)

2014-11-19 Thread Carlos Martín Sánchez
Hi,

On Tue, Nov 18, 2014 at 3:54 PM, kiran ranjane kiran.ranj...@gmail.com
wrote:

 Hi,

 I have assigned quota to a user, however I want to remove the assigned
 quota that was assigned to the user but there is not option to do so in
 Sunstone. Is there a way to do so?

 Regards
 Kiran Ranjane


A quota without a limit is actually a quota set to unlimited. You can set
the limits to default (which will in turn be unlimited if you didn't modify
the default quotas), or unlimited [1].

Best regards.

[1]
http://docs.opennebula.org/4.10/administration/users_and_groups/quota_auth.html

--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org |
@OpenNebula http://twitter.com/opennebula cmar...@opennebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] opennebula 4.8 can't detect the capacity

2014-11-19 Thread Huynh Dac Nguyen

Hi All,  

After search some articles and mailing list and try my best, my ceph
datastore can't monitor the capacity.  

1) How can opennebula detect the size of ceph? 
   - Opennebula is a ceph-mon? 
  If yes, how can oneadmin user can run the rados command to show
the capacity, only root can do that? It must be sudo rados, right?  

   - The opennebula accesses to ceph-mon(font-end) with password-less
to run ssh ho-srv-ceph-02 rados df | grep Total 
  If yes, i need an user oneadmin in ceph-mon and ability to run
rados df without sudo, so how? only root can run rados in this case. 

2) Was any step i missed ? 


Some description for my system:  
Ceph:  
- Deploy:ho-srv-ceph-01  
- MON,OSD:   ho-srv-ceph-02,ho-srv-ceph-03,ho-srv-ceph-04 
- Sudo:   ceph ALL = (root) NOPASSWD:ALL for all 


Opennebula: 
For testing ceph datastore only, i use one standalone server with
oneadmin user 
Opennebula:   cloudlab-02 
Prepare for ceph:  
- password-less from ceph-deploy 
- Sudo:ceph ALL = (root) NOPASSWD:ALL for all 
- in ceph-deploy 
[root@ho-srv-ceph-01 ~]#ceph-deploy install cloudlab-02 

I use use ceph to access from ceph to opennebula  and user oneadmin to
access from opennebula to ceph 

Following the official document:  
- in ceph monitor 
[root@ho-srv-ceph-02 ~]# ceph osd pool create one 64 

- in opennebula front-end 
[oneadmin@cloudlab-02 ~]$ cat ceph.one  
NAME  = ceph 
DS_MAD= ceph 
TM_MAD= ceph 

DISK_TYPE = RBD 
POOL_NAME = one 

BRIDGE_LIST = ho-srv-ceph-02 
[oneadmin@cloudlab-02 ~]$ vi ceph.one  
[oneadmin@cloudlab-02 ~]$ onedatastore create ceph 
ceph1.one  ceph2.one  ceph.one
[oneadmin@cloudlab-02 ~]$ onedatastore create ceph.one  
ID: 105 

Thank you.  

Regards,  
ndhuynh 


This e-mail message including any attachments is for the sole use of the
intended(s) and may contain privileged or confidential information. Any
unauthorized review, use, disclosure or distribution is prohibited. If
you are not intended recipient, please immediately contact the sender by
reply e-mail and delete the original message and destroy all copies
thereof.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] AppMarket 2.0.3 released

2014-11-19 Thread Jaime Melis
Dear all,

We have just released a new version of AppMarket.

It fixes these issues:
- Feature: Add opennebula_version to the creation form
- Feature: Add dev_prefix and driver to the creation form
- Feature: Fill opennebula_template input in update form
- Bug: Remove original appliance not the newly converted one
- Bug: Display first level app attributes for hypervisor, os-arch and
format in the Sunstone tables
- Bug: Remove testing gems from Gemfile
- Bug: Delete job is now parsing correctly the CONF file
- Bug: Handle properly urls that contain error prone chars like [], etc...
- Bug: Remove csrftoken from the job creation method
- Bug: Mime-types gem latest version can't be installed in ruby 1.8.7
- Bug: Fix input layout when the import fails

Read more here:

- http://opennebula.org/appmarket-2-0-3-released/
-
https://github.com/OpenNebula/addon-appmarket/blob/master/doc/release_notes/appmarket-2.0.3.md
- https://github.com/OpenNebula/addon-appmarket/blob/master/README.md

Enjoy!

Jaime

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


Re: [one-users] No option to remove quota from sunstone (4.10)

2014-11-19 Thread kiran ranjane
Hi Carlos,

Yes, I know the default quota is set to unlimited, However the issue that I
am facing is different.

Lets say I have a user - abc and I have 2 networks with ID 0 and 1 in
Virtual Networks and I have assigned quota of  both the networks to the
user.

Screenshot :

[image: Inline image 1]



Quota assigned to the user, Check under network section of quota.


[image: Inline image 2]



Now I delete one of the virtual network with ID 1 and after that if you
check the quota it still shows the Network ID 1 and it does not have the
option to remove it from there as it is not required


[image: Inline image 3]


[image: Inline image 5]

So the quota section have only option to add new quota  but not to remove
that particular ID - (in this case it is ID -1) and it lies there even
after the virtual network does not exist.

I think there should be a small button to remove that orphan entry from the
section and also there should be a validation if a particular resource does
not exist and this applies to Image, network and datastore section in quota.

Let me know about your view on this approach.

Regards
Kiran Ranjane




On Wed, Nov 19, 2014 at 3:32 PM, Carlos Martín Sánchez 
cmar...@opennebula.org wrote:

 Hi,

 On Tue, Nov 18, 2014 at 3:54 PM, kiran ranjane kiran.ranj...@gmail.com
 wrote:

 Hi,

 I have assigned quota to a user, however I want to remove the assigned
 quota that was assigned to the user but there is not option to do so in
 Sunstone. Is there a way to do so?

 Regards
 Kiran Ranjane


 A quota without a limit is actually a quota set to unlimited. You can set
 the limits to default (which will in turn be unlimited if you didn't modify
 the default quotas), or unlimited [1].

 Best regards.

 [1]
 http://docs.opennebula.org/4.10/administration/users_and_groups/quota_auth.html

 --
 Carlos Martín, MSc
 Project Engineer
 OpenNebula - Flexible Enterprise Cloud Made Simple
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org
  | @OpenNebula http://twitter.com/opennebula cmar...@opennebula.org



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


Re: [one-users] Getting Ceph VM to boot--Re: Configuring Ceph datastore 4.6

2014-11-19 Thread Jaime Melis
Hi Steven,

Sorry, but this email fell through the cracks.

Did you ever manage to launch a Ceph VM? Or you are still stumped by this
issue here?

if it's still not working for you, can you send us the output of
onedatastore show -x id where id is the ceph's ds id.

Regards,
Jaime

On Wed, Sep 24, 2014 at 4:49 PM, Steven Timm t...@fnal.gov wrote:

 Now have upgraded to opennebula 4.8.0 and still struggling
 with successfully launching a Ceph VM.  We have worked out
 all permissions issues on the client host and in the Ceph datastore
 and have gotten to the point where opennebula can deploy
 the VM from RBD and the virtual machine starts.. but we get Geom Error
 on the console of the VM and that is all.   Has anyone seen this error
 before and have any idea how to deal with it?  I presume that
 it means that the virtual machine can not even find the boot sector of
 the disk that it sees as /dev/vda but I can't find any information
 on this error anywhere.  Any help is appreciated.

 We are trying to replace an old san-gfs file store with Ceph
 but need better success than that if this is going to work.

 Steve Timm


 On Wed, 10 Sep 2014, Steven Timm wrote:

  The first and most obvious problem below was that we were running an
 old version of qemu-img and qemu-kvm that ships with RHEL6/Centos6/SL6
 that doesn't support the rbd format.  We were able to find
 a modified version that the Ceph people had back-ported and now
 we can import an image into the datastore and have
 gotten as far to getting a deployment.0 written on the hypervisor.
 It can't contact Ceph as yet, is getting connection refused but
 we think that is an authentication issue.

 http://ceph.com/packages/qemu-kvm/redhat/x86_64/
 is where these packages for 6.2 live.

 Hopefully this all gets easier pretty soon now that RedHat has bought Ceph
 and all the right packages will be in RHEL7.  Or will they be only
 proprietarily available in Redhat Enterprise Virtualization?  Has anyone
 tried yet?

 Steve



 On Wed, 10 Sep 2014, Steven Timm wrote:



  I have configured a Ceph datastore on one 4.6 and have gotten as
  far as to get opennebula to accept the datastore.  But when we
  try to do the first oneimage create into the datastore we get the
  following error in oned.log :

  Wed Sep 10 13:10:44 2014 [ImM][I]: Command execution fail:
  /var/lib/one/remotes/datastore/ceph/cp
  PERTX0RSSVZFUl9BQ1RJT05fREFUQT48SU1BR0U+PElEPjE4PC9JRD48VUlEPjA8L1VJRD
 48R0lEPjA8L0dJRD48VU5BTUU+b25lYWRtaW48L1VOQU1FPjxHTkFNRT
 5vbmVhZG1pbjwvR05BTUU+PE5BTUU+Y2VwaHRlc3Q8L05BTUU+
 PFBFUk1JU1NJT05TPjxPV05FUl9VPjE8L09XTkVSX1U+PE9XTkVSX00+
 MTwvT1dORVJfTT48T1dORVJfQT4wPC9PV05FUl9BPjxHUk9VUF9VPjA8L0dS
 T1VQX1U+PEdST1VQX00+MDwvR1JPVVBfTT48R1JPVVBfQT4wPC
 9HUk9VUF9BPjxPVEhFUl9VPjA8L09USEVSX1U+PE9USEVSX00+
 MDwvT1RIRVJfTT48T1RIRVJfQT4wPC9PVEhFUl9BPjwvUEVSTUlTU0lPTlM+PFRZUEU+
 MDwvVFlQRT48RElTS19UWVBFPjM8L0RJU0tfVFlQRT48UEVSU0lTVEVOVD4w
 PC9QRVJTSVNURU5UPjxSRUdUSU1FPjE0MTAzNzI1NTU8L1JFR1RJTUU+
 PFNPVVJDRT48L1NPVVJDRT48UEFUSD4vY2xvdWQvaW1hZ2VzL3RpbW0vNDBn
 Yi5xY293MjwvUEFUSD48RlNUWVBFPjwvRlNUWVBFPjxTSVpFPjQwOTYwPC9T
 SVpFPjxTVEFURT40PC9TVEFURT48UlVOTklOR19WTVM+MDwvUlVOTklOR19WTVM+
 PENMT05JTkdfT1BTPjA8L0NMT05JTkdfT1BTPjxDTE9OSU5HX0lEPi0xPC9D
 TE9OSU5HX0lEPjxEQVRBU1RPUkVfSUQ+MTAzPC9EQVRBU1RPUkVfSUQ+
 PERBVEFTVE9SRT5jZXBoX2RhdGFzdG9yZTwvREFUQVNUT1JFPjxWTVM+PC9WTVM+
 PENMT05FUz48L0NMT05FUz48VEVNUExBVEU+PERFU0NSSV
  BUS
  U9OPjwhW0NEQVRBW3Rlc3QgY2VwaCBnb2xkZW4gaW1nXV0+
 PC9ERVNDUklQVElPTj48REVWX1BSRUZJWD48IVtDREFUQVtoZF1dPjwvREVW
 X1BSRUZJWD48RFJJVkVSPjwhW0NEQVRBW3Fjb3cyXV0+PC9EUklWRVI+
 PC9URU1QTEFURT48L0lNQUdFPjxEQVRBU1RPUkU+PElEPjEwMzwvSUQ+PFVJRD4wPC9VSUQ+
 PEdJRD4wPC9HSUQ+PFVOQU1FPm9uZWFkbWluPC9VTkFNRT48R05BTUU+
 b25lYWRtaW48L0dOQU1FPjxOQU1FPmNlcGhfZGF0YXN0b3JlPC9OQU1FPjxQ
 RVJNSVNTSU9OUz48T1dORVJfVT4xPC9PV05FUl9VPjxPV05FUl9NPjE8L09X
 TkVSX00+PE9XTkVSX0E+MDwvT1dORVJfQT48R1JPVVBfVT4xPC
 9HUk9VUF9VPjxHUk9VUF9NPjA8L0dST1VQX00+PEdST1VQX0E+
 MDwvR1JPVVBfQT48T1RIRVJfVT4wPC9PVEhFUl9VPjxPVEhFUl9NPjA8L09U
 SEVSX00+PE9USEVSX0E+MDwvT1RIRVJfQT48L1BFUk1JU1NJT05TPjxEU19NQUQ+
 Y2VwaDwvRFNfTUFEPjxUTV9NQUQ+Y2VwaDwvVE1fTUFEPjxCQVNFX1BBVEg+
 L3Zhci9saWIvb25lLy9kYXRhc3RvcmVzLzEwMzwvQkFTRV9QQVRIPjxUWVBFPjA8L1RZUEU+
 PERJU0tfVFlQRT4zPC9ESVNLX1RZUEU+PENMVVNURVJfSUQ+LTE8L0NMVVNURVJfSUQ+
 PENMVVNURVI+PC9DTFVTVEVSPjxUT1RBTF9NQj42MTAyNzMyODwvVE9UQUxfTUI+
 PEZSRUVfTUI+NjA4NTE1NTI8L0ZSRUVfTUI+PFVTRURfTUI+
 MTc1Nzc2PC9VU0VEX01CPjxJTUFHRVM+PC9JTUF
  HRV
  M+PFRFTVBMQVRFPjxCQVNFX1BBVEg+PCFbQ0RBVEFbL3Zhci9saWIvb25lLy
 9kYXRhc3RvcmVzL11dPjwvQkFTRV9QQVRIPjxCUklER0VfTElTVD48IVtDRE
 FUQVtvbmU0ZGV2XV0+PC9CUklER0VfTElTVD48Q0VQSF9IT1
 NUPjwhW0NEQVRBW3N0a2VuZGNhMDFhIHN0a2VuZGNhMDRhIHN0a2VuZGNhMD
 JhXV0+PC9DRVBIX0hPU1Q+PENFUEhfU0VDUkVUPjwhW0NEQVRBWy
 9ldGMvY2VwaC9jZXBoLmNsaWVudC5hZG1pbi5rZXlyaW5nXV0+
 PC9DRVBIX1NFQ1JFVD48Q0xPTkVfVEFSR0VUPjwhW0NEQVRBW1NFTEZdXT48
 L0NMT05FX1RBUkdFVD48REFUQVNUT1JFX0NBUEFDSVRZX0NIRUNLPjwhW0NE
 QVRBW3llc11dPjwvREFUQVNUT1JFX0NBUEFDSVRZX0NIRUNLPjxESVNLX1RZ
 

Re: [one-users] VNC and serial console

2014-11-19 Thread Liu, Gene
FYI.

We added virtual serial console feature on our private cloud via adding
and modifying a few back-end scripts and UI change a little bit.

Gene
On 14-11-19 07:37 AM, Vassilis Vatikiotis wrote:
 Is it possible to setup both noVNC and a serial console?

 I've already setup a template for serial access like this (in the
 Other- RAW data)
 devices
 serial type=pty
 target port=0/
 /serial
 console type=pty
 target port=0/
 /console
 /devices

 Whenever I try to setup something like the following, noVNC proceeds
 normally but never reaches login:
 In /etc/init/ttyS1.conf:

 # ttyS1 - getty
 #
 # This service maintains a getty on ttyS1 from the point the system is
 # started until it is shut down again.

 start on stopped rc or RUNLEVEL=[12345]
 stop on runlevel [!12345]

 respawn
 exec /sbin/getty -L ttyS1 vt102

 When I remove the above file noVNC start behaves as expected i.e. I can login.

 So, in my test, I can have, either serial console access *or* noVNC.
 Never both. Is this possible?

 Thanks!



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


[one-users] Fwd: OpenVswitch and host crash

2014-11-19 Thread Jaime Melis
Hi Daniel,

I feel it's best not to trigger automatic recovery actions when a host
fails. The complexity of developing heuristics to deal with all the
technologies OpenNebula leverages would be enormous. And the commands you
had to run in this particular case might change in future Open vSwitch
releases...

That said, I would personally do this outside of OpenNebula, in an rc.local
sort of place. But if you really want to do this within OpenNebula you can
always create a probe that is executed with all the other IM actions, that
checks if Open vSwitch is up and healthy, and otherwise fixes it.

cheers,
Jaime

On Mon, Oct 13, 2014 at 10:02 AM, Daniel Dehennin 
daniel.dehen...@baby-gnu.org wrote:

 Hello,

 We had a power failure on a test ONE 4.8, the frontend and the two hosts
 crashed.

 I can not resume nor boot the powered off VMs, libvirt told me:


 error : virNetDevOpenvswitchRemovePort:187 : Unable to delete port
 (null) from OVS: Operation not permitted
 error : virCommandWait:2426 : internal error: Child process (ovs-vsctl
 --timeout=5 -- --may-exist add-port inetrnal vnet0 -- set Interface
 vnet0 'external-ids:attached-mac=02:00:c0:a8:00:6e' -- set
 Interface vnet0
 'external-ids:iface-id=2a9321ad-2b7e-4ca5-9c81-a3f54d04807b' --
 set Interface vnet0
 'external-ids:vm-id=c486c111-e3fe-4338-99b0-8eed4c043cff' -- set
 Interface vnet0 external-ids:iface-status=active) unexpected exit
 status 1: ovs-vsctl: --may-exist add-port internal vnet0 but
 vnet0
 is actually attached to bridge external


 To come back to normal, I had to run the following command:

 for switch in external internal
 do
 for port in $(ovs-vsctl list-ports $switch | grep '^vnet')
 do
 ovs-vsctl del-port $switch $port
 done
 done

 Any idea to perform such operation automatically after a recovery?

 Regards.
 --
 Daniel Dehennin
 Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF
 Fingerprint: 3E69 014E 5C23 50E8 9ED6  2AAD CC1E 9E5B 7A6F E2DF

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




-- 
Jaime Melis
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | jme...@opennebula.org


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


Re: [one-users] Getting Ceph VM to boot--Re: Configuring Ceph datastore 4.6

2014-11-19 Thread Steven Timm

Hi Jaime..yes we did figure it out eventually.  Turned out the image I had
stored in CEPH was not a good image. Once I loaded another image into ceph 
and booted that, I was fine. the version of libvirt I was running only

supported RAW images over ceph, not qcow2, and my first raw image had been
truncated in some bad way.

Steve Timm


On Wed, 19 Nov 2014, Jaime Melis wrote:


Hi Steven,
Sorry, but this email fell through the cracks.

Did you ever manage to launch a Ceph VM? Or you are still stumped by this issue 
here?

if it's still not working for you, can you send us the output of onedatastore show -x 
id where
id is the ceph's ds id.

Regards,
Jaime

On Wed, Sep 24, 2014 at 4:49 PM, Steven Timm t...@fnal.gov wrote:
  Now have upgraded to opennebula 4.8.0 and still struggling
  with successfully launching a Ceph VM.  We have worked out
  all permissions issues on the client host and in the Ceph datastore
  and have gotten to the point where opennebula can deploy
  the VM from RBD and the virtual machine starts.. but we get Geom Error
  on the console of the VM and that is all.   Has anyone seen this error 
before and have
  any idea how to deal with it?  I presume that
  it means that the virtual machine can not even find the boot sector of
  the disk that it sees as /dev/vda but I can't find any information
  on this error anywhere.  Any help is appreciated.

  We are trying to replace an old san-gfs file store with Ceph
  but need better success than that if this is going to work.

  Steve Timm


  On Wed, 10 Sep 2014, Steven Timm wrote:

The first and most obvious problem below was that we were running an
old version of qemu-img and qemu-kvm that ships with 
RHEL6/Centos6/SL6
that doesn't support the rbd format.  We were able to find
a modified version that the Ceph people had back-ported and now
we can import an image into the datastore and have
gotten as far to getting a deployment.0 written on the hypervisor.
It can't contact Ceph as yet, is getting connection refused but
we think that is an authentication issue.

http://ceph.com/packages/qemu-kvm/redhat/x86_64/
is where these packages for 6.2 live.

Hopefully this all gets easier pretty soon now that RedHat has 
bought Ceph
and all the right packages will be in RHEL7.  Or will they be only
proprietarily available in Redhat Enterprise Virtualization?  Has 
anyone
tried yet?

Steve



On Wed, 10 Sep 2014, Steven Timm wrote:



   I have configured a Ceph datastore on one 4.6 and have gotten
  as
   far as to get opennebula to accept the datastore.  But when 
we
   try to do the first oneimage create into the datastore we get
  the
   following error in oned.log :

   Wed Sep 10 13:10:44 2014 [ImM][I]: Command execution fail:
   /var/lib/one/remotes/datastore/ceph/cp
 
PERTX0RSSVZFUl9BQ1RJT05fREFUQT48SU1BR0U+PElEPjE4PC9JRD48VUlEPjA8L1VJRD48R0lEPjA8L0dJRD48VU5BTUU+b
25lYWRtaW48L1VOQU1FPjxHTkFNRT5vbmVhZG1pbjwvR05BTUU+PE5BTUU+Y2VwaHRlc3Q8L05BTUU+PFBFUk1JU1NJT05TPjx
PV05FUl9VPjE8L09XTkVSX1U+PE9XTkVSX00+MTwvT1dORVJfTT48T1dORVJfQT4wPC9PV05FUl9BPjxHUk9VUF9VPjA8L0dST
1VQX1U+PEdST1VQX00+MDwvR1JPVVBfTT48R1JPVVBfQT4wPC9HUk9VUF9BPjxPVEhFUl9VPjA8L09USEVSX1U+PE9USEVSX00
+MDwvT1RIRVJfTT48T1RIRVJfQT4wPC9PVEhFUl9BPjwvUEVSTUlTU0lPTlM+PFRZUEU+MDwvVFlQRT48RElTS19UWVBFPjM8L
0RJU0tfVFlQRT48UEVSU0lTVEVOVD4wPC9QRVJTSVNURU5UPjxSRUdUSU1FPjE0MTAzNzI1NTU8L1JFR1RJTUU+PFNPVVJDRT4
8L1NPVVJDRT48UEFUSD4vY2xvdWQvaW1hZ2VzL3RpbW0vNDBnYi5xY293MjwvUEFUSD48RlNUWVBFPjwvRlNUWVBFPjxTSVpFP
jQwOTYwPC9TSVpFPjxTVEFURT40PC9TVEFURT48UlVOTklOR19WTVM+MDwvUlVOTklOR19WTVM+PENMT05JTkdfT1BTPjA8L0N
MT05JTkdfT1BTPjxDTE9OSU5HX0lEPi0xPC9DTE9OSU5HX0lEPjxEQVRBU1RPUkVfSUQ+MTAzPC9EQVRBU1RPUkVfSUQ+PERBV
EFTVE9SRT5jZXBoX2RhdGFzdG9yZTwvREFUQVNUT1JFPjxWTVM+PC9WTVM+PENMT05FUz48L0NMT05FUz48VEVNUExBVEU+PER
  FU0NSSV
   BUS
 
U9OPjwhW0NEQVRBW3Rlc3QgY2VwaCBnb2xkZW4gaW1nXV0+PC9ERVNDUklQVElPTj48REVWX1BSRUZJWD48IVtDREFUQVtoZF
1dPjwvREVWX1BSRUZJWD48RFJJVkVSPjwhW0NEQVRBW3Fjb3cyXV0+PC9EUklWRVI+PC9URU1QTEFURT48L0lNQUdFPjxEQVRB
U1RPUkU+PElEPjEwMzwvSUQ+PFVJRD4wPC9VSUQ+PEdJRD4wPC9HSUQ+PFVOQU1FPm9uZWFkbWluPC9VTkFNRT48R05BTUU+b2
5lYWRtaW48L0dOQU1FPjxOQU1FPmNlcGhfZGF0YXN0b3JlPC9OQU1FPjxQRVJNSVNTSU9OUz48T1dORVJfVT4xPC9PV05FUl9V
PjxPV05FUl9NPjE8L09XTkVSX00+PE9XTkVSX0E+MDwvT1dORVJfQT48R1JPVVBfVT4xPC9HUk9VUF9VPjxHUk9VUF9NPjA8L0
dST1VQX00+PEdST1VQX0E+MDwvR1JPVVBfQT48T1RIRVJfVT4wPC9PVEhFUl9VPjxPVEhFUl9NPjA8L09USEVSX00+PE9USEVS
X0E+MDwvT1RIRVJfQT48L1BFUk1JU1NJT05TPjxEU19NQUQ+Y2VwaDwvRFNfTUFEPjxUTV9NQUQ+Y2VwaDwvVE1fTUFEPjxCQV
NFX1BBVEg+L3Zhci9saWIvb25lLy9kYXRhc3RvcmVzLzEwMzwvQkFTRV9QQVRIPjxUWVBFPjA8L1RZUEU+PERJU0tfVFlQRT4z

Re: [one-users] error when create image on ceph datastore

2014-11-19 Thread Jaime Melis
Hi Ndhuynh,

you have to install qemu-img (qemu-utils package).

cheers,
Jaime

On Thu, Nov 13, 2014 at 8:02 AM, Huynh Dac Nguyen ndhu...@spsvietnam.vn
wrote:

  Hi All

  I added ceph to datastore successful but can't create image on it.

  *[oneadmin@ho-srv-cloudlab-01 ~]$ *oneimage create centos65min.one
 --datastore ceph_2 --persistent  --type CDROM --disk_type CDROM

  Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: cp: Copying local image
 /var/lib/one/images/CentOS-6.5-x86_64-minimal.iso to the image repository

 Thu Nov 13 01:47:35 2014 [Z0][ImM][E]: cp: Command set -e

 Thu Nov 13 01:47:35 2014 [Z0][ImM][I]:

 Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: FORMAT=$(qemu-img info
 /var/tmp/2f6f4e105d2aea3b28c214e005e97e26 | grep ^file format: | awk
 '{print }')

 Thu Nov 13 01:47:35 2014 [Z0][ImM][I]:

 Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: if [ $FORMAT != raw ]; then

 Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: qemu-img convert -O raw
 /var/tmp/2f6f4e105d2aea3b28c214e005e97e26
 /var/tmp/2f6f4e105d2aea3b28c214e005e97e26.raw

 Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: mv
 /var/tmp/2f6f4e105d2aea3b28c214e005e97e26.raw
 /var/tmp/2f6f4e105d2aea3b28c214e005e97e26

 Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: fi

 Thu Nov 13 01:47:35 2014 [Z0][ImM][I]:

 Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: rbd import --image-format 2
 /var/tmp/2f6f4e105d2aea3b28c214e005e97e26 one/one-29

 Thu Nov 13 01:47:35 2014 [Z0][ImM][I]:

 Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: # remove original

 Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: rm -f
 /var/tmp/2f6f4e105d2aea3b28c214e005e97e26 failed: Warning: Permanently
 added 'ho-srv-ceph-03,10.10.15.69' (RSA) to the list of known hosts.

 Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: sh: line 5: qemu-img: command not
 found

 Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: sh: line 8: qemu-img: command not
 found

 Thu Nov 13 01:47:35 2014 [Z0][ImM][E]: Error registering one/one-29 in
 ho-srv-ceph-03

 Thu Nov 13 01:47:35 2014 [Z0][ImM][I]: ExitCode: 127

 Thu Nov 13 01:47:35 2014 [Z0][ImM][E]: Error copying image in the
 datastore: Error registering one/one-29 in ho-srv-ceph-03

  *[oneadmin@ho-srv-cloudlab-01 ~]$ *onedatastore show 120

 DATASTORE 120 INFORMATION


 ID : 120

 NAME   : ceph_2

 USER   : oneadmin

 GROUP  : oneadmin

 CLUSTER: -

 TYPE   : IMAGE

 DS_MAD : ceph

 TM_MAD : ceph

 BASE PATH  : /var/lib/one//datastores/120

 DISK_TYPE  : RBD

  DATASTORE CAPACITY


 TOTAL: : 186.9G

 FREE:  : 143.3G

 USED:  : 43.5G

 LIMIT: : -

  PERMISSIONS


 OWNER  : um-

 GROUP  : u--

 OTHER  : ---

  DATASTORE TEMPLATE


 BASE_PATH=/var/lib/one//datastores/

 BRIDGE_LIST=ho-srv-ceph-03

 CLONE_TARGET=SELF

 DATASTORE_CAPACITY_CHECK=yes

 DISK_TYPE=RBD

 DS_MAD=ceph

 LN_TARGET=NONE

 POOL_NAME=one

 RBD_FORMAT=2

 SAFE_DIRS=/var/lib/one/images

 TM_MAD=ceph

 TYPE=IMAGE_DS

  IMAGES

 29


  *[oneadmin@ho-srv-cloudlab-01 ~]$* cat centos65min.one

 NAME  = CentOS-6.5-x86_64-minimal

 TYPE  = CDROM

 PATH  = /var/lib/one/images/CentOS-6.5-x86_64-minimal.iso

 DESCRIPTION   = CentOS-6.5-x86_64-minimal.iso


  *Note:*

 ho-srv-ceph-03: my ceph MON

 the one pool is just used after created and do nothing more

 OS: CentOS 6.6

 Opennebula 4.8.0-1


  Is that a bug or did i do wrong?



  Regards,

 Ndhuynh






 This e-mail message including any attachments is for the sole use of the
 intended(s) and may contain privileged or confidential information. Any
 unauthorized review, use, disclosure or distribution is prohibited. If you
 are not intended recipient, please immediately contact the sender by reply
 e-mail and delete the original message and destroy all copies thereof.

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




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


Re: [one-users] Do we need to mount /var/lib/one with ceph

2014-11-19 Thread Jaime Melis
Hi,

are you planning on using CephFS? if that's so you might find it easier to
set it up like this:

- /var/lib/one - not shared, only for frontend
- /var/lib/one/datastores - lives in a cephFS share avaialble to the
frontend and all the nodes

would this suit you?

cheers,
Jaime

On Wed, Nov 12, 2014 at 6:09 AM, Huynh Dac Nguyen ndhu...@spsvietnam.vn
wrote:

  Dear Ruben,

  You mean:

 - /var/lib/one is mounted from NAS server just for Front-end

 - The datastore is mounted from Ceph for frond-end and node

  So

 Front-end servers must be mounted NAS (/var/lib/one) and Ceph
 (/var/lib/one/datastores/[number]), 2 mounted points.

 Node servers must be mounted only Ceph (/var/lib/one/datastores/[number]),
 1 mounted point

 and the passwordless file must be updated manually

  Is it correct?

 so why don't we use ceph for both of shared location?  or just
 /var/lib/one?  I really don't want to manage more device.

 Could you show me the best solution? I'm confused to continue because of
 stuck in integrate Ceph and opennebula


  Regards,

 Ndhuynh


  --

  Message: 1

 Date: Tue, 11 Nov 2014 14:30:01 +

 From: Ruben S. Montero rsmont...@opennebula.org

 To: Huynh Dac Nguyen ndhu...@spsvietnam.vn,

 users@lists.opennebula.org

 Subject: Re: [one-users] Do we need to mount /var/lib/one with ceph

 Message-ID:

 cagi56tetpmozcek+ddzlulj7y_yc-py40av0rbgopudb7mc...@mail.gmail.com

 Content-Type: text/plain; charset=utf-8

  The system datastore is accessed from the front-end to generate the
 context

 iso. Note that you don't need to be it exported from the front-end, the

 nodes and the front-end itself can mount it from an different NAS server.

  The /var/lib/one contents are needed in the front-end but not by the
 nodes.

 Just the system datastore directory.

  If the VM tries to access a disk from a device that is not mounted or the

 NAS server is down you'll be in trouble. However, note that context ISO is

 only accessed during the boot state and the main disks of the VM are in the

 ceph pool, so you'll probably be fine (but if not tested it)

  Cheers


  On Mon Nov 10 2014 at 3:38:14 AM Huynh Dac Nguyen ndhu...@spsvietnam.vn

 wrote:

   Dear Ruben,

 

  Thank you for replying

 

  So what happens if the front-end opennebula is down

  the /var/lib/one isn't mounted,only System Datastore is mounted,

  then the VM can't work, right? (the vm requires image and additional

  files)

 

  Can you explain why we don't need to export the whole /var/lib/one ?

 

  Regards,

  Ndhuynh

 

   Ruben S. Montero rsmont...@opennebula.org 11/7/2014 4:52 PM

  

  Hi Ndhuynh

 

  Ceph storage in OpenNebula is handled as follows:

 

 

  1.- Image Datastores, hold disk images repository as well as images for

  running VMs in a Ceph volume

  2.- System Datastore holds additional VM files, checkpoints, context

  disks and the like.

 

 

  If you need live-migration the easiest way is to have a shared

  filesystem for the System Datastore. You don't need to export the whole

  /var/lib/one, just the datastore directory, though.

 

 

  If you do not need to live-migrate VMs you should be ok with a ssh

  based system datastore

 

 

  Cheers

 

 

 

 

 

 

  On Wed Nov 05 2014 at 12:09:47 PM Huynh Dac Nguyen

  ndhu...@spsvietnam.vn wrote:

 

  Hi All,

 

 

  I'm researching opennebula with ceph, i saw that most of guide focus on

  using ceph as datastore - block device, right?

 

 

  Do we need to mount ceph to /var/lib/one as file system to prevent the

  opennebula frontend down expectedly?

 

 

  My script is:

 

 

  1) Make a ceph file system : one and mount to /var/lib/one in all

  opennebula node (front-end and node)

  2) Create a ceph block device and add to opennebula as datastore

 

 

  Is this a right way?

 

 

  Regards,

  Ndhuynh

  ndhu...@spsvietnam.vn

 

  This e-mail message including any attachments is for the sole use of

  the intended(s) and may contain privileged or confidential information.

  Any unauthorized review, use, disclosure or distribution is prohibited.

  If you are not intended recipient, please immediately contact the sender

  by reply e-mail and delete the original message and destroy all copies

  thereof.

 

  ___

  Users mailing list

  Users@lists.opennebula.org

  *http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org*

 

 

  This e-mail message including any attachments is for the sole use of the

  intended(s) and may contain privileged or confidential information. Any

  unauthorized review, use, disclosure or distribution is prohibited. If

  you are not intended recipient, please immediately contact the sender by

  reply e-mail and delete the original message and destroy all copies

  thereof.

 

 This e-mail message including any 

Re: [one-users] opennebula 4.8 can't detect the capacity

2014-11-19 Thread Jaime Melis
You have to configure ceph in such a way that oneadmin can run the rados
command without sudo.

You need to make a keyring file available for the oneadmin user that can
monitor the pools

On Wed, Nov 19, 2014 at 12:19 PM, Huynh Dac Nguyen ndhu...@spsvietnam.vn
wrote:

  Hi All,

  After search some articles and mailing list and try my best, my ceph
 datastore can't monitor the capacity.

  1) How can opennebula detect the size of ceph?

- Opennebula is a ceph-mon?

   If yes, how can oneadmin user can run the rados command to show the
 capacity, only root can do that? It must be sudo rados, right?

 - The opennebula accesses to ceph-mon(font-end) with password-less to
 run ssh ho-srv-ceph-02 rados df | grep Total

   If yes, i need an user oneadmin in ceph-mon and ability to run rados
 df without sudo, so how? only root can run rados in this case.

  2) Was any step i missed ?


  Some description for my system:

 *Ceph: *

 - Deploy:ho-srv-ceph-01

 - MON,OSD:   ho-srv-ceph-02,ho-srv-ceph-03,ho-srv-ceph-04

 - Sudo:   ceph ALL = (root) NOPASSWD:ALL for all


  *Opennebula:*

 For testing ceph datastore only, i use one standalone server with oneadmin
 user

 Opennebula:   cloudlab-02

 Prepare for ceph:

 - password-less from ceph-deploy

 - Sudo:ceph ALL = (root) NOPASSWD:ALL for all

 - in ceph-deploy

 [root@ho-srv-ceph-01 ~]#ceph-deploy install cloudlab-02

  I use use ceph to access from ceph to opennebula  and user oneadmin to
 access from opennebula to ceph

  *Following the official document: *

 - in ceph monitor

 [root@ho-srv-ceph-02 ~]# ceph osd pool create one 64

  - in opennebula front-end

 [oneadmin@cloudlab-02 ~]$ cat ceph.one

 NAME  = ceph

 DS_MAD= ceph

 TM_MAD= ceph

  DISK_TYPE = RBD

 POOL_NAME = one

  BRIDGE_LIST = ho-srv-ceph-02

 [oneadmin@cloudlab-02 ~]$ vi ceph.one

 [oneadmin@cloudlab-02 ~]$ onedatastore create ceph

 ceph1.one  ceph2.one  ceph.one

 [oneadmin@cloudlab-02 ~]$ onedatastore create ceph.one

 ID: 105

  Thank you.

  Regards,

 ndhuynh



 This e-mail message including any attachments is for the sole use of the
 intended(s) and may contain privileged or confidential information. Any
 unauthorized review, use, disclosure or distribution is prohibited. If you
 are not intended recipient, please immediately contact the sender by reply
 e-mail and delete the original message and destroy all copies thereof.

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




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


Re: [one-users] Getting Ceph VM to boot--Re: Configuring Ceph datastore 4.6

2014-11-19 Thread Jaime Melis
Oh ok, that makes sense.

Thanks,
Jaime

On Wed, Nov 19, 2014 at 4:59 PM, Steven Timm t...@fnal.gov wrote:

 Hi Jaime..yes we did figure it out eventually.  Turned out the image I had
 stored in CEPH was not a good image. Once I loaded another image into ceph
 and booted that, I was fine. the version of libvirt I was running only
 supported RAW images over ceph, not qcow2, and my first raw image had been
 truncated in some bad way.

 Steve Timm



 On Wed, 19 Nov 2014, Jaime Melis wrote:

  Hi Steven,
 Sorry, but this email fell through the cracks.

 Did you ever manage to launch a Ceph VM? Or you are still stumped by this
 issue here?

 if it's still not working for you, can you send us the output of
 onedatastore show -x id where
 id is the ceph's ds id.

 Regards,
 Jaime

 On Wed, Sep 24, 2014 at 4:49 PM, Steven Timm t...@fnal.gov wrote:
   Now have upgraded to opennebula 4.8.0 and still struggling
   with successfully launching a Ceph VM.  We have worked out
   all permissions issues on the client host and in the Ceph datastore
   and have gotten to the point where opennebula can deploy
   the VM from RBD and the virtual machine starts.. but we get Geom
 Error
   on the console of the VM and that is all.   Has anyone seen this
 error before and have
   any idea how to deal with it?  I presume that
   it means that the virtual machine can not even find the boot sector
 of
   the disk that it sees as /dev/vda but I can't find any information
   on this error anywhere.  Any help is appreciated.

   We are trying to replace an old san-gfs file store with Ceph
   but need better success than that if this is going to work.

   Steve Timm


   On Wed, 10 Sep 2014, Steven Timm wrote:

 The first and most obvious problem below was that we were
 running an
 old version of qemu-img and qemu-kvm that ships with
 RHEL6/Centos6/SL6
 that doesn't support the rbd format.  We were able to find
 a modified version that the Ceph people had back-ported and
 now
 we can import an image into the datastore and have
 gotten as far to getting a deployment.0 written on the
 hypervisor.
 It can't contact Ceph as yet, is getting connection refused
 but
 we think that is an authentication issue.

 http://ceph.com/packages/qemu-kvm/redhat/x86_64/
 is where these packages for 6.2 live.

 Hopefully this all gets easier pretty soon now that RedHat
 has bought Ceph
 and all the right packages will be in RHEL7.  Or will they be
 only
 proprietarily available in Redhat Enterprise Virtualization?
 Has anyone
 tried yet?

 Steve



 On Wed, 10 Sep 2014, Steven Timm wrote:



I have configured a Ceph datastore on one 4.6 and have
 gotten
   as
far as to get opennebula to accept the datastore.  But
 when we
try to do the first oneimage create into the datastore
 we get
   the
following error in oned.log :

Wed Sep 10 13:10:44 2014 [ImM][I]: Command execution
 fail:
/var/lib/one/remotes/datastore/ceph/cp
  PERTX0RSSVZFUl9BQ1RJT05fREFUQT48SU1BR0U+PElEPjE4PC9JRD48VUlEPjA8L1VJRD
 48R0lEPjA8L0dJRD48VU5BTUU+b
 25lYWRtaW48L1VOQU1FPjxHTkFNRT5vbmVhZG1pbjwvR05BTUU+PE5BTUU+
 Y2VwaHRlc3Q8L05BTUU+PFBFUk1JU1NJT05TPjx
 PV05FUl9VPjE8L09XTkVSX1U+PE9XTkVSX00+MTwvT1dORVJfTT48T1dORVJfQT4wPC
 9PV05FUl9BPjxHUk9VUF9VPjA8L0dST
 1VQX1U+PEdST1VQX00+MDwvR1JPVVBfTT48R1JPVVBfQT4wPC
 9HUk9VUF9BPjxPVEhFUl9VPjA8L09USEVSX1U+PE9USEVSX00
 +MDwvT1RIRVJfTT48T1RIRVJfQT4wPC9PVEhFUl9BPjwvUEVSTUlTU0lPTlM+PFRZUEU+
 MDwvVFlQRT48RElTS19UWVBFPjM8L
 0RJU0tfVFlQRT48UEVSU0lTVEVOVD4wPC9QRVJTSVNURU5UPjxSRUdUSU1FP
 jE0MTAzNzI1NTU8L1JFR1RJTUU+PFNPVVJDRT4
 8L1NPVVJDRT48UEFUSD4vY2xvdWQvaW1hZ2VzL3RpbW0vNDBnYi5xY293Mjw
 vUEFUSD48RlNUWVBFPjwvRlNUWVBFPjxTSVpFP
 jQwOTYwPC9TSVpFPjxTVEFURT40PC9TVEFURT48UlVOTklOR19WTVM+
 MDwvUlVOTklOR19WTVM+PENMT05JTkdfT1BTPjA8L0N
 MT05JTkdfT1BTPjxDTE9OSU5HX0lEPi0xPC9DTE9OSU5HX0lEPjxEQVRBU1RPUkVfSUQ+
 MTAzPC9EQVRBU1RPUkVfSUQ+PERBV
 EFTVE9SRT5jZXBoX2RhdGFzdG9yZTwvREFUQVNUT1JFPjxWTVM+PC9WTVM+
 PENMT05FUz48L0NMT05FUz48VEVNUExBVEU+PER
   FU0NSSV
BUS
  U9OPjwhW0NEQVRBW3Rlc3QgY2VwaCBnb2xkZW4gaW1nXV0+
 PC9ERVNDUklQVElPTj48REVWX1BSRUZJWD48IVtDREFUQVtoZF
 1dPjwvREVWX1BSRUZJWD48RFJJVkVSPjwhW0NEQVRBW3Fjb3cyXV0+PC9EUklWRVI+
 PC9URU1QTEFURT48L0lNQUdFPjxEQVRB
 U1RPUkU+PElEPjEwMzwvSUQ+PFVJRD4wPC9VSUQ+PEdJRD4wPC9HSUQ+
 PFVOQU1FPm9uZWFkbWluPC9VTkFNRT48R05BTUU+b2
 5lYWRtaW48L0dOQU1FPjxOQU1FPmNlcGhfZGF0YXN0b3JlPC9OQU1FPjxQRV
 JNSVNTSU9OUz48T1dORVJfVT4xPC9PV05FUl9V
 PjxPV05FUl9NPjE8L09XTkVSX00+PE9XTkVSX0E+MDwvT1dORVJfQT48R1JPVVBfVT4xPC
 9HUk9VUF9VPjxHUk9VUF9NPjA8L0
 dST1VQX00+PEdST1VQX0E+MDwvR1JPVVBfQT48T1RIRVJfVT4wPC
 

Re: [one-users] Ruby version

2014-11-19 Thread Javier Fontan
You can try using install_gems from the repository. It's for 4.10 so it
will install more packages than needed but should do the trick.

https://github.com/OpenNebula/one/blob/one-4.10/share/install_gems/install_gems

On Sun Nov 16 2014 at 1:26:00 PM Amier Anis amirud...@skali.net wrote:

 how to resolve this issue in 4.8 stable version?


 On Fri, Jul 25, 2014 at 6:23 PM, Javier Fontan jfon...@opennebula.org
 wrote:

 That whould be the best way to go but there is not an easy path in
 CentOS 6. For the final version we will support CentOS 6 with stock
 ruby (1.8.7) but azure and softlayer hybrid drivers won't work in it.
 We have modified install_gems so it detects the ruby versions and does
 not try to install some gems. This change did not make to the beta.

 To be able to use install_gems in the beta you can execute it with this
 command:

 # ./install_gems quota sustone auth_ldap oneflow oca

 On Fri, Jul 25, 2014 at 11:53 AM, Giovanni Toraldo m...@gionn.net wrote:
  Hi,
 
  On Fri, Jul 25, 2014 at 9:27 AM, Anandharaj Subramaniam
  anandharaj.man...@mimos.my wrote:
  What is the recommended / minimum version for Ruby?
 
  You should upgrade to Ruby 1.9.3 as the warning are saying, Ruby 1.8.7
  is no more supported by upstream:
  https://www.ruby-lang.org/en/news/2013/06/30/we-retire-1-8-7/
 
  --
  Giovanni Toraldo
  http://gionn.net
  ___
  Users mailing list
  Users@lists.opennebula.org
  http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



 --
 Javier Fontán Muiños
 Developer
 OpenNebula - Flexible Enterprise Cloud Made Simple
 www.OpenNebula.org | @OpenNebula | github.com/jfontan
 ___
 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


Re: [one-users] Stopping a VM erases it

2014-11-19 Thread Jaime Melis
As long as you are not doing something like migrating a vm or saving it you
can restart libvirtd without any problems

On Wed, Nov 19, 2014 at 5:19 PM, Sergi s...@okitup.com wrote:

  Hello Jaime,

 qemu.conf is ok :

 # grep -vE '^($|#)' /etc/libvirt/qemu.conf
 user  = oneadmin
 group = oneadmin
 dynamic_ownership = 0

 I found that :

 - user qemu belongs to group 'kvm', but oneadmin doesn't
 - I have no libvirtd group
 - /etc/libvirt/libvirtd.conf had listen_tcp=1 commented
 - /etc/sysconfig/libvirtd had LIBVIRTD_ARGS=--listen commented

 Can I restart libvirt without affecting running VMs?

 Thanks,
 regards,
 Sergi


  On 19/11/14 16:47, Jaime Melis wrote:

 Hi,

  I think this is due to a misconfigured qemu.conf.

  Does it have this? (
 http://docs.opennebula.org/4.10/administration/virtualization/kvmg.html#kvm-configuration
 )

  $ grep -vE '^($|#)' /etc/libvirt/qemu.conf
 user = oneadmin
 group = oneadmin
 dynamic_ownership = 0

  cheers,
 Jaime



 On Wed, Nov 5, 2014 at 6:21 PM, Sergi s...@okitup.com wrote:

  Hello,

 we are using OpenNebula 4.6.2 under CentOS 6.5.

 We have 2 hosts, one of these has also Sunstone and exports shared
 datastores (system, image and file), named 'localhost'.
 We also have another system datastore using the ssh driver.

 We have an issue with stopping VMs ... from sunstone gui, powering off a
 VM on the ssh system datastore and starting it again works; but stopping
 (option on menu that includes undeploy and undeploy hard) deletes the VM
 files and when trying to start it again, kvm cannot find the files (i.e.
 checkpoint).

 Wed Oct 29 10:55:45 2014 [LCM][I]: New VM state is SAVE_STOP
 Wed Oct 29 10:55:51 2014 [VMM][I]: ExitCode: 0
 Wed Oct 29 10:55:51 2014 [VMM][I]: Successfully execute virtualization
 driver operation: save.
 Wed Oct 29 10:55:51 2014 [VMM][I]: ExitCode: 0
 Wed Oct 29 10:55:51 2014 [VMM][I]: Successfully execute network driver
 operation: clean.
 Wed Oct 29 10:55:51 2014 [LCM][I]: New VM state is EPILOG_STOP
 Wed Oct 29 10:55:52 2014 [DiM][I]: New VM state is STOPPED
 Wed Oct 29 10:58:07 2014 [DiM][I]: New VM state is PENDING.
 Wed Oct 29 10:58:21 2014 [DiM][I]: New VM state is ACTIVE.
 Wed Oct 29 10:58:21 2014 [LCM][I]: New VM state is PROLOG.
 Wed Oct 29 10:58:21 2014 [LCM][I]: New VM state is BOOT
 Wed Oct 29 10:58:22 2014 [VMM][I]: ExitCode: 0
 Wed Oct 29 10:58:22 2014 [VMM][I]: Successfully execute network driver
 operation: pre.
 Wed Oct 29 10:58:22 2014 [VMM][I]: Command execution fail:
 /var/tmp/one/vmm/kvm/restore '/var/lib/one//datastores/100/61/checkpoint'
 'localhost' 'one-61' 61 localhost
 Wed Oct 29 10:58:22 2014 [VMM][E]: restore: Command virsh --connect
 qemu:///system restore /var/lib/one//datastores/100/61/checkpoint failed:
 error: Failed to restore domain from
 /var/lib/one//datastores/100/61/checkpoint
 Wed Oct 29 10:58:22 2014 [VMM][I]: error: Failed to create file
 '/var/lib/one//datastores/100/61/checkpoint': L’operació no és permesa
 Wed Oct 29 10:58:22 2014 [VMM][E]: Could not restore from
 /var/lib/one//datastores/100/61/checkpoint
 Wed Oct 29 10:58:22 2014 [VMM][I]: ExitCode: 1
 Wed Oct 29 10:58:22 2014 [VMM][I]: Failed to execute virtualization
 driver operation: restore.
 Wed Oct 29 10:58:22 2014 [VMM][E]: Error restoring VM: Could not restore
 from /var/lib/one//datastores/100/61/checkpoint
 Wed Oct 29 10:58:22 2014 [LCM][I]: Fail to boot VM. New VM state is
 EPILOG_STOP
 Wed Oct 29 10:58:22 2014 [DiM][I]: New VM state is STOPPED

 Thanks,
 regards,
 Sergi




















 * -- [image: okITup S.L.] https://www.okitup.com Infraestructures de
 hosting a mida Administració i Programació de Sistemes email:
 i...@okitup.com http://up.com telef.:  93 176 39 76 -- La información de
 este correo electrónico es confidencial, personal e intransferible y sólo
 está dirigida a la(s) dirección(es) indicada(s) arriba. Si usted lee este
 mensaje por equivocación, le informamos que está prohibida su divulgación,
 uso o distribución, completos o parciales; le rogamos que lo notifique
 inmediatamente al remitente y borre el mensaje original junto con sus
 ficheros anexos sin leerlo ni grabarlo. Gracias. La informació d'aquest
 correu electrònic és confidencial, personal i intransferible, i només està
 dirigida a l'adreça(ces) indicada(des). Si vostè llegeix aquest missatge
 per error, l'informem que n'està prohibida la propagació, l'ús o la
 distribució, complets o parcials; li demanem que ho notifiqui immediatament
 a la persona que li ha enviat i esborri el missatge original amb les dades
 adjuntes sense llegir-lo ni desar-lo. Gràcies. This e-mail contains
 confidential information. The information is intended for exclusive use by
 the abovementioned recipient. If you have received this e-mail in error,
 please notify us immediately to arrange for the confidential information to
 be returned to us. We hereby inform you that it is strictly prohibited to
 disclose, copy, distribute or take any action based on this information.
 

Re: [one-users] Stopping a VM erases it

2014-11-19 Thread Sergi
Hello Jaime,

qemu.conf is ok :

# grep -vE '^($|#)' /etc/libvirt/qemu.conf
user  = oneadmin
group = oneadmin
dynamic_ownership = 0

I found that |:

- user qemu belongs to group 'kvm', but oneadmin doesn't
- I have no libvirtd group
- /etc/libvirt/libvirtd.conf had listen_tcp=1 commented
- ||/etc/sysconfig/libvirtd had ||LIBVIRTD_ARGS=--listen commented

Can I restart libvirt without affecting running VMs?

Thanks,
regards,
Sergi


|
On 19/11/14 16:47, Jaime Melis wrote:
 Hi,

 I think this is due to a misconfigured qemu.conf.

 Does it have this?
 (http://docs.opennebula.org/4.10/administration/virtualization/kvmg.html#kvm-configuration)

 $ grep -vE '^($|#)' /etc/libvirt/qemu.conf
 user = oneadmin
 group = oneadmin
 dynamic_ownership = 0

 cheers,
 Jaime



 On Wed, Nov 5, 2014 at 6:21 PM, Sergi s...@okitup.com
 mailto:s...@okitup.com wrote:

 Hello,

 we are using OpenNebula 4.6.2 under CentOS 6.5.

 We have 2 hosts, one of these has also Sunstone and exports shared
 datastores (system, image and file), named 'localhost'.
 We also have another system datastore using the ssh driver.

 We have an issue with stopping VMs ... from sunstone gui, powering
 off a VM on the ssh system datastore and starting it again works;
 but stopping (option on menu that includes undeploy and undeploy
 hard) deletes the VM files and when trying to start it again, kvm
 cannot find the files (i.e. checkpoint).

 Wed Oct 29 10:55:45 2014 [LCM][I]: New VM state is SAVE_STOP
 Wed Oct 29 10:55:51 2014 [VMM][I]: ExitCode: 0
 Wed Oct 29 10:55:51 2014 [VMM][I]: Successfully execute
 virtualization driver operation: save.
 Wed Oct 29 10:55:51 2014 [VMM][I]: ExitCode: 0
 Wed Oct 29 10:55:51 2014 [VMM][I]: Successfully execute network
 driver operation: clean.
 Wed Oct 29 10:55:51 2014 [LCM][I]: New VM state is EPILOG_STOP
 Wed Oct 29 10:55:52 2014 [DiM][I]: New VM state is STOPPED
 Wed Oct 29 10:58:07 2014 [DiM][I]: New VM state is PENDING.
 Wed Oct 29 10:58:21 2014 [DiM][I]: New VM state is ACTIVE.
 Wed Oct 29 10:58:21 2014 [LCM][I]: New VM state is PROLOG.
 Wed Oct 29 10:58:21 2014 [LCM][I]: New VM state is BOOT
 Wed Oct 29 10:58:22 2014 [VMM][I]: ExitCode: 0
 Wed Oct 29 10:58:22 2014 [VMM][I]: Successfully execute network
 driver operation: pre.
 Wed Oct 29 10:58:22 2014 [VMM][I]: Command execution fail:
 /var/tmp/one/vmm/kvm/restore
 '/var/lib/one//datastores/100/61/checkpoint' 'localhost' 'one-61'
 61 localhost
 Wed Oct 29 10:58:22 2014 [VMM][E]: restore: Command virsh
 --connect qemu:///system restore
 /var/lib/one//datastores/100/61/checkpoint failed: error: Failed
 to restore domain from /var/lib/one//datastores/100/61/checkpoint
 Wed Oct 29 10:58:22 2014 [VMM][I]: error: Failed to create file
 '/var/lib/one//datastores/100/61/checkpoint': L’operació no és permesa
 Wed Oct 29 10:58:22 2014 [VMM][E]: Could not restore from
 /var/lib/one//datastores/100/61/checkpoint
 Wed Oct 29 10:58:22 2014 [VMM][I]: ExitCode: 1
 Wed Oct 29 10:58:22 2014 [VMM][I]: Failed to execute
 virtualization driver operation: restore.
 Wed Oct 29 10:58:22 2014 [VMM][E]: Error restoring VM: Could not
 restore from /var/lib/one//datastores/100/61/checkpoint
 Wed Oct 29 10:58:22 2014 [LCM][I]: Fail to boot VM. New VM state
 is EPILOG_STOP
 Wed Oct 29 10:58:22 2014 [DiM][I]: New VM state is STOPPED

 Thanks,
 regards,
 Sergi




 *--
 okITup S.L. https://www.okitup.com

 *Infraestructures de hosting a mida*
 *Administració i Programació de Sistemes*

 *email: i...@okitup.com http://up.com*

 *telef.:  93 176 39 76*

 -- 

 La información de este correo electrónico es confidencial,
 personal e intransferible y sólo está dirigida a la(s)
 dirección(es) indicada(s) arriba. Si usted lee este mensaje por
 equivocación, le informamos que está prohibida su divulgación, uso
 o distribución, completos o parciales; le rogamos que lo notifique
 inmediatamente al remitente y borre el mensaje original junto con
 sus ficheros anexos sin leerlo ni grabarlo. Gracias.

 La informació d'aquest correu electrònic és confidencial, personal
 i intransferible, i només està dirigida a l'adreça(ces)
 indicada(des). Si vostè llegeix aquest missatge per error,
 l'informem que n'està prohibida la propagació, l'ús o la
 distribució, complets o parcials; li demanem que ho notifiqui
 immediatament a la persona que li ha enviat i esborri el missatge
 original amb les dades adjuntes sense llegir-lo ni desar-lo. Gràcies.

 This e-mail contains confidential information. The information is
 intended for exclusive use by the abovementioned recipient. If you
 have received this e-mail in error, please notify us immediately
 to arrange for the confidential information to be returned to us.
 We hereby 

Re: [one-users] Ruby version

2014-11-19 Thread Amier Anis
thank you. it works.

On Thu, Nov 20, 2014 at 12:19 AM, Javier Fontan jfon...@opennebula.org
wrote:

 You can try using install_gems from the repository. It's for 4.10 so it
 will install more packages than needed but should do the trick.


 https://github.com/OpenNebula/one/blob/one-4.10/share/install_gems/install_gems


 On Sun Nov 16 2014 at 1:26:00 PM Amier Anis amirud...@skali.net wrote:

 how to resolve this issue in 4.8 stable version?


 On Fri, Jul 25, 2014 at 6:23 PM, Javier Fontan jfon...@opennebula.org
 wrote:

 That whould be the best way to go but there is not an easy path in
 CentOS 6. For the final version we will support CentOS 6 with stock
 ruby (1.8.7) but azure and softlayer hybrid drivers won't work in it.
 We have modified install_gems so it detects the ruby versions and does
 not try to install some gems. This change did not make to the beta.

 To be able to use install_gems in the beta you can execute it with this
 command:

 # ./install_gems quota sustone auth_ldap oneflow oca

 On Fri, Jul 25, 2014 at 11:53 AM, Giovanni Toraldo m...@gionn.net wrote:
  Hi,
 
  On Fri, Jul 25, 2014 at 9:27 AM, Anandharaj Subramaniam
  anandharaj.man...@mimos.my wrote:
  What is the recommended / minimum version for Ruby?
 
  You should upgrade to Ruby 1.9.3 as the warning are saying, Ruby 1.8.7
  is no more supported by upstream:
  https://www.ruby-lang.org/en/news/2013/06/30/we-retire-1-8-7/
 
  --
  Giovanni Toraldo
  http://gionn.net
  ___
  Users mailing list
  Users@lists.opennebula.org
  http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



 --
 Javier Fontán Muiños
 Developer
 OpenNebula - Flexible Enterprise Cloud Made Simple
 www.OpenNebula.org | @OpenNebula | github.com/jfontan
 ___
 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


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


Re: [one-users] Do we need to mount /var/lib/one with ceph

2014-11-19 Thread Huynh Dac Nguyen

Hi Jaime,  

The cephfs looks easier than ceph datastore. 

- /var/lib/one - not shared, only for frontend 
If not shared, /var/lib/one should be synchronized between
multi-frontend, right?  

- /var/lib/one/datastores - lives in a cephFS share avaialble to the
frontend and all the nodes 

this location is mounted in all nodes as file system to be sure any
nodes can show all data in cephfs?  


It's good ideas, I will do it now. 

But i really want to use ceph data store, could you show me the right
way.? 

Regards, 
Ndhuynh 



 Jaime Melis jme...@opennebula.org 11/19/2014 11:05 PM 

Hi, 



are you planning on using CephFS? if that's so you might find it easier
to set it up like this: 



- /var/lib/one - not shared, only for frontend 

- /var/lib/one/datastores - lives in a cephFS share avaialble to the
frontend and all the nodes 



would this suit you? 



cheers,
Jaime 



On Wed, Nov 12, 2014 at 6:09 AM, Huynh Dac Nguyen
ndhu...@spsvietnam.vn wrote:



Dear Ruben,  


You mean: 
- /var/lib/one is mounted from NAS server just for Front-end 
- The datastore is mounted from Ceph for frond-end and node 


So  
Front-end servers must be mounted NAS (/var/lib/one) and Ceph
(/var/lib/one/datastores/[number]), 2 mounted points. 
Node servers must be mounted only Ceph
(/var/lib/one/datastores/[number]), 1 mounted point 
and the passwordless file must be updated manually 


Is it correct?  
so why don't we use ceph for both of shared location? or just
/var/lib/one? I really don't want to manage more device.  
Could you show me the best solution? I'm confused to continue because
of stuck in integrate Ceph and opennebula 



Regards,  
Ndhuynh 



--



Message: 1 
Date: Tue, 11 Nov 2014 14:30:01 + 
From: Ruben S. Montero rsmont...@opennebula.org 
To: Huynh Dac Nguyen ndhu...@spsvietnam.vn, 
users@lists.opennebula.org 
Subject: Re: [one-users] Do we need to mount /var/lib/one with ceph 
Message-ID: 
cagi56tetpmozcek+ddzlulj7y_yc-py40av0rbgopudb7mc...@mail.gmail.com (
mailto:cagi56tetpmozcek%2bddzlulj7y_yc-py40av0rbgopudb7mc...@mail.gmail.com
) 
Content-Type: text/plain; charset=utf-8 


The system datastore is accessed from the front-end to generate the
context 
iso. Note that you don't need to be it exported from the front-end, the

nodes and the front-end itself can mount it from an different NAS
server. 


The /var/lib/one contents are needed in the front-end but not by the
nodes. 
Just the system datastore directory. 


If the VM tries to access a disk from a device that is not mounted or
the 
NAS server is down you'll be in trouble. However, note that context ISO
is 
only accessed during the boot state and the main disks of the VM are in
the 
ceph pool, so you'll probably be fine (but if not tested it) 


Cheers 



On Mon Nov 10 2014 at 3:38:14 AM Huynh Dac Nguyen
ndhu...@spsvietnam.vn 
wrote: 


 Dear Ruben, 
 
 Thank you for replying 
 
 So what happens if the front-end opennebula is down 
 the /var/lib/one isn't mounted,only System Datastore is mounted, 
 then the VM can't work, right? (the vm requires image and additional

 files) 
 
 Can you explain why we don't need to export the whole /var/lib/one ?

 
 Regards, 
 Ndhuynh 
 
  Ruben S. Montero rsmont...@opennebula.org 11/7/2014 4:52 PM 
  
 Hi Ndhuynh 

 
 Ceph storage in OpenNebula is handled as follows: 
 
 
 1.- Image Datastores, hold disk images repository as well as images
for 
 running VMs in a Ceph volume 
 2.- System Datastore holds additional VM files, checkpoints, context

 disks and the like. 
 
 
 If you need live-migration the easiest way is to have a shared 
 filesystem for the System Datastore. You don't need to export the
whole 
 /var/lib/one, just the datastore directory, though. 
 
 
 If you do not need to live-migrate VMs you should be ok with a ssh 
 based system datastore 
 
 
 Cheers 
 
 
 
 
 
 
 On Wed Nov 05 2014 at 12:09:47 PM Huynh Dac Nguyen 
 ndhu...@spsvietnam.vn wrote: 
 
 Hi All, 
 
 
 I'm researching opennebula with ceph, i saw that most of guide focus
on 
 using ceph as datastore - block device, right? 
 
 
 Do we need to mount ceph to /var/lib/one as file system to prevent
the 
 opennebula frontend down expectedly? 
 
 
 My script is: 
 
 
 1) Make a ceph file system : one and mount to /var/lib/one in all 
 opennebula node (front-end and node) 
 2) Create a ceph block device and add to opennebula as datastore 
 
 
 Is this a right way? 
 
 
 Regards, 
 Ndhuynh 
 ndhu...@spsvietnam.vn 
 
 This e-mail message including any attachments is for the sole use of

 the intended(s) and may contain privileged or confidential
information. 
 Any unauthorized review, use, disclosure or distribution is
prohibited. 
 If you are not intended recipient, please immediately contact the
sender 
 by reply e-mail and delete the original message and destroy all
copies 
 thereof. 
 
 ___ 
 Users mailing list