Re: Problem with sem_get() in utils.php

2012-02-28 Thread Aaron Peeler
Does the testsetup.php report any missing modules?

https://your.server.org/vcl/testsetup.php

Aaron

On Mon, Feb 27, 2012 at 5:20 PM, Gary Trail tra...@rpi.edu wrote:
 All:

 Using RHEL 6.2,  we are working through the cookbook install on:

 https://cwiki.apache.org/confluence/display/VCL/VCL+2.2.1+Installation

 We have completed the database install and are now working on the web
 front-end.  we have installed the mcrypt dependency removal patch. Clicking
 on Proceed to Login, we enter admin userid and default password and
 subsequent screen says Fatal error: Call to undefined function sem_get() in
 /var/www/html/vcl/.ht-inc/utils.php on line 251.  Offending line is:

 if(! ($semid = sem_get(SEMKEY, 1, 0666, 1)))

 We are also seeing a message Notice: Uninitialized string offset: 0 in
 /var/www/html/vcl/.ht-inc/utils.php on line 3208.  Not sure if this
 indicates fatal error or not.

 Any ideas on what may be causing the problems and where to look?

 Thanks
 Gary


 Josh Thompson wrote the following on 2/27/2012 3:43 PM:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Clark,

 After following the directions on that page, you can ignore the error
 message
 about mcrypt from testsetup.php.

 Josh

 On Monday, February 27, 2012 8:15:07 PM Clark Cooper wrote:

 Yes, I had already attempted that patch, but testsetup.php continues to
 report the missing modules.  I have installed though:

 [root@rhel61 phpseclib]# pwd
 /var/www/html/vcl/.ht-inc/phpseclib
 [root@rhel61 phpseclib]#
 [root@rhel61 phpseclib]# ls
 Crypt       docbook.css  intro.html  math.html        Net       PHP
 crypt.html  index.html   Math        misc_crypt.html  net.html
 sym_crypt.html [root@rhel61 phpseclib]#
 [root@rhel61 phpseclib]# ls -l ../no_mcrypt.patch
 -rw-r--r--. 1 root root 1460 Jun 16  2011 ../no_mcrypt.patch

 -Clark


 -Original Message-
 From: Josh Thompson [mailto:josh_thomp...@ncsu.edu]
 Sent: Monday, February 27, 2012 2:52 PM
 To: vcl-user@incubator.apache.org
 Subject: Re: php-mcrypt and php-sysvsem

 - gpg control packet
 Clark,

 This page explains how to remove the dependency on mcrypt:


 https://cwiki.apache.org/confluence/display/VCL/Patch+to+remove+mcrypt+depen
 dency

  From testing I just did on a RHEL 6.2 system, it looks like the
 php-process
 package provides sysvsem.

 Josh

 On Monday, February 27, 2012 6:55:15 PM Clark Cooper wrote:

 I'm attempting to install/configure VCL on a RHEL61 z/Linux system and
 having difficulty with the requirements for php-mcrypt and php-sysvsem
 as these packages do not appear to be available for my release.

 The testpsetup.php script identifies the following problems:

 Testing for required php extensions ...
 * Missing these extensiosn: mcrypt, sysvsem


 Again, my release does not appear to contain these packages.  What
 should I do in order to get mcrypt support:


 [root@rhel61 mcrypt-2.6.8]# yum list available|grep php
 cups-php.s390x                 1:1.4.2-44.el6
 rhel-s390x-server-optional-6 graphviz-php.s390x             2.26.0-7.el6

      rhel-s390x-server-optional-6 php-bcmath.s390x

 5.3.3-3.el6_2.6      rhel-s390x-server-optional-6 php-dba.s390x

      5.3.3-3.el6_2.6      rhel-s390x-server-optional-6
      php-devel.s390x

           5.3.3-3.el6_2.6      rhel-s390x-server-optional-6

 php-embedded.s390x             5.3.3-3.el6_2.6
 rhel-s390x-server-optional-6 php-enchant.s390x
 5.3.3-3.el6_2.6
      rhel-s390x-server-optional-6 php-imap.s390x

 5.3.3-3.el6_2.6      rhel-s390x-server-optional-6 php-intl.s390x

      5.3.3-3.el6_2.6      rhel-s390x-server-optional-6
      php-mbstring.s390x

           5.3.3-3.el6_2.6      rhel-s390x-server-optional-6
           php-odbc.s390x
                5.3.3-3.el6_2.6      rhel-s390x-server-6
                php-pecl-apc.s390x
            3.1.3p1-1.2.el6.1    rhel-s390x-server-6
            php-pecl-memcache.s390x
        3.0.5-3.el6          rhel-s390x-server-6 php-pgsql.s390x

    5.3.3-3.el6_2.6      rhel-s390x-server-6 php-process.s390x

 5.3.3-3.el6_2.6      rhel-s390x-server-optional-6 php-pspell.s390x

      5.3.3-3.el6_2.6      rhel-s390x-server-optional-6
      php-recode.s390x

           5.3.3-3.el6_2.6      rhel-s390x-server-optional-6
           php-snmp.s390x
                5.3.3-3.el6_2.6
                rhel-s390x-server-optional-6

 php-soap.s390x                 5.3.3-3.el6_2.6      rhel-s390x-server-6
 php-tidy.s390x                 5.3.3-3.el6_2.6
 rhel-s390x-server-optional-6 php-zts.s390x
 5.3.3-3.el6_2.6
      rhel-s390x-server-optional-6 rrdtool-php.s390x

 1.3.8-6.el6          rhel-s390x-server-optional-6 uuid-php.s390x

      1.6.1-10.el6         rhel-s390x-server-optional-6

 Clark Cooper | Senior Systems Engineer
 1301 Gervais Street, Suite 1800 | Columbia, SC 29201
 (d) 803.978.2699 | (f) 803.733.5888
 clark.coo...@vc3.com | www.VC3.com
 Follow us:

 - --
 - ---
 Josh Thompson
 VCL Developer
 North Carolina State University

 my GPG/PGP key can be 

RE: failed mysql connection

2012-02-28 Thread Clark Cooper
Yes, I'm able to make a connection from command line (using the password in the 
secrets file):

[root@rhel61 ~]# mysql -u vcluser -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.1.61 Source distribution


I still get the connection error after making the suggested MySQL grant:

mysql GRANT ALL ON vcl.* TO 'vcluser'@'localhost';
Query OK, 0 rows affected (0.00 sec)

Thanks,
Clark


-Original Message-
From: dcheb...@gmu.edu [mailto:dcheb...@gmu.edu] 
Sent: Monday, February 27, 2012 8:54 PM
To: vcl-user@incubator.apache.org
Subject: Re: failed mysql connection

Clark

Are you able to connect to mysql from command line on rhel61 host, 'mysql -u 
vcluser -p' ?
Can you also try with GRAND ALL ON vcl.* TO 'vcluser'@localhost?

