You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vcl.apache.org by Jeffrey Wisman <je...@csueastbay.edu> on 2010/01/23 09:41:45 UTC

Issues with Inserting Image Reservation Into VCL DB

Hi all - Just joined this list.  I've been working on a pilot VCL install at
CSU East Bay, and am hung up on what seems like nearly the last step.  I'm
following instructions at the bottom of this page:
http://cwiki.apache.org/confluence/display/VCL/Create+a+Windows+Base+Image

I'm attempting to insert the image reservation into the VCL DB, and it only
gets as far as this network/route issue.  Is this a DHCP problem?  A hosts
file issue?  Something else?  Please let me know if anyone has seen this
before, or can help troubleshoot.  Here is the last part of the output from
tail -f /var/log/vcld.log


>>>>>>>>>>>>>>>>>>>>>>>>>
|1297|11:34|reload| ---- WARNING ---- 
|1297|11:34|reload| 2010-01-23
00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4197)|SSH
will not be disabled on public interface because public interface name could
not be determined
|1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
|1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private (line: 4197)
|1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
|1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
|1297|11:34|reload| (-4) new.pm, process (line: 266)
|1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
|1297|11:34|reload| (-6) vcld, main (line: 341)

2010-01-23
00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
configuration has already been retrieved
2010-01-23
00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
442)|attempting to retrieve private IP address for computer: vcl-winxp
2010-01-23
00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
446)|retrieved contents of /etc/hosts on this management node, contains 6
lines

|1297|11:34|reload| ---- WARNING ---- 
|1297|11:34|reload| 2010-01-23
00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
|1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
|1297|11:34|reload| (-1) DataStructure.pm, get_computer_private_ip_address
(line: 1466)
|1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line: 4642)
|1297|11:34|reload| (-3) Windows.pm, get_private_interface_name (line: 4761)
|1297|11:34|reload| (-4) Windows.pm, firewall_enable_ssh_private (line: 4202)
|1297|11:34|reload| (-5) Windows.pm, post_load (line: 485)
|1297|11:34|reload| (-6) new.pm, reload_image (line: 692)

2010-01-23
00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
to retrieve computer private IP address from reservation data

|1297|11:34|reload| ---- WARNING ---- 
|1297|11:34|reload| 2010-01-23
00:33:30|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|unable
to retrieve network configuration
|1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
|1297|11:34|reload| (-1) Windows.pm, get_private_interface_name (line: 4763)
|1297|11:34|reload| (-2) Windows.pm, firewall_enable_ssh_private (line: 4202)
|1297|11:34|reload| (-3) Windows.pm, post_load (line: 485)
|1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
|1297|11:34|reload| (-5) new.pm, process (line: 266)
|1297|11:34|reload| (-6) vcld, make_new_child (line: 594)


|1297|11:34|reload| ---- WARNING ---- 
|1297|11:34|reload| 2010-01-23
00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4220)|priva
te interface name could not be determined, SSH will be enabled for all
profiles
|1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
|1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private (line: 4220)
|1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
|1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
|1297|11:34|reload| (-4) new.pm, process (line: 266)
|1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
|1297|11:34|reload| (-6) vcld, main (line: 341)

2010-01-23
00:33:30|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing SSH
command on vcl-winxp:
|1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
vcl-winxp 'netsh.exe firewall set portopening name = "Cygwin SSHD" protocol =
TCP port = 22 profile = ALL' 2>&1
2010-01-23 00:33:35|1226|vcld:main(165)|lastcheckin time updated for
management node 1: 2010-01-23 00:33:35
2010-01-23
00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6250)|run_ssh_command
output:
|1297|11:34|reload| Ok.
2010-01-23 00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6264)|SSH
command executed on vcl-winxp, returning (0, "Ok.")
2010-01-23
00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4232)|confi
gured firewall to allow SSH on private interface
2010-01-23
00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
configuration has already been retrieved
2010-01-23
00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
442)|attempting to retrieve private IP address for computer: vcl-winxp
2010-01-23
00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
446)|retrieved contents of /etc/hosts on this management node, contains 6
lines

|1297|11:34|reload| ---- WARNING ---- 
|1297|11:34|reload| 2010-01-23
00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
|1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
|1297|11:34|reload| (-1) DataStructure.pm, get_computer_private_ip_address
(line: 1466)
|1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line: 4642)
|1297|11:34|reload| (-3) Windows.pm, get_public_interface_name (line: 4791)
|1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private (line:
3935)
|1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
|1297|11:34|reload| (-6) new.pm, reload_image (line: 692)

2010-01-23
00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
to retrieve computer private IP address from reservation data

|1297|11:34|reload| ---- WARNING ---- 
|1297|11:34|reload| 2010-01-23
00:33:37|1297|11:34|reload|Windows.pm:get_public_interface_name(4793)|unable
to retrieve network configuration
|1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
|1297|11:34|reload| (-1) Windows.pm, get_public_interface_name (line: 4793)
|1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private (line:
3935)
|1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
|1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
|1297|11:34|reload| (-5) new.pm, process (line: 266)
|1297|11:34|reload| (-6) vcld, make_new_child (line: 594)


|1297|11:34|reload| ---- WARNING ---- 
|1297|11:34|reload| 2010-01-23
00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3946)|ping
will not be disabled on public interface because public interface name could
not be determined
|1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
|1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private (line:
3946)
|1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
|1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
|1297|11:34|reload| (-4) new.pm, process (line: 266)
|1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
|1297|11:34|reload| (-6) vcld, main (line: 341)

2010-01-23
00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
configuration has already been retrieved
2010-01-23
00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
442)|attempting to retrieve private IP address for computer: vcl-winxp
2010-01-23
00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
446)|retrieved contents of /etc/hosts on this management node, contains 6
lines

|1297|11:34|reload| ---- WARNING ---- 
|1297|11:34|reload| 2010-01-23
00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
|1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
|1297|11:34|reload| (-1) DataStructure.pm, get_computer_private_ip_address
(line: 1466)
|1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line: 4642)
|1297|11:34|reload| (-3) Windows.pm, get_private_interface_name (line: 4761)
|1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private (line:
3951)
|1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
|1297|11:34|reload| (-6) new.pm, reload_image (line: 692)

2010-01-23
00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
to retrieve computer private IP address from reservation data

|1297|11:34|reload| ---- WARNING ---- 
|1297|11:34|reload| 2010-01-23
00:33:37|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|unable
to retrieve network configuration
|1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
|1297|11:34|reload| (-1) Windows.pm, get_private_interface_name (line: 4763)
|1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private (line:
3951)
|1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
|1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
|1297|11:34|reload| (-5) new.pm, process (line: 266)
|1297|11:34|reload| (-6) vcld, make_new_child (line: 594)


|1297|11:34|reload| ---- WARNING ---- 
|1297|11:34|reload| 2010-01-23
00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3967)|priv
ate interface name could not be determined, ping will be enabled for all
profiles
|1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
|1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private (line:
3967)
|1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
|1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
|1297|11:34|reload| (-4) new.pm, process (line: 266)
|1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
|1297|11:34|reload| (-6) vcld, main (line: 341)

2010-01-23
00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing SSH
command on vcl-winxp:
|1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
vcl-winxp 'netsh.exe firewall set icmpsetting type = 8 mode = ENABLE profile
= ALL ;' 2>&1
2010-01-23 00:33:40|1226|vcld:main(165)|lastcheckin time updated for
management node 1: 2010-01-23 00:33:40
2010-01-23
00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6250)|run_ssh_command
output:
|1297|11:34|reload| Ok.
2010-01-23 00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6264)|SSH
command executed on vcl-winxp, returning (0, "Ok.")
2010-01-23
00:33:43|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3979)|conf
igured firewall to allow ping on private interface
2010-01-23
00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4890)|IP
configuration mode in use: dynamicDHCP
2010-01-23
00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
configuration has already been retrieved
2010-01-23
00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
442)|attempting to retrieve private IP address for computer: vcl-winxp
2010-01-23
00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
446)|retrieved contents of /etc/hosts on this management node, contains 6
lines

|1297|11:34|reload| ---- WARNING ---- 
|1297|11:34|reload| 2010-01-23
00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
|1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
|1297|11:34|reload| (-1) DataStructure.pm, get_computer_private_ip_address
(line: 1466)
|1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line: 4642)
|1297|11:34|reload| (-3) Windows.pm, get_public_default_gateway (line: 4894)
|1297|11:34|reload| (-4) Windows.pm, set_public_default_route (line: 7429)
|1297|11:34|reload| (-5) Windows.pm, post_load (line: 507)
|1297|11:34|reload| (-6) new.pm, reload_image (line: 692)

2010-01-23
00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
to retrieve computer private IP address from reservation data

|1297|11:34|reload| ---- WARNING ---- 
|1297|11:34|reload| 2010-01-23
00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4908)|unable
to retrieve public network configuration currently in use on vcl-winxp
|1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
|1297|11:34|reload| (-1) Windows.pm, get_public_default_gateway (line: 4908)
|1297|11:34|reload| (-2) Windows.pm, set_public_default_route (line: 7429)
|1297|11:34|reload| (-3) Windows.pm, post_load (line: 507)
|1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
|1297|11:34|reload| (-5) new.pm, process (line: 266)
|1297|11:34|reload| (-6) vcld, make_new_child (line: 594)

2010-01-23
00:33:43|1297|11:34|reload|DataStructure.pm:get_management_node_public_defaul
t_gateway(1783)|returning default gateway from route command: 134.154.193.190
2010-01-23
00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4917)|return
ing management node's default gateway address: 134.154.193.190
2010-01-23
00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing SSH
command on vcl-winxp:
|1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
vcl-winxp 'route delete 0.0.0.0' 2>&1
2010-01-23 00:33:45|1226|vcld:main(165)|lastcheckin time updated for
management node 1: 2010-01-23 00:33:45
2010-01-23 00:33:50|1226|vcld:main(165)|lastcheckin time updated for
management node 1: 2010-01-23 00:33:50
2010-01-23 00:33:55|1226|vcld:main(165)|lastcheckin time updated for
management node 1: 2010-01-23 00:33:55
2010-01-23 00:34:00|1226|vcld:main(165)|lastcheckin time updated for
management node 1: 2010-01-23 00:34:00
2010-01-23 00:34:05|1226|vcld:main(165)|lastcheckin time updated for
management node 1: 2010-01-23 00:34:05
2010-01-23 00:34:10|1226|vcld:main(165)|lastcheckin time updated for
management node 1: 2010-01-23 00:34:10

>>>>>>>>>>>>>>>>>>>>>>>>>





And the database state:

>>>>>>>>>>>>>>>>>>>>>>>>>
mysql> select * from request;
+----+---------+--------+-------------+-------+------------+------+---------+
---------------------+---------------------+---------------------+-----------
---+
| id | stateid | userid | laststateid | logid | forimaging | test | preload |
start               | end                 | daterequested       |
datemodified |
+----+---------+--------+-------------+-------+------------+------+---------+
---------------------+---------------------+---------------------+-----------
---+
| 11 |      14 |      2 |          19 |     0 |          0 |    0 |       0 |
2010-01-23 00:31:59 | 2010-01-23 01:01:59 | 2010-01-23 00:31:59 | NULL
| 
+----+---------+--------+-------------+-------+------------+------+---------+
---------------------+---------------------+---------------------+-----------
---+
1 row in set (0.00 sec)

mysql> select * from reservation;
+----+-----------+------------+---------+-----------------+------------------
+----------+---------------------+------+
| id | requestid | computerid | imageid | imagerevisionid | managementnodeid
| remoteIP | lastcheck           | pw   |
+----+-----------+------------+---------+-----------------+------------------
+----------+---------------------+------+
| 34 |        11 |         13 |      10 |              10 |                1
| NULL     | 0000-00-00 00:00:00 | NULL | 
+----+-----------+------------+---------+-----------------+------------------
+----------+---------------------+------+
1 row in set (0.00 sec)
>>>>>>>>>>>>>>>>>>>>>>>>>


And finally, here is the directory structure (after executing the commands)
of the VMWare server:
>>>>>>>>>>>>>>>>>>>>>>>>>
/vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # ls -l
drwxr-xr-x    1 root     root                420 Jan 23 08:31 golden
drwxr-xr-x    1 root     root                420 Jan 23 08:31 inuse
drwxr-xr-x    1 root     root               4340 Dec  3 18:30
vcl.csueastbay.edu
drwxr-xr-x    1 root     root               4340 Dec  3 18:08
vcldb.csueastbay.edu
drwxr-xr-x    1 root     root               4340 Dec  3 18:23
vclmgmt.csueastbay.edu
drwxr-xr-x    1 root     root               2660 Jan 23 08:22
vmwarewinxp-base7-v0
/vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd golden/
/vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # ls -l
drwxr-xr-x    1 root     root                280 Jan 23 08:31
vmwarewinxp-base7-v0
/vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # cd ..
/vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd inuse/
/vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/inuse # ls -l
drwxr-xr-x    1 root     root                420 Jan 23 08:31 vcl-winxp
>>>>>>>>>>>>>>>>>>>>>>>>>


Let me know if more output from the logs would be helpful, or any other
information.


Thanks,
Jeff Wisman

Re: Issues with Inserting Image Reservation Into VCL DB

Posted by Jeffrey Wisman <je...@csueastbay.edu>.
Thanks for the help, but this doesn't seem to have solved the problem.  I
was able to bulk add 10 computers using this method.  I can see them all in
the database as well as in the management GUI.  Please see the attached
image, in case I did something wrong.

I didn't get a dhcpd.conf as I should have, but I think mine is alright.
Currently it looks like this:
>>>>>>>>>>>>
[root@vclmgmt bin]# cat /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;

subnet 10.75.144.0 netmask 255.255.255.128 {

# --- default gateway
        option routers                  10.75.144.2;
        option subnet-mask              255.255.255.128;

        option nis-domain               "csueastbay.edu";
        option domain-name              "csueastbay.edu";
#       option domain-name-servers      134.154.1.5;

        option time-offset              -25200; # Pacific Time
#       option ntp-servers              192.168.1.1;
#       option netbios-name-servers     192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this
unless
# -- you understand Netbios very well
#       option netbios-node-type 2;

        range dynamic-bootp 10.75.144.10 10.75.144.125;
        default-lease-time 21600;
        max-lease-time 43200;

        # we want the nameserver to appear at a fixed address
        #host ns {
        #       next-server marvin.redhat.com;
        #       hardware ethernet 12:34:56:78:AB:CD;
        #       fixed-address 207.175.42.254;
        #}
}
>>>>>>>>>>>>


I'm still getting the same error in the GUI, "Selection not currently
available".  If I click the "View Time Table" button, everything comes up as
green boxes.  But when I choose one, it gives the same error message.  Note
that nothing is being written to the logs during all of this either.  At
least not the /var/log/vcld.log.  Is there another log I should be looking
at?  Anything else I'm missing?

Thanks,
Jeff


On Sun, Jan 31, 2010 at 6:43 PM, Jonathon Taylor <
jonathon.taylor@csueastbay.edu> wrote:

> Jeff,
>
> I think I know what you need to do...  Basically the errors are telling us
> that there are no 'free' computers out there to load the image on.  You need
> to add a group of computers that are available to load the images on.
>
> Go to Manage Computers
> Select Edit Computer Information / Submit
> Check the box that says Add Multiple (you can leave all else blank)
> Click Add
>
> Now you can fill in the necessary information for the block of computers
> that will be available for images.  For example the computer name might be
> CSUEBVM% where the percent indicates a number that will be incremented based
> on the next fields you add for the range of computers.  Fill in the static
> DHCP address ranges and use dummy MAC addresses.
>
> I have never done this before but I'm pretty sure it will then spit out the
> dhcpd.conf configuration section you need to get that going properly.
>
> -Jonathon
>
>
> On Sat, Jan 30, 2010 at 3:16 PM, Jeffrey Wisman <
> jeff.wisman@csueastbay.edu> wrote:
>
>> So I'm still having issues.  I can perform all the actions listed here
>> successfully (at least it seems so from the logs):
>> http://cwiki.apache.org/VCL/create-a-windows-base-image.html
>>
>> I'm trying to create a reservation for the first time from the GUI, and
>> having trouble.  I get the message "Selection not currently available"
>> when I try to do it, and I can't figure out why.  The groupings, mappings,
>> and permissions *seem* right, but maybe they aren't.  Attached are some
>> screen shots.  Let me know if I'm missing something obvious, or need to
>> provide more information for troubleshooting.
>>
>> Thanks,
>> Jeff
>>
>>
>>
>> On Wed, Jan 27, 2010 at 9:51 AM, Jeffrey Wisman <
>> jeff.wisman@csueastbay.edu> wrote:
>>
>>> I just wanted to post a follow up that the issue was with the hosts file.
>>>  I
>>> had put both the public and private IP addresses in the management
>>> server's
>>> host file.  I removed the public IP and now it works just fine.
>>>
>>> I'm still having issues with the reservations, but I think its just my
>>> misunderstanding of how this is all supposed to work.  I'll be spending
>>> more
>>> time in the next few days, and post if I can't figure out the next steps
>>> on
>>> my own.
>>>
>>> Thanks,
>>> Jeff
>>>
>>>
>>> -----Original Message-----
>>> From: Jeffrey Wisman [mailto:jeff.wisman@csueastbay.edu]
>>> Sent: Mon 1/25/2010 12:58 PM
>>> To: vcl-dev@incubator.apache.org; vcl-dev@incubator.apache.org
>>> Subject: RE: Issues with Inserting Image Reservation Into VCL DB
>>>
>>> Thanks Andy, I'll try your suggestions tonight and report back.  Your
>>> help is
>>> much appreciated!
>>>
>>> Jeff
>>>
>>>
>>> -----Original Message-----
>>> From: Andy Kurth [mailto:andy_kurth@ncsu.edu]
>>> Sent: Mon 1/25/2010 12:33 PM
>>> To: vcl-dev@incubator.apache.org
>>> Subject: Re: Issues with Inserting Image Reservation Into VCL DB
>>>
>>> Hello Jeff,
>>> It appears that the image was successfully captured and it's at the point
>>> where
>>> it's trying to reload the new image.
>>>
>>> Is the computer.privateIPaddress value set in the database?  If not, set
>>> this
>>>
>>> for vcl-winxp in the computer table and see if the warnings go away.  You
>>> can
>>>
>>> also add an entry in the /etc/hosts file on the management node for the
>>> private
>>> address of vcl-winxp.  Either of these should clear up most of the
>>> warning
>>> messages you're seeing.
>>>
>>> You don't have to go through the entire imaging process again to
>>> troubleshoot
>>>
>>> this.  You can restart the reload process by:
>>> -Kill the existing vcld process for the reservation if it's still
>>> running.
>>> The
>>> PID to kill is displayed as the leftmost field in the log output (1297 in
>>> the
>>>
>>> output you included).  Don't kill the main vcld process.
>>> -Set request.state to 'reload', request.start to NOW(), and request.end
>>> to
>>> some
>>> time in the future.  The vcld process should begin to process it again.
>>> Start
>>> 'tail -f /var/log/vcld.log' before changing the request state.
>>>
>>> Is it hanging indefinitely after it attempts to run the last command
>>> (route
>>> delete 0.0.0.0) included in the log output?  I haven't seen this problem
>>> before
>>> if it is indeed hanging.  The 'route delete' command may be breaking
>>> networking
>>> on the computer and tripping up the SSH command.  I would try running the
>>> SSH
>>>
>>> command manually with the -v option to try to figure out what's
>>> happening:
>>> ssh -v -i /etc/vcl/vcl.key  -l root -p 22 -x vcl-winxp 'route delete
>>> 0.0.0.0'
>>>
>>> If this command hangs, try adding the ServerAliveInterval SSH option:
>>> ssh -v -o ServerAliveInterval=15 -i /etc/vcl/vcl.key -l root -p 22 -x
>>> vcl-winxp
>>> 'route delete 0.0.0.0'
>>>
>>> Give this command at least 20 seconds before killing it if it hangs.  If
>>> this
>>>
>>> prevents it from hanging, try manually running the next command VCL would
>>> have
>>> performed:
>>> ssh -i /etc/vcl/vcl.key -l root -p 22 -x vcl-winxp 'route -p ADD 0.0.0.0
>>> MASK
>>>
>>> 0.0.0.0 134.154.193.190 METRIC 1'
>>>
>>> The output of these commands may be helpful in troubleshooting.
>>>
>>> Regards,
>>> Andy Kurth / NCSU VCL
>>>
>>>
>>> Jeffrey Wisman wrote:
>>> > Hi all - Just joined this list.  I've been working on a pilot VCL
>>> install
>>> at
>>> > CSU East Bay, and am hung up on what seems like nearly the last step.
>>>  I'm
>>> > following instructions at the bottom of this page:
>>> >
>>> http://cwiki.apache.org/confluence/display/VCL/Create+a+Windows+Base+Image
>>> >
>>> > I'm attempting to insert the image reservation into the VCL DB, and it
>>> only
>>> > gets as far as this network/route issue.  Is this a DHCP problem?  A
>>> hosts
>>> > file issue?  Something else?  Please let me know if anyone has seen
>>> this
>>> > before, or can help troubleshoot.  Here is the last part of the output
>>> from
>>> > tail -f /var/log/vcld.log
>>> >
>>> >
>>> > |1297|11:34|reload| ---- WARNING ----
>>> > |1297|11:34|reload| 2010-01-23
>>> >
>>> 00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4197)|SSH
>>> > will not be disabled on public interface because public interface name
>>> could
>>> > not be determined
>>> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
>>> > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private (line:
>>> 4197)
>>> > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
>>> > |1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
>>> > |1297|11:34|reload| (-4) new.pm, process (line: 266)
>>> > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>>> > |1297|11:34|reload| (-6) vcld, main (line: 341)
>>> >
>>> > 2010-01-23
>>> >
>>>
>>> 00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>>> > configuration has already been retrieved
>>> > 2010-01-23
>>> >
>>>
>>> 00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>> > 442)|attempting to retrieve private IP address for computer: vcl-winxp
>>> > 2010-01-23
>>> >
>>>
>>> 00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>> > 446)|retrieved contents of /etc/hosts on this management node, contains
>>> 6
>>> > lines
>>> >
>>> > |1297|11:34|reload| ---- WARNING ----
>>> > |1297|11:34|reload| 2010-01-23
>>> >
>>>
>>> 00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>> > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>>> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
>>> > |1297|11:34|reload| (-1) DataStructure.pm,
>>> get_computer_private_ip_address
>>> > (line: 1466)
>>> > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line:
>>> 4642)
>>> > |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name (line:
>>> 4761)
>>> > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ssh_private (line:
>>> 4202)
>>> > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 485)
>>> > |1297|11:34|reload| (-6) new.pm, reload_image (line: 692)
>>> >
>>> > 2010-01-23
>>> >
>>>
>>> 00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>>> > to retrieve computer private IP address from reservation data
>>> >
>>> > |1297|11:34|reload| ---- WARNING ----
>>> > |1297|11:34|reload| 2010-01-23
>>> >
>>>
>>> 00:33:30|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|unable
>>> > to retrieve network configuration
>>> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
>>> > |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name (line:
>>> 4763)
>>> > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ssh_private (line:
>>> 4202)
>>> > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 485)
>>> > |1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
>>> > |1297|11:34|reload| (-5) new.pm, process (line: 266)
>>> > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>>> >
>>> >
>>> > |1297|11:34|reload| ---- WARNING ----
>>> > |1297|11:34|reload| 2010-01-23
>>> >
>>>
>>> 00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4220)|priva
>>> > te interface name could not be determined, SSH will be enabled for all
>>> > profiles
>>> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
>>> > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private (line:
>>> 4220)
>>> > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
>>> > |1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
>>> > |1297|11:34|reload| (-4) new.pm, process (line: 266)
>>> > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>>> > |1297|11:34|reload| (-6) vcld, main (line: 341)
>>> >
>>> > 2010-01-23
>>> > 00:33:30|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing
>>> SSH
>>> > command on vcl-winxp:
>>> > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
>>> > vcl-winxp 'netsh.exe firewall set portopening name = "Cygwin SSHD"
>>> protocol
>>> =
>>> > TCP port = 22 profile = ALL' 2>&1
>>> > 2010-01-23 00:33:35|1226|vcld:main(165)|lastcheckin time updated for
>>> > management node 1: 2010-01-23 00:33:35
>>> > 2010-01-23
>>> > 00:33:37|1297|11:34|reload|utils.pm:
>>> run_ssh_command(6250)|run_ssh_command
>>> > output:
>>> > |1297|11:34|reload| Ok.
>>> > 2010-01-23 00:33:37|1297|11:34|reload|utils.pm:
>>> run_ssh_command(6264)|SSH
>>> > command executed on vcl-winxp, returning (0, "Ok.")
>>> > 2010-01-23
>>> >
>>>
>>> 00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4232)|confi
>>> > gured firewall to allow SSH on private interface
>>> > 2010-01-23
>>> >
>>>
>>> 00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>>> > configuration has already been retrieved
>>> > 2010-01-23
>>> >
>>>
>>> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>> > 442)|attempting to retrieve private IP address for computer: vcl-winxp
>>> > 2010-01-23
>>> >
>>>
>>> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>> > 446)|retrieved contents of /etc/hosts on this management node, contains
>>> 6
>>> > lines
>>> >
>>> > |1297|11:34|reload| ---- WARNING ----
>>> > |1297|11:34|reload| 2010-01-23
>>> >
>>>
>>> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>> > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>>> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
>>> > |1297|11:34|reload| (-1) DataStructure.pm,
>>> get_computer_private_ip_address
>>> > (line: 1466)
>>> > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line:
>>> 4642)
>>> > |1297|11:34|reload| (-3) Windows.pm, get_public_interface_name (line:
>>> 4791)
>>> > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private
>>> (line:
>>> > 3935)
>>> > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
>>> > |1297|11:34|reload| (-6) new.pm, reload_image (line: 692)
>>> >
>>> > 2010-01-23
>>> >
>>>
>>> 00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>>> > to retrieve computer private IP address from reservation data
>>> >
>>> > |1297|11:34|reload| ---- WARNING ----
>>> > |1297|11:34|reload| 2010-01-23
>>> >
>>>
>>> 00:33:37|1297|11:34|reload|Windows.pm:get_public_interface_name(4793)|unable
>>> > to retrieve network configuration
>>> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
>>> > |1297|11:34|reload| (-1) Windows.pm, get_public_interface_name (line:
>>> 4793)
>>> > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private
>>> (line:
>>> > 3935)
>>> > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
>>> > |1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
>>> > |1297|11:34|reload| (-5) new.pm, process (line: 266)
>>> > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>>> >
>>> >
>>> > |1297|11:34|reload| ---- WARNING ----
>>> > |1297|11:34|reload| 2010-01-23
>>> >
>>>
>>> 00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3946)|ping
>>> > will not be disabled on public interface because public interface name
>>> could
>>> > not be determined
>>> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
>>> > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private
>>> (line:
>>> > 3946)
>>> > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
>>> > |1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
>>> > |1297|11:34|reload| (-4) new.pm, process (line: 266)
>>> > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>>> > |1297|11:34|reload| (-6) vcld, main (line: 341)
>>> >
>>> > 2010-01-23
>>> >
>>>
>>> 00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>>> > configuration has already been retrieved
>>> > 2010-01-23
>>> >
>>>
>>> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>> > 442)|attempting to retrieve private IP address for computer: vcl-winxp
>>> > 2010-01-23
>>> >
>>>
>>> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>> > 446)|retrieved contents of /etc/hosts on this management node, contains
>>> 6
>>> > lines
>>> >
>>> > |1297|11:34|reload| ---- WARNING ----
>>> > |1297|11:34|reload| 2010-01-23
>>> >
>>>
>>> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>> > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>>> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
>>> > |1297|11:34|reload| (-1) DataStructure.pm,
>>> get_computer_private_ip_address
>>> > (line: 1466)
>>> > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line:
>>> 4642)
>>> > |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name (line:
>>> 4761)
>>> > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private
>>> (line:
>>> > 3951)
>>> > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
>>> > |1297|11:34|reload| (-6) new.pm, reload_image (line: 692)
>>> >
>>> > 2010-01-23
>>> >
>>>
>>> 00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>>> > to retrieve computer private IP address from reservation data
>>> >
>>> > |1297|11:34|reload| ---- WARNING ----
>>> > |1297|11:34|reload| 2010-01-23
>>> >
>>>
>>> 00:33:37|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|unable
>>> > to retrieve network configuration
>>> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
>>> > |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name (line:
>>> 4763)
>>> > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private
>>> (line:
>>> > 3951)
>>> > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
>>> > |1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
>>> > |1297|11:34|reload| (-5) new.pm, process (line: 266)
>>> > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>>> >
>>> >
>>> > |1297|11:34|reload| ---- WARNING ----
>>> > |1297|11:34|reload| 2010-01-23
>>> >
>>>
>>> 00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3967)|priv
>>> > ate interface name could not be determined, ping will be enabled for
>>> all
>>> > profiles
>>> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
>>> > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private
>>> (line:
>>> > 3967)
>>> > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
>>> > |1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
>>> > |1297|11:34|reload| (-4) new.pm, process (line: 266)
>>> > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>>> > |1297|11:34|reload| (-6) vcld, main (line: 341)
>>> >
>>> > 2010-01-23
>>> > 00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing
>>> SSH
>>> > command on vcl-winxp:
>>> > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
>>> > vcl-winxp 'netsh.exe firewall set icmpsetting type = 8 mode = ENABLE
>>> profile
>>> > = ALL ;' 2>&1
>>> > 2010-01-23 00:33:40|1226|vcld:main(165)|lastcheckin time updated for
>>> > management node 1: 2010-01-23 00:33:40
>>> > 2010-01-23
>>> > 00:33:43|1297|11:34|reload|utils.pm:
>>> run_ssh_command(6250)|run_ssh_command
>>> > output:
>>> > |1297|11:34|reload| Ok.
>>> > 2010-01-23 00:33:43|1297|11:34|reload|utils.pm:
>>> run_ssh_command(6264)|SSH
>>> > command executed on vcl-winxp, returning (0, "Ok.")
>>> > 2010-01-23
>>> >
>>>
>>> 00:33:43|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3979)|conf
>>> > igured firewall to allow ping on private interface
>>> > 2010-01-23
>>> >
>>> 00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4890)|IP
>>> > configuration mode in use: dynamicDHCP
>>> > 2010-01-23
>>> >
>>>
>>> 00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>>> > configuration has already been retrieved
>>> > 2010-01-23
>>> >
>>>
>>> 00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>> > 442)|attempting to retrieve private IP address for computer: vcl-winxp
>>> > 2010-01-23
>>> >
>>>
>>> 00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>> > 446)|retrieved contents of /etc/hosts on this management node, contains
>>> 6
>>> > lines
>>> >
>>> > |1297|11:34|reload| ---- WARNING ----
>>> > |1297|11:34|reload| 2010-01-23
>>> >
>>>
>>> 00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>> > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>>> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
>>> > |1297|11:34|reload| (-1) DataStructure.pm,
>>> get_computer_private_ip_address
>>> > (line: 1466)
>>> > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line:
>>> 4642)
>>> > |1297|11:34|reload| (-3) Windows.pm, get_public_default_gateway (line:
>>> 4894)
>>> > |1297|11:34|reload| (-4) Windows.pm, set_public_default_route (line:
>>> 7429)
>>> > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 507)
>>> > |1297|11:34|reload| (-6) new.pm, reload_image (line: 692)
>>> >
>>> > 2010-01-23
>>> >
>>>
>>> 00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>>> > to retrieve computer private IP address from reservation data
>>> >
>>> > |1297|11:34|reload| ---- WARNING ----
>>> > |1297|11:34|reload| 2010-01-23
>>> >
>>>
>>> 00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4908)|unable
>>> > to retrieve public network configuration currently in use on vcl-winxp
>>> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
>>> > |1297|11:34|reload| (-1) Windows.pm, get_public_default_gateway (line:
>>> 4908)
>>> > |1297|11:34|reload| (-2) Windows.pm, set_public_default_route (line:
>>> 7429)
>>> > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 507)
>>> > |1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
>>> > |1297|11:34|reload| (-5) new.pm, process (line: 266)
>>> > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>>> >
>>> > 2010-01-23
>>> >
>>>
>>> 00:33:43|1297|11:34|reload|DataStructure.pm:get_management_node_public_defaul
>>> > t_gateway(1783)|returning default gateway from route command:
>>> 134.154.193.190
>>> > 2010-01-23
>>> >
>>>
>>> 00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4917)|return
>>> > ing management node's default gateway address: 134.154.193.190
>>> > 2010-01-23
>>> > 00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing
>>> SSH
>>> > command on vcl-winxp:
>>> > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
>>> > vcl-winxp 'route delete 0.0.0.0' 2>&1
>>> > 2010-01-23 00:33:45|1226|vcld:main(165)|lastcheckin time updated for
>>> > management node 1: 2010-01-23 00:33:45
>>> > 2010-01-23 00:33:50|1226|vcld:main(165)|lastcheckin time updated for
>>> > management node 1: 2010-01-23 00:33:50
>>> > 2010-01-23 00:33:55|1226|vcld:main(165)|lastcheckin time updated for
>>> > management node 1: 2010-01-23 00:33:55
>>> > 2010-01-23 00:34:00|1226|vcld:main(165)|lastcheckin time updated for
>>> > management node 1: 2010-01-23 00:34:00
>>> > 2010-01-23 00:34:05|1226|vcld:main(165)|lastcheckin time updated for
>>> > management node 1: 2010-01-23 00:34:05
>>> > 2010-01-23 00:34:10|1226|vcld:main(165)|lastcheckin time updated for
>>> > management node 1: 2010-01-23 00:34:10
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > And the database state:
>>> >
>>> > mysql> select * from request;
>>> >
>>>
>>> +----+---------+--------+-------------+-------+------------+------+---------+
>>> >
>>>
>>> ---------------------+---------------------+---------------------+-----------
>>> > ---+
>>> > | id | stateid | userid | laststateid | logid | forimaging | test |
>>> preload
>>> |
>>> > start               | end                 | daterequested       |
>>> > datemodified |
>>> >
>>>
>>> +----+---------+--------+-------------+-------+------------+------+---------+
>>> >
>>>
>>> ---------------------+---------------------+---------------------+-----------
>>> > ---+
>>> > | 11 |      14 |      2 |          19 |     0 |          0 |    0 |
>>>   0
>>> |
>>> > 2010-01-23 00:31:59 | 2010-01-23 01:01:59 | 2010-01-23 00:31:59 | NULL
>>> > |
>>> >
>>>
>>> +----+---------+--------+-------------+-------+------------+------+---------+
>>> >
>>>
>>> ---------------------+---------------------+---------------------+-----------
>>> > ---+
>>> > 1 row in set (0.00 sec)
>>> >
>>> > mysql> select * from reservation;
>>> >
>>>
>>> +----+-----------+------------+---------+-----------------+------------------
>>> > +----------+---------------------+------+
>>> > | id | requestid | computerid | imageid | imagerevisionid |
>>> managementnodeid
>>> > | remoteIP | lastcheck           | pw   |
>>> >
>>>
>>> +----+-----------+------------+---------+-----------------+------------------
>>> > +----------+---------------------+------+
>>> > | 34 |        11 |         13 |      10 |              10 |
>>> 1
>>> > | NULL     | 0000-00-00 00:00:00 | NULL |
>>> >
>>>
>>> +----+-----------+------------+---------+-----------------+------------------
>>> > +----------+---------------------+------+
>>> > 1 row in set (0.00 sec)
>>> >
>>> >
>>> > And finally, here is the directory structure (after executing the
>>> commands)
>>> > of the VMWare server:
>>> > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # ls -l
>>> > drwxr-xr-x    1 root     root                420 Jan 23 08:31 golden
>>> > drwxr-xr-x    1 root     root                420 Jan 23 08:31 inuse
>>> > drwxr-xr-x    1 root     root               4340 Dec  3 18:30
>>> > vcl.csueastbay.edu
>>> > drwxr-xr-x    1 root     root               4340 Dec  3 18:08
>>> > vcldb.csueastbay.edu
>>> > drwxr-xr-x    1 root     root               4340 Dec  3 18:23
>>> > vclmgmt.csueastbay.edu
>>> > drwxr-xr-x    1 root     root               2660 Jan 23 08:22
>>> > vmwarewinxp-base7-v0
>>> > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd golden/
>>> > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # ls -l
>>> > drwxr-xr-x    1 root     root                280 Jan 23 08:31
>>> > vmwarewinxp-base7-v0
>>> > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # cd ..
>>> > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd inuse/
>>> > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/inuse # ls -l
>>> > drwxr-xr-x    1 root     root                420 Jan 23 08:31 vcl-winxp
>>> >
>>> >
>>> > Let me know if more output from the logs would be helpful, or any other
>>> > information.
>>> >
>>> >
>>> > Thanks,
>>> > Jeff Wisman
>>> >
>>>
>>> --
>>> Andy Kurth
>>> Virtual Computing Lab
>>> Office of Information Technology
>>> North Carolina State University
>>> andy_kurth@ncsu.edu
>>> 919.513.4090
>>>
>>>
>>>
>>
>

