DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. Getting Past Vagrant's ''Authentication Failure'' When Starting OpenShift Origin

Getting Past Vagrant's ''Authentication Failure'' When Starting OpenShift Origin

Using Vagrant to provision VMs and want to use Red Hat's OpenShift Origin image? Well, if you're using an older version of Vagrant, you might run into a problem. Here's the answer.

Kevin Hooke user avatar by
Kevin Hooke
·
Oct. 23, 16 · Code Snippet
Like (1)
Save
Tweet
Share
4.57K Views

Join the DZone community and get the full member experience.

Join For Free

For getting up and running quickly with OpenShift Origin, Red Hat has an all-in-one VM image you can provision with Vagrant. The instructions mention to not use Vagrant 1.8.5 as there’s an issue with the SSH setup. Well, because I already had 1.8.5 installed for some other projects, I tried anyway, and ran into issues with SSHing into the VM with SSH keys.

When provisioning the VM, you’ll see:

Kevins-MacBook-Pro:openshift-origin kev$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'openshift/origin-all-in-one' is up to date...
==> default: Resuming suspended VM...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...

There are a number of posts discussing this issue and a few workarounds, for example, here and here.

The suggestions relate to switching from the SSH authentication to userid/password by adding this to your Vagrantfile:

config.ssh.username = "vagrant"
config.ssh.password = "vagrant"

I tried this, and when running vagrant up, I had different errors saying to the effect of, “SSH authentication failed.” Next, I tried adding this recommendation: 

config.ssh.insert_key = false

This didn’t make any difference initially, but doing a Vagrant destroy, and then trying to bring it up again initially ran into the same issue. So, I Ctrl-C’d out and tried again, and then it worked the second time. I’m not sure what steps got past the SSH keys issue, but at this point, I was up and running. There’s a long discussion in both the linked threads above that describe the cause of the issue, so if you’re interested, take a look through those threads.

OpenShift authentication

Published at DZone with permission of Kevin Hooke, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • AWS Fargate: Deploying Jakarta EE Applications on Serverless Infrastructures
  • Promises, Thenables, and Lazy-Evaluation: What, Why, How
  • AIOps Being Powered by Robotic Data Automation
  • How to Cut the Release Inspection Time From 4 Days to 4 Hours

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: