I am still a newbie and going through the ovirt engine-setup
And I am getting an error --- AIO: Validating CPU Compatibility... [
ERROR ]
oVirt Engine will be installed using the following configuration:
=
http-port: 80
https-port:443
host-fqdn: ovirtmgr.localdomain
auth-pass:
org-name: home
default-dc-type: NFS
db-remote-install: local
db-local-pass:
nfs-mp:/mnt/iso
iso-domain-name: iso
override-iptables: no
config-allinone: yes
storage-path: /mnt/data
superuser-pass:
Proceed with the configuration listed above? (yes|no): yes
Installing:
AIO: Validating CPU Compatibility...[ ERROR
]
Error: Could not start libvirt service. Please try starting it manually
and rerun the setup.
Please check log file
/var/log/ovirt-engine/engine-setup_2015_02_24_23_49_33.log for more
information
I examined the log
/var/log/ovirt-engine/engine-setup_2015_02_24_23_49_33.log:
It consists of the following info:
File /usr/share/ovirt-engine/scripts/plugins/all_in_one_100.py, line
184, in startLibvirt
raise Exception(ERROR_LIBVIRT_START)
Exception: Error: Could not start libvirt service. Please try starting
it manually and rerun the setup.
Please find the attached file
/usr/share/ovirt-engine/scripts/plugins/all_in_one_100.py
Appreciate your help.
All in one plugin.
Installs and configures VDSM on the same host as ovirt-engine
import logging
import sys
import os
import os.path
import urllib2
import crypt
import time
import nfsutils
import traceback
import engine_validators as validate
import basedefs
import common_utils as utils
from ovirtsdk.api import API
from ovirtsdk.xml import params
# Override basedefs default so that status message are aligned
basedefs.SPACE_LEN = 80
# Product version
MAJOR = '3'
MINOR = '1'
# Controller object will be initialized from main flow
controller = None
# Plugin name
PLUGIN_NAME = AIO
PLUGIN_NAME_COLORED = utils.getColoredText(PLUGIN_NAME, basedefs.BLUE)
# INFO Messages
INFO_CONF_PARAMS_ALL_IN_ONE_USAGE = Configure all in one
INFO_CONF_PARAMS_ALL_IN_ONE_PROMPT = Configure VDSM on this host?
INFO_CONF_PARAMS_LOCAL_STORAGE = Local storage domain path
INFO_LIBVIRT_START = libvirt service is started
INFO_CREATE_HOST_WAITING_UP = Waiting for the host to start
# ERROR MESSAGES
SYSTEM_ERROR = System Error
ERROR_CREATE_API_OBJECT = Error: could not create ovirtsdk API object
ERROR_CREATE_LOCAL_DATACENTER = Error: Could not create local datacenter
ERROR_CREATE_LOCAL_CLUSTER = Error: Could not create local cluster
ERROR_CREATE_LOCAL_HOST = Error: Could not install local host
ERROR_CREATE_HOST_FAILED = Error: Host was found in a 'Failed' state. Please check engine and bootstrap installation logs.
ERROR_CREATE_HOST_TIMEOUT = Error: Timed out while waiting for host to start
ERROR_ADD_LOCAL_DOMAIN = Error: could not add local storage domain
ERROR_CREATE_STORAGE_PATH = Error: could not create local domain path
ERROR_UNSUPPORTED_CPU_MODEL = Error: This host does not have any of the supported CPU models
ERROR_CAPABILITIES = Error: couldn't obtain host CPU capabilities.
ERROR_LIBVIRT_START = Error: Could not start libvirt service. Please try \
starting it manually and rerun the setup.
ERROR_LIBVIRT_STATUS = Error: Could not get status of the libvirt service
ERROR_JBOSS_STATUS = Error: There's a problem with JBoss service.\
Check that it's up and rerun setup.
# PARAMS
PAUSE = 10
SLEEP_PERIOD = 25 # period in seconds, this is waiting until JBoss is up
MAX_CYCLES = 33 # (5.5 (minutes) * 60 )/ 10, since we sleep 10 seconds after each iteration
LOCAL_STORAGE_MIN_SIZE = 10 # Size in Gb
API_OBJECT_PATH = https://%s:%s/api;
JBOSS_HEALTH_URL = http://%s:%s/OvirtEngineWeb/HealthStatus;
LOCAL_CLUSTER = local_cluster
LOCAL_DATA_CENTER = local_datacenter
LOCAL_HOST = local_host
LOCAL_STORAGE = local_storage
# PATH PARAMS
VDSM_PATH = /usr/share/vdsm
SHADOW_FILE = /etc/shadow
logging.debug(plugin %s loaded, __name__)
def initConfig(controllerObject):
global controller
controller = controllerObject
logging.debug(Adding parameters for VDSM configuration)
paramsList = [{
CMD_OPTION : config-allinone,
USAGE : INFO_CONF_PARAMS_ALL_IN_ONE_USAGE,
PROMPT : INFO_CONF_PARAMS_ALL_IN_ONE_PROMPT,
OPTION_LIST : [yes, no],
VALIDATION_FUNC : validate.validateOptions,
DEFAULT_VALUE : yes,
MASK_INPUT : False,
LOOSE_VALIDATION: False,
CONF_NAME : CONFIG_ALLINONE,
USE_DEFAULT : False,
NEED_CONFIRM