2016-10-24 19:11:40 |
krypto |
description |
Trying Fuel 8 with separate ironic role,which got installed successfully how ever ironic is having issue establishing iscsi session due to
Stderr: u'sudo: no tty present and no askpass program specified\n'
command its trying to execute
ironic@ironic:~$ /etc/ironic/rootwrap.conf iscsiadm -m discovery -t st -p 192.168.3.68:3260
bash: /etc/ironic/rootwrap.conf: Permission denied
Expected result :
should not throw sudo permission denied issue
Packages:
ironic@ironic:~$ dpkg --list|grep ironic
ii ironic-common 1:4.2.5-3~u14.04+mos6 all bare metal hypervisor API for OpenStack - common files
ii ironic-conductor 1:4.2.5-3~u14.04+mos6 all bare metal hypervisor API for OpenStack - conductor
ii ironic-fa-deploy 8.0.0-1~u14.04+mos243 all Ironic-fa-deploy package
ii python-ironic 1:4.2.5-3~u14.04+mos6 all bare metal hypervisor API for OpenStack - Python lib
ii python-ironicclient 0.8.2-1~u14.04+mos3 all Client for OpenStack bare metal Service - Python 2.7 |
Trying Fuel 8 with separate ironic role,which got installed successfully how ever ironic is having issue establishing iscsi session due to
Stderr: u'sudo: no tty present and no askpass program specified\n'
command its trying to execute
From ironic conductor log :
Asynchronous exception for node d17cde67-99e7-4263-b08c-e27b513850f4: Node failed to get image for deploy. exception: Deploy failed for instance f2aec4e9-f51d-47ad-a269-4fb6d10dedbe. Error: Unexpected error while running command.
Command: sudo ironic-rootwrap /etc/ironic/rootwrap.conf iscsiadm -m discovery -t st -p 192.168.3.68:3260
Exit code: 1
Stdout: u''
Stderr: u'sudo: no tty present and no askpass program specified\n'
2016-10-24 18:33:30.843 30680 ERROR ironic.drivers.modules.agent_base_vendor Traceback (most recent call last):
2016-10-24 18:33:30.843 30680 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/dist-packages/ironic/drivers/modules/agent_base_vendor.py", line 346, in heartbeat
2016-10-24 18:33:30.843 30680 ERROR ironic.drivers.modules.agent_base_vendor self.continue_deploy(task, **kwargs)
2016-10-24 18:33:30.843 30680 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/dist-packages/ironic/conductor/task_manager.py", line 134, in wrapper
2016-10-24 18:33:30.843 30680 ERROR ironic.drivers.modules.agent_base_vendor return f(*args, **kwargs)
2016-10-24 18:33:30.843 30680 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/dist-packages/ironic/drivers/modules/iscsi_deploy.py", line 873, in continue_deploy
2016-10-24 18:33:30.843 30680 ERROR ironic.drivers.modules.agent_base_vendor uuid_dict_returned = do_agent_iscsi_deploy(task, self._client)
2016-10-24 18:33:30.843 30680 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/dist-packages/ironic/drivers/modules/iscsi_deploy.py", line 458, in do_agent_iscsi_deploy
2016-10-24 18:33:30.843 30680 ERROR ironic.drivers.modules.agent_base_vendor uuid_dict_returned = continue_deploy(task, **iscsi_params)
2016-10-24 18:33:30.843 30680 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/dist-packages/ironic/drivers/modules/iscsi_deploy.py", line 391, in continue_deploy
2016-10-24 18:33:30.843 30680 ERROR ironic.drivers.modules.agent_base_vendor _fail_deploy(task, msg)
2016-10-24 18:33:30.843 30680 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/dist-packages/ironic/drivers/modules/iscsi_deploy.py", line 364, in _fail_deploy
2016-10-24 18:33:30.843 30680 ERROR ironic.drivers.modules.agent_base_vendor raise exception.InstanceDeployFailure(msg)
2016-10-24 18:33:30.843 30680 ERROR ironic.drivers.modules.agent_base_vendor InstanceDeployFailure: Deploy failed for instance f2aec4e9-f51d-47ad-a269-4fb6d10dedbe. Error: Unexpected error while running command.
2016-10-24 18:33:30.843 30680 ERROR ironic.drivers.modules.agent_base_vendor Command: sudo ironic-rootwrap /etc/ironic/rootwrap.conf iscsiadm -m discovery -t st -p 192.168.3.68:3260
2016-10-24 18:33:30.843 30680 ERROR ironic.drivers.modules.agent_base_vendor Exit code: 1
2016-10-24 18:33:30.843 30680 ERROR ironic.drivers.modules.agent_base_vendor Stdout: u''
2016-10-24 18:33:30.843 30680 ERROR ironic.drivers.modules.agent_base_vendor Stderr: u'sudo: no tty present and no askpass program specified\n'
2016-10-24 18:33:30.843 30680 ERROR ironic.drivers.modules.agent_base_vendor
Expected result :
should not throw sudo permission denied issue
Packages:
ironic@ironic:~$ dpkg --list|grep ironic
ii ironic-common 1:4.2.5-3~u14.04+mos6 all bare metal hypervisor API for OpenStack - common files
ii ironic-conductor 1:4.2.5-3~u14.04+mos6 all bare metal hypervisor API for OpenStack - conductor
ii ironic-fa-deploy 8.0.0-1~u14.04+mos243 all Ironic-fa-deploy package
ii python-ironic 1:4.2.5-3~u14.04+mos6 all bare metal hypervisor API for OpenStack - Python lib
ii python-ironicclient 0.8.2-1~u14.04+mos3 all Client for OpenStack bare metal Service - Python 2.7 |
|