On Feb 27, 2012, at 16:36 , Clark Cooper wrote:

 Still trying to get VCL setup/configured and moving past the php-mcrypt 
 issue, I also receive the following message within my testsetup.php output:
 
 
 Testing mysql connection ...
 Error: fsockopen(): unable to connect to localhost:3306 (Permission 
 denied) Could not connect to port 3306 on localhost
 
 
 For debugging purposes, I have stopped iptables.  Here is the connection 
 information within my secrets.php file:
 
 [root@rhel61 .ht-inc]# grep vcl secrets.php $vclhost = 'localhost'; # 
 name of mysql server
 $vcldb = 'vcl'; # name of mysql database
 $vclusername = 'vcluser';  # username to access database
 $vclpassword = 'vcluserpassword';  # password to access database
 
 
 
 Note the following outputs from MySQL:
 
 mysql show grants for vcluser@localhost;
 ++
 | Grants for vcluser@localhost
|
 ++
 | GRANT USAGE ON *.* TO 'vcluser'@'localhost' IDENTIFIED BY PASSWORD 
 | '*BC54E34381D07EB1FF25938A2F524C17201FC22F' | GRANT SELECT, INSERT, 
 | UPDATE, DELETE, CREATE TEMPORARY TABLES, LOCK TABLES ON `vcl`.* TO 
 | 'vcluser'@'localhost' |
 ++
 2 rows in set (0.00 sec)
 
 
 mysql select host, user, password from mysql.user;
 +---+-+---+
 | host  | user| password  |
 +---+-+---+
 | localhost | root| *A195277AB4567B2C3C4CDCAF6B5B48409EFE6765 |
 | 127.0.0.1 | root| *A195277AB4567B2C3C4CDCAF6B5B48409EFE6765 |
 | localhost | vcluser | *BC54E34381D07EB1FF25938A2F524C17201FC22F |
 +---+-+---+
 
 
 Clark Cooper | Senior Systems Engineer
 1301 Gervais Street, Suite 1800 | Columbia, SC 29201
 (d) 803.978.2699 | (f) 803.733.5888
 clark.coo...@vc3.com | www.VC3.com
 Follow us: 
 
 
 




Thank you.

-
Dmitri Chebotarov
dcheb...@gmu.edu
703-993-6175
-




Re: failed mysql connection

2012-02-28 Thread Scott M. Sorrentino
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Feb 27, 2012 at 09:36:51PM +, Clark Cooper wrote:
 Still trying to get VCL setup/configured and moving past the php-mcrypt 
 issue, I also receive the following message within my testsetup.php output:
 
 
 Testing mysql connection ...
 Error: fsockopen(): unable to connect to localhost:3306 (Permission denied)
 Could not connect to port 3306 on localhost
 

This might seem like a dumb question but do you have MySQL set up to listen 
on port 3306?  I've seen some installations that only enable the Unix domain
socket for safety reasons.

- -- 
Scott M. Sorrentino sms...@cornell.edu
CIT Systems  Operations, Cornell University
726 Rhodes Hall // (607) 254-8535
GnuPG fingerprint: 6E30 0B83 43F8 CF8B 3B44  7DBE 6AAE DFC9 1DE6 8C1C

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk9M3gMACgkQaq7fyR3mjByC4gCdEi/Ko/4DgrLb7jz9+pLQSpCK
1QoAn3MpbECUwxMaSSFpcdVeojTmCBnd
=3dT1
-END PGP SIGNATURE-


Re: failed mysql connection

2012-02-28 Thread Dmitri Chebotarov
Clark

Could you also check that selinux is disabled?

On Feb 28, 2012, at 8:51 , Clark Cooper wrote:

 Yes, I'm able to make a connection from command line (using the password in 
 the secrets file):
 
 [root@rhel61 ~]# mysql -u vcluser -p
 Enter password: 
 Welcome to the MySQL monitor.  Commands end with ; or \g.
 Your MySQL connection id is 3
 Server version: 5.1.61 Source distribution
 
 
 I still get the connection error after making the suggested MySQL grant:
 
 mysql GRANT ALL ON vcl.* TO 'vcluser'@'localhost';
 Query OK, 0 rows affected (0.00 sec)
 
 Thanks,
 Clark
 
 
 -Original Message-
 From: dcheb...@gmu.edu [mailto:dcheb...@gmu.edu] 
 Sent: Monday, February 27, 2012 8:54 PM
 To: vcl-user@incubator.apache.org
 Subject: Re: failed mysql connection
 
 Clark
 
 Are you able to connect to mysql from command line on rhel61 host, 'mysql -u 
 vcluser -p' ?
 Can you also try with GRAND ALL ON vcl.* TO 'vcluser'@localhost?
 
 On Feb 27, 2012, at 16:36 , Clark Cooper wrote:
 
 Still trying to get VCL setup/configured and moving past the php-mcrypt 
 issue, I also receive the following message within my testsetup.php output:
 
 
 Testing mysql connection ...
 Error: fsockopen(): unable to connect to localhost:3306 (Permission 
 denied) Could not connect to port 3306 on localhost
 
 
 For debugging purposes, I have stopped iptables.  Here is the connection 
 information within my secrets.php file:
 
 [root@rhel61 .ht-inc]# grep vcl secrets.php $vclhost = 'localhost'; # 
 name of mysql server
 $vcldb = 'vcl'; # name of mysql database
 $vclusername = 'vcluser';  # username to access database
 $vclpassword = 'vcluserpassword';  # password to access database
 
 
 
 Note the following outputs from MySQL:
 
 mysql show grants for vcluser@localhost;
 ++
 | Grants for vcluser@localhost   
 |
 ++
 | GRANT USAGE ON *.* TO 'vcluser'@'localhost' IDENTIFIED BY PASSWORD 
 | '*BC54E34381D07EB1FF25938A2F524C17201FC22F' | GRANT SELECT, INSERT, 
 | UPDATE, DELETE, CREATE TEMPORARY TABLES, LOCK TABLES ON `vcl`.* TO 
 | 'vcluser'@'localhost' |
 ++
 2 rows in set (0.00 sec)
 
 
 mysql select host, user, password from mysql.user;
 +---+-+---+
 | host  | user| password  |
 +---+-+---+
 | localhost | root| *A195277AB4567B2C3C4CDCAF6B5B48409EFE6765 |
 | 127.0.0.1 | root| *A195277AB4567B2C3C4CDCAF6B5B48409EFE6765 |
 | localhost | vcluser | *BC54E34381D07EB1FF25938A2F524C17201FC22F |
 +---+-+---+
 
 
 Clark Cooper | Senior Systems Engineer
 1301 Gervais Street, Suite 1800 | Columbia, SC 29201
 (d) 803.978.2699 | (f) 803.733.5888
 clark.coo...@vc3.com | www.VC3.com
 Follow us: 
 
 
 
 
 
 
 
 Thank you.
 
 -
 Dmitri Chebotarov
 dcheb...@gmu.edu
 703-993-6175
 -
 
 




Thank you.

-
Dmitri Chebotarov
dcheb...@gmu.edu
703-993-6175
-




signature.asc
Description: Message signed with OpenPGP using GPGMail


RE: failed mysql connection

2012-02-28 Thread Clark Cooper
That was it...  SeLinux was enabled, but apparently not configured to allow as 
mentioned in the installation steps:

/usr/sbin/setsebool -P httpd_can_network_connect=1


Thank you,
Clark


