[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-7143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14143285#comment-14143285
 ] 

ASF GitHub Bot commented on CLOUDSTACK-7143:
--------------------------------------------

Github user lsimons commented on the pull request:

    https://github.com/apache/cloudstack/pull/16#issuecomment-56387394
  
    sorry, nevermind the last comment.
    
    From the jenkins build log:
    ```
    [2014-09-19 14:57:59] INFO: stoppping all virtualbox vms for jenkins
    + bundle exec ./vbox_vm_clean.rb
    VBoxManage controlvm systemvmtemplate poweroff
    VBoxManage: error: Invalid machine state: PoweredOff (must be Running, 
Paused or Stuck)
    VBoxManage: error: Details: code VBOX_E_INVALID_VM_STATE (0x80bb0002), 
component Console, interface IConsole, callee nsISupports
    VBoxManage: error: Context: "PowerDown(progress.asOutParam())" at line 222 
of file VBoxManageControlVM.cpp
    VBoxManage controlvm systemvm64template poweroff
    VBoxManage: error: Invalid machine state: PoweredOff (must be Running, 
Paused or Stuck)
    VBoxManage: error: Details: code VBOX_E_INVALID_VM_STATE (0x80bb0002), 
component Console, interface IConsole, callee nsISupports
    VBoxManage: error: Context: "PowerDown(progress.asOutParam())" at line 222 
of file VBoxManageControlVM.cpp
    kill -SIGKILL 19324
    kill -SIGTERM 19324
    ./vbox_vm_clean.rb:49:in `kill'
    ./vbox_vm_clean.rb:49:in `block (2 levels) in <main>'
    
/usr/local/rvm/gems/ruby-1.9.3-p547/gems/sys-proctable-0.9.4-universal-linux/lib/linux/sys/proctable.rb:237:in
 `block in ps'
    
/usr/local/rvm/gems/ruby-1.9.3-p547/gems/sys-proctable-0.9.4-universal-linux/lib/linux/sys/proctable.rb:110:in
 `foreach'
    
/usr/local/rvm/gems/ruby-1.9.3-p547/gems/sys-proctable-0.9.4-universal-linux/lib/linux/sys/proctable.rb:110:in
 `ps'
    ./vbox_vm_clean.rb:31:in `block in <main>'
    ./vbox_vm_clean.rb:14:in `each'
    ./vbox_vm_clean.rb:14:in `<main>'
    VBoxManage controlvm systemvm64template-systemvm-refactor-for-upstream-9 
poweroff
    VBoxManage: error: Invalid machine state: Aborted (must be Running, Paused 
or Stuck)
    VBoxManage: error: Details: code VBOX_E_INVALID_VM_STATE (0x80bb0002), 
component Console, interface IConsole, callee nsISupports
    VBoxManage: error: Context: "PowerDown(progress.asOutParam())" at line 222 
of file VBoxManageControlVM.cpp
    ```
    
    The lines
    ```bash
    kill -SIGKILL 19324
    kill -SIGTERM 19324
    ```
    
    mean that we forcibly shut down a virtualbox process, probably the one that 
was running the systemvm that was built. This means that the line further up
    ```bash
    bundle exec veewee vbox halt 
systemvm64template-systemvm-refactor-for-upstream-9
    ```
    
    did not succeed in fully shutting down the new machine, and then the next 
attempt to cleanly power off
    ```bash
    VBoxManage controlvm systemvm64template-systemvm-refactor-for-upstream-9 
poweroff
    ```
    
    also failed, and so we don't umount cleanly, and so stuff is broken.
    
    FWIW, a successful build has something more like
    
    ```bash
    VBoxManage controlvm systemvmtemplate-systemvm-persistent-config-4.5.0.78 
poweroff
    0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%```
    ```
    
    I'll investigate what went wrong.
    
    We should probably also just fail the build if the poweroff fails rather 
than attempting a 'kill'.



> Refactor systemvm build scripts to be easier to test
> ----------------------------------------------------
>
>                 Key: CLOUDSTACK-7143
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7143
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: SystemVM
>            Reporter: Leo Simons
>             Fix For: Future
>
>
> The veewee-wrapping build code could do with some love.
> E-mail thread: 
> http://mail-archives.apache.org/mod_mbox/cloudstack-dev/201407.mbox/%3C7A6CF878-7A28-4D4A-BCD2-0C264F8C90B7%40schubergphilis.com%3E



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to