Bug 1353497 - heketi-cli volume delete fails with "sudo: sorry, you must have a tty to run sudo"
Summary: heketi-cli volume delete fails with "sudo: sorry, you must have a tty to run ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: heketi
Version: unspecified
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: RHGS Container Converged 1.0
Assignee: Luis Pabón
QA Contact: Prasanth
URL:
Whiteboard:
Depends On:
Blocks: 1332128
TreeView+ depends on / blocked
 
Reported: 2016-07-07 09:54 UTC by Bhaskarakiran
Modified: 2016-11-23 23:12 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-04 04:52:04 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1498 0 normal SHIPPED_LIVE heketi update for Red Hat Gluster Storage 3.1 2016-08-04 08:49:19 UTC

Comment 2 Luis Pabón 2016-07-07 12:00:10 UTC
Will look into it.

Comment 3 Luis Pabón 2016-07-07 12:01:20 UTC
Do you mind attaching the logs to this bug?

Comment 4 Luis Pabón 2016-07-09 06:44:58 UTC
I was able to reproduce the issue.  Looks like we need to remove all sudo commands.

This does *NOT* happen on OpenShift Origin, but I was able to reproduce on OSE 3.2.1.4:

[kubeexec] ERROR 2016/07/09 02:41:23 /src/github.com/heketi/heketi/executors/kubeexec/kubeexec.go:298: Failed to run command [sudo pvcreate --metadatasize=128M --dataalignment=256K /dev/vdb] on glusterfs-dc-192.168.121.168-1-5yvnv: Err[Error executing remote command: Error executing command in container: Error executing in Docker Container: 1]: Stdout []: Stderr [sudo: sorry, you must have a tty to run sudo
]

This prevents deployment of Heketi

Comment 5 Humble Chirammal 2016-07-11 06:16:09 UTC
I am still confused how the 50 volume creation works here ? if it was an issue with sudo command, all the 'sudo' command would have failed. Isnt it ? Looks like there are some cleanup required in the entire code path. For now, we can place the option ( disablerequiretty) back and give a try though.

Comment 6 Luis Pabón 2016-07-14 00:06:18 UTC
https://github.com/heketi/heketi/pull/427

Comment 10 Prasanth 2016-07-25 12:57:45 UTC
This issue is no longer reproducible with the latest build. Hence marking it as Verified.

Comment 12 errata-xmlrpc 2016-08-04 04:52:04 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-1498.html


Note You need to log in before you can comment on or make changes to this bug.