Re: Newly created image reload failing on sandbox

2010-07-16 Thread Brian Copcea
Hello all -

When we spoke earlier Kiran, this was the directory problem I suspected but
the Error -16 threw me off.

There is a bug in vmware.pm for ESX that makes the directory name for the
new image, and then uses the move command in an attempt to rename the
previously named directory under the reservation numbervm guest schema
to the correct image name.  However, since it created the new directory
already, it simply copies the directory under the correctly named directory
instead of actually renaming the images as intended.

I don't know if this bug exists for the code for GSX/VMware Server as well,
but I would guess it does with the above directory structure you gave that
this is what is happening.  I will try to reply to this thread later with
the exact location of the ESX vmware.pm code I had to change and see if I
can find any GSX counterparts.

Aaron, I said I would submit a Jira issue about this and I got a bit slack -
I'll try to get that done this weekend.

I hope this helps and makes sense...

Sincerely,

Brian Copcea



On Thu, Jul 15, 2010 at 4:27 PM, Kiran N kiran.nellima...@gmail.com wrote:

 Sorry I think I did not put in correct words.. I am able to run ssh vmhost1
 and login to vmhost1. But the current problem is the missing .vmdk files..


 On Thu, Jul 15, 2010 at 4:01 PM, Josh Thompson josh_thomp...@ncsu.edu
 wrote:

  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  On Thursday July 15, 2010, Kiran N wrote:
   Michael, I am unable to login to the vmhost1, I think some access
 issue..
   not sure..!
 
  Once you are logged in to the management node vm within the sandbox
 image,
  you
  should just be able to run ssh vmhost1 to connect to it.  If you can't
 do
  that, then you have bigger problems because that is how vcld (from within
  the
  sandbox) runs commands on the vmhost.
 
  Josh
  - --
  - ---
  Josh Thompson
  Systems Programmer
  Advanced Computing | VCL Developer
  North Carolina State University
 
  josh_thomp...@ncsu.edu
  919-515-5323
 
  my GPG/PGP key can be found at pgp.mit.edu
  -BEGIN PGP SIGNATURE-
  Version: GnuPG v2.0.14 (GNU/Linux)
 
  iEUEARECAAYFAkw/aSMACgkQV/LQcNdtPQOm5ACdEe56rEujUfSC3YkQJJ1tWIH8
  tdAAlA1r3JGkXd7/1Qoj/Z1gJHGeIJo=
  =rxgF
  -END PGP SIGNATURE-
 



 --
 Thanks,
 Kiran



Newly created image reload failing on sandbox

2010-07-15 Thread Kiran N
Hi All,
I made an imaging reservation on the sandbox image and the image got created
but that new image cant be reloaded on any computer.
I am getting an error.
VMControl error -16: Virtual machine requires user input to continue
I am not sure as to what input I need to provide and I tried few means for
login to the virtual machine but i think I have no access.
I just read online that restarting the virtiual machine might help.. Any
ideas..?
Below is the detailed log when I try to make a reservation on the newly
created image.