Re: Issues with Inserting Image Reservation Into VCL DB

Posted by Jonathon Taylor <jo...@csueastbay.edu>.
Jeff,

I think I know what you need to do...  Basically the errors are telling us
that there are no 'free' computers out there to load the image on.  You need
to add a group of computers that are available to load the images on.

Go to Manage Computers
Select Edit Computer Information / Submit
Check the box that says Add Multiple (you can leave all else blank)
Click Add

Now you can fill in the necessary information for the block of computers
that will be available for images.  For example the computer name might be
CSUEBVM% where the percent indicates a number that will be incremented based
on the next fields you add for the range of computers.  Fill in the static
DHCP address ranges and use dummy MAC addresses.

I have never done this before but I'm pretty sure it will then spit out the
dhcpd.conf configuration section you need to get that going properly.

-Jonathon

On Sat, Jan 30, 2010 at 3:16 PM, Jeffrey Wisman
<je...@csueastbay.edu>wrote:

> So I'm still having issues.  I can perform all the actions listed here
> successfully (at least it seems so from the logs):
> http://cwiki.apache.org/VCL/create-a-windows-base-image.html
>
> I'm trying to create a reservation for the first time from the GUI, and
> having trouble.  I get the message "Selection not currently available"
> when I try to do it, and I can't figure out why.  The groupings, mappings,
> and permissions *seem* right, but maybe they aren't.  Attached are some
> screen shots.  Let me know if I'm missing something obvious, or need to
> provide more information for troubleshooting.
>
> Thanks,
> Jeff
>
>
>
> On Wed, Jan 27, 2010 at 9:51 AM, Jeffrey Wisman <
> jeff.wisman@csueastbay.edu> wrote:
>
>> I just wanted to post a follow up that the issue was with the hosts file.
>>  I
>> had put both the public and private IP addresses in the management
>> server's
>> host file.  I removed the public IP and now it works just fine.
>>
>> I'm still having issues with the reservations, but I think its just my
>> misunderstanding of how this is all supposed to work.  I'll be spending
>> more
>> time in the next few days, and post if I can't figure out the next steps
>> on
>> my own.
>>
>> Thanks,
>> Jeff
>>
>>
>> -----Original Message-----
>> From: Jeffrey Wisman [mailto:jeff.wisman@csueastbay.edu]
>> Sent: Mon 1/25/2010 12:58 PM
>> To: vcl-dev@incubator.apache.org; vcl-dev@incubator.apache.org
>> Subject: RE: Issues with Inserting Image Reservation Into VCL DB
>>
>> Thanks Andy, I'll try your suggestions tonight and report back.  Your help
>> is
>> much appreciated!
>>
>> Jeff
>>
>>
>> -----Original Message-----
>> From: Andy Kurth [mailto:andy_kurth@ncsu.edu]
>> Sent: Mon 1/25/2010 12:33 PM
>> To: vcl-dev@incubator.apache.org
>> Subject: Re: Issues with Inserting Image Reservation Into VCL DB
>>
>> Hello Jeff,
>> It appears that the image was successfully captured and it's at the point
>> where
>> it's trying to reload the new image.
>>
>> Is the computer.privateIPaddress value set in the database?  If not, set
>> this
>>
>> for vcl-winxp in the computer table and see if the warnings go away.  You
>> can
>>
>> also add an entry in the /etc/hosts file on the management node for the
>> private
>> address of vcl-winxp.  Either of these should clear up most of the warning
>> messages you're seeing.
>>
>> You don't have to go through the entire imaging process again to
>> troubleshoot
>>
>> this.  You can restart the reload process by:
>> -Kill the existing vcld process for the reservation if it's still running.
>> The
>> PID to kill is displayed as the leftmost field in the log output (1297 in
>> the
>>
>> output you included).  Don't kill the main vcld process.
>> -Set request.state to 'reload', request.start to NOW(), and request.end to
>> some
>> time in the future.  The vcld process should begin to process it again.
>> Start
>> 'tail -f /var/log/vcld.log' before changing the request state.
>>
>> Is it hanging indefinitely after it attempts to run the last command
>> (route
>> delete 0.0.0.0) included in the log output?  I haven't seen this problem
>> before
>> if it is indeed hanging.  The 'route delete' command may be breaking
>> networking
>> on the computer and tripping up the SSH command.  I would try running the
>> SSH
>>
>> command manually with the -v option to try to figure out what's happening:
>> ssh -v -i /etc/vcl/vcl.key  -l root -p 22 -x vcl-winxp 'route delete
>> 0.0.0.0'
>>
>> If this command hangs, try adding the ServerAliveInterval SSH option:
>> ssh -v -o ServerAliveInterval=15 -i /etc/vcl/vcl.key -l root -p 22 -x
>> vcl-winxp
>> 'route delete 0.0.0.0'
>>
>> Give this command at least 20 seconds before killing it if it hangs.  If
>> this
>>
>> prevents it from hanging, try manually running the next command VCL would
>> have
>> performed:
>> ssh -i /etc/vcl/vcl.key -l root -p 22 -x vcl-winxp 'route -p ADD 0.0.0.0
>> MASK
>>
>> 0.0.0.0 134.154.193.190 METRIC 1'
>>
>> The output of these commands may be helpful in troubleshooting.
>>
>> Regards,
>> Andy Kurth / NCSU VCL
>>
>>
>> Jeffrey Wisman wrote:
>> > Hi all - Just joined this list.  I've been working on a pilot VCL
>> install
>> at
>> > CSU East Bay, and am hung up on what seems like nearly the last step.
>>  I'm
>> > following instructions at the bottom of this page:
>> >
>> http://cwiki.apache.org/confluence/display/VCL/Create+a+Windows+Base+Image
>> >
>> > I'm attempting to insert the image reservation into the VCL DB, and it
>> only
>> > gets as far as this network/route issue.  Is this a DHCP problem?  A
>> hosts
>> > file issue?  Something else?  Please let me know if anyone has seen this
>> > before, or can help troubleshoot.  Here is the last part of the output
>> from
>> > tail -f /var/log/vcld.log
>> >
>> >
>> > |1297|11:34|reload| ---- WARNING ----
>> > |1297|11:34|reload| 2010-01-23
>> >
>> 00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4197)|SSH
>> > will not be disabled on public interface because public interface name
>> could
>> > not be determined
>> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
>> > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private (line:
>> 4197)
>> > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
>> > |1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
>> > |1297|11:34|reload| (-4) new.pm, process (line: 266)
>> > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>> > |1297|11:34|reload| (-6) vcld, main (line: 341)
>> >
>> > 2010-01-23
>> >
>>
>> 00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>> > configuration has already been retrieved
>> > 2010-01-23
>> >
>>
>> 00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>> > 442)|attempting to retrieve private IP address for computer: vcl-winxp
>> > 2010-01-23
>> >
>>
>> 00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>> > 446)|retrieved contents of /etc/hosts on this management node, contains
>> 6
>> > lines
>> >
>> > |1297|11:34|reload| ---- WARNING ----
>> > |1297|11:34|reload| 2010-01-23
>> >
>>
>> 00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>> > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
>> > |1297|11:34|reload| (-1) DataStructure.pm,
>> get_computer_private_ip_address
>> > (line: 1466)
>> > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line:
>> 4642)
>> > |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name (line:
>> 4761)
>> > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ssh_private (line:
>> 4202)
>> > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 485)
>> > |1297|11:34|reload| (-6) new.pm, reload_image (line: 692)
>> >
>> > 2010-01-23
>> >
>>
>> 00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>> > to retrieve computer private IP address from reservation data
>> >
>> > |1297|11:34|reload| ---- WARNING ----
>> > |1297|11:34|reload| 2010-01-23
>> >
>>
>> 00:33:30|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|unable
>> > to retrieve network configuration
>> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
>> > |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name (line:
>> 4763)
>> > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ssh_private (line:
>> 4202)
>> > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 485)
>> > |1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
>> > |1297|11:34|reload| (-5) new.pm, process (line: 266)
>> > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>> >
>> >
>> > |1297|11:34|reload| ---- WARNING ----
>> > |1297|11:34|reload| 2010-01-23
>> >
>>
>> 00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4220)|priva
>> > te interface name could not be determined, SSH will be enabled for all
>> > profiles
>> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
>> > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private (line:
>> 4220)
>> > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
>> > |1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
>> > |1297|11:34|reload| (-4) new.pm, process (line: 266)
>> > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>> > |1297|11:34|reload| (-6) vcld, main (line: 341)
>> >
>> > 2010-01-23
>> > 00:33:30|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing SSH
>> > command on vcl-winxp:
>> > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
>> > vcl-winxp 'netsh.exe firewall set portopening name = "Cygwin SSHD"
>> protocol
>> =
>> > TCP port = 22 profile = ALL' 2>&1
>> > 2010-01-23 00:33:35|1226|vcld:main(165)|lastcheckin time updated for
>> > management node 1: 2010-01-23 00:33:35
>> > 2010-01-23
>> > 00:33:37|1297|11:34|reload|utils.pm:
>> run_ssh_command(6250)|run_ssh_command
>> > output:
>> > |1297|11:34|reload| Ok.
>> > 2010-01-23 00:33:37|1297|11:34|reload|utils.pm:
>> run_ssh_command(6264)|SSH
>> > command executed on vcl-winxp, returning (0, "Ok.")
>> > 2010-01-23
>> >
>>
>> 00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4232)|confi
>> > gured firewall to allow SSH on private interface
>> > 2010-01-23
>> >
>>
>> 00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>> > configuration has already been retrieved
>> > 2010-01-23
>> >
>>
>> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>> > 442)|attempting to retrieve private IP address for computer: vcl-winxp
>> > 2010-01-23
>> >
>>
>> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>> > 446)|retrieved contents of /etc/hosts on this management node, contains
>> 6
>> > lines
>> >
>> > |1297|11:34|reload| ---- WARNING ----
>> > |1297|11:34|reload| 2010-01-23
>> >
>>
>> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>> > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
>> > |1297|11:34|reload| (-1) DataStructure.pm,
>> get_computer_private_ip_address
>> > (line: 1466)
>> > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line:
>> 4642)
>> > |1297|11:34|reload| (-3) Windows.pm, get_public_interface_name (line:
>> 4791)
>> > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private (line:
>> > 3935)
>> > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
>> > |1297|11:34|reload| (-6) new.pm, reload_image (line: 692)
>> >
>> > 2010-01-23
>> >
>>
>> 00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>> > to retrieve computer private IP address from reservation data
>> >
>> > |1297|11:34|reload| ---- WARNING ----
>> > |1297|11:34|reload| 2010-01-23
>> >
>>
>> 00:33:37|1297|11:34|reload|Windows.pm:get_public_interface_name(4793)|unable
>> > to retrieve network configuration
>> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
>> > |1297|11:34|reload| (-1) Windows.pm, get_public_interface_name (line:
>> 4793)
>> > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private (line:
>> > 3935)
>> > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
>> > |1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
>> > |1297|11:34|reload| (-5) new.pm, process (line: 266)
>> > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>> >
>> >
>> > |1297|11:34|reload| ---- WARNING ----
>> > |1297|11:34|reload| 2010-01-23
>> >
>>
>> 00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3946)|ping
>> > will not be disabled on public interface because public interface name
>> could
>> > not be determined
>> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
>> > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private (line:
>> > 3946)
>> > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
>> > |1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
>> > |1297|11:34|reload| (-4) new.pm, process (line: 266)
>> > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>> > |1297|11:34|reload| (-6) vcld, main (line: 341)
>> >
>> > 2010-01-23
>> >
>>
>> 00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>> > configuration has already been retrieved
>> > 2010-01-23
>> >
>>
>> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>> > 442)|attempting to retrieve private IP address for computer: vcl-winxp
>> > 2010-01-23
>> >
>>
>> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>> > 446)|retrieved contents of /etc/hosts on this management node, contains
>> 6
>> > lines
>> >
>> > |1297|11:34|reload| ---- WARNING ----
>> > |1297|11:34|reload| 2010-01-23
>> >
>>
>> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>> > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
>> > |1297|11:34|reload| (-1) DataStructure.pm,
>> get_computer_private_ip_address
>> > (line: 1466)
>> > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line:
>> 4642)
>> > |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name (line:
>> 4761)
>> > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private (line:
>> > 3951)
>> > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
>> > |1297|11:34|reload| (-6) new.pm, reload_image (line: 692)
>> >
>> > 2010-01-23
>> >
>>
>> 00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>> > to retrieve computer private IP address from reservation data
>> >
>> > |1297|11:34|reload| ---- WARNING ----
>> > |1297|11:34|reload| 2010-01-23
>> >
>>
>> 00:33:37|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|unable
>> > to retrieve network configuration
>> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
>> > |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name (line:
>> 4763)
>> > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private (line:
>> > 3951)
>> > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
>> > |1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
>> > |1297|11:34|reload| (-5) new.pm, process (line: 266)
>> > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>> >
>> >
>> > |1297|11:34|reload| ---- WARNING ----
>> > |1297|11:34|reload| 2010-01-23
>> >
>>
>> 00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3967)|priv
>> > ate interface name could not be determined, ping will be enabled for all
>> > profiles
>> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
>> > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private (line:
>> > 3967)
>> > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
>> > |1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
>> > |1297|11:34|reload| (-4) new.pm, process (line: 266)
>> > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>> > |1297|11:34|reload| (-6) vcld, main (line: 341)
>> >
>> > 2010-01-23
>> > 00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing SSH
>> > command on vcl-winxp:
>> > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
>> > vcl-winxp 'netsh.exe firewall set icmpsetting type = 8 mode = ENABLE
>> profile
>> > = ALL ;' 2>&1
>> > 2010-01-23 00:33:40|1226|vcld:main(165)|lastcheckin time updated for
>> > management node 1: 2010-01-23 00:33:40
>> > 2010-01-23
>> > 00:33:43|1297|11:34|reload|utils.pm:
>> run_ssh_command(6250)|run_ssh_command
>> > output:
>> > |1297|11:34|reload| Ok.
>> > 2010-01-23 00:33:43|1297|11:34|reload|utils.pm:
>> run_ssh_command(6264)|SSH
>> > command executed on vcl-winxp, returning (0, "Ok.")
>> > 2010-01-23
>> >
>>
>> 00:33:43|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3979)|conf
>> > igured firewall to allow ping on private interface
>> > 2010-01-23
>> >
>> 00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4890)|IP
>> > configuration mode in use: dynamicDHCP
>> > 2010-01-23
>> >
>>
>> 00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>> > configuration has already been retrieved
>> > 2010-01-23
>> >
>>
>> 00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>> > 442)|attempting to retrieve private IP address for computer: vcl-winxp
>> > 2010-01-23
>> >
>>
>> 00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>> > 446)|retrieved contents of /etc/hosts on this management node, contains
>> 6
>> > lines
>> >
>> > |1297|11:34|reload| ---- WARNING ----
>> > |1297|11:34|reload| 2010-01-23
>> >
>>
>> 00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>> > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
>> > |1297|11:34|reload| (-1) DataStructure.pm,
>> get_computer_private_ip_address
>> > (line: 1466)
>> > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line:
>> 4642)
>> > |1297|11:34|reload| (-3) Windows.pm, get_public_default_gateway (line:
>> 4894)
>> > |1297|11:34|reload| (-4) Windows.pm, set_public_default_route (line:
>> 7429)
>> > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 507)
>> > |1297|11:34|reload| (-6) new.pm, reload_image (line: 692)
>> >
>> > 2010-01-23
>> >
>>
>> 00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>> > to retrieve computer private IP address from reservation data
>> >
>> > |1297|11:34|reload| ---- WARNING ----
>> > |1297|11:34|reload| 2010-01-23
>> >
>>
>> 00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4908)|unable
>> > to retrieve public network configuration currently in use on vcl-winxp
>> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
>> > |1297|11:34|reload| (-1) Windows.pm, get_public_default_gateway (line:
>> 4908)
>> > |1297|11:34|reload| (-2) Windows.pm, set_public_default_route (line:
>> 7429)
>> > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 507)
>> > |1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
>> > |1297|11:34|reload| (-5) new.pm, process (line: 266)
>> > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>> >
>> > 2010-01-23
>> >
>>
>> 00:33:43|1297|11:34|reload|DataStructure.pm:get_management_node_public_defaul
>> > t_gateway(1783)|returning default gateway from route command:
>> 134.154.193.190
>> > 2010-01-23
>> >
>>
>> 00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4917)|return
>> > ing management node's default gateway address: 134.154.193.190
>> > 2010-01-23
>> > 00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing SSH
>> > command on vcl-winxp:
>> > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
>> > vcl-winxp 'route delete 0.0.0.0' 2>&1
>> > 2010-01-23 00:33:45|1226|vcld:main(165)|lastcheckin time updated for
>> > management node 1: 2010-01-23 00:33:45
>> > 2010-01-23 00:33:50|1226|vcld:main(165)|lastcheckin time updated for
>> > management node 1: 2010-01-23 00:33:50
>> > 2010-01-23 00:33:55|1226|vcld:main(165)|lastcheckin time updated for
>> > management node 1: 2010-01-23 00:33:55
>> > 2010-01-23 00:34:00|1226|vcld:main(165)|lastcheckin time updated for
>> > management node 1: 2010-01-23 00:34:00
>> > 2010-01-23 00:34:05|1226|vcld:main(165)|lastcheckin time updated for
>> > management node 1: 2010-01-23 00:34:05
>> > 2010-01-23 00:34:10|1226|vcld:main(165)|lastcheckin time updated for
>> > management node 1: 2010-01-23 00:34:10
>> >
>> >
>> >
>> >
>> >
>> >
>> > And the database state:
>> >
>> > mysql> select * from request;
>> >
>>
>> +----+---------+--------+-------------+-------+------------+------+---------+
>> >
>>
>> ---------------------+---------------------+---------------------+-----------
>> > ---+
>> > | id | stateid | userid | laststateid | logid | forimaging | test |
>> preload
>> |
>> > start               | end                 | daterequested       |
>> > datemodified |
>> >
>>
>> +----+---------+--------+-------------+-------+------------+------+---------+
>> >
>>
>> ---------------------+---------------------+---------------------+-----------
>> > ---+
>> > | 11 |      14 |      2 |          19 |     0 |          0 |    0 |
>>   0
>> |
>> > 2010-01-23 00:31:59 | 2010-01-23 01:01:59 | 2010-01-23 00:31:59 | NULL
>> > |
>> >
>>
>> +----+---------+--------+-------------+-------+------------+------+---------+
>> >
>>
>> ---------------------+---------------------+---------------------+-----------
>> > ---+
>> > 1 row in set (0.00 sec)
>> >
>> > mysql> select * from reservation;
>> >
>>
>> +----+-----------+------------+---------+-----------------+------------------
>> > +----------+---------------------+------+
>> > | id | requestid | computerid | imageid | imagerevisionid |
>> managementnodeid
>> > | remoteIP | lastcheck           | pw   |
>> >
>>
>> +----+-----------+------------+---------+-----------------+------------------
>> > +----------+---------------------+------+
>> > | 34 |        11 |         13 |      10 |              10 |
>> 1
>> > | NULL     | 0000-00-00 00:00:00 | NULL |
>> >
>>
>> +----+-----------+------------+---------+-----------------+------------------
>> > +----------+---------------------+------+
>> > 1 row in set (0.00 sec)
>> >
>> >
>> > And finally, here is the directory structure (after executing the
>> commands)
>> > of the VMWare server:
>> > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # ls -l
>> > drwxr-xr-x    1 root     root                420 Jan 23 08:31 golden
>> > drwxr-xr-x    1 root     root                420 Jan 23 08:31 inuse
>> > drwxr-xr-x    1 root     root               4340 Dec  3 18:30
>> > vcl.csueastbay.edu
>> > drwxr-xr-x    1 root     root               4340 Dec  3 18:08
>> > vcldb.csueastbay.edu
>> > drwxr-xr-x    1 root     root               4340 Dec  3 18:23
>> > vclmgmt.csueastbay.edu
>> > drwxr-xr-x    1 root     root               2660 Jan 23 08:22
>> > vmwarewinxp-base7-v0
>> > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd golden/
>> > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # ls -l
>> > drwxr-xr-x    1 root     root                280 Jan 23 08:31
>> > vmwarewinxp-base7-v0
>> > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # cd ..
>> > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd inuse/
>> > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/inuse # ls -l
>> > drwxr-xr-x    1 root     root                420 Jan 23 08:31 vcl-winxp
>> >
>> >
>> > Let me know if more output from the logs would be helpful, or any other
>> > information.
>> >
>> >
>> > Thanks,
>> > Jeff Wisman
>> >
>>
>> --
>> Andy Kurth
>> Virtual Computing Lab
>> Office of Information Technology
>> North Carolina State University
>> andy_kurth@ncsu.edu
>> 919.513.4090
>>
>>
>>
>

Re: Issues with Inserting Image Reservation Into VCL DB (scheduling algorithm)

Posted by Josh Thompson <jo...@ncsu.edu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'll break apart what the scheduling algorithm does to find an available 
computer.  You should be able to check each step to find what isn't set up 
correctly.

- -find all schedules that the specified reservation start/end time falls within

- -check to see if there is a maximum number of allowed concurrent reservations 
for this image and see if that limit is already reached

- -find all computers the image maps to

- -get list of computers user has access to via the privilege tree (user must 
have imageCheckOut at a node and computer group needs to have available set 
at the same node)

- -build list of computers that
  * match the list of schedules found above
  * match the platform of the image
  * are not in these states: maintenance, vmhostinuse, hpc, failed,
    reloading, reload, timeout, inuse
  * have >= minimum RAM required by the image
  * have >= processor speed required by the image
  * have >= # of processors required by the image
  * have >= minimum network speed required by the image
  * are in list of computers image maps to
  * are in list of computers user has access to

- -add to that list any block reserved computers for the user and the image

- -remove any computers from the list that active reservations on them

- -if no block reserved computers were added to the list, remove all computers 
allocated for any block reservations

- -find a management node that is available, maps to the computer, and has a 
recent checkin time

If the code reaches this point, it should give you a reservation.  If any of 
the above fails to find something, it will say the reservation isn't 
available.

Let us know if you can find something based off of this information.

Josh

P.S. A note for archive purposes:  I added '(scheduling algorithm)' to the 
subject for easier searching of archives.  Also, the algorithm is slated to 
get an overhaul in version 2.4 when dynamic hypervisor support is added in; 
so, this information will be out of date when that version comes out.