-Original Message-
From: dcheb...@gmu.edu [mailto:dcheb...@gmu.edu] 
Sent: Tuesday, February 28, 2012 8:53 AM
To: vcl-user@incubator.apache.org
Subject: Re: failed mysql connection

Clark

Could you also check that selinux is disabled?

On Feb 28, 2012, at 8:51 , Clark Cooper wrote:

 Yes, I'm able to make a connection from command line (using the password in 
 the secrets file):
 
 [root@rhel61 ~]# mysql -u vcluser -p
 Enter password: 
 Welcome to the MySQL monitor.  Commands end with ; or \g.
 Your MySQL connection id is 3
 Server version: 5.1.61 Source distribution
 
 
 I still get the connection error after making the suggested MySQL grant:
 
 mysql GRANT ALL ON vcl.* TO 'vcluser'@'localhost';
 Query OK, 0 rows affected (0.00 sec)
 
 Thanks,
 Clark
 
 
 -Original Message-
 From: dcheb...@gmu.edu [mailto:dcheb...@gmu.edu]
 Sent: Monday, February 27, 2012 8:54 PM
 To: vcl-user@incubator.apache.org
 Subject: Re: failed mysql connection
 
 Clark
 
 Are you able to connect to mysql from command line on rhel61 host, 'mysql -u 
 vcluser -p' ?
 Can you also try with GRAND ALL ON vcl.* TO 'vcluser'@localhost?
 
 On Feb 27, 2012, at 16:36 , Clark Cooper wrote:
 
 Still trying to get VCL setup/configured and moving past the php-mcrypt 
 issue, I also receive the following message within my testsetup.php output:
 
 
 Testing mysql connection ...
 Error: fsockopen(): unable to connect to localhost:3306 (Permission
 denied) Could not connect to port 3306 on localhost
 
 
 For debugging purposes, I have stopped iptables.  Here is the connection 
 information within my secrets.php file:
 
 [root@rhel61 .ht-inc]# grep vcl secrets.php $vclhost = 'localhost'; # 
 name of mysql server
 $vcldb = 'vcl'; # name of mysql database
 $vclusername = 'vcluser';  # username to access database
 $vclpassword = 'vcluserpassword';  # password to access database
 
 
 
 Note the following outputs from MySQL:
 
 mysql show grants for vcluser@localhost;
 ++
 | Grants for vcluser@localhost   
 |
 ++
 | GRANT USAGE ON *.* TO 'vcluser'@'localhost' IDENTIFIED BY PASSWORD 
 | '*BC54E34381D07EB1FF25938A2F524C17201FC22F' | GRANT SELECT, INSERT, 
 | UPDATE, DELETE, CREATE TEMPORARY TABLES, LOCK TABLES ON `vcl`.* TO 
 | 'vcluser'@'localhost' |
 ++
 2 rows in set (0.00 sec)
 
 
 mysql select host, user, password from mysql.user;
 +---+-+---+
 | host  | user| password  |
 +---+-+---+
 | localhost | root| *A195277AB4567B2C3C4CDCAF6B5B48409EFE6765 |
 | 127.0.0.1 | root| *A195277AB4567B2C3C4CDCAF6B5B48409EFE6765 |
 | localhost | vcluser | *BC54E34381D07EB1FF25938A2F524C17201FC22F |
 +---+-+---+
 
 
 Clark Cooper | Senior Systems Engineer
 1301 Gervais Street, Suite 1800 | Columbia, SC 29201
 (d) 803.978.2699 | (f) 803.733.5888
 clark.coo...@vc3.com | www.VC3.com
 Follow us: 
 
 
 
 
 
 
 
 Thank you.
 
 -
 Dmitri Chebotarov
 dcheb...@gmu.edu
 703-993-6175
 -
 
 




Thank you.

-
Dmitri Chebotarov
dcheb...@gmu.edu
703-993-6175
-




Re: VCL and xCat

2012-02-28 Thread Dmitri Chebotarov
Hi

There seems to be a disconnect between xCAT2.pm and 
/install/postscripts/partimageng script. The partimageng script starts 
listener.py in background which suppose to report to nodestat in xCAT2.pm 
module. xCAT2.pm is using 'nodestat nodename stat' to check on status, but 
nodestat command doesn't use listener.py running on the node. 

Is there a workaround? May be an updated version of xCAT2.pm which checks 
/var/log/messages on round2? 
Looks like partimageng is using logger to report back the status to xCat 
master...

B/c of this, reservation or reload is inconsistent. nodestat would report 
install imagename for about 7-9 sec and xCAT2.pm doesn't always get it.

Thank you for your help.

 
On Feb 22, 2012, at 14:32 , Dmitri Chebotarov wrote:

 John,
 
 I got the link and I think I'm making some good progress. 
 Also found this tread on the maillist 
 (http://markmail.org/message/lotx3l34co6yv5nf?q=partimageng%2Epm#query:partimageng.pm+page:1+mid:lthvtrde7radude3+state:results)
  where you helped Prem, which is very helpful.
 
 Thank you
 
 On Feb 22, 2012, at 14:12 , Josh Thompson wrote:
 
 
 Hash: SHA1
 
 Dmitri,
 
 Did you follow the guide for adding partimage support to xCAT?
 
 https://cwiki.apache.org/confluence/display/VCL/Adding+support+for+partimage+and+partimage-
 ng+to+xCAT+2.x+%28unofficial%29
 
 You said you installed the partimage rpm.  partimage is not something that 
 needs to be installed on the management node.  It is part of the stateless 
 images mentioned on the above page.
 
 Josh
 
 On Tuesday 21 February 2012 4:47:06 PM Dmitri Chebotarov wrote:
 Hi All.
 
 I'm trying to capture a base image using xCAT module - the server is
 bare-metal CentOS5.7. The process starts OK, able to communicate with the
 node and then fails when trying to create .tmpl file.
 
 xCAT is installed and configured on the management node.
 partimage rpm is installed as well.
 
 Do you know what could be the issue?
 
 Thank you for your help.
 
 ...
 2012-02-21 16:22:30|12755|275:261|image|xCAT2.pm:capture(827)|nodetype
 modified, node bc1-7, image name centos5image-xcatcentos5v474-v0 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_create_template(1065)|attempting to
 create tmpl file for image: centos5image-xcatcentos5v474-v0 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2084)|manage
 ment node identifier argument was not specified
 2012-02-21 16:22:30|12755|275:261|image|
 xCAT2.pm:_get_image_template_path(2115)|attempting to determine template 
 path 
 for image:
 |12755|275:261|image| image name: centos5image-xcatcentos5v474-v0
 |12755|275:261|image| OS install type: partimage
 |12755|275:261|image| OS source path: image
 |12755|275:261|image| xCAT 2.x OS source path: image
 
 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2123)|return
 ing: /opt/xcat/share/xcat/install/image 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2084)|manage
 ment node identifier argument was not specified
 2012-02-21 16:22:30|12755|275:261|image|
 xCAT2.pm:_get_image_template_path(2115)|attempting to determine template 
 path 
 for image:
 |12755|275:261|image| image name: centos5image-xcatcentos5v474-v0
 |12755|275:261|image| OS install type: partimage
 |12755|275:261|image| OS source path: image
 |12755|275:261|image| xCAT 2.x OS source path: image
 
 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2123)|return
 ing: /opt/xcat/share/xcat/install/image 2012-02-21
 16:22:30|12755|275:261|image|DataStructure.pm:get_computer_private_ip_addre
 ss(1557)|returning private IP address previously retrieved: 10.3.1.27
 2012-02-21
 16:22:30|12755|275:261|image|utils.pm:is_inblockrequest(6164)|zero rows
 were returned from database select 2012-02-21
 16:22:30|12755|275:261|image|DataStructure.pm:get_image_affiliation_name(20
 35)|image owner id: 1 2012-02-21
 16:22:30|12755|275:261|image|utils.pm:getnewdbh(2710)|database requested
 (information_schema) does not match handle stored in $ENV{dbh}
 (vcl:10.3.1.214) 2012-02-21
 16:22:30|12755|275:261|image|utils.pm:getnewdbh(2761)|database handle
 stored in $ENV{dbh} 2012-02-21
 16:22:30|12755|275:261|image|DataStructure.pm:retrieve_user_data(1352)|atte
 mpting to retrieve and store data for user: user.id = '1' 2012-02-21
 16:22:30|12755|275:261|image|utils.pm:getnewdbh(2710)|database requested
 (vcl) does not match handle stored in $ENV{dbh}
 (information_schema:10.3.1.214) 2012-02-21
 16:22:30|12755|275:261|image|utils.pm:getnewdbh(2761)|database handle
 stored in $ENV{dbh} 2012-02-21
 16:22:30|12755|275:261|image|DataStructure.pm:retrieve_user_data(1415)|data
 has been retrieved for user: admin (id: 1) 2012-02-21
 16:22:30|12755|275:261|image|utils.pm:mail(1268)|SUCCESS -- Sending mail
 To: dcheb...@gmu.edu, PROBLEM --
 275:261|image|xCAT2.pm|bc1-7|centos5image-xcatcentos5v474-v0|admin
 |12755|275:261|image|  CRITICAL 
 |12755|275:261|image| 2012-02-21
 