2010-07-15 13:56:56|15613|vcld:main(165)|lastcheckin time updated for
management node 1: 2010-07-15 13:56:56
===
OUTPUT for vcld run on 2010-07-15 13:57:02
===
2010-07-15 13:57:02|27874|vcld:main(116)|vcld environment variable set to 1
for this process
2010-07-15 13:57:02|27874|utils.pm:rename_vcld_process(7901)|renamed process
to 'vcld vcld'
2010-07-15 13:57:02|27874|utils.pm:get_management_node_info(6815)|management
node info retrieved from database for localhost
2010-07-15 13:57:02|27874|vcld:main(127)|retrieved management node
information from database
2010-07-15 13:57:02|27874|vcld:main(140)|management_node_id environment
variable set: 1
2010-07-15 13:57:02|27874|vcld:main(148)|management node checkin interval is
5 seconds
2010-07-15 13:57:02|27874|vcld:main(149)|vcld started on localhost
2010-07-15 13:57:07|27874|vcld:main(165)|lastcheckin time updated for
management node 1: 2010-07-15 13:57:07
2010-07-15 13:57:12|27874|vcld:main(165)|lastcheckin time updated for
management node 1: 2010-07-15 13:57:12
2010-07-15 13:57:18|27874|vcld:main(165)|lastcheckin time updated for
management node 1: 2010-07-15 13:57:17
2010-07-15 
13:57:18|27874|6:6|new|utils.pm:reservation_being_processed(9634)|computerloadlog
'begin' entry does NOT exist for reservation 6
2010-07-15 
13:57:18|27874|6:6|new|utils.pm:reservation_being_processed(9686)|reservation
is NOT currently being processed
2010-07-15 13:57:18|27874|6:6|new|vcld:main(276)|reservation 6 is NOT
already being processed
2010-07-15 13:57:18|27874|6:6|new|utils.pm:get_request_info(5354)|standalone
affiliation found: Local
2010-07-15 
13:57:18|27874|6:6|new|utils.pm:get_management_node_info(6815)|management
node info retrieved from database for localhost
2010-07-15 13:57:18|27874|6:6|new|vcld:main(281)|retrieved request
information from database
2010-07-15 
13:57:18|27874|6:6|new|utils.pm:get_management_node_info(6815)|management
node info retrieved from database for localhost
2010-07-15
13:57:18|27874|6:6|new|DataStructure.pm:is_parent_reservation(854)|returning
true: parent reservation ID for this request: 6
2010-07-15 13:57:18|27874|6:6|new|utils.pm:update_request_state(2186)|request
6 state updated to: pending, laststate to: new
2010-07-15 13:57:18|27874|6:6|new|utils.pm:insertloadlog(4710)|inserted
computer=2, begin, beginning to process, state is new
2010-07-15 13:57:18|27874|6:6|new|vcld:make_new_child(509)|loaded VCL::new
module
2010-07-15 13:57:18|27904|6:6|new|vcld:make_new_child(582)|vcld environment
variable set to 0 for this process
2010-07-15 13:57:18|27904|6:6|new|Module.pm:new(132)|constructor called,
class=VCL::new
2010-07-15 13:57:18|27904|6:6|new|Module.pm:new(154)|VCL::new object created
2010-07-15 13:57:18|27874|6:6|new|vcld:make_new_child(566)|current number of
forked kids: 1
2010-07-15 13:57:18|27904|6:6|new|State.pm:initialize(85)|obtained a
database handle for this state process, stored as $ENV{dbh}
2010-07-15 13:57:18|27904|6:6|new|State.pm:check_image_os(820)|no
corrections need to be made, not an imaging request, returning 1
2010-07-15
13:57:18|27904|6:6|new|DataStructure.pm:is_parent_reservation(854)|returning
true: parent reservation ID for this request: 6
2010-07-15 13:57:18|27904|6:6|new|utils.pm:rename_vcld_process(7863)|reservation
count: 1
2010-07-15 
13:57:18|27904|6:6|new|utils.pm:rename_vcld_process(7882)|PARENTIMAGE:
1
2010-07-15 13:57:18|27904|6:6|new|utils.pm:rename_vcld_process(7883)|SUBIMAGE:
0
2010-07-15 13:57:18|27904|6:6|new|utils.pm:rename_vcld_process(7901)|renamed
process to 'vcld VCL::new 6:6 new'
2010-07-15
13:57:18|27904|6:6|new|DataStructure.pm:is_parent_reservation(854)|returning
true: parent reservation ID for this request: 6
2010-07-15
13:57:18|27904|6:6|new|DataStructure.pm:is_parent_reservation(854)|returning
true: parent reservation ID for this request: 6
2010-07-15 13:57:18|27904|6:6|new|State.pm:initialize(121)|attempting to
load provisioning module: VCL::Module::Provisioning::vmware
2010-07-15
13:57:18|27904|6:6|new|State.pm:initialize(127)|VCL::Module::Provisioning::vmware
module loaded
2010-07-15 13:57:18|27904|6:6|new|Module.pm:new(132)|constructor called,
class=VCL::Module::Provisioning::vmware
2010-07-15
13:57:18|27904|6:6|new|Module.pm:new(154)|VCL::Module::Provisioning::vmware
object created
2010-07-15 13:57:18|27904|6:6|new|vmware.pm:initialize(105)|vmware 

RE: Newly created image reload failing on sandbox

2010-07-15 Thread Waldron, Michael H
Kiran,

A message like this indicates that the virtual machine was unable to start due 
to some error condition. You need to logon to your VMWare host server vmhost1, 
and start the vmware console so you can see the message of what input it's 
asking for. This will give you a clue as to what is wrong.

Mike Waldron
Systems Specialist
ITS Research Computing
University of North Carolina at Chapel Hill
CB #3420, ITS Manning, Rm 2509
919-962-9778


-Original Message-
From: Kiran N [mailto:kiran.nellima...@gmail.com]
Sent: Thursday, July 15, 2010 2:39 PM
To: vcl-dev@incubator.apache.org
Subject: Newly created image reload failing on sandbox

Hi All,
I made an imaging reservation on the sandbox image and the image got created
but that new image cant be reloaded on any computer.
I am getting an error.
VMControl error -16: Virtual machine requires user input to continue
I am not sure as to what input I need to provide and I tried few means for
login to the virtual machine but i think I have no access.
I just read online that restarting the virtiual machine might help.. Any
ideas..?
Below is the detailed log when I try to make a reservation on the newly
created image.

2010-07-15 13:56:56|15613|vcld:main(165)|lastcheckin time updated for
management node 1: 2010-07-15 13:56:56
===
OUTPUT for vcld run on 2010-07-15 13:57:02
===
2010-07-15 13:57:02|27874|vcld:main(116)|vcld environment variable set to 1
for this process
2010-07-15 13:57:02|27874|utils.pm:rename_vcld_process(7901)|renamed process
to 'vcld vcld'
2010-07-15 13:57:02|27874|utils.pm:get_management_node_info(6815)|management
node info retrieved from database for localhost
2010-07-15 13:57:02|27874|vcld:main(127)|retrieved management node
information from database
2010-07-15 13:57:02|27874|vcld:main(140)|management_node_id environment
variable set: 1
2010-07-15 13:57:02|27874|vcld:main(148)|management node checkin interval is
5 seconds
2010-07-15 13:57:02|27874|vcld:main(149)|vcld started on localhost
2010-07-15 13:57:07|27874|vcld:main(165)|lastcheckin time updated for
management node 1: 2010-07-15 13:57:07
2010-07-15 13:57:12|27874|vcld:main(165)|lastcheckin time updated for
management node 1: 2010-07-15 13:57:12
2010-07-15 13:57:18|27874|vcld:main(165)|lastcheckin time updated for
management node 1: 2010-07-15 13:57:17
2010-07-15 
13:57:18|27874|6:6|new|utils.pm:reservation_being_processed(9634)|computerloadlog
'begin' entry does NOT exist for reservation 6
2010-07-15 
13:57:18|27874|6:6|new|utils.pm:reservation_being_processed(9686)|reservation
is NOT currently being processed
2010-07-15 13:57:18|27874|6:6|new|vcld:main(276)|reservation 6 is NOT
already being processed
2010-07-15 13:57:18|27874|6:6|new|utils.pm:get_request_info(5354)|standalone
affiliation found: Local
2010-07-15 
13:57:18|27874|6:6|new|utils.pm:get_management_node_info(6815)|management
node info retrieved from database for localhost
2010-07-15 13:57:18|27874|6:6|new|vcld:main(281)|retrieved request
information from database
2010-07-15 
13:57:18|27874|6:6|new|utils.pm:get_management_node_info(6815)|management
node info retrieved from database for localhost
2010-07-15
13:57:18|27874|6:6|new|DataStructure.pm:is_parent_reservation(854)|returning
true: parent reservation ID for this request: 6
2010-07-15 13:57:18|27874|6:6|new|utils.pm:update_request_state(2186)|request
6 state updated to: pending, laststate to: new
2010-07-15 13:57:18|27874|6:6|new|utils.pm:insertloadlog(4710)|inserted
computer=2, begin, beginning to process, state is new
2010-07-15 13:57:18|27874|6:6|new|vcld:make_new_child(509)|loaded VCL::new
module
2010-07-15 13:57:18|27904|6:6|new|vcld:make_new_child(582)|vcld environment
variable set to 0 for this process
2010-07-15 13:57:18|27904|6:6|new|Module.pm:new(132)|constructor called,
class=VCL::new
2010-07-15 13:57:18|27904|6:6|new|Module.pm:new(154)|VCL::new object created
2010-07-15 13:57:18|27874|6:6|new|vcld:make_new_child(566)|current number of
forked kids: 1
2010-07-15 13:57:18|27904|6:6|new|State.pm:initialize(85)|obtained a
database handle for this state process, stored as $ENV{dbh}
2010-07-15 13:57:18|27904|6:6|new|State.pm:check_image_os(820)|no
corrections need to be made, not an imaging request, returning 1
2010-07-15
13:57:18|27904|6:6|new|DataStructure.pm:is_parent_reservation(854)|returning
true: parent reservation ID for this request: 6
2010-07-15 13:57:18|27904|6:6|new|utils.pm:rename_vcld_process(7863)|reservation
count: 1
2010-07-15 
13:57:18|27904|6:6|new|utils.pm:rename_vcld_process(7882)|PARENTIMAGE:
1
2010-07-15 13:57:18|27904|6:6|new|utils.pm:rename_vcld_process(7883)|SUBIMAGE:
0
2010-07-15 13:57:18|27904|6:6|new|utils.pm:rename_vcld_process(7901)|renamed
process to 'vcld VCL::new 6:6 new'
2010-07-15
13:57:18|27904|6:6|new|DataStructure.pm:is_parent_reservation(854)|returning
true: parent reservation ID for this request: 6
2010-07

Re: Newly created image reload failing on sandbox

2010-07-15 Thread Kiran N
Hello,
I entered the command from the command line and got the output as shown:

[r...@bn18-113 ~](vmhost1)# vmware-cmd
/var/lib/vmware/runningvms/vmwarelinux-test12-v0vm1/vmwarelinux-test12-v0vm1.vmx
answer

Question (id = 981054133) :Cannot open the disk
'/var/lib/vmware/images/vmwarelinux-test12-v0/vmwarelinux-test12-v0.vmdk' or
one of the snapshot disks it depends on.
Reason: The system cannot find the file specified.
0) OK
Select choice. Press enter for default 0 :

So, when I go to the path /var/lib/vmware/images/vmwarelinux-test12-v0/ I
cannot see the .vmdk file
instead the path is /var/lib/vmware/images/vmwarelinux-test12-v0/2vm1
Also in the log we see:

2010-07-15 13:57:22|27904|6:6|new|vmware.pm:load(658)|path is
/install/vmware_images/vmwarelinux-test12-v0/vmwarelinux-test12-v0.vmdk
2010-07-15 13:57:22|27904|6:6|new|vmware.pm:load(668)|grep:
/install/vmware_images/vmwarelinux-test12-v0/vmwarelinux-test12-v0.vmdk: No
such file or directory


Hence the problem is that I think is the image creation process doesnt not
create files in correct path and so the .vmdk file cannot be found and the
naming is also different.

Michael, I am unable to login to the vmhost1, I think some access issue..
not sure..!

Please advise!

On Thu, Jul 15, 2010 at 2:45 PM, Waldron, Michael H
mwald...@email.unc.eduwrote:

 Kiran,

 A message like this indicates that the virtual machine was unable to start
 due to some error condition. You need to logon to your VMWare host server
 vmhost1, and start the vmware console so you can see the message of what
 input it's asking for. This will give you a clue as to what is wrong.

 Mike Waldron
 Systems Specialist
 ITS Research Computing
 University of North Carolina at Chapel Hill
 CB #3420, ITS Manning, Rm 2509
 919-962-9778


 -Original Message-
 From: Kiran N [mailto:kiran.nellima...@gmail.com]
 Sent: Thursday, July 15, 2010 2:39 PM
 To: vcl-dev@incubator.apache.org
 Subject: Newly created image reload failing on sandbox

 Hi All,
 I made an imaging reservation on the sandbox image and the image got
 created
 but that new image cant be reloaded on any computer.
 I am getting an error.
 VMControl error -16: Virtual machine requires user input to continue
 I am not sure as to what input I need to provide and I tried few means for
 login to the virtual machine but i think I have no access.
 I just read online that restarting the virtiual machine might help.. Any
 ideas..?
 Below is the detailed log when I try to make a reservation on the newly
 created image.

 2010-07-15 13:56:56|15613|vcld:main(165)|lastcheckin time updated for
 management node 1: 2010-07-15 13:56:56
 ===
 OUTPUT for vcld run on 2010-07-15 13:57:02
 ===
 2010-07-15 13:57:02|27874|vcld:main(116)|vcld environment variable set to 1
 for this process
 2010-07-15 13:57:02|27874|utils.pm:rename_vcld_process(7901)|renamed
 process
 to 'vcld vcld'
 2010-07-15 13:57:02|27874|utils.pm:
 get_management_node_info(6815)|management
 node info retrieved from database for localhost
 2010-07-15 13:57:02|27874|vcld:main(127)|retrieved management node
 information from database
 2010-07-15 13:57:02|27874|vcld:main(140)|management_node_id environment
 variable set: 1
 2010-07-15 13:57:02|27874|vcld:main(148)|management node checkin interval
 is
 5 seconds
 2010-07-15 13:57:02|27874|vcld:main(149)|vcld started on localhost
 2010-07-15 13:57:07|27874|vcld:main(165)|lastcheckin time updated for
 management node 1: 2010-07-15 13:57:07
 2010-07-15 13:57:12|27874|vcld:main(165)|lastcheckin time updated for
 management node 1: 2010-07-15 13:57:12
 2010-07-15 13:57:18|27874|vcld:main(165)|lastcheckin time updated for
 management node 1: 2010-07-15 13:57:17
 2010-07-15 13:57:18|27874|6:6|new|utils.pm:
 reservation_being_processed(9634)|computerloadlog
 'begin' entry does NOT exist for reservation 6
 2010-07-15 13:57:18|27874|6:6|new|utils.pm:
 reservation_being_processed(9686)|reservation
 is NOT currently being processed
 2010-07-15 13:57:18|27874|6:6|new|vcld:main(276)|reservation 6 is NOT
 already being processed
 2010-07-15 13:57:18|27874|6:6|new|utils.pm:
 get_request_info(5354)|standalone
 affiliation found: Local
 2010-07-15 13:57:18|27874|6:6|new|utils.pm:
 get_management_node_info(6815)|management
 node info retrieved from database for localhost
 2010-07-15 13:57:18|27874|6:6|new|vcld:main(281)|retrieved request
 information from database
 2010-07-15 13:57:18|27874|6:6|new|utils.pm:
 get_management_node_info(6815)|management
 node info retrieved from database for localhost
 2010-07-15

 13:57:18|27874|6:6|new|DataStructure.pm:is_parent_reservation(854)|returning
 true: parent reservation ID for this request: 6
 2010-07-15 13:57:18|27874|6:6|new|utils.pm:
 update_request_state(2186)|request
 6 state updated to: pending, laststate to: new
 2010-07-15 13:57:18|27874|6:6|new|utils.pm:insertloadlog(4710

Re: Newly created image reload failing on sandbox

2010-07-15 Thread Josh Thompson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thursday July 15, 2010, Kiran N wrote:
 Michael, I am unable to login to the vmhost1, I think some access issue..
 not sure..!

Once you are logged in to the management node vm within the sandbox image, you 
should just be able to run ssh vmhost1 to connect to it.  If you can't do 
that, then you have bigger problems because that is how vcld (from within the 
sandbox) runs commands on the vmhost.

Josh
- -- 
- ---
Josh Thompson
Systems Programmer
Advanced Computing | VCL Developer
North Carolina State University

josh_thomp...@ncsu.edu
919-515-5323

my GPG/PGP key can be found at pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.14 (GNU/Linux)

iEUEARECAAYFAkw/aSMACgkQV/LQcNdtPQOm5ACdEe56rEujUfSC3YkQJJ1tWIH8
tdAAlA1r3JGkXd7/1Qoj/Z1gJHGeIJo=
=rxgF
-END PGP SIGNATURE-