On Tue February 2 2010 1:20:13 am Jeffrey Wisman wrote:
> Andy,
> The VM computers are all in the "available" state.  However the VM host is
> also in the "available" state.  I'm guessing that could be the problem?
>
> When I try to change the state by using "Change state of selected computers
> to: vmhostinuse", it gives me the OK but it seems to stay in the
> "available" state.  I'm not sure its doing anything.
>
> Also, the management node is in the "available" state, so that's all good.
> The image I'm trying to use is in "allImages" and "allVMimages" groups.
> Those two groups are mapped to all computer groups except for "all vm host
> computers".  Privileges should be fine as I'm using the admin user to test
> and have granted all permissions to the admin user.
>
> Let me know if you have insight on the VM host available issue.  Otherwise
> we'll chat more tomorrow.  Many thanks for your help!!
>
> Jeff
>
> On Mon, Feb 1, 2010 at 7:38 AM, Andy Kurth <an...@ncsu.edu> wrote:
> > Hi Jeff,
> > This problem is somewhat difficult to troubleshoot because there are
> > several possible causes.  The easy things to check:
> > -Are your VM computers in the available state (Manage Computers -->
> > Computer Utilities)?.  They may have been left in the failed state when
> > you were having imaging trouble.  Your VM host should be in the
> > 'vmhostinuse' state.
> > -Make sure your management node is in the available state (Management
> > Nodes --> Edit Management Node Information).  Nothing should have changed
> > the state of the managment node but this is easy to forget about.
> >
> > If everything is available, check the image/computer groupings and
> > mappings and privilege tree:
> > 1. Manage Images --> Edit Image Grouping -- note the image groups the
> > image is assigned to
> > 2. Manage Image --> Edit Image Mapping -- determine which computer groups
> > the image is mapped to by viewing the mappings for the image groups you
> > located in step 1
> > 3. Manage Computers --> Edit Computer Grouping -- make sure your VM
> > computers are in a computer group found in step 2
> > 3. View the privilege tree (Privileges).  Is there a node where the image
> > group, computer group, and either the user account or a group the user
> > account is in are all configured.  The user account or group needs the
> > "imageCheckOut" right and the image and computer groups need to be
> > "available".
> >
> > Some database troubleshooting is necessary if you're still having
> > trouble. It may be easiest if there's a way to take a look at your
> > database.
> >
> > Regards,
> > Andy
> >
> > Jeffrey Wisman wrote:
> >> So I'm still having issues.  I can perform all the actions listed here
> >> successfully (at least it seems so from the logs):
> >> http://cwiki.apache.org/VCL/create-a-windows-base-image.html
> >>
> >> I'm trying to create a reservation for the first time from the GUI, and
> >> having trouble.  I get the message "Selection not currently available"
> >> when I try to do it, and I can't figure out why.  The groupings,
> >> mappings, and permissions *seem* right, but maybe they aren't.  Attached
> >> are some screen shots.  Let me know if I'm missing something obvious, or
> >> need to provide more information for troubleshooting.
> >>
> >> Thanks,
> >> Jeff
> >>
> >>
> >>
> >> On Wed, Jan 27, 2010 at 9:51 AM, Jeffrey Wisman <
> >> jeff.wisman@csueastbay.edu <ma...@csueastbay.edu>> wrote:
> >>
> >>    I just wanted to post a follow up that the issue was with the hosts
> >>    file.  I
> >>    had put both the public and private IP addresses in the management
> >>    server's
> >>    host file.  I removed the public IP and now it works just fine.
> >>
> >>    I'm still having issues with the reservations, but I think its just
> >> my misunderstanding of how this is all supposed to work.  I'll be
> >> spending more
> >>    time in the next few days, and post if I can't figure out the next
> >>    steps on
> >>    my own.
> >>
> >>    Thanks,
> >>    Jeff
> >>
> >>
> >>    -----Original Message-----
> >>    From: Jeffrey Wisman [mailto:jeff.wisman@csueastbay.edu
> >>    <ma...@csueastbay.edu>]
> >>    Sent: Mon 1/25/2010 12:58 PM
> >>    To: vcl-dev@incubator.apache.org
> >>    <ma...@incubator.apache.org>; vcl-dev@incubator.apache.org
> >>    <ma...@incubator.apache.org>
> >>    Subject: RE: Issues with Inserting Image Reservation Into VCL DB
> >>
> >>    Thanks Andy, I'll try your suggestions tonight and report back.
> >>     Your help is
> >>    much appreciated!
> >>
> >>    Jeff
> >>
> >>
> >>    -----Original Message-----
> >>    From: Andy Kurth [mailto:andy_kurth@ncsu.edu
> >>    <ma...@ncsu.edu>]
> >>    Sent: Mon 1/25/2010 12:33 PM
> >>    To: vcl-dev@incubator.apache.org
> >> <ma...@incubator.apache.org> Subject: Re: Issues with Inserting
> >> Image Reservation Into VCL DB
> >>
> >>    Hello Jeff,
> >>    It appears that the image was successfully captured and it's at the
> >>    point
> >>    where
> >>    it's trying to reload the new image.
> >>
> >>    Is the computer.privateIPaddress value set in the database?  If not,
> >>    set this
> >>
> >>    for vcl-winxp in the computer table and see if the warnings go away.
> >>     You can
> >>
> >>    also add an entry in the /etc/hosts file on the management node for
> >> the private
> >>    address of vcl-winxp.  Either of these should clear up most of the
> >>    warning
> >>    messages you're seeing.
> >>
> >>    You don't have to go through the entire imaging process again to
> >>    troubleshoot
> >>
> >>    this.  You can restart the reload process by:
> >>    -Kill the existing vcld process for the reservation if it's still
> >>    running.
> >>    The
> >>    PID to kill is displayed as the leftmost field in the log output
> >>    (1297 in the
> >>
> >>    output you included).  Don't kill the main vcld process.
> >>    -Set request.state to 'reload', request.start to NOW(), and
> >>    request.end to
> >>    some
> >>    time in the future.  The vcld process should begin to process it
> >> again. Start
> >>    'tail -f /var/log/vcld.log' before changing the request state.
> >>
> >>    Is it hanging indefinitely after it attempts to run the last command
> >>    (route
> >>    delete 0.0.0.0) included in the log output?  I haven't seen this
> >> problem
> >>    before
> >>    if it is indeed hanging.  The 'route delete' command may be breaking
> >>    networking
> >>    on the computer and tripping up the SSH command.  I would try
> >>    running the SSH
> >>
> >>    command manually with the -v option to try to figure out what's
> >>    happening:
> >>    ssh -v -i /etc/vcl/vcl.key  -l root -p 22 -x vcl-winxp 'route delete
> >>    0.0.0.0'
> >>
> >>    If this command hangs, try adding the ServerAliveInterval SSH option:
> >>    ssh -v -o ServerAliveInterval=15 -i /etc/vcl/vcl.key -l root -p 22 -x
> >>    vcl-winxp
> >>    'route delete 0.0.0.0'
> >>
> >>    Give this command at least 20 seconds before killing it if it hangs.
> >>     If this
> >>
> >>    prevents it from hanging, try manually running the next command VCL
> >>    would
> >>    have
> >>    performed:
> >>    ssh -i /etc/vcl/vcl.key -l root -p 22 -x vcl-winxp 'route -p ADD
> >>    0.0.0.0 MASK
> >>
> >>    0.0.0.0 134.154.193.190 METRIC 1'
> >>
> >>    The output of these commands may be helpful in troubleshooting.
> >>
> >>    Regards,
> >>    Andy Kurth / NCSU VCL
> >>
> >>    Jeffrey Wisman wrote:
> >>     > Hi all - Just joined this list.  I've been working on a pilot VCL
> >>
> >>    install
> >>    at
> >>
> >>     > CSU East Bay, and am hung up on what seems like nearly the last
> >>
> >>    step.  I'm
> >>
> >>     > following instructions at the bottom of this page:
> >>
> >> http://cwiki.apache.org/confluence/display/VCL/Create+a+Windows+Base+Ima
> >>ge
> >>
> >>     > I'm attempting to insert the image reservation into the VCL DB,
> >>
> >>    and it only
> >>
> >>     > gets as far as this network/route issue.  Is this a DHCP problem?
> >>
> >>     A hosts
> >>
> >>     > file issue?  Something else?  Please let me know if anyone has
> >>
> >>    seen this
> >>
> >>     > before, or can help troubleshoot.  Here is the last part of the
> >>
> >>    output from
> >>
> >>     > tail -f /var/log/vcld.log
> >>     >
> >>     > |1297|11:34|reload| ---- WARNING ----
> >>     > |1297|11:34|reload| 2010-01-23
> >>
> >> 
> >> 00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4197)|
> >>SSH
> >>
> >>     > will not be disabled on public interface because public interface
> >>
> >>    name
> >>    could
> >>
> >>     > not be determined
> >>     >
> >>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
> >>
> >>    (line: 728)
> >>
> >>     > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private
> >>
> >>    (line:
> >>    4197)
> >>
> >>     > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
> >>     > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
> >>
> >>    (line: 692)
> >>
> >>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line:
> >>
> >> 266)
> >>
> >>     > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
> >>     > |1297|11:34|reload| (-6) vcld, main (line: 341)
> >>     >
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|ne
> >>twork
> >>
> >>     > configuration has already been retrieved
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_addr
> >>ess(1
> >>
> >>     > 442)|attempting to retrieve private IP address for computer:
> >>
> >>    vcl-winxp
> >>
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_addr
> >>ess(1
> >>
> >>     > 446)|retrieved contents of /etc/hosts on this management node,
> >>
> >>    contains 6
> >>
> >>     > lines
> >>     >
> >>     > |1297|11:34|reload| ---- WARNING ----
> >>     > |1297|11:34|reload| 2010-01-23
> >>
> >> 
> >> 00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_addr
> >>ess(1
> >>
> >>     > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
> >>     >
> >>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
> >>
> >>    (line: 728)
> >>
> >>     > |1297|11:34|reload| (-1) DataStructure.pm,
> >>
> >>    get_computer_private_ip_address
> >>
> >>     > (line: 1466)
> >>     >
> >>     > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
> >>
> >>    (line: 4642)
> >>
> >>     > |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name
> >>
> >>    (line:
> >>    4761)
> >>
> >>     > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ssh_private
> >>
> >>    (line:
> >>    4202)
> >>
> >>     > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 485)
> >>     > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
> >>
> >>    (line: 692)
> >>
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|un
> >>able
> >>
> >>     > to retrieve computer private IP address from reservation data
> >>     >
> >>     > |1297|11:34|reload| ---- WARNING ----
> >>     > |1297|11:34|reload| 2010-01-23
> >>
> >> 
> >> 00:33:30|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|u
> >>nable
> >>
> >>     > to retrieve network configuration
> >>     >
> >>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
> >>
> >>    (line: 728)
> >>
> >>     > |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name
> >>
> >>    (line:
> >>    4763)
> >>
> >>     > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ssh_private
> >>
> >>    (line:
> >>    4202)
> >>
> >>     > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 485)
> >>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
> >>
> >>    (line: 692)
> >>
> >>     > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line:
> >>
> >> 266)
> >>
> >>     > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
> >>     > |
> >>     > |
> >>     > |1297|11:34|reload| ---- WARNING ----
> >>     > |1297|11:34|reload| 2010-01-23
> >>
> >> 
> >> 00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4220)|
> >>priva
> >>
> >>     > te interface name could not be determined, SSH will be enabled
> >>
> >>    for all
> >>
> >>     > profiles
> >>     >
> >>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
> >>
> >>    (line: 728)
> >>
> >>     > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private
> >>
> >>    (line:
> >>    4220)
> >>
> >>     > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
> >>     > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
> >>
> >>    (line: 692)
> >>
> >>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line:
> >>
> >> 266)
> >>
> >>     > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
> >>     > |1297|11:34|reload| (-6) vcld, main (line: 341)
> >>     >
> >>     > 2010-01-23
> >>
> >>    00:33:30|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing
> >> SSH
> >>
> >>     > command on vcl-winxp:
> >>     > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p
> >>
> >>    22 -x
> >>
> >>     > vcl-winxp 'netsh.exe firewall set portopening name = "Cygwin
> >>
> >>    SSHD" protocol
> >>    =
> >>
> >>     > TCP port = 22 profile = ALL' 2>&1
> >>     > 2010-01-23 00:33:35|1226|vcld:main(165)|lastcheckin time updated
> >>     > for management node 1: 2010-01-23 00:33:35
> >>     > 2010-01-23
> >>
> >>    00:33:37|1297|11:34|reload|utils.pm:
> >> run_ssh_command(6250)|run_ssh_command
> >>
> >>     > output:
> >>     > |1297|11:34|reload| Ok.
> >>     >
> >>     > 2010-01-23
> >>
> >>    00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6264)|SSH
> >>
> >>     > command executed on vcl-winxp, returning (0, "Ok.")
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4232)|
> >>confi
> >>
> >>     > gured firewall to allow SSH on private interface
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|ne
> >>twork
> >>
> >>     > configuration has already been retrieved
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_addr
> >>ess(1
> >>
> >>     > 442)|attempting to retrieve private IP address for computer:
> >>
> >>    vcl-winxp
> >>
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_addr
> >>ess(1
> >>
> >>     > 446)|retrieved contents of /etc/hosts on this management node,
> >>
> >>    contains 6
> >>
> >>     > lines
> >>     >
> >>     > |1297|11:34|reload| ---- WARNING ----
> >>     > |1297|11:34|reload| 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_addr
> >>ess(1
> >>
> >>     > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
> >>     >
> >>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
> >>
> >>    (line: 728)
> >>
> >>     > |1297|11:34|reload| (-1) DataStructure.pm,
> >>
> >>    get_computer_private_ip_address
> >>
> >>     > (line: 1466)
> >>     >
> >>     > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
> >>
> >>    (line: 4642)
> >>
> >>     > |1297|11:34|reload| (-3) Windows.pm, get_public_interface_name
> >>
> >>    (line: 4791)
> >>
> >>     > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private
> >>
> >>    (line:
> >>     > 3935)
> >>     >
> >>     > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
> >>     > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
> >>
> >>    (line: 692)
> >>
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|un
> >>able
> >>
> >>     > to retrieve computer private IP address from reservation data
> >>     >
> >>     > |1297|11:34|reload| ---- WARNING ----
> >>     > |1297|11:34|reload| 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|Windows.pm:get_public_interface_name(4793)|un
> >>able
> >>
> >>     > to retrieve network configuration
> >>     >
> >>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
> >>
> >>    (line: 728)
> >>
> >>     > |1297|11:34|reload| (-1) Windows.pm, get_public_interface_name
> >>
> >>    (line: 4793)
> >>
> >>     > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private
> >>
> >>    (line:
> >>     > 3935)
> >>     >
> >>     > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
> >>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
> >>
> >>    (line: 692)
> >>
> >>     > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line:
> >>
> >> 266)
> >>
> >>     > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
> >>     > |
> >>     > |
> >>     > |1297|11:34|reload| ---- WARNING ----
> >>     > |1297|11:34|reload| 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3946)
> >>|ping
> >>
> >>     > will not be disabled on public interface because public interface
> >>
> >>    name
> >>    could
> >>
> >>     > not be determined
> >>     >
> >>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
> >>
> >>    (line: 728)
> >>
> >>     > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private
> >>
> >>    (line:
> >>     > 3946)
> >>     >
> >>     > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
> >>     > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
> >>
> >>    (line: 692)
> >>
> >>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line:
> >>
> >> 266)
> >>
> >>     > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
> >>     > |1297|11:34|reload| (-6) vcld, main (line: 341)
> >>     >
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|ne
> >>twork
> >>
> >>     > configuration has already been retrieved
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_addr
> >>ess(1
> >>
> >>     > 442)|attempting to retrieve private IP address for computer:
> >>
> >>    vcl-winxp
> >>
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_addr
> >>ess(1
> >>
> >>     > 446)|retrieved contents of /etc/hosts on this management node,
> >>
> >>    contains 6
> >>
> >>     > lines
> >>     >
> >>     > |1297|11:34|reload| ---- WARNING ----
> >>     > |1297|11:34|reload| 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_addr
> >>ess(1
> >>
> >>     > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
> >>     >
> >>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
> >>
> >>    (line: 728)
> >>
> >>     > |1297|11:34|reload| (-1) DataStructure.pm,
> >>
> >>    get_computer_private_ip_address
> >>
> >>     > (line: 1466)
> >>     >
> >>     > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
> >>
> >>    (line: 4642)
> >>
> >>     > |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name
> >>
> >>    (line:
> >>    4761)
> >>
> >>     > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private
> >>
> >>    (line:
> >>     > 3951)
> >>     >
> >>     > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
> >>     > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
> >>
> >>    (line: 692)
> >>
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|un
> >>able
> >>
> >>     > to retrieve computer private IP address from reservation data
> >>     >
> >>     > |1297|11:34|reload| ---- WARNING ----
> >>     > |1297|11:34|reload| 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|u
> >>nable
> >>
> >>     > to retrieve network configuration
> >>     >
> >>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
> >>
> >>    (line: 728)
> >>
> >>     > |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name
> >>
> >>    (line:
> >>    4763)
> >>
> >>     > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private
> >>
> >>    (line:
> >>     > 3951)
> >>     >
> >>     > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
> >>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
> >>
> >>    (line: 692)
> >>
> >>     > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line:
> >>
> >> 266)
> >>
> >>     > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
> >>     > |
> >>     > |
> >>     > |1297|11:34|reload| ---- WARNING ----
> >>     > |1297|11:34|reload| 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3967)
> >>|priv
> >>
> >>     > ate interface name could not be determined, ping will be enabled
> >>
> >>    for all
> >>
> >>     > profiles
> >>     >
> >>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
> >>
> >>    (line: 728)
> >>
> >>     > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private
> >>
> >>    (line:
> >>     > 3967)
> >>     >
> >>     > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
> >>     > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
> >>
> >>    (line: 692)
> >>
> >>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line:
> >>
> >> 266)
> >>
> >>     > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
> >>     > |1297|11:34|reload| (-6) vcld, main (line: 341)
> >>     >
> >>     > 2010-01-23
> >>
> >>    00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing
> >> SSH
> >>
> >>     > command on vcl-winxp:
> >>     > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p
> >>
> >>    22 -x
> >>
> >>     > vcl-winxp 'netsh.exe firewall set icmpsetting type = 8 mode =
> >>     > ENABLE
> >>
> >>    profile
> >>
> >>     > = ALL ;' 2>&1
> >>     > 2010-01-23 00:33:40|1226|vcld:main(165)|lastcheckin time updated
> >>     > for management node 1: 2010-01-23 00:33:40
> >>     > 2010-01-23
> >>
> >>    00:33:43|1297|11:34|reload|utils.pm:
> >> run_ssh_command(6250)|run_ssh_command
> >>
> >>     > output:
> >>     > |1297|11:34|reload| Ok.
> >>     >
> >>     > 2010-01-23
> >>
> >>    00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6264)|SSH
> >>
> >>     > command executed on vcl-winxp, returning (0, "Ok.")
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:43|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3979)
> >>|conf
> >>
> >>     > igured firewall to allow ping on private interface
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4890)|I
> >>P
> >>
> >>     > configuration mode in use: dynamicDHCP
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|ne
> >>twork
> >>
> >>     > configuration has already been retrieved
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_addr
> >>ess(1
> >>
> >>     > 442)|attempting to retrieve private IP address for computer:
> >>
> >>    vcl-winxp
> >>
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_addr
> >>ess(1
> >>
> >>     > 446)|retrieved contents of /etc/hosts on this management node,
> >>
> >>    contains 6
> >>
> >>     > lines
> >>     >
> >>     > |1297|11:34|reload| ---- WARNING ----
> >>     > |1297|11:34|reload| 2010-01-23
> >>
> >> 
> >> 00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_addr
> >>ess(1
> >>
> >>     > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
> >>     >
> >>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
> >>
> >>    (line: 728)
> >>
> >>     > |1297|11:34|reload| (-1) DataStructure.pm,
> >>
> >>    get_computer_private_ip_address
> >>
> >>     > (line: 1466)
> >>     >
> >>     > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
> >>
> >>    (line: 4642)
> >>
> >>     > |1297|11:34|reload| (-3) Windows.pm, get_public_default_gateway
> >>
> >>    (line:
> >>    4894)
> >>
> >>     > |1297|11:34|reload| (-4) Windows.pm, set_public_default_route
> >>
> >>    (line: 7429)
> >>
> >>     > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 507)
> >>     > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
> >>
> >>    (line: 692)
> >>
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|un
> >>able
> >>
> >>     > to retrieve computer private IP address from reservation data
> >>     >
> >>     > |1297|11:34|reload| ---- WARNING ----
> >>     > |1297|11:34|reload| 2010-01-23
> >>
> >> 
> >> 00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4908)|u
> >>nable
> >>
> >>     > to retrieve public network configuration currently in use on
> >>
> >>    vcl-winxp
> >>
> >>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
> >>
> >>    (line: 728)
> >>
> >>     > |1297|11:34|reload| (-1) Windows.pm, get_public_default_gateway
> >>
> >>    (line:
> >>    4908)
> >>
> >>     > |1297|11:34|reload| (-2) Windows.pm, set_public_default_route
> >>
> >>    (line: 7429)
> >>
> >>     > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 507)
> >>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
> >>
> >>    (line: 692)
> >>
> >>     > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line:
> >>
> >> 266)
> >>
> >>     > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
> >>     >
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:43|1297|11:34|reload|DataStructure.pm:get_management_node_public_d
> >>efaul
> >>
> >>     > t_gateway(1783)|returning default gateway from route command:
> >>
> >>    134.154.193.190
> >>
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4917)|r
> >>eturn
> >>
> >>     > ing management node's default gateway address: 134.154.193.190
> >>     > 2010-01-23
> >>
> >>    00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing
> >> SSH
> >>
> >>     > command on vcl-winxp:
> >>     > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p
> >>
> >>    22 -x
> >>
> >>     > vcl-winxp 'route delete 0.0.0.0' 2>&1
> >>     > 2010-01-23 00:33:45|1226|vcld:main(165)|lastcheckin time updated
> >>     > for management node 1: 2010-01-23 00:33:45
> >>     > 2010-01-23 00:33:50|1226|vcld:main(165)|lastcheckin time updated
> >>     > for management node 1: 2010-01-23 00:33:50
> >>     > 2010-01-23 00:33:55|1226|vcld:main(165)|lastcheckin time updated
> >>     > for management node 1: 2010-01-23 00:33:55
> >>     > 2010-01-23 00:34:00|1226|vcld:main(165)|lastcheckin time updated
> >>     > for management node 1: 2010-01-23 00:34:00
> >>     > 2010-01-23 00:34:05|1226|vcld:main(165)|lastcheckin time updated
> >>     > for management node 1: 2010-01-23 00:34:05
> >>     > 2010-01-23 00:34:10|1226|vcld:main(165)|lastcheckin time updated
> >>     > for management node 1: 2010-01-23 00:34:10
> >>     >
> >>     >
> >>     >
> >>     >
> >>     >
> >>     >
> >>     > And the database state:
> >>     >
> >>     > mysql> select * from request;
> >>
> >> 
> >> +----+---------+--------+-------------+-------+------------+------+-----
> >>----+
> >>
> >>
> >> 
> >> ---------------------+---------------------+---------------------+------
> >>-----
> >>
> >>     > ---+
> >>     >
> >>     > | id | stateid | userid | laststateid | logid | forimaging | test
> >>    |
> >>    | preload
> >>    |
> >>     > start               | end                 | daterequested       |
> >>     > datemodified |
> >>
> >> 
> >> +----+---------+--------+-------------+-------+------------+------+-----
> >>----+
> >>
> >>
> >> 
> >> ---------------------+---------------------+---------------------+------
> >>-----
> >>
> >>     > ---+
> >>     >
> >>     > | 11 |      14 |      2 |          19 |     0 |          0 |    0
> >>    |
> >>    |       0
> >>    |
> >>     > 2010-01-23 00:31:59 | 2010-01-23 01:01:59 | 2010-01-23 00:31:59 |
> >>
> >>    NULL
> >>
> >>
> >>
> >> 
> >> +----+---------+--------+-------------+-------+------------+------+-----
> >>----+
> >>
> >>
> >> 
> >> ---------------------+---------------------+---------------------+------
> >>-----
> >>
> >>     > ---+
> >>     > 1 row in set (0.00 sec)
> >>     >
> >>     > mysql> select * from reservation;
> >>
> >> 
> >> +----+-----------+------------+---------+-----------------+-------------
> >>-----
> >>
> >>     > +----------+---------------------+------+
> >>     >
> >>     > | id | requestid | computerid | imageid | imagerevisionid |
> >>
> >>    managementnodeid
> >>
> >>     > | remoteIP | lastcheck           | pw   |
> >>
> >> 
> >> +----+-----------+------------+---------+-----------------+-------------
> >>-----
> >>
> >>     > +----------+---------------------+------+
> >>     >
> >>     > | 34 |        11 |         13 |      10 |              10 |
> >>
> >>    1
> >>
> >>     > | NULL     | 0000-00-00 00:00:00 | NULL |
> >>
> >> 
> >> +----+-----------+------------+---------+-----------------+-------------
> >>-----
> >>
> >>     > +----------+---------------------+------+
> >>     > 1 row in set (0.00 sec)
> >>     >
> >>     >
> >>     > And finally, here is the directory structure (after executing the
> >>
> >>    commands)
> >>
> >>     > of the VMWare server:
> >>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # ls -l
> >>     > drwxr-xr-x    1 root     root                420 Jan 23 08:31
> >>     > golden drwxr-xr-x    1 root     root                420 Jan 23
> >>     > 08:31 inuse drwxr-xr-x    1 root     root               4340 Dec 
> >>     > 3 18:30 vcl.csueastbay.edu <http://vcl.csueastbay.edu>
> >>     >
> >>     > drwxr-xr-x    1 root     root               4340 Dec  3 18:08
> >>     > vcldb.csueastbay.edu <http://vcldb.csueastbay.edu>
> >>     >
> >>     > drwxr-xr-x    1 root     root               4340 Dec  3 18:23
> >>     > vclmgmt.csueastbay.edu <http://vclmgmt.csueastbay.edu>
> >>     >
> >>     > drwxr-xr-x    1 root     root               2660 Jan 23 08:22
> >>     > vmwarewinxp-base7-v0
> >>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd golden/
> >>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # ls -l
> >>     > drwxr-xr-x    1 root     root                280 Jan 23 08:31
> >>     > vmwarewinxp-base7-v0
> >>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # cd ..
> >>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd inuse/
> >>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/inuse # ls -l
> >>     > drwxr-xr-x    1 root     root                420 Jan 23 08:31
> >>
> >>    vcl-winxp
> >>
> >>     > Let me know if more output from the logs would be helpful, or any
> >>
> >>    other
> >>
> >>     > information.
> >>     >
> >>     >
> >>     > Thanks,
> >>     > Jeff Wisman
> >>
> >>    --
> >>    Andy Kurth
> >>    Virtual Computing Lab
> >>    Office of Information Technology
> >>    North Carolina State University
> >>    andy_kurth@ncsu.edu <ma...@ncsu.edu>
> >>    919.513.4090
> >
> > --
> > Andy Kurth
> > Virtual Computing Lab
> > Office of Information Technology
> > North Carolina State University
> > andy_kurth@ncsu.edu
> > 919.513.4090
- -- 
- -------------------------------
Josh Thompson
Systems Programmer
Virtual Computing Lab (VCL)
North Carolina State University

Josh_Thompson@ncsu.edu
919-515-5323

my GPG/PGP key can be found at www.keyserver.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)

iD8DBQFLaC66V/LQcNdtPQMRAuPvAJ9evjFls8KfdlAWtxgdRK5V6lxD1wCdFe8T
7n4IKIdzbhiUu9CX8em/+Tw=
=1eOC
-----END PGP SIGNATURE-----

Re: Issues with Inserting Image Reservation Into VCL DB

Posted by Josh Thompson <jo...@ncsu.edu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jeff,

Go ahead and file a bug report at our JIRA site:

https://issues.apache.org/jira/browse/VCL

Thanks,
Josh

On Tue February 2 2010 5:09:26 pm Jeffrey Wisman wrote:
> Andy and I did some troubleshooting today, and were able to resolve this
> issue.  I just wanted to report back our findings in case others are
> experiencing similar issues.
>
> It turns out that the actual problem was the time zone.  We're in the PST
> time zone, but when we went to schedule reservations, it seemed to assume
> we are in the Eastern Time Zone.  Andy and Josh discovered the root issue
> to be the .ht-inc/php5extras.php file which we changed from
> 'America/New_York' to 'America/Los_Angeles'.  This resolved the issue and I
> can now create reservations successfully!
>
> Aside from documenting this, hopefully it can be resolved in a future
> version to either look at the system time zone during install or be set in
> a config file.  Let me know if I should file a bug report for this, or if
> it would be better handled as part of the installation documentation?
>
> Thanks all for your help!
>
> Jeff
>
> On Mon, Feb 1, 2010 at 7:38 AM, Andy Kurth <an...@ncsu.edu> wrote:
> > Hi Jeff,
> > This problem is somewhat difficult to troubleshoot because there are
> > several possible causes.  The easy things to check:
> > -Are your VM computers in the available state (Manage Computers -->
> > Computer Utilities)?.  They may have been left in the failed state when
> > you were having imaging trouble.  Your VM host should be in the
> > 'vmhostinuse' state.
> > -Make sure your management node is in the available state (Management
> > Nodes --> Edit Management Node Information).  Nothing should have changed
> > the state of the managment node but this is easy to forget about.
> >
> > If everything is available, check the image/computer groupings and
> > mappings and privilege tree:
> > 1. Manage Images --> Edit Image Grouping -- note the image groups the
> > image is assigned to
> > 2. Manage Image --> Edit Image Mapping -- determine which computer groups
> > the image is mapped to by viewing the mappings for the image groups you
> > located in step 1
> > 3. Manage Computers --> Edit Computer Grouping -- make sure your VM
> > computers are in a computer group found in step 2
> > 3. View the privilege tree (Privileges).  Is there a node where the image
> > group, computer group, and either the user account or a group the user
> > account is in are all configured.  The user account or group needs the
> > "imageCheckOut" right and the image and computer groups need to be
> > "available".
> >
> > Some database troubleshooting is necessary if you're still having
> > trouble. It may be easiest if there's a way to take a look at your
> > database.
> >
> > Regards,
> > Andy
> >
> > Jeffrey Wisman wrote:
> >> So I'm still having issues.  I can perform all the actions listed here
> >> successfully (at least it seems so from the logs):
> >> http://cwiki.apache.org/VCL/create-a-windows-base-image.html
> >>
> >> I'm trying to create a reservation for the first time from the GUI, and
> >> having trouble.  I get the message "Selection not currently available"
> >> when I try to do it, and I can't figure out why.  The groupings,
> >> mappings, and permissions *seem* right, but maybe they aren't.  Attached
> >> are some screen shots.  Let me know if I'm missing something obvious, or
> >> need to provide more information for troubleshooting.
> >>
> >> Thanks,
> >> Jeff
> >>
> >>
> >>
> >> On Wed, Jan 27, 2010 at 9:51 AM, Jeffrey Wisman <
> >> jeff.wisman@csueastbay.edu <ma...@csueastbay.edu>> wrote:
> >>
> >>    I just wanted to post a follow up that the issue was with the hosts
> >>    file.  I
> >>    had put both the public and private IP addresses in the management
> >>    server's
> >>    host file.  I removed the public IP and now it works just fine.
> >>
> >>    I'm still having issues with the reservations, but I think its just
> >> my misunderstanding of how this is all supposed to work.  I'll be
> >> spending more
> >>    time in the next few days, and post if I can't figure out the next
> >>    steps on
> >>    my own.
> >>
> >>    Thanks,
> >>    Jeff
> >>
> >>
> >>    -----Original Message-----
> >>    From: Jeffrey Wisman [mailto:jeff.wisman@csueastbay.edu
> >>    <ma...@csueastbay.edu>]
> >>    Sent: Mon 1/25/2010 12:58 PM
> >>    To: vcl-dev@incubator.apache.org
> >>    <ma...@incubator.apache.org>; vcl-dev@incubator.apache.org
> >>    <ma...@incubator.apache.org>
> >>    Subject: RE: Issues with Inserting Image Reservation Into VCL DB
> >>
> >>    Thanks Andy, I'll try your suggestions tonight and report back.
> >>     Your help is
> >>    much appreciated!
> >>
> >>    Jeff
> >>
> >>
> >>    -----Original Message-----
> >>    From: Andy Kurth [mailto:andy_kurth@ncsu.edu
> >>    <ma...@ncsu.edu>]
> >>    Sent: Mon 1/25/2010 12:33 PM
> >>    To: vcl-dev@incubator.apache.org
> >> <ma...@incubator.apache.org> Subject: Re: Issues with Inserting
> >> Image Reservation Into VCL DB
> >>
> >>    Hello Jeff,
> >>    It appears that the image was successfully captured and it's at the
> >>    point
> >>    where
> >>    it's trying to reload the new image.
> >>
> >>    Is the computer.privateIPaddress value set in the database?  If not,
> >>    set this
> >>
> >>    for vcl-winxp in the computer table and see if the warnings go away.
> >>     You can
> >>
> >>    also add an entry in the /etc/hosts file on the management node for
> >> the private
> >>    address of vcl-winxp.  Either of these should clear up most of the
> >>    warning
> >>    messages you're seeing.
> >>
> >>    You don't have to go through the entire imaging process again to
> >>    troubleshoot
> >>
> >>    this.  You can restart the reload process by:
> >>    -Kill the existing vcld process for the reservation if it's still
> >>    running.
> >>    The
> >>    PID to kill is displayed as the leftmost field in the log output
> >>    (1297 in the
> >>
> >>    output you included).  Don't kill the main vcld process.
> >>    -Set request.state to 'reload', request.start to NOW(), and
> >>    request.end to
> >>    some
> >>    time in the future.  The vcld process should begin to process it
> >> again. Start
> >>    'tail -f /var/log/vcld.log' before changing the request state.
> >>
> >>    Is it hanging indefinitely after it attempts to run the last command
> >>    (route
> >>    delete 0.0.0.0) included in the log output?  I haven't seen this
> >> problem
> >>    before
> >>    if it is indeed hanging.  The 'route delete' command may be breaking
> >>    networking
> >>    on the computer and tripping up the SSH command.  I would try
> >>    running the SSH
> >>
> >>    command manually with the -v option to try to figure out what's
> >>    happening:
> >>    ssh -v -i /etc/vcl/vcl.key  -l root -p 22 -x vcl-winxp 'route delete
> >>    0.0.0.0'
> >>
> >>    If this command hangs, try adding the ServerAliveInterval SSH option:
> >>    ssh -v -o ServerAliveInterval=15 -i /etc/vcl/vcl.key -l root -p 22 -x
> >>    vcl-winxp
> >>    'route delete 0.0.0.0'
> >>
> >>    Give this command at least 20 seconds before killing it if it hangs.
> >>     If this
> >>
> >>    prevents it from hanging, try manually running the next command VCL
> >>    would
> >>    have
> >>    performed:
> >>    ssh -i /etc/vcl/vcl.key -l root -p 22 -x vcl-winxp 'route -p ADD
> >>    0.0.0.0 MASK
> >>
> >>    0.0.0.0 134.154.193.190 METRIC 1'
> >>
> >>    The output of these commands may be helpful in troubleshooting.
> >>
> >>    Regards,
> >>    Andy Kurth / NCSU VCL
> >>
> >>    Jeffrey Wisman wrote:
> >>     > Hi all - Just joined this list.  I've been working on a pilot VCL
> >>
> >>    install
> >>    at
> >>
> >>     > CSU East Bay, and am hung up on what seems like nearly the last
> >>
> >>    step.  I'm
> >>
> >>     > following instructions at the bottom of this page:
> >>
> >> http://cwiki.apache.org/confluence/display/VCL/Create+a+Windows+Base+Ima
> >>ge
> >>
> >>     > I'm attempting to insert the image reservation into the VCL DB,
> >>
> >>    and it only
> >>
> >>     > gets as far as this network/route issue.  Is this a DHCP problem?
> >>
> >>     A hosts
> >>
> >>     > file issue?  Something else?  Please let me know if anyone has
> >>
> >>    seen this
> >>
> >>     > before, or can help troubleshoot.  Here is the last part of the
> >>
> >>    output from
> >>
> >>     > tail -f /var/log/vcld.log
> >>     >
> >>     > |1297|11:34|reload| ---- WARNING ----
> >>     > |1297|11:34|reload| 2010-01-23
> >>
> >> 
> >> 00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4197)|
> >>SSH
> >>
> >>     > will not be disabled on public interface because public interface
> >>
> >>    name
> >>    could
> >>
> >>     > not be determined
> >>     >
> >>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
> >>
> >>    (line: 728)
> >>
> >>     > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private
> >>
> >>    (line:
> >>    4197)
> >>
> >>     > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
> >>     > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
> >>
> >>    (line: 692)
> >>
> >>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line:
> >>
> >> 266)
> >>
> >>     > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
> >>     > |1297|11:34|reload| (-6) vcld, main (line: 341)
> >>     >
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|ne
> >>twork
> >>
> >>     > configuration has already been retrieved
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_addr
> >>ess(1
> >>
> >>     > 442)|attempting to retrieve private IP address for computer:
> >>
> >>    vcl-winxp
> >>
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_addr
> >>ess(1
> >>
> >>     > 446)|retrieved contents of /etc/hosts on this management node,
> >>
> >>    contains 6
> >>
> >>     > lines
> >>     >
> >>     > |1297|11:34|reload| ---- WARNING ----
> >>     > |1297|11:34|reload| 2010-01-23
> >>
> >> 
> >> 00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_addr
> >>ess(1
> >>
> >>     > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
> >>     >
> >>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
> >>
> >>    (line: 728)
> >>
> >>     > |1297|11:34|reload| (-1) DataStructure.pm,
> >>
> >>    get_computer_private_ip_address
> >>
> >>     > (line: 1466)
> >>     >
> >>     > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
> >>
> >>    (line: 4642)
> >>
> >>     > |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name
> >>
> >>    (line:
> >>    4761)
> >>
> >>     > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ssh_private
> >>
> >>    (line:
> >>    4202)
> >>
> >>     > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 485)
> >>     > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
> >>
> >>    (line: 692)
> >>
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|un
> >>able
> >>
> >>     > to retrieve computer private IP address from reservation data
> >>     >
> >>     > |1297|11:34|reload| ---- WARNING ----
> >>     > |1297|11:34|reload| 2010-01-23
> >>
> >> 
> >> 00:33:30|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|u
> >>nable
> >>
> >>     > to retrieve network configuration
> >>     >
> >>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
> >>
> >>    (line: 728)
> >>
> >>     > |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name
> >>
> >>    (line:
> >>    4763)
> >>
> >>     > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ssh_private
> >>
> >>    (line:
> >>    4202)
> >>
> >>     > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 485)
> >>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
> >>
> >>    (line: 692)
> >>
> >>     > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line:
> >>
> >> 266)
> >>
> >>     > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
> >>     > |
> >>     > |
> >>     > |1297|11:34|reload| ---- WARNING ----
> >>     > |1297|11:34|reload| 2010-01-23
> >>
> >> 
> >> 00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4220)|
> >>priva
> >>
> >>     > te interface name could not be determined, SSH will be enabled
> >>
> >>    for all
> >>
> >>     > profiles
> >>     >
> >>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
> >>
> >>    (line: 728)
> >>
> >>     > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private
> >>
> >>    (line:
> >>    4220)
> >>
> >>     > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
> >>     > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
> >>
> >>    (line: 692)
> >>
> >>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line:
> >>
> >> 266)
> >>
> >>     > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
> >>     > |1297|11:34|reload| (-6) vcld, main (line: 341)
> >>     >
> >>     > 2010-01-23
> >>
> >>    00:33:30|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing
> >> SSH
> >>
> >>     > command on vcl-winxp:
> >>     > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p
> >>
> >>    22 -x
> >>
> >>     > vcl-winxp 'netsh.exe firewall set portopening name = "Cygwin
> >>
> >>    SSHD" protocol
> >>    =
> >>
> >>     > TCP port = 22 profile = ALL' 2>&1
> >>     > 2010-01-23 00:33:35|1226|vcld:main(165)|lastcheckin time updated
> >>     > for management node 1: 2010-01-23 00:33:35
> >>     > 2010-01-23
> >>
> >>    00:33:37|1297|11:34|reload|utils.pm:
> >> run_ssh_command(6250)|run_ssh_command
> >>
> >>     > output:
> >>     > |1297|11:34|reload| Ok.
> >>     >
> >>     > 2010-01-23
> >>
> >>    00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6264)|SSH
> >>
> >>     > command executed on vcl-winxp, returning (0, "Ok.")
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4232)|
> >>confi
> >>
> >>     > gured firewall to allow SSH on private interface
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|ne
> >>twork
> >>
> >>     > configuration has already been retrieved
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_addr
> >>ess(1
> >>
> >>     > 442)|attempting to retrieve private IP address for computer:
> >>
> >>    vcl-winxp
> >>
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_addr
> >>ess(1
> >>
> >>     > 446)|retrieved contents of /etc/hosts on this management node,
> >>
> >>    contains 6
> >>
> >>     > lines
> >>     >
> >>     > |1297|11:34|reload| ---- WARNING ----
> >>     > |1297|11:34|reload| 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_addr
> >>ess(1
> >>
> >>     > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
> >>     >
> >>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
> >>
> >>    (line: 728)
> >>
> >>     > |1297|11:34|reload| (-1) DataStructure.pm,
> >>
> >>    get_computer_private_ip_address
> >>
> >>     > (line: 1466)
> >>     >
> >>     > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
> >>
> >>    (line: 4642)
> >>
> >>     > |1297|11:34|reload| (-3) Windows.pm, get_public_interface_name
> >>
> >>    (line: 4791)
> >>
> >>     > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private
> >>
> >>    (line:
> >>     > 3935)
> >>     >
> >>     > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
> >>     > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
> >>
> >>    (line: 692)
> >>
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|un
> >>able
> >>
> >>     > to retrieve computer private IP address from reservation data
> >>     >
> >>     > |1297|11:34|reload| ---- WARNING ----
> >>     > |1297|11:34|reload| 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|Windows.pm:get_public_interface_name(4793)|un
> >>able
> >>
> >>     > to retrieve network configuration
> >>     >
> >>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
> >>
> >>    (line: 728)
> >>
> >>     > |1297|11:34|reload| (-1) Windows.pm, get_public_interface_name
> >>
> >>    (line: 4793)
> >>
> >>     > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private
> >>
> >>    (line:
> >>     > 3935)
> >>     >
> >>     > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
> >>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
> >>
> >>    (line: 692)
> >>
> >>     > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line:
> >>
> >> 266)
> >>
> >>     > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
> >>     > |
> >>     > |
> >>     > |1297|11:34|reload| ---- WARNING ----
> >>     > |1297|11:34|reload| 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3946)
> >>|ping
> >>
> >>     > will not be disabled on public interface because public interface
> >>
> >>    name
> >>    could
> >>
> >>     > not be determined
> >>     >
> >>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
> >>
> >>    (line: 728)
> >>
> >>     > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private
> >>
> >>    (line:
> >>     > 3946)
> >>     >
> >>     > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
> >>     > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
> >>
> >>    (line: 692)
> >>
> >>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line:
> >>
> >> 266)
> >>
> >>     > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
> >>     > |1297|11:34|reload| (-6) vcld, main (line: 341)
> >>     >
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|ne
> >>twork
> >>
> >>     > configuration has already been retrieved
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_addr
> >>ess(1
> >>
> >>     > 442)|attempting to retrieve private IP address for computer:
> >>
> >>    vcl-winxp
> >>
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_addr
> >>ess(1
> >>
> >>     > 446)|retrieved contents of /etc/hosts on this management node,
> >>
> >>    contains 6
> >>
> >>     > lines
> >>     >
> >>     > |1297|11:34|reload| ---- WARNING ----
> >>     > |1297|11:34|reload| 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_addr
> >>ess(1
> >>
> >>     > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
> >>     >
> >>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
> >>
> >>    (line: 728)
> >>
> >>     > |1297|11:34|reload| (-1) DataStructure.pm,
> >>
> >>    get_computer_private_ip_address
> >>
> >>     > (line: 1466)
> >>     >
> >>     > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
> >>
> >>    (line: 4642)
> >>
> >>     > |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name
> >>
> >>    (line:
> >>    4761)
> >>
> >>     > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private
> >>
> >>    (line:
> >>     > 3951)
> >>     >
> >>     > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
> >>     > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
> >>
> >>    (line: 692)
> >>
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|un
> >>able
> >>
> >>     > to retrieve computer private IP address from reservation data
> >>     >
> >>     > |1297|11:34|reload| ---- WARNING ----
> >>     > |1297|11:34|reload| 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|u
> >>nable
> >>
> >>     > to retrieve network configuration
> >>     >
> >>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
> >>
> >>    (line: 728)
> >>
> >>     > |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name
> >>
> >>    (line:
> >>    4763)
> >>
> >>     > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private
> >>
> >>    (line:
> >>     > 3951)
> >>     >
> >>     > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
> >>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
> >>
> >>    (line: 692)
> >>
> >>     > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line:
> >>
> >> 266)
> >>
> >>     > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
> >>     > |
> >>     > |
> >>     > |1297|11:34|reload| ---- WARNING ----
> >>     > |1297|11:34|reload| 2010-01-23
> >>
> >> 
> >> 00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3967)
> >>|priv
> >>
> >>     > ate interface name could not be determined, ping will be enabled
> >>
> >>    for all
> >>
> >>     > profiles
> >>     >
> >>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
> >>
> >>    (line: 728)
> >>
> >>     > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private
> >>
> >>    (line:
> >>     > 3967)
> >>     >
> >>     > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
> >>     > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
> >>
> >>    (line: 692)
> >>
> >>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line:
> >>
> >> 266)
> >>
> >>     > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
> >>     > |1297|11:34|reload| (-6) vcld, main (line: 341)
> >>     >
> >>     > 2010-01-23
> >>
> >>    00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing
> >> SSH
> >>
> >>     > command on vcl-winxp:
> >>     > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p
> >>
> >>    22 -x
> >>
> >>     > vcl-winxp 'netsh.exe firewall set icmpsetting type = 8 mode =
> >>     > ENABLE
> >>
> >>    profile
> >>
> >>     > = ALL ;' 2>&1
> >>     > 2010-01-23 00:33:40|1226|vcld:main(165)|lastcheckin time updated
> >>     > for management node 1: 2010-01-23 00:33:40
> >>     > 2010-01-23
> >>
> >>    00:33:43|1297|11:34|reload|utils.pm:
> >> run_ssh_command(6250)|run_ssh_command
> >>
> >>     > output:
> >>     > |1297|11:34|reload| Ok.
> >>     >
> >>     > 2010-01-23
> >>
> >>    00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6264)|SSH
> >>
> >>     > command executed on vcl-winxp, returning (0, "Ok.")
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:43|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3979)
> >>|conf
> >>
> >>     > igured firewall to allow ping on private interface
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4890)|I
> >>P
> >>
> >>     > configuration mode in use: dynamicDHCP
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|ne
> >>twork
> >>
> >>     > configuration has already been retrieved
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_addr
> >>ess(1
> >>
> >>     > 442)|attempting to retrieve private IP address for computer:
> >>
> >>    vcl-winxp
> >>
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_addr
> >>ess(1
> >>
> >>     > 446)|retrieved contents of /etc/hosts on this management node,
> >>
> >>    contains 6
> >>
> >>     > lines
> >>     >
> >>     > |1297|11:34|reload| ---- WARNING ----
> >>     > |1297|11:34|reload| 2010-01-23
> >>
> >> 
> >> 00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_addr
> >>ess(1
> >>
> >>     > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
> >>     >
> >>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
> >>
> >>    (line: 728)
> >>
> >>     > |1297|11:34|reload| (-1) DataStructure.pm,
> >>
> >>    get_computer_private_ip_address
> >>
> >>     > (line: 1466)
> >>     >
> >>     > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
> >>
> >>    (line: 4642)
> >>
> >>     > |1297|11:34|reload| (-3) Windows.pm, get_public_default_gateway
> >>
> >>    (line:
> >>    4894)
> >>
> >>     > |1297|11:34|reload| (-4) Windows.pm, set_public_default_route
> >>
> >>    (line: 7429)
> >>
> >>     > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 507)
> >>     > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
> >>
> >>    (line: 692)
> >>
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|un
> >>able
> >>
> >>     > to retrieve computer private IP address from reservation data
> >>     >
> >>     > |1297|11:34|reload| ---- WARNING ----
> >>     > |1297|11:34|reload| 2010-01-23
> >>
> >> 
> >> 00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4908)|u
> >>nable
> >>
> >>     > to retrieve public network configuration currently in use on
> >>
> >>    vcl-winxp
> >>
> >>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
> >>
> >>    (line: 728)
> >>
> >>     > |1297|11:34|reload| (-1) Windows.pm, get_public_default_gateway
> >>
> >>    (line:
> >>    4908)
> >>
> >>     > |1297|11:34|reload| (-2) Windows.pm, set_public_default_route
> >>
> >>    (line: 7429)
> >>
> >>     > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 507)
> >>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
> >>
> >>    (line: 692)
> >>
> >>     > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line:
> >>
> >> 266)
> >>
> >>     > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
> >>     >
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:43|1297|11:34|reload|DataStructure.pm:get_management_node_public_d
> >>efaul
> >>
> >>     > t_gateway(1783)|returning default gateway from route command:
> >>
> >>    134.154.193.190
> >>
> >>     > 2010-01-23
> >>
> >> 
> >> 00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4917)|r
> >>eturn
> >>
> >>     > ing management node's default gateway address: 134.154.193.190
> >>     > 2010-01-23
> >>
> >>    00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing
> >> SSH
> >>
> >>     > command on vcl-winxp:
> >>     > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p
> >>
> >>    22 -x
> >>
> >>     > vcl-winxp 'route delete 0.0.0.0' 2>&1
> >>     > 2010-01-23 00:33:45|1226|vcld:main(165)|lastcheckin time updated
> >>     > for management node 1: 2010-01-23 00:33:45
> >>     > 2010-01-23 00:33:50|1226|vcld:main(165)|lastcheckin time updated
> >>     > for management node 1: 2010-01-23 00:33:50
> >>     > 2010-01-23 00:33:55|1226|vcld:main(165)|lastcheckin time updated
> >>     > for management node 1: 2010-01-23 00:33:55
> >>     > 2010-01-23 00:34:00|1226|vcld:main(165)|lastcheckin time updated
> >>     > for management node 1: 2010-01-23 00:34:00
> >>     > 2010-01-23 00:34:05|1226|vcld:main(165)|lastcheckin time updated
> >>     > for management node 1: 2010-01-23 00:34:05
> >>     > 2010-01-23 00:34:10|1226|vcld:main(165)|lastcheckin time updated
> >>     > for management node 1: 2010-01-23 00:34:10
> >>     >
> >>     >
> >>     >
> >>     >
> >>     >
> >>     >
> >>     > And the database state:
> >>     >
> >>     > mysql> select * from request;
> >>
> >> 
> >> +----+---------+--------+-------------+-------+------------+------+-----
> >>----+
> >>
> >>
> >> 
> >> ---------------------+---------------------+---------------------+------
> >>-----
> >>
> >>     > ---+
> >>     >
> >>     > | id | stateid | userid | laststateid | logid | forimaging | test
> >>    |
> >>    | preload
> >>    |
> >>     > start               | end                 | daterequested       |
> >>     > datemodified |
> >>
> >> 
> >> +----+---------+--------+-------------+-------+------------+------+-----
> >>----+
> >>
> >>
> >> 
> >> ---------------------+---------------------+---------------------+------
> >>-----
> >>
> >>     > ---+
> >>     >
> >>     > | 11 |      14 |      2 |          19 |     0 |          0 |    0
> >>    |
> >>    |       0
> >>    |
> >>     > 2010-01-23 00:31:59 | 2010-01-23 01:01:59 | 2010-01-23 00:31:59 |
> >>
> >>    NULL
> >>
> >>
> >>
> >> 
> >> +----+---------+--------+-------------+-------+------------+------+-----
> >>----+
> >>
> >>
> >> 
> >> ---------------------+---------------------+---------------------+------
> >>-----
> >>
> >>     > ---+
> >>     > 1 row in set (0.00 sec)
> >>     >
> >>     > mysql> select * from reservation;
> >>
> >> 
> >> +----+-----------+------------+---------+-----------------+-------------
> >>-----
> >>
> >>     > +----------+---------------------+------+
> >>     >
> >>     > | id | requestid | computerid | imageid | imagerevisionid |
> >>
> >>    managementnodeid
> >>
> >>     > | remoteIP | lastcheck           | pw   |
> >>
> >> 
> >> +----+-----------+------------+---------+-----------------+-------------
> >>-----
> >>
> >>     > +----------+---------------------+------+
> >>     >
> >>     > | 34 |        11 |         13 |      10 |              10 |
> >>
> >>    1
> >>
> >>     > | NULL     | 0000-00-00 00:00:00 | NULL |
> >>
> >> 
> >> +----+-----------+------------+---------+-----------------+-------------
> >>-----
> >>
> >>     > +----------+---------------------+------+
> >>     > 1 row in set (0.00 sec)
> >>     >
> >>     >
> >>     > And finally, here is the directory structure (after executing the
> >>
> >>    commands)
> >>
> >>     > of the VMWare server:
> >>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # ls -l
> >>     > drwxr-xr-x    1 root     root                420 Jan 23 08:31
> >>     > golden drwxr-xr-x    1 root     root                420 Jan 23
> >>     > 08:31 inuse drwxr-xr-x    1 root     root               4340 Dec 
> >>     > 3 18:30 vcl.csueastbay.edu <http://vcl.csueastbay.edu>
> >>     >
> >>     > drwxr-xr-x    1 root     root               4340 Dec  3 18:08
> >>     > vcldb.csueastbay.edu <http://vcldb.csueastbay.edu>
> >>     >
> >>     > drwxr-xr-x    1 root     root               4340 Dec  3 18:23
> >>     > vclmgmt.csueastbay.edu <http://vclmgmt.csueastbay.edu>
> >>     >
> >>     > drwxr-xr-x    1 root     root               2660 Jan 23 08:22
> >>     > vmwarewinxp-base7-v0
> >>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd golden/
> >>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # ls -l
> >>     > drwxr-xr-x    1 root     root                280 Jan 23 08:31
> >>     > vmwarewinxp-base7-v0
> >>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # cd ..
> >>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd inuse/
> >>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/inuse # ls -l
> >>     > drwxr-xr-x    1 root     root                420 Jan 23 08:31
> >>
> >>    vcl-winxp
> >>
> >>     > Let me know if more output from the logs would be helpful, or any
> >>
> >>    other
> >>
> >>     > information.
> >>     >
> >>     >
> >>     > Thanks,
> >>     > Jeff Wisman
> >>
> >>    --
> >>    Andy Kurth
> >>    Virtual Computing Lab
> >>    Office of Information Technology
> >>    North Carolina State University
> >>    andy_kurth@ncsu.edu <ma...@ncsu.edu>
> >>    919.513.4090
> >
> > --
> > Andy Kurth
> > Virtual Computing Lab
> > Office of Information Technology
> > North Carolina State University
> > andy_kurth@ncsu.edu
> > 919.513.4090
- -- 
- -------------------------------
Josh Thompson
Systems Programmer
Virtual Computing Lab (VCL)
North Carolina State University