Re: Linux servers with VLAN ID

2012-02-28 Thread Dmitri Chebotarov
Hi All

Please ignore this question.

I fixed it with adding a boot script to Linux bare-metal image (in /etc/init.d) 
to replace eth1 with eth1. in /etc/rc.local file using sed.

Thanks. 

On Feb 27, 2012, at 15:16 , Dmitri Chebotarov wrote:

 Hi All,
 
 In case if I need to use VLANs on external interface on Linux servers, what 
 would be the good way to handle eth1.xx interfaces? 
 I'm adding xCAT support for VCL and xCAT servers have external interface with 
 VLAD id. 
 The VCL script in rc.local checks for eth1, but not for eth1.xxx (which is 
 understandable). 
 
 I plan to change 1st two lines to:
 
 IP0=$(ifconfig | grep inet addr:|awk '{print $2}' | awk -F: '{print 
 $2}'|awk '{ if (NR==1) print $0 }')
 IP1=$(ifconfig | grep inet addr:|awk '{print $2}' | awk -F: '{print 
 $2}'|awk '{ if (NR==2) print $0 }')
 
 or to:
 
 IF0=$(ip -f inet addr|grep inet |grep eth0| awk {'print $7'})
 IF1=$(ip -f inet addr|grep inet |grep eth1| awk {'print $7'})
 
 IP0=$(ifconfig $IF0 | grep inet | awk '{print $2}' | awk -F: '{print $2}')
 IP1=$(ifconfig $IF1 | grep inet | awk '{print $2}' | awk -F: '{print $2}')
 
 and wanted to ask if anyone had to solve similar problem in the past and may 
 be have different solution. 
 
 I cannot hardcode eth1.VLANID, b/c the same VCL is used for VMs as well, and 
 those don't have VLANs (VLANs done by ESXi host)
 
 This is original script, which I plan to change:
 
 # This file will get overwritten during image capture. Any customizations
 # should be put into /etc/init.d/vcl_post_reserve or /etc/init.d/vcl_post_load
 # Note these files do not exist by default.
 
 IP0=$(ifconfig eth0 | grep inet | awk '{print $2}' | awk -F: '{print $2}')
 IP1=$(ifconfig eth1 | grep inet | awk '{print $2}' | awk -F: '{print $2}')
 
 sed -i -e '/.*AllowUsers .*$/d' /etc/ssh/sshd_config
 sed -i -e '/.*ListenAddress .*/d' /etc/ssh/sshd_config
 sed -i -e '/.*ListenAddress .*/d' /etc/ssh/external_sshd_config
 echo AllowUsers root  /etc/ssh/sshd_config
 echo ListenAddress $IP0  /etc/ssh/sshd_config
 echo ListenAddress $IP1  /etc/ssh/external_sshd_config
 /etc/rc.d/init.d/ext_sshd stop
 /etc/rc.d/init.d/sshd stop
 sleep 2
 /etc/rc.d/init.d/sshd start
 /etc/rc.d/init.d/ext_sshd start
 
 
 Thank you.
 
 -
 Dmitri Chebotarov
 dcheb...@gmu.edu
 703-993-6175
 -
 
 




Thank you.

-
Dmitri Chebotarov
dcheb...@gmu.edu
703-993-6175
-




signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Creating a base image

2012-02-28 Thread Alexander Patterson
Hello Aaron

Can you log in into your Vsphere Client ESXI 4.1 Server the one
hosting the images
Go to Configurations
Under Software
Click on Security Profile
Click on Properties
Under Remote Access make sure you have
Remote Teach Support SSH is Running and Automatically Turned on

You should check if you can ssh without a password from the base image
to the management node but also and vice versa.

Also did you add in the IP range into trusted hosts?

-Alex

On Tue, Feb 28, 2012 at 10:28 AM, Aaron Bryant amb...@pitt.edu wrote:
 Greetings,

 I completed installing Cygwin SSHD and I'm attempting to run the vcld -setup
 command.  My problem occurs in this step while creating a base image.  I am
 able to get through all of the prompts and start the creation before the
 script crashes.  I have checked the '/var/log/vcld.log' log file and this is
 a portion of the output:

 ---
 VCL::Module::Provisioning::VMware::vSphere_SDK

 |10951|20:20|image|  WARNING 
 |10951|20:20|image| 2012-02-28

 13:32:34|10951|20:20|image|VMware.pm:initialize(273)|no methods are
 available to control VM host vsphere, the

 vSphere SDK cannot be used to control the VM host and the host OS cannot be
 controlled via SSH
 |10951|20:20|image| (

 0) VMware.pm, initialize (line: 273)
 |10951|20:20|image| (-1) Module.pm, new (line: 207)
 |10951|20:20|image| (-2)

 Module.pm, create_provisioning_object (line: 423)
 |10951|20:20|image| (-3) State.pm, initialize (line: 117)
 |10951|

 20:20|image| (-4) Module.pm, new (line: 207)
 |10951|20:20|image| (-5) vcld, make_new_child (line: 564)


 |10951|20:20|

 image|  WARNING 
 |10951|20:20|image| 2012-02-28 13:32:34|10951|20:20|image|

 Module.pm:create_provisioning_object(431)|provisioning object could not be
 created, returning 0
 |10951|20:20|image|

 ( 0) Module.pm, create_provisioning_object (line: 431)
 |10951|20:20|image| (-1) State.pm, initialize (line: 117)
 |

 10951|20:20|image| (-2) Module.pm, new (line: 207)
 |10951|20:20|image| (-3) vcld, make_new_child (line: 564)
 |10951|
 -


 I have checked and am able to ssh between the management node and the
 virtual machines using key authentication.

 Please see the log file attached for more information.

 Thanks,
 Aaron Bryant



