The ovirt-awake script is no more in the path, only in /etc/init.d/ so the ovirt script return a command not found. I did little dirty fix in /etc/init.d/ovirt : diff --git a/scripts/ovirt b/scripts/ovirt index 160c3d3..d9e50a2 100755 --- a/scripts/ovirt +++ b/scripts/ovirt @@ -41,7 +41,7 @@ ovirt_start() { if [ -s $krb5_tab ]; then krb5_tab fi - ovirt-awake start $SRV_HOST $SRV_PORT $krb5_tab + /etc/init.d/ovirt-awake start $SRV_HOST $SRV_PORT $krb5_tab if [ $? -ne 0 ]; then log "ovirt-awake failed"; return 1 fi It raises an other problem : [...] Mar 08 17:07:52 Starting ovirt Starting ovirt-awake: /etc/init.d/ovirt-awake: line 71: /dev/tcp/"host_addr":12120: No such file or directory /etc/init.d/ovirt-awake: line 73: connect-to-server: command not found /etc/init.d/ovirt-awake: line 49: 3: Bad file descriptor /etc/init.d/ovirt-awake: line 75: [: ==: unary operator expected /etc/init.d/ovirt-awake: line 45: 3: Bad file descriptor /etc/init.d/ovirt-awake: line 97: 3: Bad file descriptor Mar 08 17:07:53 Completed ovirt-awake: RETVAL=0 ^[[60G[^[[0;31mFAILED^[[0;39m]^MMar 08 17:07:53 ovirt-awake failed [...] l 71 : it's a problem with the net redirection in bash my little fix : diff --git a/scripts/ovirt-awake b/scripts/ovirt-awake index c6a6902..8983ef1 100755 --- a/scripts/ovirt-awake +++ b/scripts/ovirt-awake @@ -68,7 +68,7 @@ ovirt_startup () { if [[ -n "${mgmthost}" ]] && [[ -n "${mgmtport}" ]]; then # log "Notifying oVirt management server: ${mgmthost}:${mgmtport}" - exec 3<> /dev/tcp/$mgmthost:$mgmtport + exec 3<>/dev/tcp/$mgmthost/$mgmtport connect-to-server receive_text if [ $REPLY == "HELLO?" ]; then - logo "Starting wakeup conversation." + log "Starting wakeup conversation." send_text "HELLO!" receive_text I still have this error : Starting ovirt-awake: /etc/init.d/ovirt-awake: line 73: connect-to-server: command not found The function has been removed by D Pierce : http://www.mail-archive.com/ovirt-devel at redhat.com/msg00445.html -- Arthur CLEMENT Linagora Paris
On Tue, Mar 09, 2010 at 04:25:31PM +0100, Arthur CLEMENT wrote:> The ovirt-awake script is no more in the path, only in /etc/init.d/ so the > ovirt script return a command not found. > I did little dirty fix in /etc/init.d/ovirt : > > diff --git a/scripts/ovirt b/scripts/ovirt > index 160c3d3..d9e50a2 100755 > --- a/scripts/ovirt > +++ b/scripts/ovirt > @@ -41,7 +41,7 @@ ovirt_start() { > if [ -s $krb5_tab ]; then > krb5_tab> fi > - ovirt-awake start $SRV_HOST $SRV_PORT $krb5_tab > + /etc/init.d/ovirt-awake start $SRV_HOST $SRV_PORT $krb5_tab > if [ $? -ne 0 ]; then > log "ovirt-awake failed"; return 1 > fiovirt-awake is no longer a command line tool but instead should be working as a separate service. It's the first one that should run in the chain of ovirt-specific services. Also, it doesn't handle command line arguments any longer but is instead driven by the DNS SRV records for the management server and the contents of the /etc/sysconfig/node-config file.> diff --git a/scripts/ovirt-awake b/scripts/ovirt-awake > index c6a6902..8983ef1 100755 > --- a/scripts/ovirt-awake > +++ b/scripts/ovirt-awake > @@ -68,7 +68,7 @@ ovirt_startup () { > > if [[ -n "${mgmthost}" ]] && [[ -n "${mgmtport}" ]]; then > # log "Notifying oVirt management server: ${mgmthost}:${mgmtport}" > - exec 3<> /dev/tcp/$mgmthost:$mgmtport > + exec 3<>/dev/tcp/$mgmthost/$mgmtport > > connect-to-server > receive_text > if [ $REPLY == "HELLO?" ]; then > - logo "Starting wakeup conversation." > + log "Starting wakeup conversation." > send_text "HELLO!" > receive_text > > > > > I still have this error : > > Starting ovirt-awake: /etc/init.d/ovirt-awake: line 73: connect-to-server: > command not foundD'oh! Yeah, that call to connect-to-server should have been removed since it's replaced by the previous line to connection 3 to the TCP socket. -- Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc. Delivering value year after year. Red Hat ranks #1 in value among software vendors. http://www.redhat.com/promo/vendor/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: not available URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20100309/24339850/attachment.sig>
Possibly Parallel Threads
- RFC: First pass at making the node generic...
- [PATCH] ovirt-awake runs alone now, doesn't need anymore to be lauch by /etc/init.d/ovirt
- [PATCH node] Fix SRV_SERVER for SRV_HOST to work with /etc/init.d/ovirt-functions
- [PATCH node] Add support for automatic remote logging on PXE ovirt-node
- [PATCH] ovirt-awake improvements