Re: [one-users] Widening list command output?

2011-10-31 Thread Karl Katzke
Héctor -

Making a change there didn’t seem to produce any changes. You’re right that I’d 
expect it to. Also, the XML output does produce the correct output — it’s in 
the database, it’s just truncated somewhere between the database  and the code. 
It looks like |d| is an instance of self.table_conf, which should allow me to 
use a file in .one/cli/ to set table parameters? I’m not very familiar with 
Ruby’s conventions, but that’s what I’d expect after reading the code. This 
does not seem to be documented anywhere.

... AHA! I figured it out.

In /etc/one/cli/image/oneimage.yaml will let you customize the CLI output.

This can be customized on a per user basis in $HOME/.one/cli/(name of CLI 
program).yaml ... And this CLI customization, which is actually pretty nice and 
neat, isn’t documented anywhere that I can find.

It looks like that is true for all of the CLI programs. Now if I could just get 
it to stop putting four to six extra spaces after the name...

-K



On 10/31/11 6:31 PM, "Héctor Sanjuán"  wrote:

> I think you can do a small change in
> /usr/lib/one/ruby/cli/one_helper/oneimage_helper.rb: format_pool():
>
> column :NAME, "Name of the Image", :left, :size=>12 do |d|
> d["NAME"]
> end
>
> I haven't tried, but if you change :size i'd expect it to print larger
> names.
>
> Hope it helps,
>
> Héctor Sanjuán
> OpenNebula Developer
>
> El 31/10/11 21:58, Karl Katzke escribió:
>> Is there a quick/easy way to widen the output of the OpenNebula commands
>> beyond the basic 80 characters wide?
>>
>> For instance, `oneimage list` crowds things such that the image name can
>> be only 12 chars wide. “OpenSuSE 11.” is 12 chars wide and there isn’t
>> an easy way to abbreviate it to be less than that.
>>
>> Thanks,
>> Karl Katzke
>>
>>
>> ___
>> 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] Widening list command output?

2011-10-31 Thread Héctor Sanjuán
I think you can do a small change in
/usr/lib/one/ruby/cli/one_helper/oneimage_helper.rb: format_pool():

column :NAME, "Name of the Image", :left, :size=>12 do |d|
d["NAME"]
end

I haven't tried, but if you change :size i'd expect it to print larger
names.

Hope it helps,

Héctor Sanjuán
OpenNebula Developer

El 31/10/11 21:58, Karl Katzke escribió:
> Is there a quick/easy way to widen the output of the OpenNebula commands
> beyond the basic 80 characters wide?
> 
> For instance, `oneimage list` crowds things such that the image name can
> be only 12 chars wide. “OpenSuSE 11.” is 12 chars wide and there isn’t
> an easy way to abbreviate it to be less than that.
> 
> Thanks,
> Karl Katzke
> 
> 
> ___
> 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] Using Requirements and Rank to create only one guest of type X per host

2011-10-31 Thread Ruben S. Montero
Hi

On Fri, Oct 28, 2011 at 2:11 AM, Karl Katzke  wrote:
> Thanks! That helps with the VM pinning aspect greatly. I didn't realize that 
> the custom variables could be used in constraints.
>
> My other questions concerned a cold start of the cluster and the cluster 
> drivers.
>
> There is very little information about what happens during a cold start. In 
> our case, some dependencies need to start before other cloud/cluster services 
> can fully start. Is there a way to script this startup process so that we can 
> be sure that these depended-upon VMs are started first?


There is no tool that do this for OpenNebula 3.0. However it should be
fairly easy to script that behavior for your services, either using
the onevm commands or ruby - OCA api. For example, you can start a
template wait till that VM is running then instantiate the other VMs
that depends on the first one and so on.

>
> Second, what is the proper configuration in /etc/one/oned.conf to be using 
> the TM_LVM transfer manager driver simultaneously with the TM_SHARED transfer 
> manager? The manual and configuration files aren't clear on this point ... 
> They emphasize that multiple transfer managers can be in use unlike multiple 
> image manager drivers, but don't give an example of that configuration.

Simply add them to oned.conf, uncommenting the TM lines that comes in
oned.conf should be enough.

Then when you create a host specify the TM driver (among those defined
in oned.conf) that you want to use with that host.


Cheers

Ruben


>
> Thanks,
> Karl Katzke
>
> Sent from my shoePhone.
>
> On Oct 27, 2011, at 17:25, "Ruben S. Montero"  
> wrote:
>
>> Hi
>>
>> A couple of hints...
>>
>>> We also want those hosts to start first when a host or the cluster comes 
>>> back up. If >I’m reading the documentation correctly, that means that we 
>>> would use the rank >algorithm somehow — but by my read of the 
>>> documentation, that was only for host >selection, not boot priority.
>>
>> RANK/REQUIREMENTS is for host selection. But I am not sure that I
>> really understand this. If you want to first use those host that has
>> been recently rebooted. You could simply add a probe with uptime and
>> RANK them based on that.
>>
>>> Manually coupling a particular VM to a host would also work, but I can’t
>>> figure out how to do that yet within the scope of the “VM Template” scheme
>>> either.
>>
>> You can add the names of the VMs you want to "pin" to a particular
>> host in a special variable. Something like:
>>
>>> onehost update host0
>>
>> # At the editor add
>> RAID0_VMS="db_vm web_vm"
>>
>> Then a template for a VM "pinned" to that host would look like:
>>
>> NAME="db_vm"
>> ...
>> REQUIREMENTS="RAID0_VMS=\"*$NAME*\""
>>
>> Instead of NAMES you could pinned them by MAC for example, just add
>> RAID0_MACS="11:22:33:44:55:66 11:22:33:44:55:66" and the requirements
>> would look like RAID0_MACS= "\"*$NIC[MAC]\*""
>>
>>>
>>> Last but not least, I’d like to have a the SSH transition, the LVM
>>> transition manager, and the Shared transition manager all enabled.
>>
>> Yes simply remove comments for the TMs.
>>
>>> Thanks,
>>> Karl Katzke
>>> ___
>>> Users mailing list
>>> Users@lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>
>>>
>>
>>
>>
>> --
>> Ruben S. Montero, PhD
>> Project co-Lead and Chief Architect
>> OpenNebula - The Open Source Toolkit for Cloud Computing
>> www.OpenNebula.org | rsmont...@opennebula.org
>
>



-- 
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org | rsmont...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Widening list command output?

2011-10-31 Thread Karl Katzke
Is there a quick/easy way to widen the output of the OpenNebula commands beyond 
the basic 80 characters wide?

For instance, `oneimage list` crowds things such that the image name can be 
only 12 chars wide. “OpenSuSE 11.” is 12 chars wide and there isn’t an easy way 
to abbreviate it to be less than that.

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


Re: [one-users] Failed to create domain from /srv/cloud/one/var//(VM id)/images/deployment.0

2011-10-31 Thread Rubens Pinheiro
Another information, the user 116 and group 125 doesn't exits in both 
machines (opennebula host and vm host).

The user oneadmin UID and group cloud GID are 1.

Att,
Em 31-10-2011 14:24, Rubens Pinheiro escreveu:

Hello,
I've got a problem in vm deployment.
In vm.log shows that:

...

Mon Oct 31 13:58:33 2011 [LCM][I]: New VM state is BOOT

Mon Oct 31 13:58:33 2011 [VMM][I]: Generating deployment file: 
/srv/cloud/one/var/13/deployment.0


Mon Oct 31 13:58:35 2011 [VMM][I]: Command execution fail: 'if [ -x 
"/var/tmp/one/vmm/kvm/deploy" ]; then /var/tmp/one/vmm/kvm/deploy 
/srv/cloud/one/var//13/images/deployment.0; 
else  exit 42; fi'


Mon Oct 31 13:58:35 2011 [VMM][I]: STDERR follows.

Mon Oct 31 13:58:35 2011 [VMM][I]: error: Failed to create domain from 
/srv/cloud/one/var//13/images/deployment.0


Mon Oct 31 13:58:35 2011 [VMM][I]: error: unable to set user and group 
to '116:125' on '/srv/cloud/one/var//13/images/disk.0': No such file 
or directory


Mon Oct 31 13:58:35 2011 [VMM][I]: ExitCode: 255

Mon Oct 31 13:58:35 2011 [VMM][E]: Error deploying virtual machine: 
error: Failed to create domain from 
/srv/cloud/one/var//13/images/deployment.0


Mon Oct 31 13:58:35 2011 [DiM][I]: New VM state is FAILED

...


So I've commented out, in tm_delete.sh, the disk image remove.
After comparing md5sum of '/srv/cloud/one/var//13/images/disk.0' with 
the image in opennebula host, it shows the same hexadecimal number 
(the file is ok).
So, why the error "No such file or directory" showed up if 'disk.0' 
exists and isn't corrupted?


best regards,


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


[one-users] Failed to create domain from /srv/cloud/one/var//(VM id)/images/deployment.0

2011-10-31 Thread Rubens Pinheiro

Hello,
I've got a problem in vm deployment.
In vm.log shows that:

...

Mon Oct 31 13:58:33 2011 [LCM][I]: New VM state is BOOT

Mon Oct 31 13:58:33 2011 [VMM][I]: Generating deployment file: 
/srv/cloud/one/var/13/deployment.0

Mon Oct 31 13:58:35 2011 [VMM][I]: Command execution fail: 'if [ -x 
"/var/tmp/one/vmm/kvm/deploy" ]; then /var/tmp/one/vmm/kvm/deploy 
/srv/cloud/one/var//13/images/deployment.0; else  exit 42; fi'

Mon Oct 31 13:58:35 2011 [VMM][I]: STDERR follows.

Mon Oct 31 13:58:35 2011 [VMM][I]: error: Failed to create domain from 
/srv/cloud/one/var//13/images/deployment.0

Mon Oct 31 13:58:35 2011 [VMM][I]: error: unable to set user and group to 
'116:125' on '/srv/cloud/one/var//13/images/disk.0': No such file or directory

Mon Oct 31 13:58:35 2011 [VMM][I]: ExitCode: 255

Mon Oct 31 13:58:35 2011 [VMM][E]: Error deploying virtual machine: error: 
Failed to create domain from /srv/cloud/one/var//13/images/deployment.0

Mon Oct 31 13:58:35 2011 [DiM][I]: New VM state is FAILED

...


So I've commented out, in tm_delete.sh, the disk image remove.
After comparing md5sum of '/srv/cloud/one/var//13/images/disk.0' with 
the image in opennebula host, it shows the same hexadecimal number (the 
file is ok).
So, why the error "No such file or directory" showed up if 'disk.0' 
exists and isn't corrupted?


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


Re: [one-users] Bonded/trunked interfaces in OpenNebula

2011-10-31 Thread Jaime Melis
Hello Donny,

I have been doing a good bit of searching for the answer to this but cannot
> seem to find a straight answer. My servers have 4 network cards each.
> Currently I have them all bonded/trunked. How does OpenNebula handle this?
> I want to redo my hosts and start fresh. Do I need to go ahead and do the
> bond/trunk on the host manually or does OpenNebula handle that?


using a bonded interface with OpenNebula is the same as using a regular
interface i.e. perform the network configuration first (including attaching
the bonded -or regular- interface to a bridge) and use that bridge in the
network configuration templates. In other words, OpenNebula doesn't handle
the network configuration, you have to do that manually, it only cares
about what bridge to hook the VMs to.

Also I thought to bond 2 each for SAN and network traffic instead of all 4
> bonded like they are. The bond is really only for speed increase more so
> than fault tolerance.


Bonding interfaces is a very good idea, for all the hosts and especially
more for the storage server (SAN or whatever). Since the storage network
will have a lot of traffic keeping it separated is a very good practice.

Regards,
Jaime

On Fri, Oct 28, 2011 at 9:55 PM, Donny Brooks wrote:

> I have been doing a good bit of searching for the answer to this but
> cannot seem to find a straight answer. My servers have 4 network cards
> each. Currently I have them all bonded/trunked. How does OpenNebula handle
> this? I want to redo my hosts and start fresh. Do I need to go ahead and do
> the bond/trunk on the host manually or does OpenNebula handle that? Also I
> thought to bond 2 each for SAN and network traffic instead of all 4 bonded
> like they are. The bond is really only for speed increase more so than
> fault tolerance.
>
> --
> Donny B.
>
> __**_
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org
>



-- 
Jaime Melis
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
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] Ruby oca - change templates

2011-10-31 Thread Carlos Martín Sánchez
Hi,

You can update only Template resources, those managed with onetemplate.
Once a VM is instantiated from a template, you can't modify it.

Regards.
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | cmar...@opennebula.org |
@OpenNebula


On Mon, Oct 31, 2011 at 4:41 PM, Paulo A L Rego wrote:

> Hi,
>
> is it possible to change the virtual machine's template while the vm is in
> pending state?
>
> We can see the template by using *vm.template_str* and the xml using *
> vm.to_xml*.
> Can we update the template or the xml before deploying?
>
> I would like to update the name and/or include other fields at template.
>
> Thanks a lot.
> Paulo Rego
>
> ___
> 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] Shared Storage Mount Point - /var/lib/one or /srv/cloud

2011-10-31 Thread Carlos Martín Sánchez
Hi,

You need to share the default path /var/lib/one (and mount it in the same
path).
The images are a bit outdated and show /srv/cloud because it was the
suggested path for self-contained installations in previous versions.

Regards.
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | cmar...@opennebula.org |
@OpenNebula


On Fri, Oct 28, 2011 at 7:40 PM, Vickreman Chettiar wrote:

> Hello.
>
>   I'm confused about where the volume which is shared between the
> front-end and the hosts should be mounted.
>
>   It is stated on http://www.opennebula.org/documentation:rel3.0:sfs that
> the shared partition must be mounted at  which be default is *
> /var/lib/one*
>
>   However, the second picture on
> http://www.opennebula.org/documentation:rel3.0:plan shows that the shared
> partition is to be mounted at */srv/cloud*
>
>   Which of these two locations, */var/lib/one* or */srv/cloud*, is the
> correct place to mount the shared partition in the front-end and each host?
>
>   Regards to everyone,
>
> Vickreman Chettiar 
>
> I'm quite particular about particular fields of quiet physics such as
> particular physics.
>
>
> ___
> 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] Ruby oca - change templates

2011-10-31 Thread Paulo A L Rego
Hi,

is it possible to change the virtual machine's template while the vm is in
pending state?

We can see the template by using *vm.template_str* and the xml using *
vm.to_xml*.
Can we update the template or the xml before deploying?

I would like to update the name and/or include other fields at template.

Thanks a lot.
Paulo Rego
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org