-- 
Thanks,
Alex  Patterson
User Support Services
Operating System Analyst
California State University, East Bay


Re: Uninitialized string offset message VCL web front-end login page

2012-02-28 Thread Josh Thompson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Gary,

It is safe to ignore.  You can keep it from being displayed by setting 
display_errors to Off in /etc/php.ini.

Josh

On Tuesday, February 28, 2012 2:58:51 PM Gary Trail wrote:
 To All:
 
 We are seeing ta message Notice: Uninitialized string offset: 0 in
 /var/www/html/vcl/.ht-inc/utils.php on line 3208 in the upper left hand
 corner of VCL login screen.  It goes away after successful login.
 
 Is it safe to ignore for now or is this indicative of more serious
 problems?
 
 How do we fix this?
 
 Thanks
 Gary
- -- 
- ---
Josh Thompson
VCL Developer
North Carolina State University

my GPG/PGP key can be found at pgp.mit.edu

All electronic mail messages in connection with State business which
are sent to or received by this account are subject to the NC Public
Records Law and may be disclosed to third parties.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk9NOiwACgkQV/LQcNdtPQO3+wCcD4bqfG0+mGN5rJlg0xxafnAE
HhIAn0D89tjOcPTh96q/fdmaacv8krzF
=h7t4
-END PGP SIGNATURE-



Re: Creating a base image

2012-02-28 Thread Aaron Bryant
I have previously added each of the servers and clients into each others 
Know hosts to eliminate any problems there.  I have discovered that I am 
able to use SSH key authentication between the Management node and the 
client, but not from the client back to the Management node.  Password 
authentication will work for the SSH connection between the client and 
management node, but not key authentication.  I have tried to copy the 
management node's private key, which I am assuming is /etc/vcl/vcl.key, 
to the client machine but to no avail.  The client machine still prompts 
for a password when entering ssh


Aaron


On 2/28/2012 1:40 PM, Alexander Patterson wrote:

Hello Aaron

Can you log in into your Vsphere Client ESXI 4.1 Server the one
hosting the images
Go to Configurations
Under Software
Click on Security Profile
Click on Properties
Under Remote Access make sure you have
Remote Teach Support SSH is Running and Automatically Turned on

You should check if you can ssh without a password from the base image
to the management node but also and vice versa.

Also did you add in the IP range into trusted hosts?

-Alex

On Tue, Feb 28, 2012 at 10:28 AM, Aaron Bryantamb...@pitt.edu  wrote:

Greetings,

I completed installing Cygwin SSHD and I'm attempting to run the vcld -setup
command.  My problem occurs in this step while creating a base image.  I am
able to get through all of the prompts and start the creation before the
script crashes.  I have checked the '/var/log/vcld.log' log file and this is
a portion of the output:

---
VCL::Module::Provisioning::VMware::vSphere_SDK

|10951|20:20|image|  WARNING 
|10951|20:20|image| 2012-02-28

13:32:34|10951|20:20|image|VMware.pm:initialize(273)|no methods are
available to control VM host vsphere, the

vSphere SDK cannot be used to control the VM host and the host OS cannot be
controlled via SSH
|10951|20:20|image| (

0) VMware.pm, initialize (line: 273)
|10951|20:20|image| (-1) Module.pm, new (line: 207)
|10951|20:20|image| (-2)

Module.pm, create_provisioning_object (line: 423)
|10951|20:20|image| (-3) State.pm, initialize (line: 117)
|10951|

20:20|image| (-4) Module.pm, new (line: 207)
|10951|20:20|image| (-5) vcld, make_new_child (line: 564)


|10951|20:20|

image|  WARNING 
|10951|20:20|image| 2012-02-28 13:32:34|10951|20:20|image|

Module.pm:create_provisioning_object(431)|provisioning object could not be
created, returning 0
|10951|20:20|image|

( 0) Module.pm, create_provisioning_object (line: 431)
|10951|20:20|image| (-1) State.pm, initialize (line: 117)
|

10951|20:20|image| (-2) Module.pm, new (line: 207)
|10951|20:20|image| (-3) vcld, make_new_child (line: 564)
|10951|
-


I have checked and am able to ssh between the management node and the
virtual machines using key authentication.

Please see the log file attached for more information.

Thanks,
Aaron Bryant







Re: VCL and xCat

2012-02-28 Thread Josh Thompson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dmitri,

At some point, this did work.  I'm not sure when it broke, but I never dug 
back in to it to make it work again.  We've not noticed it causing failures; 
so, I just let it go.  I can have a look at it again when I get a chance.

Can you send some more detailed information about the conditions when you see 
the problem?

One other thing to look at - what does nodestat report after install 
imagename?  If it is reporting that ssh is running, you may have a 
postscript set to configure ssh that is getting run for the stateless image.  
We have things set up so that ssh does not get set up for the stateless image.

Josh

