-
Notifications
You must be signed in to change notification settings - Fork 16
Incorrect IP is returned when wrong registrstion credentials are used #299
Comments
10.0.2.15 always exist. This IP is actually correct - within the VM :-) It is not a routed IP. I guess if registration fails, something goes wrong and the 10.1.2.2 interface does not created and afaik our scripts rely on the last interface returned by hostname (or some other command). The deeper lying issues are, however, imo with vagrant-registration
The registration should be more interactive and more fault tolerant. Also, in the case of the CDK we should imo terminate the bootstrap, if we don't get valid credentials. That would also prevent the problem above. The latter lies actually in our powers and could be implemented as part of this issue. Even though it is more likely a Vagrant configuration which lives in adb-developer-bundle. |
We need to actually come up with actual flow. Right now its quite confusing and also not well documented IMO.
Now not sure. Hence, we need to finalize the behavior and document it. |
Thanks for the details, Hardy. I agree that terminating the VM would make sense - better to have nothing than something half working (I wonder if we have any requirements for offline usage = no access to rhn servers, but that's another topic). And that would make it easier for Rob to react to this in the eclipse tooling. |
That's most likely what @mmalina sees
Right, but you cannot build anything, at least not if you use images from the Red Hat registry. The docker daemon somehow hooks into the registration. Also you could not run any yum commands, etc
+1
I think this is the best option. Might need some work in vagrant-registration. Maybe we need a 'exit on registration failure' flag. We should create an issue there and link to here. @mmalina could you do this? |
@mmalina @hferentschik @budhrg CDK is a free tool for developers. So IMO we should not be restricting (from CDK point of view) user for anything if the registration fails. However the restriction will come eventually from the subscription manager in terms of access to certain things e.g. yum install/update if the VM is not registered properly. |
Can we start OpenShift without registration? Could we delay the registration until the end of setup and configuration? Could we background it and make it the last thing we report and reprompt as needed? |
@LalatenduMohanty @bexelbie : There is an issue projectatomic/adb-vagrant-registration#63 in vagrant-registration to perform register/unregister through command.
I found that it is the first hook which gets executes when ssh is ready (code here). |
I like the idea too. +1 |
While I believe that adding |
@LalatenduMohanty @bexelbie Ya I meant that only 😄 . My bad, I should have clarified that. I hope we are talking about value addition of Now, this will make clear that in either failed/skipped registration we need to make sure every services related to CDK is running. |
+1 I like the idea of being able to start all the services even without registering. It helps also in the event that you accidentally set your SUB_PASSWORD incorrectly - today you have to stop your box, fix the password and start again. It would be nice if you could just register later. |
I have tried one use case in which i come across the same output,
|
I am good with not having registration in vsm. I would like to see support retained for both vagrantfile/automatic reg and manual reg with the box able to boot without regard to registration status. |
So where are we on this issue? Apart from changes to vagrant-registration, do we know why if the credentials are wrong, the output of vagrant-service-manager is wrong? For what it's worth, imo it is the vagrant-registration which needs to abort the bootstrap here. If the user has registration enabled and tried to provider username/password, either via CLI or environment variables, vagrant up should abort, if the credentials are wrong. This is, however, a vagrant-registration issue. |
On a side note, I think moving vagrant-registration code into vagrant-service-manager is not such a bad idea. In fact I was toying with the same idea for Landrush. The benefits are:
In the case of Landrush for example we only use a small part of its functionality. Internalizing this into service-manager would allow us to just focus on the functionality we need. This would mean of course the service-manager codebase would grow quite considerably and also contain a lot of different "things", but I think there is some virtue in this. |
So I think we should do the following:
|
Hey guys, any update on this? |
@robstryker , We are no longer maintaining the project now as we have migrated to minishift. |
@budhrg are you aware that cdk 2.x is officially supported until 2019? who is maintaining it then? |
@mmalina Need to confirm. Sorry I was not aware of it. |
When you start cdk 2.1 with wrong credentials stored in SUB_USERNAME and SUB_PASSWORD, vagrant up will fail at this:
==> default: Registering box with vagrant-registration...
Invalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html
Registering to: subscription.rhn.redhat.com:443/subscription
Then service-manager returns this:
$ vagrant service-manager env
Where is this IP coming from? The normal IP is 10.1.2.2 as is set up in the Vagrantfile:
PUBLIC_ADDRESS="10.1.2.2"
See also this related JIRA:
https://issues.jboss.org/browse/JBIDE-22609
The text was updated successfully, but these errors were encountered: