[one-users] Problem with deploying VM on a specific host

Piotr Kandziora raveenpl at gmail.com
Mon Sep 9 10:29:31 PDT 2013


Hi,

I'm trying to run VM on a specific host within the cluster. I added
REQUIREMENTS field to the VM template, but looks like it is ignored and
finally VM is deployed on the other machine.

VM Template:

CONTEXT=[
  CONFIGURE_NETWORK="1",
  CONFIGURE_VG="1" ]
CPU="0.5"
DISK=[
  DRIVER="qcow2",
  FORMAT="qcow2",
  IMAGE="8637_TRUNK_Nightly",
  IMAGE_UNAME="ci" ]
DISK=[
  DEV_PREFIX="sd",
  FORMAT="raw",
  SIZE="20480",
  TYPE="fs" ]
GRAPHICS=[
  LISTEN="0.0.0.0",
  TYPE="vnc" ]
MEMORY="1024"
NIC=[
  MODEL="virtio",
  NETWORK="OE-NET-1",
  NETWORK_UNAME="ci" ]
NIC=[
  MODEL="virtio",
  NETWORK="OE-NET-2",
  NETWORK_UNAME="ci" ]
NIC=[
  MODEL="virtio",
  NETWORK="OE-NET-3",
  NETWORK_UNAME="ci" ]
OS=[
  ARCH="x86_64",
  BOOT="hd" ]
REQUIREMENTS="NAME = \"vdev4\"" # tried here also with HOSTNAME

After deploying (onevm show 1021)

AUTOMATIC_REQUIREMENTS="CLUSTER_ID = 100"
CONTEXT=[
  CONFIGURE_NETWORK="1",
  CONFIGURE_VG="1",
  DISK_ID="2",
  TARGET="hdb" ]
CPU="0.5"
GRAPHICS=[
  LISTEN="0.0.0.0",
  PORT="6921",
  TYPE="vnc" ]
MEMORY="1024"
OS=[
  ARCH="x86_64",
  BOOT="hd" ]
TEMPLATE_ID="322"
VMID="1021"

sched.log:

Mon Sep  9 19:21:01 2013 [HOST][D]: Discovered Hosts (enabled):
 0 2 3 4
Mon Sep  9 19:21:01 2013 [SCHED][D]: VM 1021: Host 3 filtered out. Not
enough capacity.
Mon Sep  9 19:21:01 2013 [SCHED][I]: Selected hosts:
         PRI    HID  VM: 1021
        -----------------------
        1       0
        0.685332        2
        0.627666        4


Mon Sep  9 19:21:01 2013 [VM][I]: Dispatching virtual machine 1021 to host 0


Any ideas why this parameter is ignored?

Regards
Piotr Kandziora
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130909/6d32b7d7/attachment.htm>


More information about the Users mailing list