On Tuesday, February 28, 2012 12:58:46 PM Dmitri Chebotarov wrote:
 Hi
 
 There seems to be a disconnect between xCAT2.pm and
 /install/postscripts/partimageng script. The partimageng script starts
 listener.py in background which suppose to report to nodestat in xCAT2.pm
 module. xCAT2.pm is using 'nodestat nodename stat' to check on status, but
 nodestat command doesn't use listener.py running on the node.
 
 Is there a workaround? May be an updated version of xCAT2.pm which checks
 /var/log/messages on round2? Looks like partimageng is using logger to
 report back the status to xCat master...
 
 B/c of this, reservation or reload is inconsistent. nodestat would report
 install imagename for about 7-9 sec and xCAT2.pm doesn't always get it.
 
 Thank you for your help.
 
 On Feb 22, 2012, at 14:32 , Dmitri Chebotarov wrote:
  John,
  
  I got the link and I think I'm making some good progress.
  Also found this tread on the maillist
  (http://markmail.org/message/lotx3l34co6yv5nf?q=partimageng%2Epm#query:
  partimageng.pm+page:1+mid:lthvtrde7radude3+state:results) where you
  helped Prem, which is very helpful.
  
  Thank you
  
  On Feb 22, 2012, at 14:12 , Josh Thompson wrote:
  Hash: SHA1
  
  Dmitri,
  
  Did you follow the guide for adding partimage support to xCAT?
  
  https://cwiki.apache.org/confluence/display/VCL/Adding+support+for+par
  timage+and+partimage- ng+to+xCAT+2.x+%28unofficial%29
  
  You said you installed the partimage rpm.  partimage is not something
  that needs to be installed on the management node.  It is part of the
  stateless images mentioned on the above page.
  
  Josh
  
  On Tuesday 21 February 2012 4:47:06 PM Dmitri Chebotarov wrote:
  Hi All.
  
  I'm trying to capture a base image using xCAT module - the server is
  bare-metal CentOS5.7. The process starts OK, able to communicate
  with the node and then fails when trying to create .tmpl file.
  
  xCAT is installed and configured on the management node.
  partimage rpm is installed as well.
  
  Do you know what could be the issue?
  
  Thank you for your help.
  
  ...
  2012-02-21
  16:22:30|12755|275:261|image|xCAT2.pm:capture(827)|nodetype
  modified, node bc1-7, image name centos5image-xcatcentos5v474-v0
  2012-02-21
  16:22:30|12755|275:261|image|xCAT2.pm:_create_template(1065)|attemp
  ting to create tmpl file for image: centos5image-xcatcentos5v474-v0
  2012-02-21
  16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2084
  )|manage ment node identifier argument was not specified
  2012-02-21 16:22:30|12755|275:261|image|
  
  xCAT2.pm:_get_image_template_path(2115)|attempting to determine
  template path 
  for image:
  |12755|275:261|image| image name: centos5image-xcatcentos5v474-v0
  |12755|275:261|image| OS install type: partimage
  |12755|275:261|image| OS source path: image
  |12755|275:261|image| xCAT 2.x OS source path: image
  
  2012-02-21
  16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2123)
  |return ing: /opt/xcat/share/xcat/install/image 2012-02-21
  16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2084)
  |manage ment node identifier argument was not specified
  2012-02-21 16:22:30|12755|275:261|image|
  
  xCAT2.pm:_get_image_template_path(2115)|attempting to determine
  template path 
  for image:
  |12755|275:261|image| image name: centos5image-xcatcentos5v474-v0
  |12755|275:261|image| OS install type: partimage
  |12755|275:261|image| OS source path: image
  |12755|275:261|image| xCAT 2.x OS source path: image
  
  2012-02-21
  16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2123)
  |return ing: /opt/xcat/share/xcat/install/image 2012-02-21
  16:22:30|12755|275:261|image|DataStructure.pm:get_computer_private_i
  p_addre ss(1557)|returning private IP address previously retrieved:
  10.3.1.27 2012-02-21
  16:22:30|12755|275:261|image|utils.pm:is_inblockrequest(6164)|zero
  rows
  were returned from database select 2012-02-21
  16:22:30|12755|275:261|image|DataStructure.pm:get_image_affiliation_
  name(20 35)|image owner id: 1 2012-02-21
  16:22:30|12755|275:261|image|utils.pm:getnewdbh(2710)|database
  requested (information_schema) does not match handle stored in
  $ENV{dbh} (vcl:10.3.1.214) 2012-02-21
  

Re: Creating a base image

