** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => havana-1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1178608

Title:
  nova-baremetal-deploy-helper errors are opaque

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  If the deploy helper has an error, the fact of the error, but not it's
  details are shown.

  I have a patch I'm going to push up in a minute.

  before:

  2013-05-10 10:00:58,114.114 13141 INFO nova.virt.baremetal.deploy_helper [-] 
start deployment for node 63, params {'swap_mb': 1, 'iqn': 
'iqn-6f1501d7-786c-4b7d-88e2-81fc5ff91b5d', 'image_path': 
u'/var/lib/nova/instances/instance-000000ac/disk', 'address': '192.168.0.117', 
'pxe_config_path': u'/tftpboot/6f1501d7-786c-4b7d-88e2-81fc5ff91b5d/config', 
'port': '3260', 'lun': '1', 'root_mb': 10240}
  2013-05-10 10:00:58,200.200 13141 ERROR nova.virt.baremetal.deploy_helper [-] 
deployment to node 63 failed

  2013-05-10 10:16:25,015.015 3167 INFO nova.virt.baremetal.deploy_helper 
[req-7e80e861-5d27-42a3-801e-97ef26ffa90b None None] start deployment for node 
63, params {'swap_mb': 1, 'iqn': 'iqn-99d3a2d9-9ce5-4eec-a095-cd374d54b6e3', 
'image_path': u'/var/lib/nova/instances/instance-000000ad/disk', 'address': 
'192.168.0.117', 'pxe_config_path': 
u'/tftpboot/99d3a2d9-9ce5-4eec-a095-cd374d54b6e3/config', 'port': '3260', 
'lun': '1', 'root_mb': 10240}
  2013-05-10 10:16:25,105.105 3167 ERROR nova.virt.baremetal.deploy_helper 
[req-7e80e861-5d27-42a3-801e-97ef26ffa90b None None] deployment to node 63 
failed
  2013-05-10 10:16:25,105.105 3167 TRACE nova.virt.baremetal.deploy_helper 
Traceback (most recent call last):
  2013-05-10 10:16:25,105.105 3167 TRACE nova.virt.baremetal.deploy_helper   
File 
"/opt/stack/venvs/nova/local/lib/python2.7/site-packages/nova/cmd/baremetal_deploy_helper.py",
 line 242, in run
  2013-05-10 10:16:25,105.105 3167 TRACE nova.virt.baremetal.deploy_helper     
deploy(**params)
  2013-05-10 10:16:25,105.105 3167 TRACE nova.virt.baremetal.deploy_helper   
File 
"/opt/stack/venvs/nova/local/lib/python2.7/site-packages/nova/cmd/baremetal_deploy_helper.py",
 line 200, in deploy
  2013-05-10 10:16:25,105.105 3167 TRACE nova.virt.baremetal.deploy_helper     
discovery(address, port)
  2013-05-10 10:16:25,105.105 3167 TRACE nova.virt.baremetal.deploy_helper   
File 
"/opt/stack/venvs/nova/local/lib/python2.7/site-packages/nova/cmd/baremetal_deploy_helper.py",
 line 56, in discovery
  2013-05-10 10:16:25,105.105 3167 TRACE nova.virt.baremetal.deploy_helper     
check_exit_code=[0])
  2013-05-10 10:16:25,105.105 3167 TRACE nova.virt.baremetal.deploy_helper   
File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/nova/utils.py", 
line 154, in execute
  2013-05-10 10:16:25,105.105 3167 TRACE nova.virt.baremetal.deploy_helper     
return processutils.execute(*cmd, **kwargs)
  2013-05-10 10:16:25,105.105 3167 TRACE nova.virt.baremetal.deploy_helper   
File 
"/opt/stack/venvs/nova/local/lib/python2.7/site-packages/nova/openstack/common/processutils.py",
 line 168, in execute
  2013-05-10 10:16:25,105.105 3167 TRACE nova.virt.baremetal.deploy_helper     
cmd=' '.join(cmd))
  2013-05-10 10:16:25,105.105 3167 TRACE nova.virt.baremetal.deploy_helper 
ProcessExecutionError: Unexpected error while running command.
  2013-05-10 10:16:25,105.105 3167 TRACE nova.virt.baremetal.deploy_helper 
Command: sudo nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m discovery -t st 
-p 192.168.0.117:3260
  2013-05-10 10:16:25,105.105 3167 TRACE nova.virt.baremetal.deploy_helper Exit 
code: 1
  2013-05-10 10:16:25,105.105 3167 TRACE nova.virt.baremetal.deploy_helper 
Stdout: ''
  2013-05-10 10:16:25,105.105 3167 TRACE nova.virt.baremetal.deploy_helper 
Stderr: 'Traceback (most recent call last):\n  File "/usr/bin/nova-rootwrap", 
line 89, in <module>\n    env=filtermatch.get_environment(userargs))\n  File 
"/usr/lib/python2.7/subprocess.py", line 679, in __init__\n    errread, 
errwrite)\n  File "/usr/lib/python2.7/subprocess.py", line 1259, in 
_execute_child\n    raise child_exception\nOSError: [Errno 2] No such file or 
directory\n'
  2013-05-10 10:16:25,105.105 3167 TRACE nova.virt.baremetal.deploy_helper

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1178608/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to