Josh_Thompson@ncsu.edu
919-515-5323

my GPG/PGP key can be found at www.keyserver.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)

iD8DBQFLaXILV/LQcNdtPQMRAiGZAJ45qLnjh6VDKLraU4D9jp+ltGZhZgCePeUK
U+CKM64uCJ0W38A6KJ6vQa0=
=aGrA
-----END PGP SIGNATURE-----

Re: Issues with Inserting Image Reservation Into VCL DB

Posted by Jeffrey Wisman <je...@csueastbay.edu>.
Thanks Andy.  I'll be checking this out tonight and let you know how it
goes.

Jeff


On Mon, Feb 1, 2010 at 7:38 AM, Andy Kurth <an...@ncsu.edu> wrote:

> Hi Jeff,
> This problem is somewhat difficult to troubleshoot because there are
> several possible causes.  The easy things to check:
> -Are your VM computers in the available state (Manage Computers -->
> Computer Utilities)?.  They may have been left in the failed state when you
> were having imaging trouble.  Your VM host should be in the 'vmhostinuse'
> state.
> -Make sure your management node is in the available state (Management Nodes
> --> Edit Management Node Information).  Nothing should have changed the
> state of the managment node but this is easy to forget about.
>
> If everything is available, check the image/computer groupings and mappings
> and privilege tree:
> 1. Manage Images --> Edit Image Grouping -- note the image groups the image
> is assigned to
> 2. Manage Image --> Edit Image Mapping -- determine which computer groups
> the image is mapped to by viewing the mappings for the image groups you
> located in step 1
> 3. Manage Computers --> Edit Computer Grouping -- make sure your VM
> computers are in a computer group found in step 2
> 3. View the privilege tree (Privileges).  Is there a node where the image
> group, computer group, and either the user account or a group the user
> account is in are all configured.  The user account or group needs the
> "imageCheckOut" right and the image and computer groups need to be
> "available".
>
> Some database troubleshooting is necessary if you're still having trouble.
>  It may be easiest if there's a way to take a look at your database.
>
> Regards,
> Andy
>
>
>
> Jeffrey Wisman wrote:
>
>> So I'm still having issues.  I can perform all the actions listed here
>> successfully (at least it seems so from the logs):
>> http://cwiki.apache.org/VCL/create-a-windows-base-image.html
>>
>> I'm trying to create a reservation for the first time from the GUI, and
>> having trouble.  I get the message "Selection not currently available" when
>> I try to do it, and I can't figure out why.  The groupings, mappings, and
>> permissions *seem* right, but maybe they aren't.  Attached are some screen
>> shots.  Let me know if I'm missing something obvious, or need to provide
>> more information for troubleshooting.
>>
>> Thanks,
>> Jeff
>>
>>
>>
>> On Wed, Jan 27, 2010 at 9:51 AM, Jeffrey Wisman <
>> jeff.wisman@csueastbay.edu <ma...@csueastbay.edu>> wrote:
>>
>>    I just wanted to post a follow up that the issue was with the hosts
>>    file.  I
>>    had put both the public and private IP addresses in the management
>>    server's
>>    host file.  I removed the public IP and now it works just fine.
>>
>>    I'm still having issues with the reservations, but I think its just my
>>    misunderstanding of how this is all supposed to work.  I'll be
>>    spending more
>>    time in the next few days, and post if I can't figure out the next
>>    steps on
>>    my own.
>>
>>    Thanks,
>>    Jeff
>>
>>
>>    -----Original Message-----
>>    From: Jeffrey Wisman [mailto:jeff.wisman@csueastbay.edu
>>    <ma...@csueastbay.edu>]
>>    Sent: Mon 1/25/2010 12:58 PM
>>    To: vcl-dev@incubator.apache.org
>>    <ma...@incubator.apache.org>; vcl-dev@incubator.apache.org
>>    <ma...@incubator.apache.org>
>>    Subject: RE: Issues with Inserting Image Reservation Into VCL DB
>>
>>    Thanks Andy, I'll try your suggestions tonight and report back.
>>     Your help is
>>    much appreciated!
>>
>>    Jeff
>>
>>
>>    -----Original Message-----
>>    From: Andy Kurth [mailto:andy_kurth@ncsu.edu
>>    <ma...@ncsu.edu>]
>>    Sent: Mon 1/25/2010 12:33 PM
>>    To: vcl-dev@incubator.apache.org <ma...@incubator.apache.org>
>>    Subject: Re: Issues with Inserting Image Reservation Into VCL DB
>>
>>    Hello Jeff,
>>    It appears that the image was successfully captured and it's at the
>>    point
>>    where
>>    it's trying to reload the new image.
>>
>>    Is the computer.privateIPaddress value set in the database?  If not,
>>    set this
>>
>>    for vcl-winxp in the computer table and see if the warnings go away.
>>     You can
>>
>>    also add an entry in the /etc/hosts file on the management node for the
>>    private
>>    address of vcl-winxp.  Either of these should clear up most of the
>>    warning
>>    messages you're seeing.
>>
>>    You don't have to go through the entire imaging process again to
>>    troubleshoot
>>
>>    this.  You can restart the reload process by:
>>    -Kill the existing vcld process for the reservation if it's still
>>    running.
>>    The
>>    PID to kill is displayed as the leftmost field in the log output
>>    (1297 in the
>>
>>    output you included).  Don't kill the main vcld process.
>>    -Set request.state to 'reload', request.start to NOW(), and
>>    request.end to
>>    some
>>    time in the future.  The vcld process should begin to process it again.
>>    Start
>>    'tail -f /var/log/vcld.log' before changing the request state.
>>
>>    Is it hanging indefinitely after it attempts to run the last command
>>    (route
>>    delete 0.0.0.0) included in the log output?  I haven't seen this
>> problem
>>    before
>>    if it is indeed hanging.  The 'route delete' command may be breaking
>>    networking
>>    on the computer and tripping up the SSH command.  I would try
>>    running the SSH
>>
>>    command manually with the -v option to try to figure out what's
>>    happening:
>>    ssh -v -i /etc/vcl/vcl.key  -l root -p 22 -x vcl-winxp 'route delete
>>    0.0.0.0'
>>
>>    If this command hangs, try adding the ServerAliveInterval SSH option:
>>    ssh -v -o ServerAliveInterval=15 -i /etc/vcl/vcl.key -l root -p 22 -x
>>    vcl-winxp
>>    'route delete 0.0.0.0'
>>
>>    Give this command at least 20 seconds before killing it if it hangs.
>>     If this
>>
>>    prevents it from hanging, try manually running the next command VCL
>>    would
>>    have
>>    performed:
>>    ssh -i /etc/vcl/vcl.key -l root -p 22 -x vcl-winxp 'route -p ADD
>>    0.0.0.0 MASK
>>
>>    0.0.0.0 134.154.193.190 METRIC 1'
>>
>>    The output of these commands may be helpful in troubleshooting.
>>
>>    Regards,
>>    Andy Kurth / NCSU VCL
>>
>>
>>    Jeffrey Wisman wrote:
>>     > Hi all - Just joined this list.  I've been working on a pilot VCL
>>    install
>>    at
>>     > CSU East Bay, and am hung up on what seems like nearly the last
>>    step.  I'm
>>     > following instructions at the bottom of this page:
>>     >
>>
>> http://cwiki.apache.org/confluence/display/VCL/Create+a+Windows+Base+Image
>>     >
>>     > I'm attempting to insert the image reservation into the VCL DB,
>>    and it only
>>     > gets as far as this network/route issue.  Is this a DHCP problem?
>>     A hosts
>>     > file issue?  Something else?  Please let me know if anyone has
>>    seen this
>>     > before, or can help troubleshoot.  Here is the last part of the
>>    output from
>>     > tail -f /var/log/vcld.log
>>     >
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4197)|SSH
>>     > will not be disabled on public interface because public interface
>>    name
>>    could
>>     > not be determined
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private
>>    (line:
>>    4197)
>>     > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
>>     > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
>>    (line: 692)
>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line:
>> 266)
>>
>>     > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>>     > |1297|11:34|reload| (-6) vcld, main (line: 341)
>>     >
>>     > 2010-01-23
>>     >
>>
>>  00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>>     > configuration has already been retrieved
>>     > 2010-01-23
>>     >
>>
>>  00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 442)|attempting to retrieve private IP address for computer:
>>    vcl-winxp
>>     > 2010-01-23
>>     >
>>
>>  00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 446)|retrieved contents of /etc/hosts on this management node,
>>    contains 6
>>     > lines
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) DataStructure.pm,
>>    get_computer_private_ip_address
>>     > (line: 1466)
>>     > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
>>    (line: 4642)
>>     > |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name
>>    (line:
>>    4761)
>>     > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ssh_private
>>    (line:
>>    4202)
>>     > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 485)
>>     > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
>>
>>    (line: 692)
>>     >
>>     > 2010-01-23
>>     >
>>
>>  00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>>     > to retrieve computer private IP address from reservation data
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:30|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|unable
>>     > to retrieve network configuration
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name
>>    (line:
>>    4763)
>>     > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ssh_private
>>    (line:
>>    4202)
>>     > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 485)
>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
>>    (line: 692)
>>     > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line:
>> 266)
>>
>>     > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>>     >
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4220)|priva
>>     > te interface name could not be determined, SSH will be enabled
>>    for all
>>     > profiles
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private
>>    (line:
>>    4220)
>>     > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
>>     > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
>>    (line: 692)
>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line:
>> 266)
>>
>>     > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>>     > |1297|11:34|reload| (-6) vcld, main (line: 341)
>>     >
>>     > 2010-01-23
>>     >
>>    00:33:30|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing
>> SSH
>>     > command on vcl-winxp:
>>     > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p
>>    22 -x
>>     > vcl-winxp 'netsh.exe firewall set portopening name = "Cygwin
>>    SSHD" protocol
>>    =
>>     > TCP port = 22 profile = ALL' 2>&1
>>     > 2010-01-23 00:33:35|1226|vcld:main(165)|lastcheckin time updated for
>>     > management node 1: 2010-01-23 00:33:35
>>     > 2010-01-23
>>     >
>>    00:33:37|1297|11:34|reload|utils.pm:
>> run_ssh_command(6250)|run_ssh_command
>>     > output:
>>     > |1297|11:34|reload| Ok.
>>     > 2010-01-23
>>    00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6264)|SSH
>>     > command executed on vcl-winxp, returning (0, "Ok.")
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4232)|confi
>>     > gured firewall to allow SSH on private interface
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>>     > configuration has already been retrieved
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 442)|attempting to retrieve private IP address for computer:
>>    vcl-winxp
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 446)|retrieved contents of /etc/hosts on this management node,
>>    contains 6
>>     > lines
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) DataStructure.pm,
>>    get_computer_private_ip_address
>>     > (line: 1466)
>>     > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
>>    (line: 4642)
>>     > |1297|11:34|reload| (-3) Windows.pm, get_public_interface_name
>>    (line: 4791)
>>     > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private
>>    (line:
>>     > 3935)
>>     > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
>>     > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
>>
>>    (line: 692)
>>     >
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>>     > to retrieve computer private IP address from reservation data
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:get_public_interface_name(4793)|unable
>>     > to retrieve network configuration
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) Windows.pm, get_public_interface_name
>>    (line: 4793)
>>     > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private
>>    (line:
>>     > 3935)
>>     > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
>>    (line: 692)
>>     > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line:
>> 266)
>>
>>     > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>>     >
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3946)|ping
>>     > will not be disabled on public interface because public interface
>>    name
>>    could
>>     > not be determined
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private
>>    (line:
>>     > 3946)
>>     > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
>>     > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
>>    (line: 692)
>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line:
>> 266)
>>
>>     > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>>     > |1297|11:34|reload| (-6) vcld, main (line: 341)
>>     >
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>>     > configuration has already been retrieved
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 442)|attempting to retrieve private IP address for computer:
>>    vcl-winxp
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 446)|retrieved contents of /etc/hosts on this management node,
>>    contains 6
>>     > lines
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) DataStructure.pm,
>>    get_computer_private_ip_address
>>     > (line: 1466)
>>     > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
>>    (line: 4642)
>>     > |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name
>>    (line:
>>    4761)
>>     > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private
>>    (line:
>>     > 3951)
>>     > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
>>     > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
>>
>>    (line: 692)
>>     >
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>>     > to retrieve computer private IP address from reservation data
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|unable
>>     > to retrieve network configuration
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name
>>    (line:
>>    4763)
>>     > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private
>>    (line:
>>     > 3951)
>>     > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
>>    (line: 692)
>>     > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line:
>> 266)
>>
>>     > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>>     >
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3967)|priv
>>     > ate interface name could not be determined, ping will be enabled
>>    for all
>>     > profiles
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private
>>    (line:
>>     > 3967)
>>     > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
>>     > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
>>    (line: 692)
>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line:
>> 266)
>>
>>     > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>>     > |1297|11:34|reload| (-6) vcld, main (line: 341)
>>     >
>>     > 2010-01-23
>>     >
>>    00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing
>> SSH
>>     > command on vcl-winxp:
>>     > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p
>>    22 -x
>>     > vcl-winxp 'netsh.exe firewall set icmpsetting type = 8 mode = ENABLE
>>    profile
>>     > = ALL ;' 2>&1
>>     > 2010-01-23 00:33:40|1226|vcld:main(165)|lastcheckin time updated for
>>     > management node 1: 2010-01-23 00:33:40
>>     > 2010-01-23
>>     >
>>    00:33:43|1297|11:34|reload|utils.pm:
>> run_ssh_command(6250)|run_ssh_command
>>     > output:
>>     > |1297|11:34|reload| Ok.
>>     > 2010-01-23
>>    00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6264)|SSH
>>     > command executed on vcl-winxp, returning (0, "Ok.")
>>     > 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3979)|conf
>>     > igured firewall to allow ping on private interface
>>     > 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4890)|IP
>>     > configuration mode in use: dynamicDHCP
>>     > 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>>     > configuration has already been retrieved
>>     > 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 442)|attempting to retrieve private IP address for computer:
>>    vcl-winxp
>>     > 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 446)|retrieved contents of /etc/hosts on this management node,
>>    contains 6
>>     > lines
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) DataStructure.pm,
>>    get_computer_private_ip_address
>>     > (line: 1466)
>>     > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
>>    (line: 4642)
>>     > |1297|11:34|reload| (-3) Windows.pm, get_public_default_gateway
>>    (line:
>>    4894)
>>     > |1297|11:34|reload| (-4) Windows.pm, set_public_default_route
>>    (line: 7429)
>>     > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 507)
>>     > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
>>
>>    (line: 692)
>>     >
>>     > 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>>     > to retrieve computer private IP address from reservation data
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4908)|unable
>>     > to retrieve public network configuration currently in use on
>>    vcl-winxp
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) Windows.pm, get_public_default_gateway
>>    (line:
>>    4908)
>>     > |1297|11:34|reload| (-2) Windows.pm, set_public_default_route
>>    (line: 7429)
>>     > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 507)
>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
>>    (line: 692)
>>     > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line:
>> 266)
>>
>>     > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>>     >
>>     > 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|DataStructure.pm:get_management_node_public_defaul
>>     > t_gateway(1783)|returning default gateway from route command:
>>    134.154.193.190
>>     > 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4917)|return
>>     > ing management node's default gateway address: 134.154.193.190
>>     > 2010-01-23
>>     >
>>    00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing
>> SSH
>>     > command on vcl-winxp:
>>     > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p
>>    22 -x
>>     > vcl-winxp 'route delete 0.0.0.0' 2>&1
>>     > 2010-01-23 00:33:45|1226|vcld:main(165)|lastcheckin time updated for
>>     > management node 1: 2010-01-23 00:33:45
>>     > 2010-01-23 00:33:50|1226|vcld:main(165)|lastcheckin time updated for
>>     > management node 1: 2010-01-23 00:33:50
>>     > 2010-01-23 00:33:55|1226|vcld:main(165)|lastcheckin time updated for
>>     > management node 1: 2010-01-23 00:33:55
>>     > 2010-01-23 00:34:00|1226|vcld:main(165)|lastcheckin time updated for
>>     > management node 1: 2010-01-23 00:34:00
>>     > 2010-01-23 00:34:05|1226|vcld:main(165)|lastcheckin time updated for
>>     > management node 1: 2010-01-23 00:34:05
>>     > 2010-01-23 00:34:10|1226|vcld:main(165)|lastcheckin time updated for
>>     > management node 1: 2010-01-23 00:34:10
>>     >
>>     >
>>     >
>>     >
>>     >
>>     >
>>     > And the database state:
>>     >
>>     > mysql> select * from request;
>>     >
>>
>>  +----+---------+--------+-------------+-------+------------+------+---------+
>>     >
>>
>>  ---------------------+---------------------+---------------------+-----------
>>     > ---+
>>     > | id | stateid | userid | laststateid | logid | forimaging | test
>>    | preload
>>    |
>>     > start               | end                 | daterequested       |
>>     > datemodified |
>>     >
>>
>>  +----+---------+--------+-------------+-------+------------+------+---------+
>>     >
>>
>>  ---------------------+---------------------+---------------------+-----------
>>     > ---+
>>     > | 11 |      14 |      2 |          19 |     0 |          0 |    0
>>    |       0
>>    |
>>     > 2010-01-23 00:31:59 | 2010-01-23 01:01:59 | 2010-01-23 00:31:59 |
>>    NULL
>>     > |
>>     >
>>
>>  +----+---------+--------+-------------+-------+------------+------+---------+
>>     >
>>
>>  ---------------------+---------------------+---------------------+-----------
>>     > ---+
>>     > 1 row in set (0.00 sec)
>>     >
>>     > mysql> select * from reservation;
>>     >
>>
>>  +----+-----------+------------+---------+-----------------+------------------
>>     > +----------+---------------------+------+
>>     > | id | requestid | computerid | imageid | imagerevisionid |
>>    managementnodeid
>>     > | remoteIP | lastcheck           | pw   |
>>     >
>>
>>  +----+-----------+------------+---------+-----------------+------------------
>>     > +----------+---------------------+------+
>>     > | 34 |        11 |         13 |      10 |              10 |
>>    1
>>     > | NULL     | 0000-00-00 00:00:00 | NULL |
>>     >
>>
>>  +----+-----------+------------+---------+-----------------+------------------
>>     > +----------+---------------------+------+
>>     > 1 row in set (0.00 sec)
>>     >
>>     >
>>     > And finally, here is the directory structure (after executing the
>>    commands)
>>     > of the VMWare server:
>>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # ls -l
>>     > drwxr-xr-x    1 root     root                420 Jan 23 08:31 golden
>>     > drwxr-xr-x    1 root     root                420 Jan 23 08:31 inuse
>>     > drwxr-xr-x    1 root     root               4340 Dec  3 18:30
>>     > vcl.csueastbay.edu <http://vcl.csueastbay.edu>
>>
>>     > drwxr-xr-x    1 root     root               4340 Dec  3 18:08
>>     > vcldb.csueastbay.edu <http://vcldb.csueastbay.edu>
>>
>>     > drwxr-xr-x    1 root     root               4340 Dec  3 18:23
>>     > vclmgmt.csueastbay.edu <http://vclmgmt.csueastbay.edu>
>>
>>     > drwxr-xr-x    1 root     root               2660 Jan 23 08:22
>>     > vmwarewinxp-base7-v0
>>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd golden/
>>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # ls -l
>>     > drwxr-xr-x    1 root     root                280 Jan 23 08:31
>>     > vmwarewinxp-base7-v0
>>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # cd ..
>>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd inuse/
>>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/inuse # ls -l
>>     > drwxr-xr-x    1 root     root                420 Jan 23 08:31
>>    vcl-winxp
>>     >
>>     >
>>     > Let me know if more output from the logs would be helpful, or any
>>    other
>>     > information.
>>     >
>>     >
>>     > Thanks,
>>     > Jeff Wisman
>>     >
>>
>>    --
>>    Andy Kurth
>>    Virtual Computing Lab
>>    Office of Information Technology
>>    North Carolina State University
>>    andy_kurth@ncsu.edu <ma...@ncsu.edu>
>>    919.513.4090
>>
>>
>>
>>
> --
> Andy Kurth
> Virtual Computing Lab
> Office of Information Technology
> North Carolina State University
> andy_kurth@ncsu.edu
> 919.513.4090
>

Re: Issues with Inserting Image Reservation Into VCL DB

Posted by Jeffrey Wisman <je...@csueastbay.edu>.
Andy and I did some troubleshooting today, and were able to resolve this
issue.  I just wanted to report back our findings in case others are
experiencing similar issues.

It turns out that the actual problem was the time zone.  We're in the PST
time zone, but when we went to schedule reservations, it seemed to assume we
are in the Eastern Time Zone.  Andy and Josh discovered the root issue to be
the .ht-inc/php5extras.php file which we changed from 'America/New_York' to
'America/Los_Angeles'.  This resolved the issue and I can now create
reservations successfully!

Aside from documenting this, hopefully it can be resolved in a future
version to either look at the system time zone during install or be set in a
config file.  Let me know if I should file a bug report for this, or if it
would be better handled as part of the installation documentation?

Thanks all for your help!

Jeff



On Mon, Feb 1, 2010 at 7:38 AM, Andy Kurth <an...@ncsu.edu> wrote:

> Hi Jeff,
> This problem is somewhat difficult to troubleshoot because there are
> several possible causes.  The easy things to check:
> -Are your VM computers in the available state (Manage Computers -->
> Computer Utilities)?.  They may have been left in the failed state when you
> were having imaging trouble.  Your VM host should be in the 'vmhostinuse'
> state.
> -Make sure your management node is in the available state (Management Nodes
> --> Edit Management Node Information).  Nothing should have changed the
> state of the managment node but this is easy to forget about.
>
> If everything is available, check the image/computer groupings and mappings
> and privilege tree:
> 1. Manage Images --> Edit Image Grouping -- note the image groups the image
> is assigned to
> 2. Manage Image --> Edit Image Mapping -- determine which computer groups
> the image is mapped to by viewing the mappings for the image groups you
> located in step 1
> 3. Manage Computers --> Edit Computer Grouping -- make sure your VM
> computers are in a computer group found in step 2
> 3. View the privilege tree (Privileges).  Is there a node where the image
> group, computer group, and either the user account or a group the user
> account is in are all configured.  The user account or group needs the
> "imageCheckOut" right and the image and computer groups need to be
> "available".
>
> Some database troubleshooting is necessary if you're still having trouble.
>  It may be easiest if there's a way to take a look at your database.
>
> Regards,
> Andy
>
>
>
> Jeffrey Wisman wrote:
>
>> So I'm still having issues.  I can perform all the actions listed here
>> successfully (at least it seems so from the logs):
>> http://cwiki.apache.org/VCL/create-a-windows-base-image.html
>>
>> I'm trying to create a reservation for the first time from the GUI, and
>> having trouble.  I get the message "Selection not currently available" when
>> I try to do it, and I can't figure out why.  The groupings, mappings, and
>> permissions *seem* right, but maybe they aren't.  Attached are some screen
>> shots.  Let me know if I'm missing something obvious, or need to provide
>> more information for troubleshooting.
>>
>> Thanks,
>> Jeff
>>
>>
>>
>> On Wed, Jan 27, 2010 at 9:51 AM, Jeffrey Wisman <
>> jeff.wisman@csueastbay.edu <ma...@csueastbay.edu>> wrote:
>>
>>    I just wanted to post a follow up that the issue was with the hosts
>>    file.  I
>>    had put both the public and private IP addresses in the management
>>    server's
>>    host file.  I removed the public IP and now it works just fine.
>>
>>    I'm still having issues with the reservations, but I think its just my
>>    misunderstanding of how this is all supposed to work.  I'll be
>>    spending more
>>    time in the next few days, and post if I can't figure out the next
>>    steps on
>>    my own.
>>
>>    Thanks,
>>    Jeff
>>
>>
>>    -----Original Message-----
>>    From: Jeffrey Wisman [mailto:jeff.wisman@csueastbay.edu
>>    <ma...@csueastbay.edu>]
>>    Sent: Mon 1/25/2010 12:58 PM
>>    To: vcl-dev@incubator.apache.org
>>    <ma...@incubator.apache.org>; vcl-dev@incubator.apache.org
>>    <ma...@incubator.apache.org>
>>    Subject: RE: Issues with Inserting Image Reservation Into VCL DB
>>
>>    Thanks Andy, I'll try your suggestions tonight and report back.
>>     Your help is
>>    much appreciated!
>>
>>    Jeff
>>
>>
>>    -----Original Message-----
>>    From: Andy Kurth [mailto:andy_kurth@ncsu.edu
>>    <ma...@ncsu.edu>]
>>    Sent: Mon 1/25/2010 12:33 PM
>>    To: vcl-dev@incubator.apache.org <ma...@incubator.apache.org>
>>    Subject: Re: Issues with Inserting Image Reservation Into VCL DB
>>
>>    Hello Jeff,
>>    It appears that the image was successfully captured and it's at the
>>    point
>>    where
>>    it's trying to reload the new image.
>>
>>    Is the computer.privateIPaddress value set in the database?  If not,
>>    set this
>>
>>    for vcl-winxp in the computer table and see if the warnings go away.
>>     You can
>>
>>    also add an entry in the /etc/hosts file on the management node for the
>>    private
>>    address of vcl-winxp.  Either of these should clear up most of the
>>    warning
>>    messages you're seeing.
>>
>>    You don't have to go through the entire imaging process again to
>>    troubleshoot
>>
>>    this.  You can restart the reload process by:
>>    -Kill the existing vcld process for the reservation if it's still
>>    running.
>>    The
>>    PID to kill is displayed as the leftmost field in the log output
>>    (1297 in the
>>
>>    output you included).  Don't kill the main vcld process.
>>    -Set request.state to 'reload', request.start to NOW(), and
>>    request.end to
>>    some
>>    time in the future.  The vcld process should begin to process it again.
>>    Start
>>    'tail -f /var/log/vcld.log' before changing the request state.
>>
>>    Is it hanging indefinitely after it attempts to run the last command
>>    (route
>>    delete 0.0.0.0) included in the log output?  I haven't seen this
>> problem
>>    before
>>    if it is indeed hanging.  The 'route delete' command may be breaking
>>    networking
>>    on the computer and tripping up the SSH command.  I would try
>>    running the SSH
>>
>>    command manually with the -v option to try to figure out what's
>>    happening:
>>    ssh -v -i /etc/vcl/vcl.key  -l root -p 22 -x vcl-winxp 'route delete
>>    0.0.0.0'
>>
>>    If this command hangs, try adding the ServerAliveInterval SSH option:
>>    ssh -v -o ServerAliveInterval=15 -i /etc/vcl/vcl.key -l root -p 22 -x
>>    vcl-winxp
>>    'route delete 0.0.0.0'
>>
>>    Give this command at least 20 seconds before killing it if it hangs.
>>     If this
>>
>>    prevents it from hanging, try manually running the next command VCL
>>    would
>>    have
>>    performed:
>>    ssh -i /etc/vcl/vcl.key -l root -p 22 -x vcl-winxp 'route -p ADD
>>    0.0.0.0 MASK
>>
>>    0.0.0.0 134.154.193.190 METRIC 1'
>>
>>    The output of these commands may be helpful in troubleshooting.
>>
>>    Regards,
>>    Andy Kurth / NCSU VCL
>>
>>
>>    Jeffrey Wisman wrote:
>>     > Hi all - Just joined this list.  I've been working on a pilot VCL
>>    install
>>    at
>>     > CSU East Bay, and am hung up on what seems like nearly the last
>>    step.  I'm
>>     > following instructions at the bottom of this page:
>>     >
>>
>> http://cwiki.apache.org/confluence/display/VCL/Create+a+Windows+Base+Image
>>     >
>>     > I'm attempting to insert the image reservation into the VCL DB,
>>    and it only
>>     > gets as far as this network/route issue.  Is this a DHCP problem?
>>     A hosts
>>     > file issue?  Something else?  Please let me know if anyone has
>>    seen this
>>     > before, or can help troubleshoot.  Here is the last part of the
>>    output from
>>     > tail -f /var/log/vcld.log
>>     >
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4197)|SSH
>>     > will not be disabled on public interface because public interface
>>    name
>>    could
>>     > not be determined
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private
>>    (line:
>>    4197)
>>     > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
>>     > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
>>    (line: 692)
>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line:
>> 266)
>>
>>     > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>>     > |1297|11:34|reload| (-6) vcld, main (line: 341)
>>     >
>>     > 2010-01-23
>>     >
>>
>>  00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>>     > configuration has already been retrieved
>>     > 2010-01-23
>>     >
>>
>>  00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 442)|attempting to retrieve private IP address for computer:
>>    vcl-winxp
>>     > 2010-01-23
>>     >
>>
>>  00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 446)|retrieved contents of /etc/hosts on this management node,
>>    contains 6
>>     > lines
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) DataStructure.pm,
>>    get_computer_private_ip_address
>>     > (line: 1466)
>>     > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
>>    (line: 4642)
>>     > |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name
>>    (line:
>>    4761)
>>     > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ssh_private
>>    (line:
>>    4202)
>>     > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 485)
>>     > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
>>
>>    (line: 692)
>>     >
>>     > 2010-01-23
>>     >
>>
>>  00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>>     > to retrieve computer private IP address from reservation data
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:30|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|unable
>>     > to retrieve network configuration
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name
>>    (line:
>>    4763)
>>     > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ssh_private
>>    (line:
>>    4202)
>>     > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 485)
>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
>>    (line: 692)
>>     > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line:
>> 266)
>>
>>     > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>>     >
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4220)|priva
>>     > te interface name could not be determined, SSH will be enabled
>>    for all
>>     > profiles
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private
>>    (line:
>>    4220)
>>     > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
>>     > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
>>    (line: 692)
>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line:
>> 266)
>>
>>     > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>>     > |1297|11:34|reload| (-6) vcld, main (line: 341)
>>     >
>>     > 2010-01-23
>>     >
>>    00:33:30|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing
>> SSH
>>     > command on vcl-winxp:
>>     > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p
>>    22 -x
>>     > vcl-winxp 'netsh.exe firewall set portopening name = "Cygwin
>>    SSHD" protocol
>>    =
>>     > TCP port = 22 profile = ALL' 2>&1
>>     > 2010-01-23 00:33:35|1226|vcld:main(165)|lastcheckin time updated for
>>     > management node 1: 2010-01-23 00:33:35
>>     > 2010-01-23
>>     >
>>    00:33:37|1297|11:34|reload|utils.pm:
>> run_ssh_command(6250)|run_ssh_command
>>     > output:
>>     > |1297|11:34|reload| Ok.
>>     > 2010-01-23
>>    00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6264)|SSH
>>     > command executed on vcl-winxp, returning (0, "Ok.")
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4232)|confi
>>     > gured firewall to allow SSH on private interface
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>>     > configuration has already been retrieved
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 442)|attempting to retrieve private IP address for computer:
>>    vcl-winxp
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 446)|retrieved contents of /etc/hosts on this management node,
>>    contains 6
>>     > lines
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) DataStructure.pm,
>>    get_computer_private_ip_address
>>     > (line: 1466)
>>     > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
>>    (line: 4642)
>>     > |1297|11:34|reload| (-3) Windows.pm, get_public_interface_name
>>    (line: 4791)
>>     > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private
>>    (line:
>>     > 3935)
>>     > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
>>     > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
>>
>>    (line: 692)
>>     >
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>>     > to retrieve computer private IP address from reservation data
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:get_public_interface_name(4793)|unable
>>     > to retrieve network configuration
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) Windows.pm, get_public_interface_name
>>    (line: 4793)
>>     > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private
>>    (line:
>>     > 3935)
>>     > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
>>    (line: 692)
>>     > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line:
>> 266)
>>
>>     > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>>     >
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3946)|ping
>>     > will not be disabled on public interface because public interface
>>    name
>>    could
>>     > not be determined
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private
>>    (line:
>>     > 3946)
>>     > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
>>     > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
>>    (line: 692)
>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line:
>> 266)
>>
>>     > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>>     > |1297|11:34|reload| (-6) vcld, main (line: 341)
>>     >
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>>     > configuration has already been retrieved
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 442)|attempting to retrieve private IP address for computer:
>>    vcl-winxp
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 446)|retrieved contents of /etc/hosts on this management node,
>>    contains 6
>>     > lines
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) DataStructure.pm,
>>    get_computer_private_ip_address
>>     > (line: 1466)
>>     > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
>>    (line: 4642)
>>     > |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name
>>    (line:
>>    4761)
>>     > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private
>>    (line:
>>     > 3951)
>>     > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
>>     > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
>>
>>    (line: 692)
>>     >
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>>     > to retrieve computer private IP address from reservation data
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|unable
>>     > to retrieve network configuration
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name
>>    (line:
>>    4763)
>>     > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private
>>    (line:
>>     > 3951)
>>     > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
>>    (line: 692)
>>     > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line:
>> 266)
>>
>>     > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>>     >
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3967)|priv
>>     > ate interface name could not be determined, ping will be enabled
>>    for all
>>     > profiles
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private
>>    (line:
>>     > 3967)
>>     > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
>>     > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
>>    (line: 692)
>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line:
>> 266)
>>
>>     > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>>     > |1297|11:34|reload| (-6) vcld, main (line: 341)
>>     >
>>     > 2010-01-23
>>     >
>>    00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing
>> SSH
>>     > command on vcl-winxp:
>>     > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p
>>    22 -x
>>     > vcl-winxp 'netsh.exe firewall set icmpsetting type = 8 mode = ENABLE
>>    profile
>>     > = ALL ;' 2>&1
>>     > 2010-01-23 00:33:40|1226|vcld:main(165)|lastcheckin time updated for
>>     > management node 1: 2010-01-23 00:33:40
>>     > 2010-01-23
>>     >
>>    00:33:43|1297|11:34|reload|utils.pm:
>> run_ssh_command(6250)|run_ssh_command
>>     > output:
>>     > |1297|11:34|reload| Ok.
>>     > 2010-01-23
>>    00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6264)|SSH
>>     > command executed on vcl-winxp, returning (0, "Ok.")
>>     > 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3979)|conf
>>     > igured firewall to allow ping on private interface
>>     > 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4890)|IP
>>     > configuration mode in use: dynamicDHCP
>>     > 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>>     > configuration has already been retrieved
>>     > 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 442)|attempting to retrieve private IP address for computer:
>>    vcl-winxp
>>     > 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 446)|retrieved contents of /etc/hosts on this management node,
>>    contains 6
>>     > lines
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) DataStructure.pm,
>>    get_computer_private_ip_address
>>     > (line: 1466)
>>     > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
>>    (line: 4642)
>>     > |1297|11:34|reload| (-3) Windows.pm, get_public_default_gateway
>>    (line:
>>    4894)
>>     > |1297|11:34|reload| (-4) Windows.pm, set_public_default_route
>>    (line: 7429)
>>     > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 507)
>>     > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
>>
>>    (line: 692)
>>     >
>>     > 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>>     > to retrieve computer private IP address from reservation data
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4908)|unable
>>     > to retrieve public network configuration currently in use on
>>    vcl-winxp
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) Windows.pm, get_public_default_gateway
>>    (line:
>>    4908)
>>     > |1297|11:34|reload| (-2) Windows.pm, set_public_default_route
>>    (line: 7429)
>>     > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 507)
>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
>>    (line: 692)
>>     > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line:
>> 266)
>>
>>     > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>>     >
>>     > 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|DataStructure.pm:get_management_node_public_defaul
>>     > t_gateway(1783)|returning default gateway from route command:
>>    134.154.193.190
>>     > 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4917)|return
>>     > ing management node's default gateway address: 134.154.193.190
>>     > 2010-01-23
>>     >
>>    00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing
>> SSH
>>     > command on vcl-winxp:
>>     > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p
>>    22 -x
>>     > vcl-winxp 'route delete 0.0.0.0' 2>&1
>>     > 2010-01-23 00:33:45|1226|vcld:main(165)|lastcheckin time updated for
>>     > management node 1: 2010-01-23 00:33:45
>>     > 2010-01-23 00:33:50|1226|vcld:main(165)|lastcheckin time updated for
>>     > management node 1: 2010-01-23 00:33:50
>>     > 2010-01-23 00:33:55|1226|vcld:main(165)|lastcheckin time updated for
>>     > management node 1: 2010-01-23 00:33:55
>>     > 2010-01-23 00:34:00|1226|vcld:main(165)|lastcheckin time updated for
>>     > management node 1: 2010-01-23 00:34:00
>>     > 2010-01-23 00:34:05|1226|vcld:main(165)|lastcheckin time updated for
>>     > management node 1: 2010-01-23 00:34:05
>>     > 2010-01-23 00:34:10|1226|vcld:main(165)|lastcheckin time updated for
>>     > management node 1: 2010-01-23 00:34:10
>>     >
>>     >
>>     >
>>     >
>>     >
>>     >
>>     > And the database state:
>>     >
>>     > mysql> select * from request;
>>     >
>>
>>  +----+---------+--------+-------------+-------+------------+------+---------+
>>     >
>>
>>  ---------------------+---------------------+---------------------+-----------
>>     > ---+
>>     > | id | stateid | userid | laststateid | logid | forimaging | test
>>    | preload
>>    |
>>     > start               | end                 | daterequested       |
>>     > datemodified |
>>     >
>>
>>  +----+---------+--------+-------------+-------+------------+------+---------+
>>     >
>>
>>  ---------------------+---------------------+---------------------+-----------
>>     > ---+
>>     > | 11 |      14 |      2 |          19 |     0 |          0 |    0
>>    |       0
>>    |
>>     > 2010-01-23 00:31:59 | 2010-01-23 01:01:59 | 2010-01-23 00:31:59 |
>>    NULL
>>     > |
>>     >
>>
>>  +----+---------+--------+-------------+-------+------------+------+---------+
>>     >
>>
>>  ---------------------+---------------------+---------------------+-----------
>>     > ---+
>>     > 1 row in set (0.00 sec)
>>     >
>>     > mysql> select * from reservation;
>>     >
>>
>>  +----+-----------+------------+---------+-----------------+------------------
>>     > +----------+---------------------+------+
>>     > | id | requestid | computerid | imageid | imagerevisionid |
>>    managementnodeid
>>     > | remoteIP | lastcheck           | pw   |
>>     >
>>
>>  +----+-----------+------------+---------+-----------------+------------------
>>     > +----------+---------------------+------+
>>     > | 34 |        11 |         13 |      10 |              10 |
>>    1
>>     > | NULL     | 0000-00-00 00:00:00 | NULL |
>>     >
>>
>>  +----+-----------+------------+---------+-----------------+------------------
>>     > +----------+---------------------+------+
>>     > 1 row in set (0.00 sec)
>>     >
>>     >
>>     > And finally, here is the directory structure (after executing the
>>    commands)
>>     > of the VMWare server:
>>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # ls -l
>>     > drwxr-xr-x    1 root     root                420 Jan 23 08:31 golden
>>     > drwxr-xr-x    1 root     root                420 Jan 23 08:31 inuse
>>     > drwxr-xr-x    1 root     root               4340 Dec  3 18:30
>>     > vcl.csueastbay.edu <http://vcl.csueastbay.edu>
>>
>>     > drwxr-xr-x    1 root     root               4340 Dec  3 18:08
>>     > vcldb.csueastbay.edu <http://vcldb.csueastbay.edu>
>>
>>     > drwxr-xr-x    1 root     root               4340 Dec  3 18:23
>>     > vclmgmt.csueastbay.edu <http://vclmgmt.csueastbay.edu>
>>
>>     > drwxr-xr-x    1 root     root               2660 Jan 23 08:22
>>     > vmwarewinxp-base7-v0
>>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd golden/
>>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # ls -l
>>     > drwxr-xr-x    1 root     root                280 Jan 23 08:31
>>     > vmwarewinxp-base7-v0
>>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # cd ..
>>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd inuse/
>>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/inuse # ls -l
>>     > drwxr-xr-x    1 root     root                420 Jan 23 08:31
>>    vcl-winxp
>>     >
>>     >
>>     > Let me know if more output from the logs would be helpful, or any
>>    other
>>     > information.
>>     >
>>     >
>>     > Thanks,
>>     > Jeff Wisman
>>     >
>>
>>    --
>>    Andy Kurth
>>    Virtual Computing Lab
>>    Office of Information Technology
>>    North Carolina State University
>>    andy_kurth@ncsu.edu <ma...@ncsu.edu>
>>    919.513.4090
>>
>>
>>
>>
> --
> Andy Kurth
> Virtual Computing Lab
> Office of Information Technology
> North Carolina State University
> andy_kurth@ncsu.edu
> 919.513.4090
>

Re: Issues with Inserting Image Reservation Into VCL DB

Posted by Andy Kurth <an...@ncsu.edu>.
I forgot another detail easily overlooked.  As listed in Josh's scheduling 
algorithm details, the problem could be because the image hardware requirements 
are set higher than the hardware specs of any of your VMs.  Take a look at the 
image requirements:
Manage Images --> Edit Image Profiles --> Edit --> expand Advanced Options

Compare the minimum RAM, number of processors, etc for the image to the settings 
for your VMs:
Manage Computers --> select your computer groups --> Edit Computer Information 
(check all the boxes)

There must be a computer with hardware >= the image requirements.  You can 
adjust either the computer specs or image requirements if necessary.

I don't think the issue is with the VM host state.

Hope this helps,
Andy

Jeffrey Wisman wrote:
> Andy,
> The VM computers are all in the "available" state.  However the VM host is
> also in the "available" state.  I'm guessing that could be the problem?
> 
> When I try to change the state by using "Change state of selected computers
> to: vmhostinuse", it gives me the OK but it seems to stay in the "available"
> state.  I'm not sure its doing anything.
> 
> Also, the management node is in the "available" state, so that's all good.
> The image I'm trying to use is in "allImages" and "allVMimages" groups.
> Those two groups are mapped to all computer groups except for "all vm host
> computers".  Privileges should be fine as I'm using the admin user to test
> and have granted all permissions to the admin user.
> 
> Let me know if you have insight on the VM host available issue.  Otherwise
> we'll chat more tomorrow.  Many thanks for your help!!
> 
> Jeff
> 
> 
> 
> On Mon, Feb 1, 2010 at 7:38 AM, Andy Kurth <an...@ncsu.edu> wrote:
> 
>> Hi Jeff,
>> This problem is somewhat difficult to troubleshoot because there are
>> several possible causes.  The easy things to check:
>> -Are your VM computers in the available state (Manage Computers -->
>> Computer Utilities)?.  They may have been left in the failed state when you
>> were having imaging trouble.  Your VM host should be in the 'vmhostinuse'
>> state.
>> -Make sure your management node is in the available state (Management Nodes
>> --> Edit Management Node Information).  Nothing should have changed the
>> state of the managment node but this is easy to forget about.
>>
>> If everything is available, check the image/computer groupings and mappings
>> and privilege tree:
>> 1. Manage Images --> Edit Image Grouping -- note the image groups the image
>> is assigned to
>> 2. Manage Image --> Edit Image Mapping -- determine which computer groups
>> the image is mapped to by viewing the mappings for the image groups you
>> located in step 1
>> 3. Manage Computers --> Edit Computer Grouping -- make sure your VM
>> computers are in a computer group found in step 2
>> 3. View the privilege tree (Privileges).  Is there a node where the image
>> group, computer group, and either the user account or a group the user
>> account is in are all configured.  The user account or group needs the
>> "imageCheckOut" right and the image and computer groups need to be
>> "available".
>>
>> Some database troubleshooting is necessary if you're still having trouble.
>>  It may be easiest if there's a way to take a look at your database.
>>
>> Regards,
>> Andy
>>
>>
>>
>> Jeffrey Wisman wrote:
>>
>>> So I'm still having issues.  I can perform all the actions listed here
>>> successfully (at least it seems so from the logs):
>>> http://cwiki.apache.org/VCL/create-a-windows-base-image.html
>>>
>>> I'm trying to create a reservation for the first time from the GUI, and
>>> having trouble.  I get the message "Selection not currently available" when
>>> I try to do it, and I can't figure out why.  The groupings, mappings, and
>>> permissions *seem* right, but maybe they aren't.  Attached are some screen
>>> shots.  Let me know if I'm missing something obvious, or need to provide
>>> more information for troubleshooting.
>>>
>>> Thanks,
>>> Jeff
>>>
>>>
>>>
>>> On Wed, Jan 27, 2010 at 9:51 AM, Jeffrey Wisman <
>>> jeff.wisman@csueastbay.edu <ma...@csueastbay.edu>> wrote:
>>>
>>>    I just wanted to post a follow up that the issue was with the hosts
>>>    file.  I
>>>    had put both the public and private IP addresses in the management
>>>    server's
>>>    host file.  I removed the public IP and now it works just fine.
>>>
>>>    I'm still having issues with the reservations, but I think its just my
>>>    misunderstanding of how this is all supposed to work.  I'll be
>>>    spending more
>>>    time in the next few days, and post if I can't figure out the next
>>>    steps on
>>>    my own.
>>>
>>>    Thanks,
>>>    Jeff
>>>
>>>
>>>    -----Original Message-----
>>>    From: Jeffrey Wisman [mailto:jeff.wisman@csueastbay.edu
>>>    <ma...@csueastbay.edu>]
>>>    Sent: Mon 1/25/2010 12:58 PM
>>>    To: vcl-dev@incubator.apache.org
>>>    <ma...@incubator.apache.org>; vcl-dev@incubator.apache.org
>>>    <ma...@incubator.apache.org>
>>>    Subject: RE: Issues with Inserting Image Reservation Into VCL DB
>>>
>>>    Thanks Andy, I'll try your suggestions tonight and report back.
>>>     Your help is
>>>    much appreciated!
>>>
>>>    Jeff
>>>
>>>
>>>    -----Original Message-----
>>>    From: Andy Kurth [mailto:andy_kurth@ncsu.edu
>>>    <ma...@ncsu.edu>]
>>>    Sent: Mon 1/25/2010 12:33 PM
>>>    To: vcl-dev@incubator.apache.org <ma...@incubator.apache.org>
>>>    Subject: Re: Issues with Inserting Image Reservation Into VCL DB
>>>
>>>    Hello Jeff,
>>>    It appears that the image was successfully captured and it's at the
>>>    point
>>>    where
>>>    it's trying to reload the new image.
>>>
>>>    Is the computer.privateIPaddress value set in the database?  If not,
>>>    set this
>>>
>>>    for vcl-winxp in the computer table and see if the warnings go away.
>>>     You can
>>>
>>>    also add an entry in the /etc/hosts file on the management node for the
>>>    private
>>>    address of vcl-winxp.  Either of these should clear up most of the
>>>    warning
>>>    messages you're seeing.
>>>
>>>    You don't have to go through the entire imaging process again to
>>>    troubleshoot
>>>
>>>    this.  You can restart the reload process by:
>>>    -Kill the existing vcld process for the reservation if it's still
>>>    running.
>>>    The
>>>    PID to kill is displayed as the leftmost field in the log output
>>>    (1297 in the
>>>
>>>    output you included).  Don't kill the main vcld process.
>>>    -Set request.state to 'reload', request.start to NOW(), and
>>>    request.end to
>>>    some
>>>    time in the future.  The vcld process should begin to process it again.
>>>    Start
>>>    'tail -f /var/log/vcld.log' before changing the request state.
>>>
>>>    Is it hanging indefinitely after it attempts to run the last command
>>>    (route
>>>    delete 0.0.0.0) included in the log output?  I haven't seen this
>>> problem
>>>    before
>>>    if it is indeed hanging.  The 'route delete' command may be breaking
>>>    networking
>>>    on the computer and tripping up the SSH command.  I would try
>>>    running the SSH
>>>
>>>    command manually with the -v option to try to figure out what's
>>>    happening:
>>>    ssh -v -i /etc/vcl/vcl.key  -l root -p 22 -x vcl-winxp 'route delete
>>>    0.0.0.0'
>>>
>>>    If this command hangs, try adding the ServerAliveInterval SSH option:
>>>    ssh -v -o ServerAliveInterval=15 -i /etc/vcl/vcl.key -l root -p 22 -x
>>>    vcl-winxp
>>>    'route delete 0.0.0.0'
>>>
>>>    Give this command at least 20 seconds before killing it if it hangs.
>>>     If this
>>>
>>>    prevents it from hanging, try manually running the next command VCL
>>>    would
>>>    have
>>>    performed:
>>>    ssh -i /etc/vcl/vcl.key -l root -p 22 -x vcl-winxp 'route -p ADD
>>>    0.0.0.0 MASK
>>>
>>>    0.0.0.0 134.154.193.190 METRIC 1'
>>>
>>>    The output of these commands may be helpful in troubleshooting.
>>>
>>>    Regards,
>>>    Andy Kurth / NCSU VCL
>>>
>>>
>>>    Jeffrey Wisman wrote:
>>>     > Hi all - Just joined this list.  I've been working on a pilot VCL
>>>    install
>>>    at
>>>     > CSU East Bay, and am hung up on what seems like nearly the last
>>>    step.  I'm
>>>     > following instructions at the bottom of this page:
>>>     >
>>>
>>> http://cwiki.apache.org/confluence/display/VCL/Create+a+Windows+Base+Image
>>>     >
>>>     > I'm attempting to insert the image reservation into the VCL DB,
>>>    and it only
>>>     > gets as far as this network/route issue.  Is this a DHCP problem?
>>>     A hosts
>>>     > file issue?  Something else?  Please let me know if anyone has
>>>    seen this
>>>     > before, or can help troubleshoot.  Here is the last part of the
>>>    output from
>>>     > tail -f /var/log/vcld.log
>>>     >
>>>     >
>>>     > |1297|11:34|reload| ---- WARNING ----
>>>     > |1297|11:34|reload| 2010-01-23
>>>     >
>>>
>>>  00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4197)|SSH
>>>     > will not be disabled on public interface because public interface
>>>    name
>>>    could
>>>     > not be determined
>>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>>
>>>    (line: 728)
>>>     > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private
>>>    (line:
>>>    4197)
>>>     > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
>>>     > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
>>>    (line: 692)
>>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line:
>>> 266)
>>>
>>>     > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>>>     > |1297|11:34|reload| (-6) vcld, main (line: 341)
>>>     >
>>>     > 2010-01-23
>>>     >
>>>
>>>  00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>>>     > configuration has already been retrieved
>>>     > 2010-01-23
>>>     >
>>>
>>>  00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>>     > 442)|attempting to retrieve private IP address for computer:
>>>    vcl-winxp
>>>     > 2010-01-23
>>>     >
>>>
>>>  00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>>     > 446)|retrieved contents of /etc/hosts on this management node,
>>>    contains 6
>>>     > lines
>>>     >
>>>     > |1297|11:34|reload| ---- WARNING ----
>>>     > |1297|11:34|reload| 2010-01-23
>>>     >
>>>
>>>  00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>>     > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>>
>>>    (line: 728)
>>>     > |1297|11:34|reload| (-1) DataStructure.pm,
>>>    get_computer_private_ip_address
>>>     > (line: 1466)
>>>     > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
>>>    (line: 4642)
>>>     > |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name
>>>    (line:
>>>    4761)
>>>     > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ssh_private
>>>    (line:
>>>    4202)
>>>     > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 485)
>>>     > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
>>>
>>>    (line: 692)
>>>     >
>>>     > 2010-01-23
>>>     >
>>>
>>>  00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>>>     > to retrieve computer private IP address from reservation data
>>>     >
>>>     > |1297|11:34|reload| ---- WARNING ----
>>>     > |1297|11:34|reload| 2010-01-23
>>>     >
>>>
>>>  00:33:30|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|unable
>>>     > to retrieve network configuration
>>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>>
>>>    (line: 728)
>>>     > |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name
>>>    (line:
>>>    4763)
>>>     > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ssh_private
>>>    (line:
>>>    4202)
>>>     > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 485)
>>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
>>>    (line: 692)
>>>     > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line:
>>> 266)
>>>
>>>     > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>>>     >
>>>     >
>>>     > |1297|11:34|reload| ---- WARNING ----
>>>     > |1297|11:34|reload| 2010-01-23
>>>     >
>>>
>>>  00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4220)|priva
>>>     > te interface name could not be determined, SSH will be enabled
>>>    for all
>>>     > profiles
>>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>>
>>>    (line: 728)
>>>     > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private
>>>    (line:
>>>    4220)
>>>     > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
>>>     > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
>>>    (line: 692)
>>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line:
>>> 266)
>>>
>>>     > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>>>     > |1297|11:34|reload| (-6) vcld, main (line: 341)
>>>     >
>>>     > 2010-01-23
>>>     >
>>>    00:33:30|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing
>>> SSH
>>>     > command on vcl-winxp:
>>>     > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p
>>>    22 -x
>>>     > vcl-winxp 'netsh.exe firewall set portopening name = "Cygwin
>>>    SSHD" protocol
>>>    =
>>>     > TCP port = 22 profile = ALL' 2>&1
>>>     > 2010-01-23 00:33:35|1226|vcld:main(165)|lastcheckin time updated for
>>>     > management node 1: 2010-01-23 00:33:35
>>>     > 2010-01-23
>>>     >
>>>    00:33:37|1297|11:34|reload|utils.pm:
>>> run_ssh_command(6250)|run_ssh_command
>>>     > output:
>>>     > |1297|11:34|reload| Ok.
>>>     > 2010-01-23
>>>    00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6264)|SSH
>>>     > command executed on vcl-winxp, returning (0, "Ok.")
>>>     > 2010-01-23
>>>     >
>>>
>>>  00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4232)|confi
>>>     > gured firewall to allow SSH on private interface
>>>     > 2010-01-23
>>>     >
>>>
>>>  00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>>>     > configuration has already been retrieved
>>>     > 2010-01-23
>>>     >
>>>
>>>  00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>>     > 442)|attempting to retrieve private IP address for computer:
>>>    vcl-winxp
>>>     > 2010-01-23
>>>     >
>>>
>>>  00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>>     > 446)|retrieved contents of /etc/hosts on this management node,
>>>    contains 6
>>>     > lines
>>>     >
>>>     > |1297|11:34|reload| ---- WARNING ----
>>>     > |1297|11:34|reload| 2010-01-23
>>>     >
>>>
>>>  00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>>     > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>>
>>>    (line: 728)
>>>     > |1297|11:34|reload| (-1) DataStructure.pm,
>>>    get_computer_private_ip_address
>>>     > (line: 1466)
>>>     > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
>>>    (line: 4642)
>>>     > |1297|11:34|reload| (-3) Windows.pm, get_public_interface_name
>>>    (line: 4791)
>>>     > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private
>>>    (line:
>>>     > 3935)
>>>     > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
>>>     > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
>>>
>>>    (line: 692)
>>>     >
>>>     > 2010-01-23
>>>     >
>>>
>>>  00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>>>     > to retrieve computer private IP address from reservation data
>>>     >
>>>     > |1297|11:34|reload| ---- WARNING ----
>>>     > |1297|11:34|reload| 2010-01-23
>>>     >
>>>
>>>  00:33:37|1297|11:34|reload|Windows.pm:get_public_interface_name(4793)|unable
>>>     > to retrieve network configuration
>>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>>
>>>    (line: 728)
>>>     > |1297|11:34|reload| (-1) Windows.pm, get_public_interface_name
>>>    (line: 4793)
>>>     > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private
>>>    (line:
>>>     > 3935)
>>>     > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
>>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
>>>    (line: 692)
>>>     > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line:
>>> 266)
>>>
>>>     > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>>>     >
>>>     >
>>>     > |1297|11:34|reload| ---- WARNING ----
>>>     > |1297|11:34|reload| 2010-01-23
>>>     >
>>>
>>>  00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3946)|ping
>>>     > will not be disabled on public interface because public interface
>>>    name
>>>    could
>>>     > not be determined
>>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>>
>>>    (line: 728)
>>>     > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private
>>>    (line:
>>>     > 3946)
>>>     > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
>>>     > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
>>>    (line: 692)
>>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line:
>>> 266)
>>>
>>>     > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>>>     > |1297|11:34|reload| (-6) vcld, main (line: 341)
>>>     >
>>>     > 2010-01-23
>>>     >
>>>
>>>  00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>>>     > configuration has already been retrieved
>>>     > 2010-01-23
>>>     >
>>>
>>>  00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>>     > 442)|attempting to retrieve private IP address for computer:
>>>    vcl-winxp
>>>     > 2010-01-23
>>>     >
>>>
> 
>>>  00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>>     > 446)|retrieved contents of /etc/hosts on this management node,
>>>    contains 6
>>>     > lines
>>>     >
>>>     > |1297|11:34|reload| ---- WARNING ----
>>>     > |1297|11:34|reload| 2010-01-23
>>>     >
>>>
>>>  00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>>     > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>>
>>>    (line: 728)
>>>     > |1297|11:34|reload| (-1) DataStructure.pm,
>>>    get_computer_private_ip_address
>>>     > (line: 1466)
>>>     > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
>>>    (line: 4642)
>>>     > |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name
>>>    (line:
>>>    4761)
>>>     > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private
>>>    (line:
>>>     > 3951)
>>>     > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
>>>     > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
>>>
>>>    (line: 692)
>>>     >
>>>     > 2010-01-23
>>>     >
>>>
>>>  00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>>>     > to retrieve computer private IP address from reservation data
>>>     >
>>>     > |1297|11:34|reload| ---- WARNING ----
>>>     > |1297|11:34|reload| 2010-01-23
>>>     >
>>>
>>>  00:33:37|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|unable
>>>     > to retrieve network configuration
>>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>>
>>>    (line: 728)
>>>     > |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name
>>>    (line:
>>>    4763)
>>>     > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private
>>>    (line:
>>>     > 3951)
>>>     > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
>>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
>>>    (line: 692)
>>>     > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line:
>>> 266)
>>>
>>>     > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>>>     >
>>>     >
>>>     > |1297|11:34|reload| ---- WARNING ----
>>>     > |1297|11:34|reload| 2010-01-23
>>>     >
>>>
>>>  00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3967)|priv
>>>     > ate interface name could not be determined, ping will be enabled
>>>    for all
>>>     > profiles
>>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>>
>>>    (line: 728)
>>>     > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private
>>>    (line:
>>>     > 3967)
>>>     > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
>>>     > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
>>>    (line: 692)
>>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line:
>>> 266)
>>>
>>>     > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>>>     > |1297|11:34|reload| (-6) vcld, main (line: 341)
>>>     >
>>>     > 2010-01-23
>>>     >
>>>    00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing
>>> SSH
>>>     > command on vcl-winxp:
>>>     > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p
>>>    22 -x
>>>     > vcl-winxp 'netsh.exe firewall set icmpsetting type = 8 mode = ENABLE
>>>    profile
>>>     > = ALL ;' 2>&1
>>>     > 2010-01-23 00:33:40|1226|vcld:main(165)|lastcheckin time updated for
>>>     > management node 1: 2010-01-23 00:33:40
>>>     > 2010-01-23
>>>     >
>>>    00:33:43|1297|11:34|reload|utils.pm:
>>> run_ssh_command(6250)|run_ssh_command
>>>     > output:
>>>     > |1297|11:34|reload| Ok.
>>>     > 2010-01-23
>>>    00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6264)|SSH
>>>     > command executed on vcl-winxp, returning (0, "Ok.")
>>>     > 2010-01-23
>>>     >
>>>
>>>  00:33:43|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3979)|conf
>>>     > igured firewall to allow ping on private interface
>>>     > 2010-01-23
>>>     >
>>>
>>>  00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4890)|IP
>>>     > configuration mode in use: dynamicDHCP
>>>     > 2010-01-23
>>>     >
>>>
>>>  00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>>>     > configuration has already been retrieved
>>>     > 2010-01-23
>>>     >
>>>
>>>  00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>>     > 442)|attempting to retrieve private IP address for computer:
>>>    vcl-winxp
>>>     > 2010-01-23
>>>     >
>>>
>>>  00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>>     > 446)|retrieved contents of /etc/hosts on this management node,
>>>    contains 6
>>>     > lines
>>>     >
>>>     > |1297|11:34|reload| ---- WARNING ----
>>>     > |1297|11:34|reload| 2010-01-23
>>>     >
>>>
>>>  00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>>     > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>>
>>>    (line: 728)
>>>     > |1297|11:34|reload| (-1) DataStructure.pm,
>>>    get_computer_private_ip_address
>>>     > (line: 1466)
>>>     > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
>>>    (line: 4642)
>>>     > |1297|11:34|reload| (-3) Windows.pm, get_public_default_gateway
>>>    (line:
>>>    4894)
>>>     > |1297|11:34|reload| (-4) Windows.pm, set_public_default_route
>>>    (line: 7429)
>>>     > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 507)
>>>     > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
>>>
>>>    (line: 692)
>>>     >
>>>     > 2010-01-23
>>>     >
>>>
>>>  00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>>>     > to retrieve computer private IP address from reservation data
>>>     >
>>>     > |1297|11:34|reload| ---- WARNING ----
>>>     > |1297|11:34|reload| 2010-01-23
>>>     >
>>>
>>>  00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4908)|unable
>>>     > to retrieve public network configuration currently in use on
>>>    vcl-winxp
>>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>>
>>>    (line: 728)
>>>     > |1297|11:34|reload| (-1) Windows.pm, get_public_default_gateway
>>>    (line:
>>>    4908)
>>>     > |1297|11:34|reload| (-2) Windows.pm, set_public_default_route
>>>    (line: 7429)
>>>     > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 507)
>>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
>>>    (line: 692)
>>>     > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line:
>>> 266)
>>>
>>>     > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>>>     >
>>>     > 2010-01-23
>>>     >
>>>
>>>  00:33:43|1297|11:34|reload|DataStructure.pm:get_management_node_public_defaul
>>>     > t_gateway(1783)|returning default gateway from route command:
>>>    134.154.193.190
>>>     > 2010-01-23
>>>     >
>>>
>>>  00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4917)|return
>>>     > ing management node's default gateway address: 134.154.193.190
>>>     > 2010-01-23
>>>     >
>>>    00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing
>>> SSH
>>>     > command on vcl-winxp:
>>>     > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p
>>>    22 -x
>>>     > vcl-winxp 'route delete 0.0.0.0' 2>&1
>>>     > 2010-01-23 00:33:45|1226|vcld:main(165)|lastcheckin time updated for
>>>     > management node 1: 2010-01-23 00:33:45
>>>     > 2010-01-23 00:33:50|1226|vcld:main(165)|lastcheckin time updated for
>>>     > management node 1: 2010-01-23 00:33:50
>>>     > 2010-01-23 00:33:55|1226|vcld:main(165)|lastcheckin time updated for
>>>     > management node 1: 2010-01-23 00:33:55
>>>     > 2010-01-23 00:34:00|1226|vcld:main(165)|lastcheckin time updated for
>>>     > management node 1: 2010-01-23 00:34:00
>>>     > 2010-01-23 00:34:05|1226|vcld:main(165)|lastcheckin time updated for
>>>     > management node 1: 2010-01-23 00:34:05
>>>     > 2010-01-23 00:34:10|1226|vcld:main(165)|lastcheckin time updated for
>>>     > management node 1: 2010-01-23 00:34:10
>>>     >
>>>     >
>>>     >
>>>     >
>>>     >
>>>     >
>>>     > And the database state:
>>>     >
>>>     > mysql> select * from request;
>>>     >
>>>
>>>  +----+---------+--------+-------------+-------+------------+------+---------+
>>>     >
>>>
>>>  ---------------------+---------------------+---------------------+-----------
>>>     > ---+
>>>     > | id | stateid | userid | laststateid | logid | forimaging | test
>>>    | preload
>>>    |
>>>     > start               | end                 | daterequested       |
>>>     > datemodified |
>>>     >
>>>
>>>  +----+---------+--------+-------------+-------+------------+------+---------+
>>>     >
>>>
>>>  ---------------------+---------------------+---------------------+-----------
>>>     > ---+
>>>     > | 11 |      14 |      2 |          19 |     0 |          0 |    0
>>>    |       0
>>>    |
>>>     > 2010-01-23 00:31:59 | 2010-01-23 01:01:59 | 2010-01-23 00:31:59 |
>>>    NULL
>>>     > |
>>>     >
>>>
>>>  +----+---------+--------+-------------+-------+------------+------+---------+
>>>     >
>>>
>>>  ---------------------+---------------------+---------------------+-----------
>>>     > ---+
>>>     > 1 row in set (0.00 sec)
>>>     >
>>>     > mysql> select * from reservation;
>>>     >
>>>
>>>  +----+-----------+------------+---------+-----------------+------------------
>>>     > +----------+---------------------+------+
>>>     > | id | requestid | computerid | imageid | imagerevisionid |
>>>    managementnodeid
>>>     > | remoteIP | lastcheck           | pw   |
>>>     >
>>>
>>>  +----+-----------+------------+---------+-----------------+------------------
>>>     > +----------+---------------------+------+
>>>     > | 34 |        11 |         13 |      10 |              10 |
>>>    1
>>>     > | NULL     | 0000-00-00 00:00:00 | NULL |
>>>     >
>>>
>>>  +----+-----------+------------+---------+-----------------+------------------
>>>     > +----------+---------------------+------+
>>>     > 1 row in set (0.00 sec)
>>>     >
>>>     >
>>>     > And finally, here is the directory structure (after executing the
>>>    commands)
>>>     > of the VMWare server:
>>>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # ls -l
>>>     > drwxr-xr-x    1 root     root                420 Jan 23 08:31 golden
>>>     > drwxr-xr-x    1 root     root                420 Jan 23 08:31 inuse
>>>     > drwxr-xr-x    1 root     root               4340 Dec  3 18:30
>>>     > vcl.csueastbay.edu <http://vcl.csueastbay.edu>
>>>
>>>     > drwxr-xr-x    1 root     root               4340 Dec  3 18:08
>>>     > vcldb.csueastbay.edu <http://vcldb.csueastbay.edu>
>>>
>>>     > drwxr-xr-x    1 root     root               4340 Dec  3 18:23
>>>     > vclmgmt.csueastbay.edu <http://vclmgmt.csueastbay.edu>
>>>
>>>     > drwxr-xr-x    1 root     root               2660 Jan 23 08:22
>>>     > vmwarewinxp-base7-v0
>>>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd golden/
>>>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # ls -l
>>>     > drwxr-xr-x    1 root     root                280 Jan 23 08:31
>>>     > vmwarewinxp-base7-v0
>>>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # cd ..
>>>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd inuse/
>>>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/inuse # ls -l
>>>     > drwxr-xr-x    1 root     root                420 Jan 23 08:31
>>>    vcl-winxp
>>>     >
>>>     >
>>>     > Let me know if more output from the logs would be helpful, or any
>>>    other
>>>     > information.
>>>     >
>>>     >
>>>     > Thanks,
>>>     > Jeff Wisman
>>>     >
>>>
>>>    --
>>>    Andy Kurth
>>>    Virtual Computing Lab
>>>    Office of Information Technology
>>>    North Carolina State University
>>>    andy_kurth@ncsu.edu <ma...@ncsu.edu>
>>>    919.513.4090
>>>
>>>
>>>
>>>
>> --
>> Andy Kurth
>> Virtual Computing Lab
>> Office of Information Technology
>> North Carolina State University
>> andy_kurth@ncsu.edu
>> 919.513.4090
>>
> 