2012-02-28 Thread Aaron Coburn
It sounds like the issue is related to the communication between the management 
node and the VMware host. That, at least, is what the attached logs reflect. It 
is also unclear whether you are trying to access the VM Host via the vSphere 
API or via SSH. If it is the former, make sure that the vSphere perl modules 
have been installed and that the vmprofile is properly set up. If it is the 
latter, make sure that the ssh port is open on the VM host (there are 
instructions for how to do this here: 
https://cwiki.apache.org/confluence/display/VCL/VMware+Configuration ) and that 
the mgmt node is able to login successfully via ssh.

As for ssh key authentication between the mgmt node and VMs, I would recommend 
using the gen-node-key.sh script described at the bottom of this page: 
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=4589006




--
Aaron Coburn
Systems Administrator and Programmer
Academic Technology Services, Amherst College
(413) 542-5451 acob...@amherst.edu





On Feb 28, 2012, at 3:45 PM, Josh Thompson wrote:

 You don't want to be able to ssh from the image to the management node - in 
 fact that's a bad idea because it would allow anyone making a reservation for 
 the image to ssh to your management node.
 
 Unfortunately, I can't speak to what is causing your problem.
 
 Josh
 
 On Tuesday, February 28, 2012 3:34:42 PM Aaron Bryant wrote:
  I have previously added each of the servers and clients into each others
  Know hosts to eliminate any problems there.  I have discovered that I am
  able to use SSH key authentication between the Management node and the
  client, but not from the client back to the Management node.  Password
  authentication will work for the SSH connection between the client and
  management node, but not key authentication.  I have tried to copy the
  management node's private key, which I am assuming is /etc/vcl/vcl.key,
  to the client machine but to no avail.  The client machine still prompts
  for a password when entering ssh
  
  Aaron
  
  On 2/28/2012 1:40 PM, Alexander Patterson wrote:
   Hello Aaron
   
   Can you log in into your Vsphere Client ESXI 4.1 Server the one
   hosting the images
   Go to Configurations
   Under Software
   Click on Security Profile
   Click on Properties
   Under Remote Access make sure you have
   Remote Teach Support SSH is Running and Automatically Turned on
   
   You should check if you can ssh without a password from the base image
   to the management node but also and vice versa.
   
   Also did you add in the IP range into trusted hosts?
   
   -Alex
   
   On Tue, Feb 28, 2012 at 10:28 AM, Aaron Bryantamb...@pitt.edu  wrote:
   Greetings,
   
   I completed installing Cygwin SSHD and I'm attempting to run the vcld
   -setup command.  My problem occurs in this step while creating a base
   image.  I am able to get through all of the prompts and start the
   creation before the script crashes.  I have checked the
   '/var/log/vcld.log' log file and this is a portion of the output:
   
   --
   -
   VCL::Module::Provisioning::VMware::vSphere_SDK
   
   |10951|20:20|image|  WARNING 
   |10951|20:20|image| 2012-02-28
   
   13:32:34|10951|20:20|image|VMware.pm:initialize(273)|no methods are
   available to control VM host vsphere, the
   
   vSphere SDK cannot be used to control the VM host and the host OS
   cannot be controlled via SSH
   
   |10951|20:20|image| (
   
   0) VMware.pm, initialize (line: 273)
   
   |10951|20:20|image| (-1) Module.pm, new (line: 207)
   |10951|20:20|image| (-2)
   
   Module.pm, create_provisioning_object (line: 423)
   
   |10951|20:20|image| (-3) State.pm, initialize (line: 117)
   |10951|
   
   20:20|image| (-4) Module.pm, new (line: 207)
   
   |10951|20:20|image| (-5) vcld, make_new_child (line: 564)
   |
   |
   |10951|20:20|
   
   image|  WARNING 
   
   |10951|20:20|image| 2012-02-28 13:32:34|10951|20:20|image|
   
   Module.pm:create_provisioning_object(431)|provisioning object could
   not be created, returning 0
   
   |10951|20:20|image|
   
   ( 0) Module.pm, create_provisioning_object (line: 431)
   
   |10951|20:20|image| (-1) State.pm, initialize (line: 117)
   
   10951|20:20|image| (-2) Module.pm, new (line: 207)
   
   |10951|20:20|image| (-3) vcld, make_new_child (line: 564)
   |10951|
   
   --
   ---
   
   
   I have checked and am able to ssh between the management node and the
   virtual machines using key authentication.
   
   Please see the log file attached for more information.
   
   Thanks,
   Aaron Bryant
 - -- 
 - ---
 Josh Thompson
 VCL Developer
 North Carolina State University
 
 my GPG/PGP key can be found at pgp.mit.edu
 
 All electronic mail messages in connection with State business which
 are sent to 

Re: VCL and xCat

2012-02-28 Thread Dmitri Chebotarov
Josh

I didn't think that making any major changes to xCAT2.pm would be a good idea. 
In fact the solution provided at 
https://cwiki.apache.org/VCL/adding-support-for-partimage-and-partimage-ng-to-xcat-2x-unofficial.html
 is good and tested. I assume that in newer xCAT nodestat behaves differently.

To get it working again I've created new /opt/xcat/bin/vcl_nodestat script, 
which communicates with socket created by listener.py.

#!/usr/bin/perl -w
use strict;
my ($remote, $answer, $peerAddress, $peerPort, $sendCommand);
$peerAddress = $ARGV[0];
$peerPort = 3001;
$sendCommand = $ARGV[1];
use IO::Socket;
$remote=IO::Socket::INET-new(Proto='tcp',PeerAddr = $peerAddress,PeerPort = 
$peerPort,Type =SOCK_STREAM) or die $peerAddress: noping\n;
print $remote $sendCommand\n;
while ($answer=$remote){
print $peerAddress:$answer\n;
}
close $remote;

Then I made some minor changes to xCAT2.pm, replacing '$XCAT_ROOT/bin/nodestat' 
with '$XCAT_ROOT/bin/vcl_nodestat'.

This seems to fixed the problem.

Thanks.

On Feb 28, 2012, at 15:42 , Josh Thompson wrote:

 
 Hash: SHA1
 
 Dmitri,
 
 At some point, this did work.  I'm not sure when it broke, but I never dug 
 back in to it to make it work again.  We've not noticed it causing failures; 
 so, I just let it go.  I can have a look at it again when I get a chance.
 
 Can you send some more detailed information about the conditions when you see 
 the problem?
 
 One other thing to look at - what does nodestat report after install 
 imagename?  If it is reporting that ssh is running, you may have a 
 postscript set to configure ssh that is getting run for the stateless image.  
 We have things set up so that ssh does not get set up for the stateless image.
 
 Josh
 
 On Tuesday, February 28, 2012 12:58:46 PM Dmitri Chebotarov wrote:
 Hi
 
 There seems to be a disconnect between xCAT2.pm and
 /install/postscripts/partimageng script. The partimageng script starts
 listener.py in background which suppose to report to nodestat in xCAT2.pm
 module. xCAT2.pm is using 'nodestat nodename stat' to check on status, but
 nodestat command doesn't use listener.py running on the node.
 
 Is there a workaround? May be an updated version of xCAT2.pm which checks
 /var/log/messages on round2? Looks like partimageng is using logger to
 report back the status to xCat master...
 
 B/c of this, reservation or reload is inconsistent. nodestat would report
 install imagename for about 7-9 sec and xCAT2.pm doesn't always get it.
 
 Thank you for your help.
 
 On Feb 22, 2012, at 14:32 , Dmitri Chebotarov wrote:
 John,
 
 I got the link and I think I'm making some good progress.
 Also found this tread on the maillist
 (http://markmail.org/message/lotx3l34co6yv5nf?q=partimageng%2Epm#query:
 partimageng.pm+page:1+mid:lthvtrde7radude3+state:results) where you
 helped Prem, which is very helpful.
 
 Thank you
 
 On Feb 22, 2012, at 14:12 , Josh Thompson wrote:
 Hash: SHA1
 
 Dmitri,
 
 Did you follow the guide for adding partimage support to xCAT?
 
 https://cwiki.apache.org/confluence/display/VCL/Adding+support+for+par
 timage+and+partimage- ng+to+xCAT+2.x+%28unofficial%29
 
 You said you installed the partimage rpm.  partimage is not something
 that needs to be installed on the management node.  It is part of the
 stateless images mentioned on the above page.
 
 Josh
 
 On Tuesday 21 February 2012 4:47:06 PM Dmitri Chebotarov wrote:
 Hi All.
 
 I'm trying to capture a base image using xCAT module - the server is
 bare-metal CentOS5.7. The process starts OK, able to communicate
 with the node and then fails when trying to create .tmpl file.
 
 xCAT is installed and configured on the management node.
 partimage rpm is installed as well.
 
 Do you know what could be the issue?
 
 Thank you for your help.
 
 ...
 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:capture(827)|nodetype
 modified, node bc1-7, image name centos5image-xcatcentos5v474-v0
 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_create_template(1065)|attemp
 ting to create tmpl file for image: centos5image-xcatcentos5v474-v0
 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2084
 )|manage ment node identifier argument was not specified
 2012-02-21 16:22:30|12755|275:261|image|
 
 xCAT2.pm:_get_image_template_path(2115)|attempting to determine
 template path 
 for image:
 |12755|275:261|image| image name: centos5image-xcatcentos5v474-v0
 |12755|275:261|image| OS install type: partimage
 |12755|275:261|image| OS source path: image
 |12755|275:261|image| xCAT 2.x OS source path: image
 
 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2123)
 |return ing: /opt/xcat/share/xcat/install/image 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2084)
 |manage ment node identifier argument was not specified
 2012-02-21 16:22:30|12755|275:261|image|
 
 xCAT2.pm:_get_image_template_path(2115)|attempting to determine
 template path 
 for image:
 |12755|275:261|image| 

Re: Creating a base image

2012-02-28 Thread Dmitri Chebotarov
Aaron

The problem seems to be with your /etc/hosts file.
'cat /etc/hosts' failed with exit status 255, when exit status 0 is expected. 
B/c of this, vcl couldn't get private ip address and didn't attempt to connect 
to the host. I cannot think of any valid reasons why 'cat /etc/hosts' would 
fail... Can you double-check syntax, permission, selinux, ... ?

...
|10951|20:20|image|  WARNING  
|10951|20:20|image| 2012-02-28 
13:32:34|10951|20:20|image|DataStructure.pm:get_computer_private_ip_address(1589)|failed
 to cat /etc/hosts on this management node, exit status: 255, output:
|10951|20:20|image| 127.0.0.1 localhost localhost.localdomain localhost4 
localhost4.localdomain4
|10951|20:20|image| 192.168.0.101 1vsphere 1vsphere.upb.pitt.edu
...
On Feb 28, 2012, at 13:28 , Aaron Bryant wrote:

 Greetings,
 
 I completed installing Cygwin SSHD and I'm attempting to run the vcld -setup 
 command.  My problem occurs in this step while creating a base image.  I am 
 able to get through all of the prompts and start the creation before the 
 script crashes.  I have checked the '/var/log/vcld.log' log file and this is 
 a portion of the output:
 
 ---
 VCL::Module::Provisioning::VMware::vSphere_SDK
 
 |10951|20:20|image|  WARNING  
 |10951|20:20|image| 2012-02-28 
 
 13:32:34|10951|20:20|image|VMware.pm:initialize(273)|no methods are available 
 to control VM host vsphere, the 
 
 vSphere SDK cannot be used to control the VM host and the host OS cannot be 
 controlled via SSH
 |10951|20:20|image| ( 
 
 0) VMware.pm, initialize (line: 273)
 |10951|20:20|image| (-1) Module.pm, new (line: 207)
 |10951|20:20|image| (-2) 
 
 Module.pm, create_provisioning_object (line: 423)
 |10951|20:20|image| (-3) State.pm, initialize (line: 117)
 |10951|
 
 20:20|image| (-4) Module.pm, new (line: 207)
 |10951|20:20|image| (-5) vcld, make_new_child (line: 564)
 
 
 |10951|20:20|
 
 image|  WARNING  
 |10951|20:20|image| 2012-02-28 13:32:34|10951|20:20|image|
 
 Module.pm:create_provisioning_object(431)|provisioning object could not be 
 created, returning 0
 |10951|20:20|image| 
 
 ( 0) Module.pm, create_provisioning_object (line: 431)
 |10951|20:20|image| (-1) State.pm, initialize (line: 117)
 |
 
 10951|20:20|image| (-2) Module.pm, new (line: 207)
 |10951|20:20|image| (-3) vcld, make_new_child (line: 564)
 |10951|
 -
 
 
 I have checked and am able to ssh between the management node and the virtual 
 machines using key authentication.
 
 Please see the log file attached for more information.
 
 Thanks,
 Aaron Bryant
 Logfile.txt




Thank you.

-
Dmitri Chebotarov
dcheb...@gmu.edu
703-993-6175
-




signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: VCL and xCat

2012-02-28 Thread Dmitri Chebotarov
Aaron

You mentioned using xCAT to provision end-use desktops at ncsu. 
How do you handle xCAT r* commands? Did you have to add a remote management 
card to each desktop to support rpower, etc? 

Thanks.

On Feb 10, 2012, at 9:30 , Aaron Peeler wrote:

 Dmitri,
 
 Just to add to Amit, comments.
 
 We use xCAT extensively here at ncsu. From provisioning end-user
 desktops and our hypervisors. xCAT very helpful when needed to install
 a chassis full of blades with esxi.
 
 As your installing xCAT  You'll want to review
 https://cwiki.apache.org/VCL/adding-support-for-partimage-and-partimage-ng-to-xcat-2x-unofficial.html
 We added in VCL support for partimage  - which is used to capture the
 disk images of end-user environments/desktops for windows and linux.
 
 When your adding nodes to vcl through the manage computers tool, make
 sure to choose xCAT 2.x .  If your doing windows bare-metal, you'll
 also need to include sysprep and related mass storage drivers so it
 can be reloaded successfully.
 
 For sysprep review step 8 on this page:
 https://cwiki.apache.org/confluence/display/VCL/VCL+2.2.1+Management+Node+Installation
 
 Hope this info helps,
 Aaron
 
 
 On Thu, Feb 9, 2012 at 4:03 PM, Dmitri Chebotarov dcheb...@gmu.edu wrote:
 
 Amit,
 
 Thanks a lot.
 
 
 On Feb 9, 2012, at 15:57 , Kumar, Amit H. wrote:
 
 Hi Dmitri,
 
 You general idea is correct to my best understanding.
 
 Install Path in the Edit management Node will be the path for xCAT(bare 
 metal) image repository. In addition when you configure the Site table in 
 xCAT you will set the installdir to point to the location where you will 
 store your images.
 
 We have IBM E Blade Chassis with HS22 blade servers.
 
 Best,
 Amit
 
 -Original Message-
 From: dcheb...@gmu.edu [mailto:dcheb...@gmu.edu]
 Sent: Thursday, February 09, 2012 3:44 PM
 To: vcl-user@incubator.apache.org
 Subject: Re: VCL and xCat
 
 
 Amit,
 
 I'm trying to get general idea about xCat/VCL : so, basically xCat
 needs to be installed and configured on VCL Mgm node(s) before it can
 be used with VCL, and I should be able to successfully provision xCat
 nodes/clients with different images. Once xCat is working then I can
 add bare-metal computers - blade with xCat 2.x engine. Does it sound
 right?
 
 How do you tell VCL where to get image files for xCat nodes - is it
 'Install Path' setting under Management Nodes - Edit management node
 information?
 
 What kind of hardware do you have for xCat nodes? Are those IBM blade
 servers or/and PCs?
 
 
 Thanks.
 
 
 On Feb 9, 2012, at 15:16 , Kumar, Amit H. wrote:
 
 Hi,
 
 We do not need an additional/dedicated server to do both xCAT and VCL
 together, your management node can serve as your xCAT server.
 
 I would recommend getting xCAT to work by itself before using VCL to
 manage your images and guest OS.
 
 This has worked well for us so far.
 
 :Amit
 
 
 -Original Message-
 From: dcheb...@gmu.edu [mailto:dcheb...@gmu.edu]
 Sent: Thursday, February 09, 2012 3:03 PM
 To: vcl-user@incubator.apache.org
 Subject: VCL and xCat
 
 Hi All
 
 Anyone is using xCat with VCL?
 
 I have generic question about xCat and VCL - where do I start?
 Do I need working xCat environment before I can add it to VCL?
 Does xCat need dedicated server? Or does it run on the VCL
 management
 node?
 Are there any special hardware requirements for xCat clients?
 
 
 Thank you.
 
 
 
 
 
 
 
 
 Thank you.
 
 -
 Dmitri Chebotarov
 dcheb...@gmu.edu
 703-993-6175
 -
 
 
 
 
 
 
 Thank you.
 
 -
 Dmitri Chebotarov
 dcheb...@gmu.edu
 703-993-6175
 -
 
 
 
 -BEGIN PGP SIGNATURE-
 
 iQEcBAEBAgAGBQJPNDStAAoJEMRKpymufl8aAxkH/iCGHjBRUMR85l4+D3clzzem
 eb4+RtsjvqfnJO7IjjF3Ajs73labFWvoEgpJrbFous2v6ou/gNsUgB82hWicqNTm
 5+ZKkdncM2qWl2QI1ED6kvZt0OHmG/cUbRk0XRlPSjf99dIYgjqPZBL4xFNje62X
 xzNNPCEC7S5lixouyUcFPh7KhVR+11zvZsliV19CYH6HqXLpSphRt/gN5HIK77gD
 xNpfymdAPf2iJ1Dur5MNngnJIYTgdNgYq8pTvmrxPNEixumYsTU1UQzYFbijpctI
 yL8gUhP2kX2Yd45mVGzZxmJXDrOkg0rLxmIxVrrmGH2/iLSHpSFE+8mY0kqbTmA=
 =86fD
 -END PGP SIGNATURE-
 
 
 
 
 -- 
 Aaron Peeler
 Program Manager
 Virtual Computing Lab
 NC State University
 
 All electronic mail messages in connection with State business which
 are sent to or received by this account are subject to the NC Public
 Records Law and may be disclosed to third parties.




Thank you.

-
Dmitri Chebotarov
dcheb...@gmu.edu
703-993-6175
-




signature.asc
Description: Message signed with OpenPGP using GPGMail