ironic sudo: no tty present and no askpass program specified\n'

Bug #1636287 reported by krypto
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
High
Fuel Sustaining
8.0.x
Confirmed
High
Fuel Sustaining
Mitaka
Fix Released
High
Vladimir Kuklin
Newton
Invalid
High
Fuel Sustaining
Ocata
Invalid
High
Fuel Sustaining

Bug 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

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

krypto (kkrypto)
description: updated
Revision history for this message
Oleksiy Molchanov (omolchanov) wrote :

Marking as Incomplete, please attach Diagnostic Snapshot.

tags: added: area-library
Changed in fuel:
milestone: none → 10.0-updates
milestone: 10.0-updates → 11.0
assignee: nobody → Fuel Sustaining (fuel-sustaining-team)
importance: Undecided → High
status: New → Confirmed
status: Confirmed → Incomplete
Revision history for this message
Alexander Kurenyshev (akurenyshev) wrote :

@krypto, please, attach the snapshot, or any data related, or this bug will be moved to Invalid by the November, 25

Revision history for this message
krypto (kkrypto) wrote :

I tried to post the snapshot as comment, but am getting a timeout error. Please find the snapshot on below link.

https://www.dropbox.com/s/9ijlt6p094fnwol/fuel-snapshot-2016-10-26_02-39-57.tar.xz?dl=0

Changed in fuel:
status: Incomplete → Confirmed
Revision history for this message
Stanislaw Bogatkin (sbogatkin) wrote :
Revision history for this message
Vladimir Kuklin (vkuklin) wrote :

Sudoers file is missing only for Mitaka and Liberty packages

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack-build/ironic-build (9.0/mitaka)

Fix proposed to branch: 9.0/mitaka
Change author: Vladimir Kuklin <email address hidden>
Review: https://review.fuel-infra.org/29358

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack-build/ironic-build (9.0/mitaka)

Reviewed: https://review.fuel-infra.org/29358
Submitter: Pkgs Jenkins <email address hidden>
Branch: 9.0/mitaka

Commit: 0ca147c3231bd576aae50f19a4b68b60cbfc055b
Author: Vladimir Kuklin <email address hidden>
Date: Wed Dec 14 17:15:08 2016

Add Ironic sudoers file

Change-Id: I8576da2df96dd52b46103d81053919e7e8db1225
Closes-bug: #1636287

tags: added: on-verification
Revision history for this message
TatyanaGladysheva (tgladysheva) wrote :

Verified on 0.2 snapshot #802.

Actual results:
sudo permission denied issue is not observed now:
http://paste.openstack.org/show/596668/

Revision history for this message
TatyanaGladysheva (tgladysheva) wrote :

Sorry, Verified on 9.2 snapshot #802.

tags: removed: on-verification
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.