[Engine-devel] Error while trying to read parameter HTTP_PORT from user

Juan Hernandez jhernand at redhat.com
Mon Jan 21 10:25:03 UTC 2013


On 01/17/2013 02:52 AM, Chen, Wei D wrote:
> Hi,
>
>    There is a problem in setup ovirt-engine,“Error while trying to read
> parameter HTTP_PORT from user.”
>
> The env is setup with ovirt-engine 3.2.0 from
> http://www.ovirt.org/Building_oVirt_engine , at last i try to
>
> input ‘make’ to configure ovirt engine.
>
> Selinux is ‘SELINUX=enforcing’ in /etc/selinux/config
>
> Iptalbles is running, and the below ports in open.
>
> iptables -I INPUT 1 -p tcp --dport 443  -j ACCEPT
>
> iptables -I INPUT 1 -p tcp --dport 80   -j ACCEPT
>
> iptables -I INPUT 1 -p tcp --dport 4457 -j ACCEPT
>
> iptables -I INPUT 1 -p tcp --dport 8443 -j ACCEPT
>
> iptables -I INPUT 1 -p tcp --dport 8083 -j ACCEPT
>
> iptables -I INPUT 1 -p tcp --dport 1090 -j ACCEPT
>
> /usr/share/jboss-as/bin/standalone.sh can run too.
>
> The below is printing out information when I input engine-setup:
>
> ###################################
>
> #engine-setup
>
> Welcome to oVirt Engine setup utility
>
> In order to proceed the installer must stop the ovirt-engine service
>
> Would you like to stop the ovirt-engine service? (yes|no): yes
>
> oVirt Engine uses httpd to proxy requests to the application server.
>
> It looks like the httpd installed locally is being actively used.
>
> The installer can override current configuration .
>
> Alternatively you can use JBoss directly (on ports higher than 1024)
>
> Do you wish to override current httpd configuration and restart the
> service? ['yes'| 'no']  [yes] : yse
>
> Error: response is not part of the following accepted answers: yes, no
>
> oVirt Engine uses httpd to proxy requests to the application server.
>
> It looks like the httpd installed locally is being actively used.
>
> The installer can override current configuration .
>
> Alternatively you can use JBoss directly (on ports higher than 1024)
>
> Do you wish to override current httpd configuration and restart the
> service? ['yes'| 'no']  [yes] : yes
>
> HTTP Port  [80] : 80
>
> Error while trying to read parameter HTTP_PORT from user.
>
> Please check log file
> /var/log/ovirt-engine/engine-setup_2013_01_17_04_18_17.log for more
> information
>
> Below is /var/log/ovirt-engine/engine-setup_2013_01_17_04_18_17.log
>
> ###########/var/log/ovirt-engine/engine-setup_2013_01_17_04_18_17.log
> ##########
>
> 2013-01-17 04:18:17::DEBUG::common_utils::1255::root:: checking if
> firewalld service is available
>
> 2013-01-17 04:18:17::DEBUG::common_utils::430::root:: Executing command
> --> '/bin/systemctl show firewalld'
>
> 2013-01-17 04:18:17::DEBUG::common_utils::468::root:: output =
>
> 2013-01-17 04:18:17::DEBUG::common_utils::469::root:: stderr = Failed to
> issue method call: Unit name firewalld is not valid.
>
> 2013-01-17 04:18:17::DEBUG::common_utils::470::root:: retcode = 1
>
> 2013-01-17 04:18:17::DEBUG::common_utils::1255::root:: checking if
> iptables service is available
>
> 2013-01-17 04:18:17::DEBUG::common_utils::430::root:: Executing command
> --> '/bin/systemctl show iptables'
>
> 2013-01-17 04:18:17::DEBUG::common_utils::468::root:: output =
>
> 2013-01-17 04:18:17::DEBUG::common_utils::469::root:: stderr = Failed to
> issue method call: Unit name iptables is not valid.
>
> 2013-01-17 04:18:17::DEBUG::common_utils::470::root:: retcode = 1
>
> 2013-01-17 04:18:17::DEBUG::common_utils::430::root:: Executing command
> --> '/sbin/ip addr'
>
> 2013-01-17 04:18:17::DEBUG::common_utils::468::root:: output = 1: lo:
> <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
>
>      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
>
>      inet 127.0.0.1/8 scope host lo
>
>      inet6 ::1/128 scope host
>
>         valid_lft forever preferred_lft forever
>
> 2: em1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
> state UP qlen 1000
>
>      link/ether 2c:41:38:a8:41:13 brd ff:ff:ff:ff:ff:ff
>
>      inet 10.239.131.232/24 brd 10.239.131.255 scope global em1
>
>      inet6 fe80::2e41:38ff:fea8:4113/64 scope link
>
>         valid_lft forever preferred_lft forever
>
> 2013-01-17 04:18:17::DEBUG::common_utils::469::root:: stderr =
>
> 2013-01-17 04:18:17::DEBUG::common_utils::470::root:: retcode = 0
>
> 2013-01-17 04:18:17::DEBUG::common_utils::589::root:: Found IP Address:
> 10.239.131.232
>
> 2013-01-17 04:18:17::DEBUG::engine-setup::2139::root:: initiating
> command line option parser
>
> 2013-01-17 04:18:17::DEBUG::engine-setup::2106::root:: checking total memory
>
> 2013-01-17 04:18:17::DEBUG::common_utils::430::root:: Executing command
> --> '/usr/bin/free -m'
>
> 2013-01-17 04:18:17::DEBUG::common_utils::468::root:: output
> =              total       used       free     shared    buffers     cached
>
> Mem:          7945        627       7317          0         15        406
>
> -/+ buffers/cache:        205       7739
>
> Swap:         9983          0       9983
>
> 2013-01-17 04:18:17::DEBUG::common_utils::469::root:: stderr =
>
> 2013-01-17 04:18:17::DEBUG::common_utils::470::root:: retcode = 0
>
> 2013-01-17 04:18:17::DEBUG::engine-setup::2118::root:: Found a match,
> amount of memory: 7945
>
> 2013-01-17 04:18:17::DEBUG::engine-setup::2008::root:: Entered
> main(configFile='None')
>
> 2013-01-17 04:18:17::DEBUG::engine-setup::1802::root:: stopping
> ovirt-engine service
>
> 2013-01-17 04:18:17::DEBUG::common_utils::967::root:: asking user: Would
> you like to stop the ovirt-engine service? (yes|no):
>
> 2013-01-17 04:18:19::DEBUG::common_utils::971::root:: user answered: yes
>
> 2013-01-17 04:18:19::DEBUG::common_utils::1211::root:: stopping ovirt-engine
>
> 2013-01-17 04:18:19::DEBUG::common_utils::1248::root:: executing action
> ovirt-engine on service stop
>
> 2013-01-17 04:18:19::DEBUG::common_utils::430::root:: Executing command
> --> '/sbin/service ovirt-engine stop'
>
> 2013-01-17 04:18:19::DEBUG::common_utils::468::root:: output =
>
> 2013-01-17 04:18:19::DEBUG::common_utils::469::root:: stderr =
>
> 2013-01-17 04:18:19::DEBUG::common_utils::470::root:: retcode = 0
>
> 2013-01-17 04:18:19::DEBUG::engine-setup::1532::root:: going over group
> PORTS
>
> 2013-01-17 04:18:19::DEBUG::common_utils::1289::root:: retrieving
> version for ipa-server rpm
>
> 2013-01-17 04:18:19::DEBUG::common_utils::1310::root:: getRpmVersion failed
>
> Traceback (most recent call last):
>
>    File "/usr/local/share/ovirt-engine/scripts/common_utils.py", line
> 1307, in installed
>
>      getRpmVersion(rpmName=rpm)
>
>    File "/usr/local/share/ovirt-engine/scripts/common_utils.py", line
> 1301, in getRpmVersion
>
>      raise Exception(output_messages.ERR_READ_RPM_VER % rpmName)
>
> Exception: Error reading version number for package ipa-server
>
> 2013-01-17 04:18:19::DEBUG::common_utils::1289::root:: retrieving
> version for freeipa-server rpm
>
> 2013-01-17 04:18:19::DEBUG::common_utils::1310::root:: getRpmVersion failed
>
> Traceback (most recent call last):
>
>    File "/usr/local/share/ovirt-engine/scripts/common_utils.py", line
> 1307, in installed
>
>      getRpmVersion(rpmName=rpm)
>
>    File "/usr/local/share/ovirt-engine/scripts/common_utils.py", line
> 1301, in getRpmVersion
>
>      raise Exception(output_messages.ERR_READ_RPM_VER % rpmName)
>
> Exception: Error reading version number for package freeipa-server
>
> 2013-01-17 04:18:19::INFO::engine-setup::1541::root:: Comparing
> pre-conditions; condition: 'True', and match: 'True'
>
> 2013-01-17 04:18:20::INFO::engine_validators::199::root::
> validateOverrideHttpdConfAndChangePortsAccordingly yse as part of
> ['yes', 'no']
>
> 2013-01-17 04:18:20::INFO::engine_validators::182::root:: Validating yse
> as part of ['yes', 'no']
>
> 2013-01-17 04:18:22::INFO::engine_validators::199::root::
> validateOverrideHttpdConfAndChangePortsAccordingly yes as part of
> ['yes', 'no']
>
> 2013-01-17 04:18:22::INFO::engine_validators::182::root:: Validating yes
> as part of ['yes', 'no']
>
> 2013-01-17 04:18:22::DEBUG::engine_validators::207::root:: stopping
> httpd service
>
> 2013-01-17 04:18:22::DEBUG::common_utils::1211::root:: stopping httpd
>
> 2013-01-17 04:18:22::DEBUG::common_utils::1248::root:: executing action
> httpd on service stop
>
> 2013-01-17 04:18:22::DEBUG::common_utils::430::root:: Executing command
> --> '/sbin/service httpd stop'
>
> 2013-01-17 04:18:22::DEBUG::common_utils::468::root:: output =
>
> 2013-01-17 04:18:22::DEBUG::common_utils::469::root:: stderr =
>
> 2013-01-17 04:18:22::DEBUG::common_utils::470::root:: retcode = 0
>
> 2013-01-17 04:18:24::DEBUG::engine_validators::62::root:: Validating 80
> as a valid TCP Port
>
> 2013-01-17 04:18:24::DEBUG::common_utils::394::root:: Checking if TCP
> port 80 is open by any process
>
> 2013-01-17 04:18:24::DEBUG::common_utils::430::root:: Executing command
> --> '/usr/sbin/lsof -i -n -P'
>
> 2013-01-17 04:18:24::ERROR::engine-setup::601::root:: Traceback (most
> recent call last):
>
>    File "/usr/local/bin/engine-setup", line 574, in _getInputFromUser
>
>      if param.getKey("VALIDATION_FUNC")(userInput,
> param.getKey("OPTION_LIST")):
>
>    File "/usr/local/share/ovirt-engine/scripts/engine_validators.py",
> line 81, in validatePort
>
>      (portOpen, process, pid) = utils.isTcpPortOpen(param)
>
>    File "/usr/local/share/ovirt-engine/scripts/common_utils.py", line
> 399, in isTcpPortOpen
>
>      output, rc = execCmd(cmdList=cmd, failOnError=True,
> msg=output_messages.ERR_EXP_LSOF)
>
>    File "/usr/local/share/ovirt-engine/scripts/common_utils.py", line
> 454, in execCmd
>
>      env=env,
>
>    File "/usr/lib64/python2.7/subprocess.py", line 679, in __init__
>
>      errread, errwrite)
>
>    File "/usr/lib64/python2.7/subprocess.py", line 1249, in _execute_child
>
>      raise child_exception
>
> OSError: [Errno 2] No such file or directory
>
> 2013-01-17 04:18:25::ERROR::engine-setup::1577::root:: Traceback (most
> recent call last):
>
>    File "/usr/local/bin/engine-setup", line 1546, in
> _handleInteractiveParams
>
>      input_param(param)
>
>    File "/usr/local/bin/engine-setup", line 628, in input_param
>
>      _getInputFromUser(param)
>
>    File "/usr/local/bin/engine-setup", line 602, in _getInputFromUser
>
>      raise Exception(output_messages.ERR_EXP_READ_INPUT_PARAM %
> (param.getKey("CONF_NAME")))
>
> Exception: Error while trying to read parameter HTTP_PORT from user.
>
> 2013-01-17 04:18:25::DEBUG::engine-setup::1875::root:: *** The following
> params were used as user input:
>
> 2013-01-17 04:18:25::DEBUG::engine-setup::1880::root::
> override-httpd-config: yes
>
> 2013-01-17 04:18:25::ERROR::engine-setup::2295::root:: Traceback (most
> recent call last):
>
>    File "/usr/local/bin/engine-setup", line 2290, in <module>
>
>      main(confFile)
>
>    File "/usr/local/bin/engine-setup", line 2028, in main
>
>      _handleParams(configFile)
>
>    File "/usr/local/bin/engine-setup", line 1589, in _handleParams
>
>     _handleInteractiveParams()
>
>    File "/usr/local/bin/engine-setup", line 1546, in
> _handleInteractiveParams
>
>      input_param(param)
>
>    File "/usr/local/bin/engine-setup", line 628, in input_param
>
>      _getInputFromUser(param)
>
>    File "/usr/local/bin/engine-setup", line 602, in _getInputFromUser
>
>      raise Exception(output_messages.ERR_EXP_READ_INPUT_PARAM %
> (param.getKey("CONF_NAME")))
>
> Exception: Error while trying to read parameter HTTP_PORT from user.
>
> Best Regards,
>
> Dave Chen

Apparently the engine-setup tool is failing because it is not finding 
the "lsof" command. Do you have that package installed? If not install 
it with "yum install lsof", then try again.

-- 
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 
3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.



More information about the Devel mailing list