-- 
Andy Kurth
Virtual Computing Lab
Office of Information Technology
North Carolina State University
andy_kurth@ncsu.edu
919.513.4090

Re: Issues with Inserting Image Reservation Into VCL DB

Posted by Jeffrey Wisman <je...@csueastbay.edu>.
Andy,
The VM computers are all in the "available" state.  However the VM host is
also in the "available" state.  I'm guessing that could be the problem?

When I try to change the state by using "Change state of selected computers
to: vmhostinuse", it gives me the OK but it seems to stay in the "available"
state.  I'm not sure its doing anything.

Also, the management node is in the "available" state, so that's all good.
The image I'm trying to use is in "allImages" and "allVMimages" groups.
Those two groups are mapped to all computer groups except for "all vm host
computers".  Privileges should be fine as I'm using the admin user to test
and have granted all permissions to the admin user.

Let me know if you have insight on the VM host available issue.  Otherwise
we'll chat more tomorrow.  Many thanks for your help!!

Jeff



On Mon, Feb 1, 2010 at 7:38 AM, Andy Kurth <an...@ncsu.edu> wrote:

> Hi Jeff,
> This problem is somewhat difficult to troubleshoot because there are
> several possible causes.  The easy things to check:
> -Are your VM computers in the available state (Manage Computers -->
> Computer Utilities)?.  They may have been left in the failed state when you
> were having imaging trouble.  Your VM host should be in the 'vmhostinuse'
> state.
> -Make sure your management node is in the available state (Management Nodes
> --> Edit Management Node Information).  Nothing should have changed the
> state of the managment node but this is easy to forget about.
>
> If everything is available, check the image/computer groupings and mappings
> and privilege tree:
> 1. Manage Images --> Edit Image Grouping -- note the image groups the image
> is assigned to
> 2. Manage Image --> Edit Image Mapping -- determine which computer groups
> the image is mapped to by viewing the mappings for the image groups you
> located in step 1
> 3. Manage Computers --> Edit Computer Grouping -- make sure your VM
> computers are in a computer group found in step 2
> 3. View the privilege tree (Privileges).  Is there a node where the image
> group, computer group, and either the user account or a group the user
> account is in are all configured.  The user account or group needs the
> "imageCheckOut" right and the image and computer groups need to be
> "available".
>
> Some database troubleshooting is necessary if you're still having trouble.
>  It may be easiest if there's a way to take a look at your database.
>
> Regards,
> Andy
>
>
>
> Jeffrey Wisman wrote:
>
>> So I'm still having issues.  I can perform all the actions listed here
>> successfully (at least it seems so from the logs):
>> http://cwiki.apache.org/VCL/create-a-windows-base-image.html
>>
>> I'm trying to create a reservation for the first time from the GUI, and
>> having trouble.  I get the message "Selection not currently available" when
>> I try to do it, and I can't figure out why.  The groupings, mappings, and
>> permissions *seem* right, but maybe they aren't.  Attached are some screen
>> shots.  Let me know if I'm missing something obvious, or need to provide
>> more information for troubleshooting.
>>
>> Thanks,
>> Jeff
>>
>>
>>
>> On Wed, Jan 27, 2010 at 9:51 AM, Jeffrey Wisman <
>> jeff.wisman@csueastbay.edu <ma...@csueastbay.edu>> wrote:
>>
>>    I just wanted to post a follow up that the issue was with the hosts
>>    file.  I
>>    had put both the public and private IP addresses in the management
>>    server's
>>    host file.  I removed the public IP and now it works just fine.
>>
>>    I'm still having issues with the reservations, but I think its just my
>>    misunderstanding of how this is all supposed to work.  I'll be
>>    spending more
>>    time in the next few days, and post if I can't figure out the next
>>    steps on
>>    my own.
>>
>>    Thanks,
>>    Jeff
>>
>>
>>    -----Original Message-----
>>    From: Jeffrey Wisman [mailto:jeff.wisman@csueastbay.edu
>>    <ma...@csueastbay.edu>]
>>    Sent: Mon 1/25/2010 12:58 PM
>>    To: vcl-dev@incubator.apache.org
>>    <ma...@incubator.apache.org>; vcl-dev@incubator.apache.org
>>    <ma...@incubator.apache.org>
>>    Subject: RE: Issues with Inserting Image Reservation Into VCL DB
>>
>>    Thanks Andy, I'll try your suggestions tonight and report back.
>>     Your help is
>>    much appreciated!
>>
>>    Jeff
>>
>>
>>    -----Original Message-----
>>    From: Andy Kurth [mailto:andy_kurth@ncsu.edu
>>    <ma...@ncsu.edu>]
>>    Sent: Mon 1/25/2010 12:33 PM
>>    To: vcl-dev@incubator.apache.org <ma...@incubator.apache.org>
>>    Subject: Re: Issues with Inserting Image Reservation Into VCL DB
>>
>>    Hello Jeff,
>>    It appears that the image was successfully captured and it's at the
>>    point
>>    where
>>    it's trying to reload the new image.
>>
>>    Is the computer.privateIPaddress value set in the database?  If not,
>>    set this
>>
>>    for vcl-winxp in the computer table and see if the warnings go away.
>>     You can
>>
>>    also add an entry in the /etc/hosts file on the management node for the
>>    private
>>    address of vcl-winxp.  Either of these should clear up most of the
>>    warning
>>    messages you're seeing.
>>
>>    You don't have to go through the entire imaging process again to
>>    troubleshoot
>>
>>    this.  You can restart the reload process by:
>>    -Kill the existing vcld process for the reservation if it's still
>>    running.
>>    The
>>    PID to kill is displayed as the leftmost field in the log output
>>    (1297 in the
>>
>>    output you included).  Don't kill the main vcld process.
>>    -Set request.state to 'reload', request.start to NOW(), and
>>    request.end to
>>    some
>>    time in the future.  The vcld process should begin to process it again.
>>    Start
>>    'tail -f /var/log/vcld.log' before changing the request state.
>>
>>    Is it hanging indefinitely after it attempts to run the last command
>>    (route
>>    delete 0.0.0.0) included in the log output?  I haven't seen this
>> problem
>>    before
>>    if it is indeed hanging.  The 'route delete' command may be breaking
>>    networking
>>    on the computer and tripping up the SSH command.  I would try
>>    running the SSH
>>
>>    command manually with the -v option to try to figure out what's
>>    happening:
>>    ssh -v -i /etc/vcl/vcl.key  -l root -p 22 -x vcl-winxp 'route delete
>>    0.0.0.0'
>>
>>    If this command hangs, try adding the ServerAliveInterval SSH option:
>>    ssh -v -o ServerAliveInterval=15 -i /etc/vcl/vcl.key -l root -p 22 -x
>>    vcl-winxp
>>    'route delete 0.0.0.0'
>>
>>    Give this command at least 20 seconds before killing it if it hangs.
>>     If this
>>
>>    prevents it from hanging, try manually running the next command VCL
>>    would
>>    have
>>    performed:
>>    ssh -i /etc/vcl/vcl.key -l root -p 22 -x vcl-winxp 'route -p ADD
>>    0.0.0.0 MASK
>>
>>    0.0.0.0 134.154.193.190 METRIC 1'
>>
>>    The output of these commands may be helpful in troubleshooting.
>>
>>    Regards,
>>    Andy Kurth / NCSU VCL
>>
>>
>>    Jeffrey Wisman wrote:
>>     > Hi all - Just joined this list.  I've been working on a pilot VCL
>>    install
>>    at
>>     > CSU East Bay, and am hung up on what seems like nearly the last
>>    step.  I'm
>>     > following instructions at the bottom of this page:
>>     >
>>
>> http://cwiki.apache.org/confluence/display/VCL/Create+a+Windows+Base+Image
>>     >
>>     > I'm attempting to insert the image reservation into the VCL DB,
>>    and it only
>>     > gets as far as this network/route issue.  Is this a DHCP problem?
>>     A hosts
>>     > file issue?  Something else?  Please let me know if anyone has
>>    seen this
>>     > before, or can help troubleshoot.  Here is the last part of the
>>    output from
>>     > tail -f /var/log/vcld.log
>>     >
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4197)|SSH
>>     > will not be disabled on public interface because public interface
>>    name
>>    could
>>     > not be determined
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private
>>    (line:
>>    4197)
>>     > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
>>     > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
>>    (line: 692)
>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line:
>> 266)
>>
>>     > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>>     > |1297|11:34|reload| (-6) vcld, main (line: 341)
>>     >
>>     > 2010-01-23
>>     >
>>
>>  00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>>     > configuration has already been retrieved
>>     > 2010-01-23
>>     >
>>
>>  00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 442)|attempting to retrieve private IP address for computer:
>>    vcl-winxp
>>     > 2010-01-23
>>     >
>>
>>  00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 446)|retrieved contents of /etc/hosts on this management node,
>>    contains 6
>>     > lines
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) DataStructure.pm,
>>    get_computer_private_ip_address
>>     > (line: 1466)
>>     > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
>>    (line: 4642)
>>     > |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name
>>    (line:
>>    4761)
>>     > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ssh_private
>>    (line:
>>    4202)
>>     > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 485)
>>     > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
>>
>>    (line: 692)
>>     >
>>     > 2010-01-23
>>     >
>>
>>  00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>>     > to retrieve computer private IP address from reservation data
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:30|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|unable
>>     > to retrieve network configuration
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name
>>    (line:
>>    4763)
>>     > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ssh_private
>>    (line:
>>    4202)
>>     > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 485)
>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
>>    (line: 692)
>>     > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line:
>> 266)
>>
>>     > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>>     >
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4220)|priva
>>     > te interface name could not be determined, SSH will be enabled
>>    for all
>>     > profiles
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private
>>    (line:
>>    4220)
>>     > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
>>     > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
>>    (line: 692)
>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line:
>> 266)
>>
>>     > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>>     > |1297|11:34|reload| (-6) vcld, main (line: 341)
>>     >
>>     > 2010-01-23
>>     >
>>    00:33:30|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing
>> SSH
>>     > command on vcl-winxp:
>>     > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p
>>    22 -x
>>     > vcl-winxp 'netsh.exe firewall set portopening name = "Cygwin
>>    SSHD" protocol
>>    =
>>     > TCP port = 22 profile = ALL' 2>&1
>>     > 2010-01-23 00:33:35|1226|vcld:main(165)|lastcheckin time updated for
>>     > management node 1: 2010-01-23 00:33:35
>>     > 2010-01-23
>>     >
>>    00:33:37|1297|11:34|reload|utils.pm:
>> run_ssh_command(6250)|run_ssh_command
>>     > output:
>>     > |1297|11:34|reload| Ok.
>>     > 2010-01-23
>>    00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6264)|SSH
>>     > command executed on vcl-winxp, returning (0, "Ok.")
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4232)|confi
>>     > gured firewall to allow SSH on private interface
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>>     > configuration has already been retrieved
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 442)|attempting to retrieve private IP address for computer:
>>    vcl-winxp
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 446)|retrieved contents of /etc/hosts on this management node,
>>    contains 6
>>     > lines
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) DataStructure.pm,
>>    get_computer_private_ip_address
>>     > (line: 1466)
>>     > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
>>    (line: 4642)
>>     > |1297|11:34|reload| (-3) Windows.pm, get_public_interface_name
>>    (line: 4791)
>>     > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private
>>    (line:
>>     > 3935)
>>     > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
>>     > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
>>
>>    (line: 692)
>>     >
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>>     > to retrieve computer private IP address from reservation data
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:get_public_interface_name(4793)|unable
>>     > to retrieve network configuration
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) Windows.pm, get_public_interface_name
>>    (line: 4793)
>>     > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private
>>    (line:
>>     > 3935)
>>     > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
>>    (line: 692)
>>     > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line:
>> 266)
>>
>>     > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>>     >
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3946)|ping
>>     > will not be disabled on public interface because public interface
>>    name
>>    could
>>     > not be determined
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private
>>    (line:
>>     > 3946)
>>     > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
>>     > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
>>    (line: 692)
>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line:
>> 266)
>>
>>     > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>>     > |1297|11:34|reload| (-6) vcld, main (line: 341)
>>     >
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>>     > configuration has already been retrieved
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 442)|attempting to retrieve private IP address for computer:
>>    vcl-winxp
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 446)|retrieved contents of /etc/hosts on this management node,
>>    contains 6
>>     > lines
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) DataStructure.pm,
>>    get_computer_private_ip_address
>>     > (line: 1466)
>>     > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
>>    (line: 4642)
>>     > |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name
>>    (line:
>>    4761)
>>     > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private
>>    (line:
>>     > 3951)
>>     > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
>>     > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
>>
>>    (line: 692)
>>     >
>>     > 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>>     > to retrieve computer private IP address from reservation data
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|unable
>>     > to retrieve network configuration
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name
>>    (line:
>>    4763)
>>     > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private
>>    (line:
>>     > 3951)
>>     > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
>>    (line: 692)
>>     > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line:
>> 266)
>>
>>     > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>>     >
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3967)|priv
>>     > ate interface name could not be determined, ping will be enabled
>>    for all
>>     > profiles
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private
>>    (line:
>>     > 3967)
>>     > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
>>     > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
>>    (line: 692)
>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line:
>> 266)
>>
>>     > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>>     > |1297|11:34|reload| (-6) vcld, main (line: 341)
>>     >
>>     > 2010-01-23
>>     >
>>    00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing
>> SSH
>>     > command on vcl-winxp:
>>     > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p
>>    22 -x
>>     > vcl-winxp 'netsh.exe firewall set icmpsetting type = 8 mode = ENABLE
>>    profile
>>     > = ALL ;' 2>&1
>>     > 2010-01-23 00:33:40|1226|vcld:main(165)|lastcheckin time updated for
>>     > management node 1: 2010-01-23 00:33:40
>>     > 2010-01-23
>>     >
>>    00:33:43|1297|11:34|reload|utils.pm:
>> run_ssh_command(6250)|run_ssh_command
>>     > output:
>>     > |1297|11:34|reload| Ok.
>>     > 2010-01-23
>>    00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6264)|SSH
>>     > command executed on vcl-winxp, returning (0, "Ok.")
>>     > 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3979)|conf
>>     > igured firewall to allow ping on private interface
>>     > 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4890)|IP
>>     > configuration mode in use: dynamicDHCP
>>     > 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>>     > configuration has already been retrieved
>>     > 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 442)|attempting to retrieve private IP address for computer:
>>    vcl-winxp
>>     > 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 446)|retrieved contents of /etc/hosts on this management node,
>>    contains 6
>>     > lines
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>>     > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) DataStructure.pm,
>>    get_computer_private_ip_address
>>     > (line: 1466)
>>     > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
>>    (line: 4642)
>>     > |1297|11:34|reload| (-3) Windows.pm, get_public_default_gateway
>>    (line:
>>    4894)
>>     > |1297|11:34|reload| (-4) Windows.pm, set_public_default_route
>>    (line: 7429)
>>     > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 507)
>>     > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
>>
>>    (line: 692)
>>     >
>>     > 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>>     > to retrieve computer private IP address from reservation data
>>     >
>>     > |1297|11:34|reload| ---- WARNING ----
>>     > |1297|11:34|reload| 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4908)|unable
>>     > to retrieve public network configuration currently in use on
>>    vcl-winxp
>>     > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>>
>>    (line: 728)
>>     > |1297|11:34|reload| (-1) Windows.pm, get_public_default_gateway
>>    (line:
>>    4908)
>>     > |1297|11:34|reload| (-2) Windows.pm, set_public_default_route
>>    (line: 7429)
>>     > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 507)
>>     > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
>>    (line: 692)
>>     > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line:
>> 266)
>>
>>     > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>>     >
>>     > 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|DataStructure.pm:get_management_node_public_defaul
>>     > t_gateway(1783)|returning default gateway from route command:
>>    134.154.193.190
>>     > 2010-01-23
>>     >
>>
>>  00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4917)|return
>>     > ing management node's default gateway address: 134.154.193.190
>>     > 2010-01-23
>>     >
>>    00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing
>> SSH
>>     > command on vcl-winxp:
>>     > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p
>>    22 -x
>>     > vcl-winxp 'route delete 0.0.0.0' 2>&1
>>     > 2010-01-23 00:33:45|1226|vcld:main(165)|lastcheckin time updated for
>>     > management node 1: 2010-01-23 00:33:45
>>     > 2010-01-23 00:33:50|1226|vcld:main(165)|lastcheckin time updated for
>>     > management node 1: 2010-01-23 00:33:50
>>     > 2010-01-23 00:33:55|1226|vcld:main(165)|lastcheckin time updated for
>>     > management node 1: 2010-01-23 00:33:55
>>     > 2010-01-23 00:34:00|1226|vcld:main(165)|lastcheckin time updated for
>>     > management node 1: 2010-01-23 00:34:00
>>     > 2010-01-23 00:34:05|1226|vcld:main(165)|lastcheckin time updated for
>>     > management node 1: 2010-01-23 00:34:05
>>     > 2010-01-23 00:34:10|1226|vcld:main(165)|lastcheckin time updated for
>>     > management node 1: 2010-01-23 00:34:10
>>     >
>>     >
>>     >
>>     >
>>     >
>>     >
>>     > And the database state:
>>     >
>>     > mysql> select * from request;
>>     >
>>
>>  +----+---------+--------+-------------+-------+------------+------+---------+
>>     >
>>
>>  ---------------------+---------------------+---------------------+-----------
>>     > ---+
>>     > | id | stateid | userid | laststateid | logid | forimaging | test
>>    | preload
>>    |
>>     > start               | end                 | daterequested       |
>>     > datemodified |
>>     >
>>
>>  +----+---------+--------+-------------+-------+------------+------+---------+
>>     >
>>
>>  ---------------------+---------------------+---------------------+-----------
>>     > ---+
>>     > | 11 |      14 |      2 |          19 |     0 |          0 |    0
>>    |       0
>>    |
>>     > 2010-01-23 00:31:59 | 2010-01-23 01:01:59 | 2010-01-23 00:31:59 |
>>    NULL
>>     > |
>>     >
>>
>>  +----+---------+--------+-------------+-------+------------+------+---------+
>>     >
>>
>>  ---------------------+---------------------+---------------------+-----------
>>     > ---+
>>     > 1 row in set (0.00 sec)
>>     >
>>     > mysql> select * from reservation;
>>     >
>>
>>  +----+-----------+------------+---------+-----------------+------------------
>>     > +----------+---------------------+------+
>>     > | id | requestid | computerid | imageid | imagerevisionid |
>>    managementnodeid
>>     > | remoteIP | lastcheck           | pw   |
>>     >
>>
>>  +----+-----------+------------+---------+-----------------+------------------
>>     > +----------+---------------------+------+
>>     > | 34 |        11 |         13 |      10 |              10 |
>>    1
>>     > | NULL     | 0000-00-00 00:00:00 | NULL |
>>     >
>>
>>  +----+-----------+------------+---------+-----------------+------------------
>>     > +----------+---------------------+------+
>>     > 1 row in set (0.00 sec)
>>     >
>>     >
>>     > And finally, here is the directory structure (after executing the
>>    commands)
>>     > of the VMWare server:
>>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # ls -l
>>     > drwxr-xr-x    1 root     root                420 Jan 23 08:31 golden
>>     > drwxr-xr-x    1 root     root                420 Jan 23 08:31 inuse
>>     > drwxr-xr-x    1 root     root               4340 Dec  3 18:30
>>     > vcl.csueastbay.edu <http://vcl.csueastbay.edu>
>>
>>     > drwxr-xr-x    1 root     root               4340 Dec  3 18:08
>>     > vcldb.csueastbay.edu <http://vcldb.csueastbay.edu>
>>
>>     > drwxr-xr-x    1 root     root               4340 Dec  3 18:23
>>     > vclmgmt.csueastbay.edu <http://vclmgmt.csueastbay.edu>
>>
>>     > drwxr-xr-x    1 root     root               2660 Jan 23 08:22
>>     > vmwarewinxp-base7-v0
>>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd golden/
>>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # ls -l
>>     > drwxr-xr-x    1 root     root                280 Jan 23 08:31
>>     > vmwarewinxp-base7-v0
>>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # cd ..
>>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd inuse/
>>     > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/inuse # ls -l
>>     > drwxr-xr-x    1 root     root                420 Jan 23 08:31
>>    vcl-winxp
>>     >
>>     >
>>     > Let me know if more output from the logs would be helpful, or any
>>    other
>>     > information.
>>     >
>>     >
>>     > Thanks,
>>     > Jeff Wisman
>>     >
>>
>>    --
>>    Andy Kurth
>>    Virtual Computing Lab
>>    Office of Information Technology
>>    North Carolina State University
>>    andy_kurth@ncsu.edu <ma...@ncsu.edu>
>>    919.513.4090
>>
>>
>>
>>
> --
> Andy Kurth
> Virtual Computing Lab
> Office of Information Technology
> North Carolina State University
> andy_kurth@ncsu.edu
> 919.513.4090
>

Re: Issues with Inserting Image Reservation Into VCL DB

Posted by Andy Kurth <an...@ncsu.edu>.
Hi Jeff,
This problem is somewhat difficult to troubleshoot because there are several 
possible causes.  The easy things to check:
-Are your VM computers in the available state (Manage Computers --> Computer 
Utilities)?.  They may have been left in the failed state when you were having 
imaging trouble.  Your VM host should be in the 'vmhostinuse' state.
-Make sure your management node is in the available state (Management Nodes --> 
Edit Management Node Information).  Nothing should have changed the state of the 
managment node but this is easy to forget about.

If everything is available, check the image/computer groupings and mappings and 
privilege tree:
1. Manage Images --> Edit Image Grouping -- note the image groups the image is 
assigned to
2. Manage Image --> Edit Image Mapping -- determine which computer groups the 
image is mapped to by viewing the mappings for the image groups you located in 
step 1
3. Manage Computers --> Edit Computer Grouping -- make sure your VM computers 
are in a computer group found in step 2
3. View the privilege tree (Privileges).  Is there a node where the image group, 
computer group, and either the user account or a group the user account is in 
are all configured.  The user account or group needs the "imageCheckOut" right 
and the image and computer groups need to be "available".

Some database troubleshooting is necessary if you're still having trouble.  It 
may be easiest if there's a way to take a look at your database.

Regards,
Andy



