[jbosstools-issues] [JBoss JIRA] (JBIDE-23016) When starting CDK 2.2 with landrush for the first time, user will be prompted for sudo password
Hardy Ferentschik (JIRA)
issues at jboss.org
Thu Sep 15 07:20:00 EDT 2016
[ https://issues.jboss.org/browse/JBIDE-23016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13293823#comment-13293823 ]
Hardy Ferentschik commented on JBIDE-23016:
-------------------------------------------
To add my 0.02$. As already mentioned, we have to differentiate between OS X / Linux and Windows. On the former Landrush uses sudo to make some changes to system files ({{/etc/resolver}} for OS X and {{/etc/dnsmasq.d}} resp. {{/etc/resolv.conf}}). This changes are required in order to (re-)-configure the host DNS in order to resolve the OpenShift IP. If the {{vagrant up}} process is not interactive this is an issue. Can it be made interactive? As a workaround, the user would indeed need to start the system once from the command line to create/modify the necessary files. After that {{vagrant up}} will also work from Eclipse.
On Windows, the case it different. One also needs admin privileges, but there is no concept of sudo. There some Windows tools are executed which require admin privileges to be run. In order to do that, the Ruby script which calls these tools will try to elevate to admin mode. If the user has admin privileges this will be transparent (you might see a window pop up and disappear, but no interaction required). If the user does not have the privileges, the default Windows dialog to provide admin credentials pops up. It is unfortunate that this happens multiple times, but as mentioned it is not only Landrush which required admin privileges, but also VirtualBox. Personally, I would expect to have admin privileges on the development machine, but I guess in some corporate settings this might be wishful thinking. However, in this case they might not even mind that they have to provide credentials multiple times.
{quote}
BTW, does anybody know how to get back to the state where landrush needs to make these changes which require admin permissions? I mean how to recreate the first time use of landrush.
{quote}
* OS X - Remove the file created in {{/etc/resolver/}}
* Linux - Remove generated file in {{/etc/dnsmasq.d}} and revert {{/etc/resolv.conf}}
> When starting CDK 2.2 with landrush for the first time, user will be prompted for sudo password
> -----------------------------------------------------------------------------------------------
>
> Key: JBIDE-23016
> URL: https://issues.jboss.org/browse/JBIDE-23016
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: cdk
> Affects Versions: 4.4.1.AM3
> Reporter: Martin Malina
> Assignee: Rob Stryker
> Priority: Critical
> Fix For: 4.4.2.AM1
>
>
> The problem is that the first time you do vagrant up with cdk that has landrush set up, you will be asked to provide your sudo password so that landrush can be set up (unless you used it elsewhere already).
> This is definitely true on Mac, most likely on Linux also. On Windows, I expect that you will probably just be shown the system prompt for agreeing that the process uses admin rights.
> When I did this yesterday (while testing cdk 2.2 rc1), I actually started it from terminal first, so I could enter my password in the console. But I'm pretty sure this wouldn't work in Eclipse. So we need to figure out how to handle this scenario and also test what happens on Windows after installing devsuite and then starting cdk from devstudio - that is our most important use case.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jbosstools-issues
mailing list