Jeffrey Wisman wrote:
> So I'm still having issues.  I can perform all the actions listed here 
> successfully (at least it seems so from the logs):
> http://cwiki.apache.org/VCL/create-a-windows-base-image.html
> 
> I'm trying to create a reservation for the first time from the GUI, and 
> having trouble.  I get the message "Selection not currently available" 
> when I try to do it, and I can't figure out why.  The groupings, 
> mappings, and permissions *seem* right, but maybe they aren't.  Attached 
> are some screen shots.  Let me know if I'm missing something obvious, or 
> need to provide more information for troubleshooting.
> 
> Thanks,
> Jeff
> 
> 
> 
> On Wed, Jan 27, 2010 at 9:51 AM, Jeffrey Wisman 
> <jeff.wisman@csueastbay.edu <ma...@csueastbay.edu>> wrote:
> 
>     I just wanted to post a follow up that the issue was with the hosts
>     file.  I
>     had put both the public and private IP addresses in the management
>     server's
>     host file.  I removed the public IP and now it works just fine.
> 
>     I'm still having issues with the reservations, but I think its just my
>     misunderstanding of how this is all supposed to work.  I'll be
>     spending more
>     time in the next few days, and post if I can't figure out the next
>     steps on
>     my own.
> 
>     Thanks,
>     Jeff
> 
> 
>     -----Original Message-----
>     From: Jeffrey Wisman [mailto:jeff.wisman@csueastbay.edu
>     <ma...@csueastbay.edu>]
>     Sent: Mon 1/25/2010 12:58 PM
>     To: vcl-dev@incubator.apache.org
>     <ma...@incubator.apache.org>; vcl-dev@incubator.apache.org
>     <ma...@incubator.apache.org>
>     Subject: RE: Issues with Inserting Image Reservation Into VCL DB
> 
>     Thanks Andy, I'll try your suggestions tonight and report back.
>      Your help is
>     much appreciated!
> 
>     Jeff
> 
> 
>     -----Original Message-----
>     From: Andy Kurth [mailto:andy_kurth@ncsu.edu
>     <ma...@ncsu.edu>]
>     Sent: Mon 1/25/2010 12:33 PM
>     To: vcl-dev@incubator.apache.org <ma...@incubator.apache.org>
>     Subject: Re: Issues with Inserting Image Reservation Into VCL DB
> 
>     Hello Jeff,
>     It appears that the image was successfully captured and it's at the
>     point
>     where
>     it's trying to reload the new image.
> 
>     Is the computer.privateIPaddress value set in the database?  If not,
>     set this
> 
>     for vcl-winxp in the computer table and see if the warnings go away.
>      You can
> 
>     also add an entry in the /etc/hosts file on the management node for the
>     private
>     address of vcl-winxp.  Either of these should clear up most of the
>     warning
>     messages you're seeing.
> 
>     You don't have to go through the entire imaging process again to
>     troubleshoot
> 
>     this.  You can restart the reload process by:
>     -Kill the existing vcld process for the reservation if it's still
>     running.
>     The
>     PID to kill is displayed as the leftmost field in the log output
>     (1297 in the
> 
>     output you included).  Don't kill the main vcld process.
>     -Set request.state to 'reload', request.start to NOW(), and
>     request.end to
>     some
>     time in the future.  The vcld process should begin to process it again.
>     Start
>     'tail -f /var/log/vcld.log' before changing the request state.
> 
>     Is it hanging indefinitely after it attempts to run the last command
>     (route
>     delete 0.0.0.0) included in the log output?  I haven't seen this problem
>     before
>     if it is indeed hanging.  The 'route delete' command may be breaking
>     networking
>     on the computer and tripping up the SSH command.  I would try
>     running the SSH
> 
>     command manually with the -v option to try to figure out what's
>     happening:
>     ssh -v -i /etc/vcl/vcl.key  -l root -p 22 -x vcl-winxp 'route delete
>     0.0.0.0'
> 
>     If this command hangs, try adding the ServerAliveInterval SSH option:
>     ssh -v -o ServerAliveInterval=15 -i /etc/vcl/vcl.key -l root -p 22 -x
>     vcl-winxp
>     'route delete 0.0.0.0'
> 
>     Give this command at least 20 seconds before killing it if it hangs.
>      If this
> 
>     prevents it from hanging, try manually running the next command VCL
>     would
>     have
>     performed:
>     ssh -i /etc/vcl/vcl.key -l root -p 22 -x vcl-winxp 'route -p ADD
>     0.0.0.0 MASK
> 
>     0.0.0.0 134.154.193.190 METRIC 1'
> 
>     The output of these commands may be helpful in troubleshooting.
> 
>     Regards,
>     Andy Kurth / NCSU VCL
> 
> 
>     Jeffrey Wisman wrote:
>      > Hi all - Just joined this list.  I've been working on a pilot VCL
>     install
>     at
>      > CSU East Bay, and am hung up on what seems like nearly the last
>     step.  I'm
>      > following instructions at the bottom of this page:
>      >
>     http://cwiki.apache.org/confluence/display/VCL/Create+a+Windows+Base+Image
>      >
>      > I'm attempting to insert the image reservation into the VCL DB,
>     and it only
>      > gets as far as this network/route issue.  Is this a DHCP problem?
>      A hosts
>      > file issue?  Something else?  Please let me know if anyone has
>     seen this
>      > before, or can help troubleshoot.  Here is the last part of the
>     output from
>      > tail -f /var/log/vcld.log
>      >
>      >
>      > |1297|11:34|reload| ---- WARNING ----
>      > |1297|11:34|reload| 2010-01-23
>      >
>     00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4197)|SSH
>      > will not be disabled on public interface because public interface
>     name
>     could
>      > not be determined
>      > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>     (line: 728)
>      > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private
>     (line:
>     4197)
>      > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
>      > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
>     (line: 692)
>      > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line: 266)
>      > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>      > |1297|11:34|reload| (-6) vcld, main (line: 341)
>      >
>      > 2010-01-23
>      >
>     00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>      > configuration has already been retrieved
>      > 2010-01-23
>      >
>     00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>      > 442)|attempting to retrieve private IP address for computer:
>     vcl-winxp
>      > 2010-01-23
>      >
>     00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>      > 446)|retrieved contents of /etc/hosts on this management node,
>     contains 6
>      > lines
>      >
>      > |1297|11:34|reload| ---- WARNING ----
>      > |1297|11:34|reload| 2010-01-23
>      >
>     00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>      > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>      > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>     (line: 728)
>      > |1297|11:34|reload| (-1) DataStructure.pm,
>     get_computer_private_ip_address
>      > (line: 1466)
>      > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
>     (line: 4642)
>      > |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name
>     (line:
>     4761)
>      > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ssh_private
>     (line:
>     4202)
>      > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 485)
>      > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
>     (line: 692)
>      >
>      > 2010-01-23
>      >
>     00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>      > to retrieve computer private IP address from reservation data
>      >
>      > |1297|11:34|reload| ---- WARNING ----
>      > |1297|11:34|reload| 2010-01-23
>      >
>     00:33:30|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|unable
>      > to retrieve network configuration
>      > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>     (line: 728)
>      > |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name
>     (line:
>     4763)
>      > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ssh_private
>     (line:
>     4202)
>      > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 485)
>      > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
>     (line: 692)
>      > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line: 266)
>      > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>      >
>      >
>      > |1297|11:34|reload| ---- WARNING ----
>      > |1297|11:34|reload| 2010-01-23
>      >
>     00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4220)|priva
>      > te interface name could not be determined, SSH will be enabled
>     for all
>      > profiles
>      > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>     (line: 728)
>      > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private
>     (line:
>     4220)
>      > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
>      > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
>     (line: 692)
>      > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line: 266)
>      > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>      > |1297|11:34|reload| (-6) vcld, main (line: 341)
>      >
>      > 2010-01-23
>      >
>     00:33:30|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing SSH
>      > command on vcl-winxp:
>      > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p
>     22 -x
>      > vcl-winxp 'netsh.exe firewall set portopening name = "Cygwin
>     SSHD" protocol
>     =
>      > TCP port = 22 profile = ALL' 2>&1
>      > 2010-01-23 00:33:35|1226|vcld:main(165)|lastcheckin time updated for
>      > management node 1: 2010-01-23 00:33:35
>      > 2010-01-23
>      >
>     00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6250)|run_ssh_command
>      > output:
>      > |1297|11:34|reload| Ok.
>      > 2010-01-23
>     00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6264)|SSH
>      > command executed on vcl-winxp, returning (0, "Ok.")
>      > 2010-01-23
>      >
>     00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4232)|confi
>      > gured firewall to allow SSH on private interface
>      > 2010-01-23
>      >
>     00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>      > configuration has already been retrieved
>      > 2010-01-23
>      >
>     00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>      > 442)|attempting to retrieve private IP address for computer:
>     vcl-winxp
>      > 2010-01-23
>      >
>     00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>      > 446)|retrieved contents of /etc/hosts on this management node,
>     contains 6
>      > lines
>      >
>      > |1297|11:34|reload| ---- WARNING ----
>      > |1297|11:34|reload| 2010-01-23
>      >
>     00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>      > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>      > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>     (line: 728)
>      > |1297|11:34|reload| (-1) DataStructure.pm,
>     get_computer_private_ip_address
>      > (line: 1466)
>      > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
>     (line: 4642)
>      > |1297|11:34|reload| (-3) Windows.pm, get_public_interface_name
>     (line: 4791)
>      > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private
>     (line:
>      > 3935)
>      > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
>      > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
>     (line: 692)
>      >
>      > 2010-01-23
>      >
>     00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>      > to retrieve computer private IP address from reservation data
>      >
>      > |1297|11:34|reload| ---- WARNING ----
>      > |1297|11:34|reload| 2010-01-23
>      >
>     00:33:37|1297|11:34|reload|Windows.pm:get_public_interface_name(4793)|unable
>      > to retrieve network configuration
>      > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>     (line: 728)
>      > |1297|11:34|reload| (-1) Windows.pm, get_public_interface_name
>     (line: 4793)
>      > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private
>     (line:
>      > 3935)
>      > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
>      > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
>     (line: 692)
>      > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line: 266)
>      > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>      >
>      >
>      > |1297|11:34|reload| ---- WARNING ----
>      > |1297|11:34|reload| 2010-01-23
>      >
>     00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3946)|ping
>      > will not be disabled on public interface because public interface
>     name
>     could
>      > not be determined
>      > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>     (line: 728)
>      > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private
>     (line:
>      > 3946)
>      > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
>      > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
>     (line: 692)
>      > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line: 266)
>      > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>      > |1297|11:34|reload| (-6) vcld, main (line: 341)
>      >
>      > 2010-01-23
>      >
>     00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>      > configuration has already been retrieved
>      > 2010-01-23
>      >
>     00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>      > 442)|attempting to retrieve private IP address for computer:
>     vcl-winxp
>      > 2010-01-23
>      >
>     00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>      > 446)|retrieved contents of /etc/hosts on this management node,
>     contains 6
>      > lines
>      >
>      > |1297|11:34|reload| ---- WARNING ----
>      > |1297|11:34|reload| 2010-01-23
>      >
>     00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>      > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>      > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>     (line: 728)
>      > |1297|11:34|reload| (-1) DataStructure.pm,
>     get_computer_private_ip_address
>      > (line: 1466)
>      > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
>     (line: 4642)
>      > |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name
>     (line:
>     4761)
>      > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private
>     (line:
>      > 3951)
>      > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
>      > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
>     (line: 692)
>      >
>      > 2010-01-23
>      >
>     00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>      > to retrieve computer private IP address from reservation data
>      >
>      > |1297|11:34|reload| ---- WARNING ----
>      > |1297|11:34|reload| 2010-01-23
>      >
>     00:33:37|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|unable
>      > to retrieve network configuration
>      > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>     (line: 728)
>      > |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name
>     (line:
>     4763)
>      > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private
>     (line:
>      > 3951)
>      > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
>      > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
>     (line: 692)
>      > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line: 266)
>      > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>      >
>      >
>      > |1297|11:34|reload| ---- WARNING ----
>      > |1297|11:34|reload| 2010-01-23
>      >
>     00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3967)|priv
>      > ate interface name could not be determined, ping will be enabled
>     for all
>      > profiles
>      > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>     (line: 728)
>      > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private
>     (line:
>      > 3967)
>      > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
>      > |1297|11:34|reload| (-3) new.pm <http://new.pm>, reload_image
>     (line: 692)
>      > |1297|11:34|reload| (-4) new.pm <http://new.pm>, process (line: 266)
>      > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
>      > |1297|11:34|reload| (-6) vcld, main (line: 341)
>      >
>      > 2010-01-23
>      >
>     00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing SSH
>      > command on vcl-winxp:
>      > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p
>     22 -x
>      > vcl-winxp 'netsh.exe firewall set icmpsetting type = 8 mode = ENABLE
>     profile
>      > = ALL ;' 2>&1
>      > 2010-01-23 00:33:40|1226|vcld:main(165)|lastcheckin time updated for
>      > management node 1: 2010-01-23 00:33:40
>      > 2010-01-23
>      >
>     00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6250)|run_ssh_command
>      > output:
>      > |1297|11:34|reload| Ok.
>      > 2010-01-23
>     00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6264)|SSH
>      > command executed on vcl-winxp, returning (0, "Ok.")
>      > 2010-01-23
>      >
>     00:33:43|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3979)|conf
>      > igured firewall to allow ping on private interface
>      > 2010-01-23
>      >
>     00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4890)|IP
>      > configuration mode in use: dynamicDHCP
>      > 2010-01-23
>      >
>     00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
>      > configuration has already been retrieved
>      > 2010-01-23
>      >
>     00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>      > 442)|attempting to retrieve private IP address for computer:
>     vcl-winxp
>      > 2010-01-23
>      >
>     00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>      > 446)|retrieved contents of /etc/hosts on this management node,
>     contains 6
>      > lines
>      >
>      > |1297|11:34|reload| ---- WARNING ----
>      > |1297|11:34|reload| 2010-01-23
>      >
>     00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
>      > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
>      > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>     (line: 728)
>      > |1297|11:34|reload| (-1) DataStructure.pm,
>     get_computer_private_ip_address
>      > (line: 1466)
>      > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration
>     (line: 4642)
>      > |1297|11:34|reload| (-3) Windows.pm, get_public_default_gateway
>     (line:
>     4894)
>      > |1297|11:34|reload| (-4) Windows.pm, set_public_default_route
>     (line: 7429)
>      > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 507)
>      > |1297|11:34|reload| (-6) new.pm <http://new.pm>, reload_image
>     (line: 692)
>      >
>      > 2010-01-23
>      >
>     00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
>      > to retrieve computer private IP address from reservation data
>      >
>      > |1297|11:34|reload| ---- WARNING ----
>      > |1297|11:34|reload| 2010-01-23
>      >
>     00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4908)|unable
>      > to retrieve public network configuration currently in use on
>     vcl-winxp
>      > |1297|11:34|reload| ( 0) utils.pm <http://utils.pm>, notify
>     (line: 728)
>      > |1297|11:34|reload| (-1) Windows.pm, get_public_default_gateway
>     (line:
>     4908)
>      > |1297|11:34|reload| (-2) Windows.pm, set_public_default_route
>     (line: 7429)
>      > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 507)
>      > |1297|11:34|reload| (-4) new.pm <http://new.pm>, reload_image
>     (line: 692)
>      > |1297|11:34|reload| (-5) new.pm <http://new.pm>, process (line: 266)
>      > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
>      >
>      > 2010-01-23
>      >
>     00:33:43|1297|11:34|reload|DataStructure.pm:get_management_node_public_defaul
>      > t_gateway(1783)|returning default gateway from route command:
>     134.154.193.190
>      > 2010-01-23
>      >
>     00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4917)|return
>      > ing management node's default gateway address: 134.154.193.190
>      > 2010-01-23
>      >
>     00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing SSH
>      > command on vcl-winxp:
>      > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p
>     22 -x
>      > vcl-winxp 'route delete 0.0.0.0' 2>&1
>      > 2010-01-23 00:33:45|1226|vcld:main(165)|lastcheckin time updated for
>      > management node 1: 2010-01-23 00:33:45
>      > 2010-01-23 00:33:50|1226|vcld:main(165)|lastcheckin time updated for
>      > management node 1: 2010-01-23 00:33:50
>      > 2010-01-23 00:33:55|1226|vcld:main(165)|lastcheckin time updated for
>      > management node 1: 2010-01-23 00:33:55
>      > 2010-01-23 00:34:00|1226|vcld:main(165)|lastcheckin time updated for
>      > management node 1: 2010-01-23 00:34:00
>      > 2010-01-23 00:34:05|1226|vcld:main(165)|lastcheckin time updated for
>      > management node 1: 2010-01-23 00:34:05
>      > 2010-01-23 00:34:10|1226|vcld:main(165)|lastcheckin time updated for
>      > management node 1: 2010-01-23 00:34:10
>      >
>      >
>      >
>      >
>      >
>      >
>      > And the database state:
>      >
>      > mysql> select * from request;
>      >
>     +----+---------+--------+-------------+-------+------------+------+---------+
>      >
>     ---------------------+---------------------+---------------------+-----------
>      > ---+
>      > | id | stateid | userid | laststateid | logid | forimaging | test
>     | preload
>     |
>      > start               | end                 | daterequested       |
>      > datemodified |
>      >
>     +----+---------+--------+-------------+-------+------------+------+---------+
>      >
>     ---------------------+---------------------+---------------------+-----------
>      > ---+
>      > | 11 |      14 |      2 |          19 |     0 |          0 |    0
>     |       0
>     |
>      > 2010-01-23 00:31:59 | 2010-01-23 01:01:59 | 2010-01-23 00:31:59 |
>     NULL
>      > |
>      >
>     +----+---------+--------+-------------+-------+------------+------+---------+
>      >
>     ---------------------+---------------------+---------------------+-----------
>      > ---+
>      > 1 row in set (0.00 sec)
>      >
>      > mysql> select * from reservation;
>      >
>     +----+-----------+------------+---------+-----------------+------------------
>      > +----------+---------------------+------+
>      > | id | requestid | computerid | imageid | imagerevisionid |
>     managementnodeid
>      > | remoteIP | lastcheck           | pw   |
>      >
>     +----+-----------+------------+---------+-----------------+------------------
>      > +----------+---------------------+------+
>      > | 34 |        11 |         13 |      10 |              10 |
>     1
>      > | NULL     | 0000-00-00 00:00:00 | NULL |
>      >
>     +----+-----------+------------+---------+-----------------+------------------
>      > +----------+---------------------+------+
>      > 1 row in set (0.00 sec)
>      >
>      >
>      > And finally, here is the directory structure (after executing the
>     commands)
>      > of the VMWare server:
>      > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # ls -l
>      > drwxr-xr-x    1 root     root                420 Jan 23 08:31 golden
>      > drwxr-xr-x    1 root     root                420 Jan 23 08:31 inuse
>      > drwxr-xr-x    1 root     root               4340 Dec  3 18:30
>      > vcl.csueastbay.edu <http://vcl.csueastbay.edu>
>      > drwxr-xr-x    1 root     root               4340 Dec  3 18:08
>      > vcldb.csueastbay.edu <http://vcldb.csueastbay.edu>
>      > drwxr-xr-x    1 root     root               4340 Dec  3 18:23
>      > vclmgmt.csueastbay.edu <http://vclmgmt.csueastbay.edu>
>      > drwxr-xr-x    1 root     root               2660 Jan 23 08:22
>      > vmwarewinxp-base7-v0
>      > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd golden/
>      > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # ls -l
>      > drwxr-xr-x    1 root     root                280 Jan 23 08:31
>      > vmwarewinxp-base7-v0
>      > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # cd ..
>      > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd inuse/
>      > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/inuse # ls -l
>      > drwxr-xr-x    1 root     root                420 Jan 23 08:31
>     vcl-winxp
>      >
>      >
>      > Let me know if more output from the logs would be helpful, or any
>     other
>      > information.
>      >
>      >
>      > Thanks,
>      > Jeff Wisman
>      >
> 
>     --
>     Andy Kurth
>     Virtual Computing Lab
>     Office of Information Technology
>     North Carolina State University
>     andy_kurth@ncsu.edu <ma...@ncsu.edu>
>     919.513.4090
> 
> 
> 

-- 
Andy Kurth
Virtual Computing Lab
Office of Information Technology
North Carolina State University
andy_kurth@ncsu.edu
919.513.4090

Re: Issues with Inserting Image Reservation Into VCL DB

Posted by Jeffrey Wisman <je...@csueastbay.edu>.
So I'm still having issues.  I can perform all the actions listed here
successfully (at least it seems so from the logs):
http://cwiki.apache.org/VCL/create-a-windows-base-image.html

I'm trying to create a reservation for the first time from the GUI, and
having trouble.  I get the message "Selection not currently available" when
I try to do it, and I can't figure out why.  The groupings, mappings, and
permissions *seem* right, but maybe they aren't.  Attached are some screen
shots.  Let me know if I'm missing something obvious, or need to provide
more information for troubleshooting.

Thanks,
Jeff



On Wed, Jan 27, 2010 at 9:51 AM, Jeffrey Wisman
<je...@csueastbay.edu>wrote:

> I just wanted to post a follow up that the issue was with the hosts file.
>  I
> had put both the public and private IP addresses in the management server's
> host file.  I removed the public IP and now it works just fine.
>
> I'm still having issues with the reservations, but I think its just my
> misunderstanding of how this is all supposed to work.  I'll be spending
> more
> time in the next few days, and post if I can't figure out the next steps on
> my own.
>
> Thanks,
> Jeff
>
>
> -----Original Message-----
> From: Jeffrey Wisman [mailto:jeff.wisman@csueastbay.edu]
> Sent: Mon 1/25/2010 12:58 PM
> To: vcl-dev@incubator.apache.org; vcl-dev@incubator.apache.org
> Subject: RE: Issues with Inserting Image Reservation Into VCL DB
>
> Thanks Andy, I'll try your suggestions tonight and report back.  Your help
> is
> much appreciated!
>
> Jeff
>
>
> -----Original Message-----
> From: Andy Kurth [mailto:andy_kurth@ncsu.edu]
> Sent: Mon 1/25/2010 12:33 PM
> To: vcl-dev@incubator.apache.org
> Subject: Re: Issues with Inserting Image Reservation Into VCL DB
>
> Hello Jeff,
> It appears that the image was successfully captured and it's at the point
> where
> it's trying to reload the new image.
>
> Is the computer.privateIPaddress value set in the database?  If not, set
> this
>
> for vcl-winxp in the computer table and see if the warnings go away.  You
> can
>
> also add an entry in the /etc/hosts file on the management node for the
> private
> address of vcl-winxp.  Either of these should clear up most of the warning
> messages you're seeing.
>
> You don't have to go through the entire imaging process again to
> troubleshoot
>
> this.  You can restart the reload process by:
> -Kill the existing vcld process for the reservation if it's still running.
> The
> PID to kill is displayed as the leftmost field in the log output (1297 in
> the
>
> output you included).  Don't kill the main vcld process.
> -Set request.state to 'reload', request.start to NOW(), and request.end to
> some
> time in the future.  The vcld process should begin to process it again.
> Start
> 'tail -f /var/log/vcld.log' before changing the request state.
>
> Is it hanging indefinitely after it attempts to run the last command (route
> delete 0.0.0.0) included in the log output?  I haven't seen this problem
> before
> if it is indeed hanging.  The 'route delete' command may be breaking
> networking
> on the computer and tripping up the SSH command.  I would try running the
> SSH
>
> command manually with the -v option to try to figure out what's happening:
> ssh -v -i /etc/vcl/vcl.key  -l root -p 22 -x vcl-winxp 'route delete
> 0.0.0.0'
>
> If this command hangs, try adding the ServerAliveInterval SSH option:
> ssh -v -o ServerAliveInterval=15 -i /etc/vcl/vcl.key -l root -p 22 -x
> vcl-winxp
> 'route delete 0.0.0.0'
>
> Give this command at least 20 seconds before killing it if it hangs.  If
> this
>
> prevents it from hanging, try manually running the next command VCL would
> have
> performed:
> ssh -i /etc/vcl/vcl.key -l root -p 22 -x vcl-winxp 'route -p ADD 0.0.0.0
> MASK
>
> 0.0.0.0 134.154.193.190 METRIC 1'
>
> The output of these commands may be helpful in troubleshooting.
>
> Regards,
> Andy Kurth / NCSU VCL
>
>
> Jeffrey Wisman wrote:
> > Hi all - Just joined this list.  I've been working on a pilot VCL install
> at
> > CSU East Bay, and am hung up on what seems like nearly the last step.
>  I'm
> > following instructions at the bottom of this page:
> >
> http://cwiki.apache.org/confluence/display/VCL/Create+a+Windows+Base+Image
> >
> > I'm attempting to insert the image reservation into the VCL DB, and it
> only
> > gets as far as this network/route issue.  Is this a DHCP problem?  A
> hosts
> > file issue?  Something else?  Please let me know if anyone has seen this
> > before, or can help troubleshoot.  Here is the last part of the output
> from
> > tail -f /var/log/vcld.log
> >
> >
> > |1297|11:34|reload| ---- WARNING ----
> > |1297|11:34|reload| 2010-01-23
> >
> 00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4197)|SSH
> > will not be disabled on public interface because public interface name
> could
> > not be determined
> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private (line:
> 4197)
> > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
> > |1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
> > |1297|11:34|reload| (-4) new.pm, process (line: 266)
> > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
> > |1297|11:34|reload| (-6) vcld, main (line: 341)
> >
> > 2010-01-23
> >
>
> 00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
> > configuration has already been retrieved
> > 2010-01-23
> >
>
> 00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> > 442)|attempting to retrieve private IP address for computer: vcl-winxp
> > 2010-01-23
> >
>
> 00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> > 446)|retrieved contents of /etc/hosts on this management node, contains 6
> > lines
> >
> > |1297|11:34|reload| ---- WARNING ----
> > |1297|11:34|reload| 2010-01-23
> >
>
> 00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> > |1297|11:34|reload| (-1) DataStructure.pm,
> get_computer_private_ip_address
> > (line: 1466)
> > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line:
> 4642)
> > |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name (line:
> 4761)
> > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ssh_private (line:
> 4202)
> > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 485)
> > |1297|11:34|reload| (-6) new.pm, reload_image (line: 692)
> >
> > 2010-01-23
> >
>
> 00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
> > to retrieve computer private IP address from reservation data
> >
> > |1297|11:34|reload| ---- WARNING ----
> > |1297|11:34|reload| 2010-01-23
> >
>
> 00:33:30|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|unable
> > to retrieve network configuration
> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> > |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name (line:
> 4763)
> > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ssh_private (line:
> 4202)
> > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 485)
> > |1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
> > |1297|11:34|reload| (-5) new.pm, process (line: 266)
> > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
> >
> >
> > |1297|11:34|reload| ---- WARNING ----
> > |1297|11:34|reload| 2010-01-23
> >
>
> 00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4220)|priva
> > te interface name could not be determined, SSH will be enabled for all
> > profiles
> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private (line:
> 4220)
> > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
> > |1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
> > |1297|11:34|reload| (-4) new.pm, process (line: 266)
> > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
> > |1297|11:34|reload| (-6) vcld, main (line: 341)
> >
> > 2010-01-23
> > 00:33:30|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing SSH
> > command on vcl-winxp:
> > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
> > vcl-winxp 'netsh.exe firewall set portopening name = "Cygwin SSHD"
> protocol
> =
> > TCP port = 22 profile = ALL' 2>&1
> > 2010-01-23 00:33:35|1226|vcld:main(165)|lastcheckin time updated for
> > management node 1: 2010-01-23 00:33:35
> > 2010-01-23
> > 00:33:37|1297|11:34|reload|utils.pm:
> run_ssh_command(6250)|run_ssh_command
> > output:
> > |1297|11:34|reload| Ok.
> > 2010-01-23 00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6264)|SSH
> > command executed on vcl-winxp, returning (0, "Ok.")
> > 2010-01-23
> >
>
> 00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4232)|confi
> > gured firewall to allow SSH on private interface
> > 2010-01-23
> >
>
> 00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
> > configuration has already been retrieved
> > 2010-01-23
> >
>
> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> > 442)|attempting to retrieve private IP address for computer: vcl-winxp
> > 2010-01-23
> >
>
> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> > 446)|retrieved contents of /etc/hosts on this management node, contains 6
> > lines
> >
> > |1297|11:34|reload| ---- WARNING ----
> > |1297|11:34|reload| 2010-01-23
> >
>
> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> > |1297|11:34|reload| (-1) DataStructure.pm,
> get_computer_private_ip_address
> > (line: 1466)
> > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line:
> 4642)
> > |1297|11:34|reload| (-3) Windows.pm, get_public_interface_name (line:
> 4791)
> > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private (line:
> > 3935)
> > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
> > |1297|11:34|reload| (-6) new.pm, reload_image (line: 692)
> >
> > 2010-01-23
> >
>
> 00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
> > to retrieve computer private IP address from reservation data
> >
> > |1297|11:34|reload| ---- WARNING ----
> > |1297|11:34|reload| 2010-01-23
> >
>
> 00:33:37|1297|11:34|reload|Windows.pm:get_public_interface_name(4793)|unable
> > to retrieve network configuration
> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> > |1297|11:34|reload| (-1) Windows.pm, get_public_interface_name (line:
> 4793)
> > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private (line:
> > 3935)
> > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
> > |1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
> > |1297|11:34|reload| (-5) new.pm, process (line: 266)
> > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
> >
> >
> > |1297|11:34|reload| ---- WARNING ----
> > |1297|11:34|reload| 2010-01-23
> >
>
> 00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3946)|ping
> > will not be disabled on public interface because public interface name
> could
> > not be determined
> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private (line:
> > 3946)
> > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
> > |1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
> > |1297|11:34|reload| (-4) new.pm, process (line: 266)
> > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
> > |1297|11:34|reload| (-6) vcld, main (line: 341)
> >
> > 2010-01-23
> >
>
> 00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
> > configuration has already been retrieved
> > 2010-01-23
> >
>
> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> > 442)|attempting to retrieve private IP address for computer: vcl-winxp
> > 2010-01-23
> >
>
> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> > 446)|retrieved contents of /etc/hosts on this management node, contains 6
> > lines
> >
> > |1297|11:34|reload| ---- WARNING ----
> > |1297|11:34|reload| 2010-01-23
> >
>
> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> > |1297|11:34|reload| (-1) DataStructure.pm,
> get_computer_private_ip_address
> > (line: 1466)
> > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line:
> 4642)
> > |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name (line:
> 4761)
> > |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private (line:
> > 3951)
> > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
> > |1297|11:34|reload| (-6) new.pm, reload_image (line: 692)
> >
> > 2010-01-23
> >
>
> 00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
> > to retrieve computer private IP address from reservation data
> >
> > |1297|11:34|reload| ---- WARNING ----
> > |1297|11:34|reload| 2010-01-23
> >
>
> 00:33:37|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|unable
> > to retrieve network configuration
> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> > |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name (line:
> 4763)
> > |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private (line:
> > 3951)
> > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
> > |1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
> > |1297|11:34|reload| (-5) new.pm, process (line: 266)
> > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
> >
> >
> > |1297|11:34|reload| ---- WARNING ----
> > |1297|11:34|reload| 2010-01-23
> >
>
> 00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3967)|priv
> > ate interface name could not be determined, ping will be enabled for all
> > profiles
> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> > |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private (line:
> > 3967)
> > |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
> > |1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
> > |1297|11:34|reload| (-4) new.pm, process (line: 266)
> > |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
> > |1297|11:34|reload| (-6) vcld, main (line: 341)
> >
> > 2010-01-23
> > 00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing SSH
> > command on vcl-winxp:
> > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
> > vcl-winxp 'netsh.exe firewall set icmpsetting type = 8 mode = ENABLE
> profile
> > = ALL ;' 2>&1
> > 2010-01-23 00:33:40|1226|vcld:main(165)|lastcheckin time updated for
> > management node 1: 2010-01-23 00:33:40
> > 2010-01-23
> > 00:33:43|1297|11:34|reload|utils.pm:
> run_ssh_command(6250)|run_ssh_command
> > output:
> > |1297|11:34|reload| Ok.
> > 2010-01-23 00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6264)|SSH
> > command executed on vcl-winxp, returning (0, "Ok.")
> > 2010-01-23
> >
>
> 00:33:43|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3979)|conf
> > igured firewall to allow ping on private interface
> > 2010-01-23
> > 00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4890)|IP
> > configuration mode in use: dynamicDHCP
> > 2010-01-23
> >
>
> 00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
> > configuration has already been retrieved
> > 2010-01-23
> >
>
> 00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> > 442)|attempting to retrieve private IP address for computer: vcl-winxp
> > 2010-01-23
> >
>
> 00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> > 446)|retrieved contents of /etc/hosts on this management node, contains 6
> > lines
> >
> > |1297|11:34|reload| ---- WARNING ----
> > |1297|11:34|reload| 2010-01-23
> >
>
> 00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> > 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> > |1297|11:34|reload| (-1) DataStructure.pm,
> get_computer_private_ip_address
> > (line: 1466)
> > |1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line:
> 4642)
> > |1297|11:34|reload| (-3) Windows.pm, get_public_default_gateway (line:
> 4894)
> > |1297|11:34|reload| (-4) Windows.pm, set_public_default_route (line:
> 7429)
> > |1297|11:34|reload| (-5) Windows.pm, post_load (line: 507)
> > |1297|11:34|reload| (-6) new.pm, reload_image (line: 692)
> >
> > 2010-01-23
> >
>
> 00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
> > to retrieve computer private IP address from reservation data
> >
> > |1297|11:34|reload| ---- WARNING ----
> > |1297|11:34|reload| 2010-01-23
> >
>
> 00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4908)|unable
> > to retrieve public network configuration currently in use on vcl-winxp
> > |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> > |1297|11:34|reload| (-1) Windows.pm, get_public_default_gateway (line:
> 4908)
> > |1297|11:34|reload| (-2) Windows.pm, set_public_default_route (line:
> 7429)
> > |1297|11:34|reload| (-3) Windows.pm, post_load (line: 507)
> > |1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
> > |1297|11:34|reload| (-5) new.pm, process (line: 266)
> > |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
> >
> > 2010-01-23
> >
>
> 00:33:43|1297|11:34|reload|DataStructure.pm:get_management_node_public_defaul
> > t_gateway(1783)|returning default gateway from route command:
> 134.154.193.190
> > 2010-01-23
> >
>
> 00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4917)|return
> > ing management node's default gateway address: 134.154.193.190
> > 2010-01-23
> > 00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing SSH
> > command on vcl-winxp:
> > |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
> > vcl-winxp 'route delete 0.0.0.0' 2>&1
> > 2010-01-23 00:33:45|1226|vcld:main(165)|lastcheckin time updated for
> > management node 1: 2010-01-23 00:33:45
> > 2010-01-23 00:33:50|1226|vcld:main(165)|lastcheckin time updated for
> > management node 1: 2010-01-23 00:33:50
> > 2010-01-23 00:33:55|1226|vcld:main(165)|lastcheckin time updated for
> > management node 1: 2010-01-23 00:33:55
> > 2010-01-23 00:34:00|1226|vcld:main(165)|lastcheckin time updated for
> > management node 1: 2010-01-23 00:34:00
> > 2010-01-23 00:34:05|1226|vcld:main(165)|lastcheckin time updated for
> > management node 1: 2010-01-23 00:34:05
> > 2010-01-23 00:34:10|1226|vcld:main(165)|lastcheckin time updated for
> > management node 1: 2010-01-23 00:34:10
> >
> >
> >
> >
> >
> >
> > And the database state:
> >
> > mysql> select * from request;
> >
>
> +----+---------+--------+-------------+-------+------------+------+---------+
> >
>
> ---------------------+---------------------+---------------------+-----------
> > ---+
> > | id | stateid | userid | laststateid | logid | forimaging | test |
> preload
> |
> > start               | end                 | daterequested       |
> > datemodified |
> >
>
> +----+---------+--------+-------------+-------+------------+------+---------+
> >
>
> ---------------------+---------------------+---------------------+-----------
> > ---+
> > | 11 |      14 |      2 |          19 |     0 |          0 |    0 |
> 0
> |
> > 2010-01-23 00:31:59 | 2010-01-23 01:01:59 | 2010-01-23 00:31:59 | NULL
> > |
> >
>
> +----+---------+--------+-------------+-------+------------+------+---------+
> >
>
> ---------------------+---------------------+---------------------+-----------
> > ---+
> > 1 row in set (0.00 sec)
> >
> > mysql> select * from reservation;
> >
>
> +----+-----------+------------+---------+-----------------+------------------
> > +----------+---------------------+------+
> > | id | requestid | computerid | imageid | imagerevisionid |
> managementnodeid
> > | remoteIP | lastcheck           | pw   |
> >
>
> +----+-----------+------------+---------+-----------------+------------------
> > +----------+---------------------+------+
> > | 34 |        11 |         13 |      10 |              10 |
> 1
> > | NULL     | 0000-00-00 00:00:00 | NULL |
> >
>
> +----+-----------+------------+---------+-----------------+------------------
> > +----------+---------------------+------+
> > 1 row in set (0.00 sec)
> >
> >
> > And finally, here is the directory structure (after executing the
> commands)
> > of the VMWare server:
> > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # ls -l
> > drwxr-xr-x    1 root     root                420 Jan 23 08:31 golden
> > drwxr-xr-x    1 root     root                420 Jan 23 08:31 inuse
> > drwxr-xr-x    1 root     root               4340 Dec  3 18:30
> > vcl.csueastbay.edu
> > drwxr-xr-x    1 root     root               4340 Dec  3 18:08
> > vcldb.csueastbay.edu
> > drwxr-xr-x    1 root     root               4340 Dec  3 18:23
> > vclmgmt.csueastbay.edu
> > drwxr-xr-x    1 root     root               2660 Jan 23 08:22
> > vmwarewinxp-base7-v0
> > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd golden/
> > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # ls -l
> > drwxr-xr-x    1 root     root                280 Jan 23 08:31
> > vmwarewinxp-base7-v0
> > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # cd ..
> > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd inuse/
> > /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/inuse # ls -l
> > drwxr-xr-x    1 root     root                420 Jan 23 08:31 vcl-winxp
> >
> >
> > Let me know if more output from the logs would be helpful, or any other
> > information.
> >
> >
> > Thanks,
> > Jeff Wisman
> >
>
> --
> Andy Kurth
> Virtual Computing Lab
> Office of Information Technology
> North Carolina State University
> andy_kurth@ncsu.edu
> 919.513.4090
>
>
>

RE: Issues with Inserting Image Reservation Into VCL DB

Posted by Jeffrey Wisman <je...@csueastbay.edu>.
I just wanted to post a follow up that the issue was with the hosts file.  I
had put both the public and private IP addresses in the management server's
host file.  I removed the public IP and now it works just fine.

I'm still having issues with the reservations, but I think its just my
misunderstanding of how this is all supposed to work.  I'll be spending more
time in the next few days, and post if I can't figure out the next steps on
my own.

Thanks,
Jeff


-----Original Message-----
From: Jeffrey Wisman [mailto:jeff.wisman@csueastbay.edu]
Sent: Mon 1/25/2010 12:58 PM
To: vcl-dev@incubator.apache.org; vcl-dev@incubator.apache.org
Subject: RE: Issues with Inserting Image Reservation Into VCL DB
 
Thanks Andy, I'll try your suggestions tonight and report back.  Your help is
much appreciated!

Jeff


-----Original Message-----
From: Andy Kurth [mailto:andy_kurth@ncsu.edu]
Sent: Mon 1/25/2010 12:33 PM
To: vcl-dev@incubator.apache.org
Subject: Re: Issues with Inserting Image Reservation Into VCL DB
 
Hello Jeff,
It appears that the image was successfully captured and it's at the point
where 
it's trying to reload the new image.

Is the computer.privateIPaddress value set in the database?  If not, set this

for vcl-winxp in the computer table and see if the warnings go away.  You can

also add an entry in the /etc/hosts file on the management node for the
private 
address of vcl-winxp.  Either of these should clear up most of the warning 
messages you're seeing.

You don't have to go through the entire imaging process again to troubleshoot

this.  You can restart the reload process by:
-Kill the existing vcld process for the reservation if it's still running.
The 
PID to kill is displayed as the leftmost field in the log output (1297 in the

output you included).  Don't kill the main vcld process.
-Set request.state to 'reload', request.start to NOW(), and request.end to
some 
time in the future.  The vcld process should begin to process it again.
Start 
'tail -f /var/log/vcld.log' before changing the request state.

Is it hanging indefinitely after it attempts to run the last command (route 
delete 0.0.0.0) included in the log output?  I haven't seen this problem
before 
if it is indeed hanging.  The 'route delete' command may be breaking
networking 
on the computer and tripping up the SSH command.  I would try running the SSH

command manually with the -v option to try to figure out what's happening:
ssh -v -i /etc/vcl/vcl.key  -l root -p 22 -x vcl-winxp 'route delete 0.0.0.0'

If this command hangs, try adding the ServerAliveInterval SSH option:
ssh -v -o ServerAliveInterval=15 -i /etc/vcl/vcl.key -l root -p 22 -x
vcl-winxp 
'route delete 0.0.0.0'

Give this command at least 20 seconds before killing it if it hangs.  If this

prevents it from hanging, try manually running the next command VCL would
have 
performed:
ssh -i /etc/vcl/vcl.key -l root -p 22 -x vcl-winxp 'route -p ADD 0.0.0.0 MASK

0.0.0.0 134.154.193.190 METRIC 1'

The output of these commands may be helpful in troubleshooting.

Regards,
Andy Kurth / NCSU VCL


Jeffrey Wisman wrote:
> Hi all - Just joined this list.  I've been working on a pilot VCL install
at
> CSU East Bay, and am hung up on what seems like nearly the last step.  I'm
> following instructions at the bottom of this page:
> http://cwiki.apache.org/confluence/display/VCL/Create+a+Windows+Base+Image
> 
> I'm attempting to insert the image reservation into the VCL DB, and it only
> gets as far as this network/route issue.  Is this a DHCP problem?  A hosts
> file issue?  Something else?  Please let me know if anyone has seen this
> before, or can help troubleshoot.  Here is the last part of the output from
> tail -f /var/log/vcld.log
> 
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
> 00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4197)|SSH
> will not be disabled on public interface because public interface name
could
> not be determined
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private (line:
4197)
> |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
> |1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
> |1297|11:34|reload| (-4) new.pm, process (line: 266)
> |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
> |1297|11:34|reload| (-6) vcld, main (line: 341)
> 
> 2010-01-23
>
00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
> configuration has already been retrieved
> 2010-01-23
>
00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 442)|attempting to retrieve private IP address for computer: vcl-winxp
> 2010-01-23
>
00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 446)|retrieved contents of /etc/hosts on this management node, contains 6
> lines
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
>
00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) DataStructure.pm, get_computer_private_ip_address
> (line: 1466)
> |1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line: 4642)
> |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name (line:
4761)
> |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ssh_private (line:
4202)
> |1297|11:34|reload| (-5) Windows.pm, post_load (line: 485)
> |1297|11:34|reload| (-6) new.pm, reload_image (line: 692)
> 
> 2010-01-23
>
00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
> to retrieve computer private IP address from reservation data
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
>
00:33:30|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|unable
> to retrieve network configuration
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name (line:
4763)
> |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ssh_private (line:
4202)
> |1297|11:34|reload| (-3) Windows.pm, post_load (line: 485)
> |1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
> |1297|11:34|reload| (-5) new.pm, process (line: 266)
> |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
> 
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
>
00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4220)|priva
> te interface name could not be determined, SSH will be enabled for all
> profiles
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private (line:
4220)
> |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
> |1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
> |1297|11:34|reload| (-4) new.pm, process (line: 266)
> |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
> |1297|11:34|reload| (-6) vcld, main (line: 341)
> 
> 2010-01-23
> 00:33:30|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing SSH
> command on vcl-winxp:
> |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
> vcl-winxp 'netsh.exe firewall set portopening name = "Cygwin SSHD" protocol
=
> TCP port = 22 profile = ALL' 2>&1
> 2010-01-23 00:33:35|1226|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-01-23 00:33:35
> 2010-01-23
> 00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6250)|run_ssh_command
> output:
> |1297|11:34|reload| Ok.
> 2010-01-23 00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6264)|SSH
> command executed on vcl-winxp, returning (0, "Ok.")
> 2010-01-23
>
00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4232)|confi
> gured firewall to allow SSH on private interface
> 2010-01-23
>
00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
> configuration has already been retrieved
> 2010-01-23
>
00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 442)|attempting to retrieve private IP address for computer: vcl-winxp
> 2010-01-23
>
00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 446)|retrieved contents of /etc/hosts on this management node, contains 6
> lines
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
>
00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) DataStructure.pm, get_computer_private_ip_address
> (line: 1466)
> |1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line: 4642)
> |1297|11:34|reload| (-3) Windows.pm, get_public_interface_name (line: 4791)
> |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private (line:
> 3935)
> |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
> |1297|11:34|reload| (-6) new.pm, reload_image (line: 692)
> 
> 2010-01-23
>
00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
> to retrieve computer private IP address from reservation data
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
>
00:33:37|1297|11:34|reload|Windows.pm:get_public_interface_name(4793)|unable
> to retrieve network configuration
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) Windows.pm, get_public_interface_name (line: 4793)
> |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private (line:
> 3935)
> |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
> |1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
> |1297|11:34|reload| (-5) new.pm, process (line: 266)
> |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
> 
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
>
00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3946)|ping
> will not be disabled on public interface because public interface name
could
> not be determined
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private (line:
> 3946)
> |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
> |1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
> |1297|11:34|reload| (-4) new.pm, process (line: 266)
> |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
> |1297|11:34|reload| (-6) vcld, main (line: 341)
> 
> 2010-01-23
>
00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
> configuration has already been retrieved
> 2010-01-23
>
00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 442)|attempting to retrieve private IP address for computer: vcl-winxp
> 2010-01-23
>
00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 446)|retrieved contents of /etc/hosts on this management node, contains 6
> lines
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
>
00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) DataStructure.pm, get_computer_private_ip_address
> (line: 1466)
> |1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line: 4642)
> |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name (line:
4761)
> |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private (line:
> 3951)
> |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
> |1297|11:34|reload| (-6) new.pm, reload_image (line: 692)
> 
> 2010-01-23
>
00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
> to retrieve computer private IP address from reservation data
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
>
00:33:37|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|unable
> to retrieve network configuration
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name (line:
4763)
> |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private (line:
> 3951)
> |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
> |1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
> |1297|11:34|reload| (-5) new.pm, process (line: 266)
> |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
> 
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
>
00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3967)|priv
> ate interface name could not be determined, ping will be enabled for all
> profiles
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private (line:
> 3967)
> |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
> |1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
> |1297|11:34|reload| (-4) new.pm, process (line: 266)
> |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
> |1297|11:34|reload| (-6) vcld, main (line: 341)
> 
> 2010-01-23
> 00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing SSH
> command on vcl-winxp:
> |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
> vcl-winxp 'netsh.exe firewall set icmpsetting type = 8 mode = ENABLE
profile
> = ALL ;' 2>&1
> 2010-01-23 00:33:40|1226|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-01-23 00:33:40
> 2010-01-23
> 00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6250)|run_ssh_command
> output:
> |1297|11:34|reload| Ok.
> 2010-01-23 00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6264)|SSH
> command executed on vcl-winxp, returning (0, "Ok.")
> 2010-01-23
>
00:33:43|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3979)|conf
> igured firewall to allow ping on private interface
> 2010-01-23
> 00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4890)|IP
> configuration mode in use: dynamicDHCP
> 2010-01-23
>
00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
> configuration has already been retrieved
> 2010-01-23
>
00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 442)|attempting to retrieve private IP address for computer: vcl-winxp
> 2010-01-23
>
00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 446)|retrieved contents of /etc/hosts on this management node, contains 6
> lines
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
>
00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) DataStructure.pm, get_computer_private_ip_address
> (line: 1466)
> |1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line: 4642)
> |1297|11:34|reload| (-3) Windows.pm, get_public_default_gateway (line:
4894)
> |1297|11:34|reload| (-4) Windows.pm, set_public_default_route (line: 7429)
> |1297|11:34|reload| (-5) Windows.pm, post_load (line: 507)
> |1297|11:34|reload| (-6) new.pm, reload_image (line: 692)
> 
> 2010-01-23
>
00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
> to retrieve computer private IP address from reservation data
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
>
00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4908)|unable
> to retrieve public network configuration currently in use on vcl-winxp
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) Windows.pm, get_public_default_gateway (line:
4908)
> |1297|11:34|reload| (-2) Windows.pm, set_public_default_route (line: 7429)
> |1297|11:34|reload| (-3) Windows.pm, post_load (line: 507)
> |1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
> |1297|11:34|reload| (-5) new.pm, process (line: 266)
> |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
> 
> 2010-01-23
>
00:33:43|1297|11:34|reload|DataStructure.pm:get_management_node_public_defaul
> t_gateway(1783)|returning default gateway from route command:
134.154.193.190
> 2010-01-23
>
00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4917)|return
> ing management node's default gateway address: 134.154.193.190
> 2010-01-23
> 00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing SSH
> command on vcl-winxp:
> |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
> vcl-winxp 'route delete 0.0.0.0' 2>&1
> 2010-01-23 00:33:45|1226|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-01-23 00:33:45
> 2010-01-23 00:33:50|1226|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-01-23 00:33:50
> 2010-01-23 00:33:55|1226|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-01-23 00:33:55
> 2010-01-23 00:34:00|1226|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-01-23 00:34:00
> 2010-01-23 00:34:05|1226|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-01-23 00:34:05
> 2010-01-23 00:34:10|1226|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-01-23 00:34:10
> 
> 
> 
> 
> 
> 
> And the database state:
> 
> mysql> select * from request;
>
+----+---------+--------+-------------+-------+------------+------+---------+
>
---------------------+---------------------+---------------------+-----------
> ---+
> | id | stateid | userid | laststateid | logid | forimaging | test | preload
|
> start               | end                 | daterequested       |
> datemodified |
>
+----+---------+--------+-------------+-------+------------+------+---------+
>
---------------------+---------------------+---------------------+-----------
> ---+
> | 11 |      14 |      2 |          19 |     0 |          0 |    0 |       0
|
> 2010-01-23 00:31:59 | 2010-01-23 01:01:59 | 2010-01-23 00:31:59 | NULL
> | 
>
+----+---------+--------+-------------+-------+------------+------+---------+
>
---------------------+---------------------+---------------------+-----------
> ---+
> 1 row in set (0.00 sec)
> 
> mysql> select * from reservation;
>
+----+-----------+------------+---------+-----------------+------------------
> +----------+---------------------+------+
> | id | requestid | computerid | imageid | imagerevisionid |
managementnodeid
> | remoteIP | lastcheck           | pw   |
>
+----+-----------+------------+---------+-----------------+------------------
> +----------+---------------------+------+
> | 34 |        11 |         13 |      10 |              10 |
1
> | NULL     | 0000-00-00 00:00:00 | NULL | 
>
+----+-----------+------------+---------+-----------------+------------------
> +----------+---------------------+------+
> 1 row in set (0.00 sec)
> 
> 
> And finally, here is the directory structure (after executing the commands)
> of the VMWare server:
> /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # ls -l
> drwxr-xr-x    1 root     root                420 Jan 23 08:31 golden
> drwxr-xr-x    1 root     root                420 Jan 23 08:31 inuse
> drwxr-xr-x    1 root     root               4340 Dec  3 18:30
> vcl.csueastbay.edu
> drwxr-xr-x    1 root     root               4340 Dec  3 18:08
> vcldb.csueastbay.edu
> drwxr-xr-x    1 root     root               4340 Dec  3 18:23
> vclmgmt.csueastbay.edu
> drwxr-xr-x    1 root     root               2660 Jan 23 08:22
> vmwarewinxp-base7-v0
> /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd golden/
> /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # ls -l
> drwxr-xr-x    1 root     root                280 Jan 23 08:31
> vmwarewinxp-base7-v0
> /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # cd ..
> /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd inuse/
> /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/inuse # ls -l
> drwxr-xr-x    1 root     root                420 Jan 23 08:31 vcl-winxp
> 
> 
> Let me know if more output from the logs would be helpful, or any other
> information.
> 
> 
> Thanks,
> Jeff Wisman
> 

-- 
Andy Kurth
Virtual Computing Lab
Office of Information Technology
North Carolina State University
andy_kurth@ncsu.edu
919.513.4090



RE: Issues with Inserting Image Reservation Into VCL DB

Posted by Jeffrey Wisman <je...@csueastbay.edu>.
Thanks Andy, I'll try your suggestions tonight and report back.  Your help is
much appreciated!

Jeff


-----Original Message-----
From: Andy Kurth [mailto:andy_kurth@ncsu.edu]
Sent: Mon 1/25/2010 12:33 PM
To: vcl-dev@incubator.apache.org
Subject: Re: Issues with Inserting Image Reservation Into VCL DB
 
Hello Jeff,
It appears that the image was successfully captured and it's at the point
where 
it's trying to reload the new image.

Is the computer.privateIPaddress value set in the database?  If not, set this

for vcl-winxp in the computer table and see if the warnings go away.  You can

also add an entry in the /etc/hosts file on the management node for the
private 
address of vcl-winxp.  Either of these should clear up most of the warning 
messages you're seeing.

You don't have to go through the entire imaging process again to troubleshoot

this.  You can restart the reload process by:
-Kill the existing vcld process for the reservation if it's still running.
The 
PID to kill is displayed as the leftmost field in the log output (1297 in the

output you included).  Don't kill the main vcld process.
-Set request.state to 'reload', request.start to NOW(), and request.end to
some 
time in the future.  The vcld process should begin to process it again.
Start 
'tail -f /var/log/vcld.log' before changing the request state.

Is it hanging indefinitely after it attempts to run the last command (route 
delete 0.0.0.0) included in the log output?  I haven't seen this problem
before 
if it is indeed hanging.  The 'route delete' command may be breaking
networking 
on the computer and tripping up the SSH command.  I would try running the SSH

command manually with the -v option to try to figure out what's happening:
ssh -v -i /etc/vcl/vcl.key  -l root -p 22 -x vcl-winxp 'route delete 0.0.0.0'

If this command hangs, try adding the ServerAliveInterval SSH option:
ssh -v -o ServerAliveInterval=15 -i /etc/vcl/vcl.key -l root -p 22 -x
vcl-winxp 
'route delete 0.0.0.0'

Give this command at least 20 seconds before killing it if it hangs.  If this

prevents it from hanging, try manually running the next command VCL would
have 
performed:
ssh -i /etc/vcl/vcl.key -l root -p 22 -x vcl-winxp 'route -p ADD 0.0.0.0 MASK

0.0.0.0 134.154.193.190 METRIC 1'

The output of these commands may be helpful in troubleshooting.

Regards,
Andy Kurth / NCSU VCL


Jeffrey Wisman wrote:
> Hi all - Just joined this list.  I've been working on a pilot VCL install
at
> CSU East Bay, and am hung up on what seems like nearly the last step.  I'm
> following instructions at the bottom of this page:
> http://cwiki.apache.org/confluence/display/VCL/Create+a+Windows+Base+Image
> 
> I'm attempting to insert the image reservation into the VCL DB, and it only
> gets as far as this network/route issue.  Is this a DHCP problem?  A hosts
> file issue?  Something else?  Please let me know if anyone has seen this
> before, or can help troubleshoot.  Here is the last part of the output from
> tail -f /var/log/vcld.log
> 
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
> 00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4197)|SSH
> will not be disabled on public interface because public interface name
could
> not be determined
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private (line:
4197)
> |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
> |1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
> |1297|11:34|reload| (-4) new.pm, process (line: 266)
> |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
> |1297|11:34|reload| (-6) vcld, main (line: 341)
> 
> 2010-01-23
>
00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
> configuration has already been retrieved
> 2010-01-23
>
00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 442)|attempting to retrieve private IP address for computer: vcl-winxp
> 2010-01-23
>
00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 446)|retrieved contents of /etc/hosts on this management node, contains 6
> lines
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
>
00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) DataStructure.pm, get_computer_private_ip_address
> (line: 1466)
> |1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line: 4642)
> |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name (line:
4761)
> |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ssh_private (line:
4202)
> |1297|11:34|reload| (-5) Windows.pm, post_load (line: 485)
> |1297|11:34|reload| (-6) new.pm, reload_image (line: 692)
> 
> 2010-01-23
>
00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
> to retrieve computer private IP address from reservation data
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
>
00:33:30|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|unable
> to retrieve network configuration
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name (line:
4763)
> |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ssh_private (line:
4202)
> |1297|11:34|reload| (-3) Windows.pm, post_load (line: 485)
> |1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
> |1297|11:34|reload| (-5) new.pm, process (line: 266)
> |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
> 
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
>
00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4220)|priva
> te interface name could not be determined, SSH will be enabled for all
> profiles
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private (line:
4220)
> |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
> |1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
> |1297|11:34|reload| (-4) new.pm, process (line: 266)
> |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
> |1297|11:34|reload| (-6) vcld, main (line: 341)
> 
> 2010-01-23
> 00:33:30|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing SSH
> command on vcl-winxp:
> |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
> vcl-winxp 'netsh.exe firewall set portopening name = "Cygwin SSHD" protocol
=
> TCP port = 22 profile = ALL' 2>&1
> 2010-01-23 00:33:35|1226|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-01-23 00:33:35
> 2010-01-23
> 00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6250)|run_ssh_command
> output:
> |1297|11:34|reload| Ok.
> 2010-01-23 00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6264)|SSH
> command executed on vcl-winxp, returning (0, "Ok.")
> 2010-01-23
>
00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4232)|confi
> gured firewall to allow SSH on private interface
> 2010-01-23
>
00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
> configuration has already been retrieved
> 2010-01-23
>
00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 442)|attempting to retrieve private IP address for computer: vcl-winxp
> 2010-01-23
>
00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 446)|retrieved contents of /etc/hosts on this management node, contains 6
> lines
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
>
00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) DataStructure.pm, get_computer_private_ip_address
> (line: 1466)
> |1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line: 4642)
> |1297|11:34|reload| (-3) Windows.pm, get_public_interface_name (line: 4791)
> |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private (line:
> 3935)
> |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
> |1297|11:34|reload| (-6) new.pm, reload_image (line: 692)
> 
> 2010-01-23
>
00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
> to retrieve computer private IP address from reservation data
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
>
00:33:37|1297|11:34|reload|Windows.pm:get_public_interface_name(4793)|unable
> to retrieve network configuration
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) Windows.pm, get_public_interface_name (line: 4793)
> |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private (line:
> 3935)
> |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
> |1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
> |1297|11:34|reload| (-5) new.pm, process (line: 266)
> |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
> 
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
>
00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3946)|ping
> will not be disabled on public interface because public interface name
could
> not be determined
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private (line:
> 3946)
> |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
> |1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
> |1297|11:34|reload| (-4) new.pm, process (line: 266)
> |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
> |1297|11:34|reload| (-6) vcld, main (line: 341)
> 
> 2010-01-23
>
00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
> configuration has already been retrieved
> 2010-01-23
>
00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 442)|attempting to retrieve private IP address for computer: vcl-winxp
> 2010-01-23
>
00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 446)|retrieved contents of /etc/hosts on this management node, contains 6
> lines
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
>
00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) DataStructure.pm, get_computer_private_ip_address
> (line: 1466)
> |1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line: 4642)
> |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name (line:
4761)
> |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private (line:
> 3951)
> |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
> |1297|11:34|reload| (-6) new.pm, reload_image (line: 692)
> 
> 2010-01-23
>
00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
> to retrieve computer private IP address from reservation data
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
>
00:33:37|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|unable
> to retrieve network configuration
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name (line:
4763)
> |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private (line:
> 3951)
> |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
> |1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
> |1297|11:34|reload| (-5) new.pm, process (line: 266)
> |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
> 
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
>
00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3967)|priv
> ate interface name could not be determined, ping will be enabled for all
> profiles
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private (line:
> 3967)
> |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
> |1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
> |1297|11:34|reload| (-4) new.pm, process (line: 266)
> |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
> |1297|11:34|reload| (-6) vcld, main (line: 341)
> 
> 2010-01-23
> 00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing SSH
> command on vcl-winxp:
> |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
> vcl-winxp 'netsh.exe firewall set icmpsetting type = 8 mode = ENABLE
profile
> = ALL ;' 2>&1
> 2010-01-23 00:33:40|1226|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-01-23 00:33:40
> 2010-01-23
> 00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6250)|run_ssh_command
> output:
> |1297|11:34|reload| Ok.
> 2010-01-23 00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6264)|SSH
> command executed on vcl-winxp, returning (0, "Ok.")
> 2010-01-23
>
00:33:43|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3979)|conf
> igured firewall to allow ping on private interface
> 2010-01-23
> 00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4890)|IP
> configuration mode in use: dynamicDHCP
> 2010-01-23
>
00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
> configuration has already been retrieved
> 2010-01-23
>
00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 442)|attempting to retrieve private IP address for computer: vcl-winxp
> 2010-01-23
>
00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 446)|retrieved contents of /etc/hosts on this management node, contains 6
> lines
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
>
00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) DataStructure.pm, get_computer_private_ip_address
> (line: 1466)
> |1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line: 4642)
> |1297|11:34|reload| (-3) Windows.pm, get_public_default_gateway (line:
4894)
> |1297|11:34|reload| (-4) Windows.pm, set_public_default_route (line: 7429)
> |1297|11:34|reload| (-5) Windows.pm, post_load (line: 507)
> |1297|11:34|reload| (-6) new.pm, reload_image (line: 692)
> 
> 2010-01-23
>
00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
> to retrieve computer private IP address from reservation data
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
>
00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4908)|unable
> to retrieve public network configuration currently in use on vcl-winxp
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) Windows.pm, get_public_default_gateway (line:
4908)
> |1297|11:34|reload| (-2) Windows.pm, set_public_default_route (line: 7429)
> |1297|11:34|reload| (-3) Windows.pm, post_load (line: 507)
> |1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
> |1297|11:34|reload| (-5) new.pm, process (line: 266)
> |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
> 
> 2010-01-23
>
00:33:43|1297|11:34|reload|DataStructure.pm:get_management_node_public_defaul
> t_gateway(1783)|returning default gateway from route command:
134.154.193.190
> 2010-01-23
>
00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4917)|return
> ing management node's default gateway address: 134.154.193.190
> 2010-01-23
> 00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing SSH
> command on vcl-winxp:
> |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
> vcl-winxp 'route delete 0.0.0.0' 2>&1
> 2010-01-23 00:33:45|1226|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-01-23 00:33:45
> 2010-01-23 00:33:50|1226|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-01-23 00:33:50
> 2010-01-23 00:33:55|1226|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-01-23 00:33:55
> 2010-01-23 00:34:00|1226|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-01-23 00:34:00
> 2010-01-23 00:34:05|1226|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-01-23 00:34:05
> 2010-01-23 00:34:10|1226|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-01-23 00:34:10
> 
> 
> 
> 
> 
> 
> And the database state:
> 
> mysql> select * from request;
>
+----+---------+--------+-------------+-------+------------+------+---------+
>
---------------------+---------------------+---------------------+-----------
> ---+
> | id | stateid | userid | laststateid | logid | forimaging | test | preload
|
> start               | end                 | daterequested       |
> datemodified |
>
+----+---------+--------+-------------+-------+------------+------+---------+
>
---------------------+---------------------+---------------------+-----------
> ---+
> | 11 |      14 |      2 |          19 |     0 |          0 |    0 |       0
|
> 2010-01-23 00:31:59 | 2010-01-23 01:01:59 | 2010-01-23 00:31:59 | NULL
> | 
>
+----+---------+--------+-------------+-------+------------+------+---------+
>
---------------------+---------------------+---------------------+-----------
> ---+
> 1 row in set (0.00 sec)
> 
> mysql> select * from reservation;
>
+----+-----------+------------+---------+-----------------+------------------
> +----------+---------------------+------+
> | id | requestid | computerid | imageid | imagerevisionid |
managementnodeid
> | remoteIP | lastcheck           | pw   |
>
+----+-----------+------------+---------+-----------------+------------------
> +----------+---------------------+------+
> | 34 |        11 |         13 |      10 |              10 |
1
> | NULL     | 0000-00-00 00:00:00 | NULL | 
>
+----+-----------+------------+---------+-----------------+------------------
> +----------+---------------------+------+
> 1 row in set (0.00 sec)
> 
> 
> And finally, here is the directory structure (after executing the commands)
> of the VMWare server:
> /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # ls -l
> drwxr-xr-x    1 root     root                420 Jan 23 08:31 golden
> drwxr-xr-x    1 root     root                420 Jan 23 08:31 inuse
> drwxr-xr-x    1 root     root               4340 Dec  3 18:30
> vcl.csueastbay.edu
> drwxr-xr-x    1 root     root               4340 Dec  3 18:08
> vcldb.csueastbay.edu
> drwxr-xr-x    1 root     root               4340 Dec  3 18:23
> vclmgmt.csueastbay.edu
> drwxr-xr-x    1 root     root               2660 Jan 23 08:22
> vmwarewinxp-base7-v0
> /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd golden/
> /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # ls -l
> drwxr-xr-x    1 root     root                280 Jan 23 08:31
> vmwarewinxp-base7-v0
> /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # cd ..
> /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd inuse/
> /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/inuse # ls -l
> drwxr-xr-x    1 root     root                420 Jan 23 08:31 vcl-winxp
> 
> 
> Let me know if more output from the logs would be helpful, or any other
> information.
> 
> 
> Thanks,
> Jeff Wisman
> 

-- 
Andy Kurth
Virtual Computing Lab
Office of Information Technology
North Carolina State University
andy_kurth@ncsu.edu
919.513.4090


Re: Issues with Inserting Image Reservation Into VCL DB

Posted by Andy Kurth <an...@ncsu.edu>.
Hello Jeff,
It appears that the image was successfully captured and it's at the point where 
it's trying to reload the new image.

Is the computer.privateIPaddress value set in the database?  If not, set this 
for vcl-winxp in the computer table and see if the warnings go away.  You can 
also add an entry in the /etc/hosts file on the management node for the private 
address of vcl-winxp.  Either of these should clear up most of the warning 
messages you're seeing.

You don't have to go through the entire imaging process again to troubleshoot 
this.  You can restart the reload process by:
-Kill the existing vcld process for the reservation if it's still running.  The 
PID to kill is displayed as the leftmost field in the log output (1297 in the 
output you included).  Don't kill the main vcld process.
-Set request.state to 'reload', request.start to NOW(), and request.end to some 
time in the future.  The vcld process should begin to process it again.  Start 
'tail -f /var/log/vcld.log' before changing the request state.

Is it hanging indefinitely after it attempts to run the last command (route 
delete 0.0.0.0) included in the log output?  I haven't seen this problem before 
if it is indeed hanging.  The 'route delete' command may be breaking networking 
on the computer and tripping up the SSH command.  I would try running the SSH 
command manually with the -v option to try to figure out what's happening:
ssh -v -i /etc/vcl/vcl.key  -l root -p 22 -x vcl-winxp 'route delete 0.0.0.0'

If this command hangs, try adding the ServerAliveInterval SSH option:
ssh -v -o ServerAliveInterval=15 -i /etc/vcl/vcl.key -l root -p 22 -x vcl-winxp 
'route delete 0.0.0.0'

Give this command at least 20 seconds before killing it if it hangs.  If this 
prevents it from hanging, try manually running the next command VCL would have 
performed:
ssh -i /etc/vcl/vcl.key -l root -p 22 -x vcl-winxp 'route -p ADD 0.0.0.0 MASK 
0.0.0.0 134.154.193.190 METRIC 1'

The output of these commands may be helpful in troubleshooting.

Regards,
Andy Kurth / NCSU VCL


Jeffrey Wisman wrote:
> Hi all - Just joined this list.  I've been working on a pilot VCL install at
> CSU East Bay, and am hung up on what seems like nearly the last step.  I'm
> following instructions at the bottom of this page:
> http://cwiki.apache.org/confluence/display/VCL/Create+a+Windows+Base+Image
> 
> I'm attempting to insert the image reservation into the VCL DB, and it only
> gets as far as this network/route issue.  Is this a DHCP problem?  A hosts
> file issue?  Something else?  Please let me know if anyone has seen this
> before, or can help troubleshoot.  Here is the last part of the output from
> tail -f /var/log/vcld.log
> 
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
> 00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4197)|SSH
> will not be disabled on public interface because public interface name could
> not be determined
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private (line: 4197)
> |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
> |1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
> |1297|11:34|reload| (-4) new.pm, process (line: 266)
> |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
> |1297|11:34|reload| (-6) vcld, main (line: 341)
> 
> 2010-01-23
> 00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
> configuration has already been retrieved
> 2010-01-23
> 00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 442)|attempting to retrieve private IP address for computer: vcl-winxp
> 2010-01-23
> 00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 446)|retrieved contents of /etc/hosts on this management node, contains 6
> lines
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
> 00:33:30|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) DataStructure.pm, get_computer_private_ip_address
> (line: 1466)
> |1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line: 4642)
> |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name (line: 4761)
> |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ssh_private (line: 4202)
> |1297|11:34|reload| (-5) Windows.pm, post_load (line: 485)
> |1297|11:34|reload| (-6) new.pm, reload_image (line: 692)
> 
> 2010-01-23
> 00:33:30|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
> to retrieve computer private IP address from reservation data
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
> 00:33:30|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|unable
> to retrieve network configuration
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name (line: 4763)
> |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ssh_private (line: 4202)
> |1297|11:34|reload| (-3) Windows.pm, post_load (line: 485)
> |1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
> |1297|11:34|reload| (-5) new.pm, process (line: 266)
> |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
> 
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
> 00:33:30|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4220)|priva
> te interface name could not be determined, SSH will be enabled for all
> profiles
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ssh_private (line: 4220)
> |1297|11:34|reload| (-2) Windows.pm, post_load (line: 485)
> |1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
> |1297|11:34|reload| (-4) new.pm, process (line: 266)
> |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
> |1297|11:34|reload| (-6) vcld, main (line: 341)
> 
> 2010-01-23
> 00:33:30|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing SSH
> command on vcl-winxp:
> |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
> vcl-winxp 'netsh.exe firewall set portopening name = "Cygwin SSHD" protocol =
> TCP port = 22 profile = ALL' 2>&1
> 2010-01-23 00:33:35|1226|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-01-23 00:33:35
> 2010-01-23
> 00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6250)|run_ssh_command
> output:
> |1297|11:34|reload| Ok.
> 2010-01-23 00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6264)|SSH
> command executed on vcl-winxp, returning (0, "Ok.")
> 2010-01-23
> 00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ssh_private(4232)|confi
> gured firewall to allow SSH on private interface
> 2010-01-23
> 00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
> configuration has already been retrieved
> 2010-01-23
> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 442)|attempting to retrieve private IP address for computer: vcl-winxp
> 2010-01-23
> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 446)|retrieved contents of /etc/hosts on this management node, contains 6
> lines
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) DataStructure.pm, get_computer_private_ip_address
> (line: 1466)
> |1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line: 4642)
> |1297|11:34|reload| (-3) Windows.pm, get_public_interface_name (line: 4791)
> |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private (line:
> 3935)
> |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
> |1297|11:34|reload| (-6) new.pm, reload_image (line: 692)
> 
> 2010-01-23
> 00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
> to retrieve computer private IP address from reservation data
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
> 00:33:37|1297|11:34|reload|Windows.pm:get_public_interface_name(4793)|unable
> to retrieve network configuration
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) Windows.pm, get_public_interface_name (line: 4793)
> |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private (line:
> 3935)
> |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
> |1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
> |1297|11:34|reload| (-5) new.pm, process (line: 266)
> |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
> 
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
> 00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3946)|ping
> will not be disabled on public interface because public interface name could
> not be determined
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private (line:
> 3946)
> |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
> |1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
> |1297|11:34|reload| (-4) new.pm, process (line: 266)
> |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
> |1297|11:34|reload| (-6) vcld, main (line: 341)
> 
> 2010-01-23
> 00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
> configuration has already been retrieved
> 2010-01-23
> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 442)|attempting to retrieve private IP address for computer: vcl-winxp
> 2010-01-23
> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 446)|retrieved contents of /etc/hosts on this management node, contains 6
> lines
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
> 00:33:37|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) DataStructure.pm, get_computer_private_ip_address
> (line: 1466)
> |1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line: 4642)
> |1297|11:34|reload| (-3) Windows.pm, get_private_interface_name (line: 4761)
> |1297|11:34|reload| (-4) Windows.pm, firewall_enable_ping_private (line:
> 3951)
> |1297|11:34|reload| (-5) Windows.pm, post_load (line: 496)
> |1297|11:34|reload| (-6) new.pm, reload_image (line: 692)
> 
> 2010-01-23
> 00:33:37|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
> to retrieve computer private IP address from reservation data
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
> 00:33:37|1297|11:34|reload|Windows.pm:get_private_interface_name(4763)|unable
> to retrieve network configuration
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) Windows.pm, get_private_interface_name (line: 4763)
> |1297|11:34|reload| (-2) Windows.pm, firewall_enable_ping_private (line:
> 3951)
> |1297|11:34|reload| (-3) Windows.pm, post_load (line: 496)
> |1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
> |1297|11:34|reload| (-5) new.pm, process (line: 266)
> |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
> 
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
> 00:33:37|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3967)|priv
> ate interface name could not be determined, ping will be enabled for all
> profiles
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) Windows.pm, firewall_enable_ping_private (line:
> 3967)
> |1297|11:34|reload| (-2) Windows.pm, post_load (line: 496)
> |1297|11:34|reload| (-3) new.pm, reload_image (line: 692)
> |1297|11:34|reload| (-4) new.pm, process (line: 266)
> |1297|11:34|reload| (-5) vcld, make_new_child (line: 594)
> |1297|11:34|reload| (-6) vcld, main (line: 341)
> 
> 2010-01-23
> 00:33:37|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing SSH
> command on vcl-winxp:
> |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
> vcl-winxp 'netsh.exe firewall set icmpsetting type = 8 mode = ENABLE profile
> = ALL ;' 2>&1
> 2010-01-23 00:33:40|1226|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-01-23 00:33:40
> 2010-01-23
> 00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6250)|run_ssh_command
> output:
> |1297|11:34|reload| Ok.
> 2010-01-23 00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6264)|SSH
> command executed on vcl-winxp, returning (0, "Ok.")
> 2010-01-23
> 00:33:43|1297|11:34|reload|Windows.pm:firewall_enable_ping_private(3979)|conf
> igured firewall to allow ping on private interface
> 2010-01-23
> 00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4890)|IP
> configuration mode in use: dynamicDHCP
> 2010-01-23
> 00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4630)|network
> configuration has already been retrieved
> 2010-01-23
> 00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 442)|attempting to retrieve private IP address for computer: vcl-winxp
> 2010-01-23
> 00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 446)|retrieved contents of /etc/hosts on this management node, contains 6
> lines
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
> 00:33:43|1297|11:34|reload|DataStructure.pm:get_computer_private_ip_address(1
> 466)|did not find any lines in /etc/hosts containing 'vcl-winxp'
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) DataStructure.pm, get_computer_private_ip_address
> (line: 1466)
> |1297|11:34|reload| (-2) Windows.pm, get_network_configuration (line: 4642)
> |1297|11:34|reload| (-3) Windows.pm, get_public_default_gateway (line: 4894)
> |1297|11:34|reload| (-4) Windows.pm, set_public_default_route (line: 7429)
> |1297|11:34|reload| (-5) Windows.pm, post_load (line: 507)
> |1297|11:34|reload| (-6) new.pm, reload_image (line: 692)
> 
> 2010-01-23
> 00:33:43|1297|11:34|reload|Windows.pm:get_network_configuration(4644)|unable
> to retrieve computer private IP address from reservation data
> 
> |1297|11:34|reload| ---- WARNING ---- 
> |1297|11:34|reload| 2010-01-23
> 00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4908)|unable
> to retrieve public network configuration currently in use on vcl-winxp
> |1297|11:34|reload| ( 0) utils.pm, notify (line: 728)
> |1297|11:34|reload| (-1) Windows.pm, get_public_default_gateway (line: 4908)
> |1297|11:34|reload| (-2) Windows.pm, set_public_default_route (line: 7429)
> |1297|11:34|reload| (-3) Windows.pm, post_load (line: 507)
> |1297|11:34|reload| (-4) new.pm, reload_image (line: 692)
> |1297|11:34|reload| (-5) new.pm, process (line: 266)
> |1297|11:34|reload| (-6) vcld, make_new_child (line: 594)
> 
> 2010-01-23
> 00:33:43|1297|11:34|reload|DataStructure.pm:get_management_node_public_defaul
> t_gateway(1783)|returning default gateway from route command: 134.154.193.190
> 2010-01-23
> 00:33:43|1297|11:34|reload|Windows.pm:get_public_default_gateway(4917)|return
> ing management node's default gateway address: 134.154.193.190
> 2010-01-23
> 00:33:43|1297|11:34|reload|utils.pm:run_ssh_command(6168)|executing SSH
> command on vcl-winxp:
> |1297|11:34|reload| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
> vcl-winxp 'route delete 0.0.0.0' 2>&1
> 2010-01-23 00:33:45|1226|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-01-23 00:33:45
> 2010-01-23 00:33:50|1226|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-01-23 00:33:50
> 2010-01-23 00:33:55|1226|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-01-23 00:33:55
> 2010-01-23 00:34:00|1226|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-01-23 00:34:00
> 2010-01-23 00:34:05|1226|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-01-23 00:34:05
> 2010-01-23 00:34:10|1226|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-01-23 00:34:10
> 
> 
> 
> 
> 
> 
> And the database state:
> 
> mysql> select * from request;
> +----+---------+--------+-------------+-------+------------+------+---------+
> ---------------------+---------------------+---------------------+-----------
> ---+
> | id | stateid | userid | laststateid | logid | forimaging | test | preload |
> start               | end                 | daterequested       |
> datemodified |
> +----+---------+--------+-------------+-------+------------+------+---------+
> ---------------------+---------------------+---------------------+-----------
> ---+
> | 11 |      14 |      2 |          19 |     0 |          0 |    0 |       0 |
> 2010-01-23 00:31:59 | 2010-01-23 01:01:59 | 2010-01-23 00:31:59 | NULL
> | 
> +----+---------+--------+-------------+-------+------------+------+---------+
> ---------------------+---------------------+---------------------+-----------
> ---+
> 1 row in set (0.00 sec)
> 
> mysql> select * from reservation;
> +----+-----------+------------+---------+-----------------+------------------
> +----------+---------------------+------+
> | id | requestid | computerid | imageid | imagerevisionid | managementnodeid
> | remoteIP | lastcheck           | pw   |
> +----+-----------+------------+---------+-----------------+------------------
> +----------+---------------------+------+
> | 34 |        11 |         13 |      10 |              10 |                1
> | NULL     | 0000-00-00 00:00:00 | NULL | 
> +----+-----------+------------+---------+-----------------+------------------
> +----------+---------------------+------+
> 1 row in set (0.00 sec)
> 
> 
> And finally, here is the directory structure (after executing the commands)
> of the VMWare server:
> /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # ls -l
> drwxr-xr-x    1 root     root                420 Jan 23 08:31 golden
> drwxr-xr-x    1 root     root                420 Jan 23 08:31 inuse
> drwxr-xr-x    1 root     root               4340 Dec  3 18:30
> vcl.csueastbay.edu
> drwxr-xr-x    1 root     root               4340 Dec  3 18:08
> vcldb.csueastbay.edu
> drwxr-xr-x    1 root     root               4340 Dec  3 18:23
> vclmgmt.csueastbay.edu
> drwxr-xr-x    1 root     root               2660 Jan 23 08:22
> vmwarewinxp-base7-v0
> /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd golden/
> /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # ls -l
> drwxr-xr-x    1 root     root                280 Jan 23 08:31
> vmwarewinxp-base7-v0
> /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/golden # cd ..
> /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed # cd inuse/
> /vmfs/volumes/4ae7602f-490f0fcb-52ef-00144fd1e4ed/inuse # ls -l
> drwxr-xr-x    1 root     root                420 Jan 23 08:31 vcl-winxp
> 
> 
> Let me know if more output from the logs would be helpful, or any other
> information.
> 
> 
> Thanks,
> Jeff Wisman
> 

-- 
Andy Kurth
Virtual Computing Lab
Office of Information Technology
North Carolina State University
andy_kurth@ncsu.edu
919.513.4090