Giter VIP home page Giter VIP logo

openshift-hybridizer's Introduction

openshift-hybridizer's People

Contributors

kameshsampath avatar rafabene avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

openshift-hybridizer's Issues

AMI is not ENA-enabled error

I'm using AMI ami-8b44f2f3 in region us-west-2.

TASK [cloud-resources : AWS Create All in one OpenShift Node] ******************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Instance creation failed => InvalidParameterCombination: Enhanced networking with the Elastic Network Adapter (ENA) is required for the 'm5.xlarge' instance type. Ensure that you are using an AMI that is enabled for ENA."}

AZR Failed during ./deploy.sh script

Error message

Failure summary:

  1. Hosts: azr-openshift
    Play: Configure masters
    Task: restart master api
    Message: Unable to restart service origin-master-api: Job for origin-master-api.service failed because the control process exited with error code. See "systemctl status origin-master-api.service" and "journalctl -xe" for details.

Adding UI Workflow

It will be nice to have a UI workflow for building and deploying the multi-cloud deployments

Amazon error: Need to first confirm Terms and Conditions

My Amazon setup is new, so I received this error when running provision.sh:

TASK [cloud-resources : AWS Create All in one OpenShift Node] ******************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Instance creation failed => OptInRequired: In order to use this AWS Marketplace product you need to accept terms and subscribe. To do so please visit https://aws.amazon.com/marketplace/pp?sku=aw0evgkw8e5c1q413zgy5pjce"}

The openshift_users.yaml has two variables defined:

Readme.adoc needs more explanation around how to add/delete users (both admins and devs)

Where is the file "openshift_users.yaml" located?
And if the file is edited, what command must be run for the new users to be added? (deploy.sh?)
And how would I get a cluster admin user vs just a developer?

Re-provision after provision failure results in two running instances (AWS)

Intermittently the provision.sh will fail as follows:

TASK [cloud-resources : AWS Add Docker Volume to instance i-0186bf68a773ba61a] ***
fatal: [localhost]: FAILED! => {"changed": false, "msg": "IncorrectState: Instance 'i-0186bf68a773ba61a' is not 'running'."}

If provision.sh is re-run after this failure, there will be two instances running in AWS.

Ansible Syntax Error when attempting to run provision.sh

โžœ  openshift-hybridizer git:(master) ./provision.sh 
Not loading passwords
Not loading environment vars
Not loading ssh key
ERROR! Syntax Error while loading YAML.
  mapping values are not allowed in this context

The error appears to have been in '/runner/env/extravars': line 3, column 15, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

+++---
ansible_become: no
              ^ here

project_id: "<your-gce-project>"

The project_id setting should come BEFORE the credentials_file setting since the end-user first needs to create the project, then the service account then download the creds file.

AWS stops build with "InsufficientInstanceCapacity" error

TASK [cloud-resources : AWS Create All in one OpenShift Node] ******************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Instance creation failed => InsufficientInstanceCapacity: Insufficient capacity for instance type m5.xlarge"}

AWS error: Enhanced networking with ENA is required for m5.xlarge instance

Getting the following error while attempting to provision the Amazon VM:

`TASK [cloud-resources : AWS Create All in one OpenShift Node] ******************

fatal: [localhost]: FAILED! => {"changed": false, "msg": "Instance creation failed => InvalidParameterCombination: Enhanced networking with the Elastic Network Adapter (ENA) is required for the 'm5.xlarge' instance type. Ensure that you are using an AMI that is enabled for ENA."}
localhost

: ok=9 changed=0 unreachable=0 failed=1 `

User supplied vs auto-created

OpenShift

e.g. Lets say you want to deploy OpenShift on to your Google Cloud Platform(gcp), run the following command
in README.adoc

The AWS keys are mounted in the wrong location for Linux

The deploy script (and other scripts?) mount the AWS access key to /opt/app-root/src/.ssh. This is not a valid location for SSH on a Linux host (running the openshift-ansible container image).

On Linux, the key should be mounted in /root/.ssh

Rename extravars to use yaml extension

Using extravars.yaml or extravars.yml will allow some editor to identify the file as YAML and provide some support (validation, highlight syntax, etc)

README Updates

Add updates to README to

  • say pre-req
  • Valid OpenShift versions
  • adding admin user
  • Add Azure application permissions
  • Note about connect.sh it gives details on public ip, private key etc.,

Adding users does not work as described

what i did

  • created a custer as described in the README
  • changed dir to out/gcp
  • modified the openshift_users.yaml file to add a custom named user
  • ran add-openshift-users.sh

expected results

my custom user fred and the admin user would be added to /etc/origin/master/htpasswd on the host and i could login.

actual results

/etc/origin/master/htpasswd is empty on the server and i am unable to login.

openshift_users.yaml

the file i used

---

# Add or modify the users in this list and rerun the add-openshift-users.sh 
# to have the users add/updated in OpenShift htpasswd file
openshift_users:
    - {username: "fred",password: "supers3cret"}
    - {username: "admin",password: "supers3cretAdmin"}
# Add the List of users to be deleted from OpenShift 
openshift_delete_users:
#    - developer

Failed to deprovision AWS

It fails with the following message

TASK [cloud-resources-rollback : AWS Delete All in one OpenShift Node] *********
fatal: [localhost]: FAILED! => {"changed": false, "msg": "instance_ids list is required for absent state"}
localhost : ok=2 changed=0 unreachable=0 failed=1

How to use custom DNS with an all-in-one deployment?

hi,

i am working through the process of using hybridizer to deploy openshift for an upcoming lab. we would like to use a custom dns for the server and i am wondering the best way to do this?

should i create the resources manually in my cloud provider, and if so how to make sure that openshift knows about the names?

is there an option to have the generated ansible scripts know about the domain name?

thanks!

Service Brokers

For each cloud, we should also install their unique service brokers. This would expose AWS (in the Amazon cloud) specific services inside of the Service Catalog and be visible to developers of our cluster. Plus, it becomes more visually obvious which cluster becomes to a specific cloud.

Says "two clouds", shows three

In the instructions and in the extravars file, it mentions that two clouds are configured, but three are shown:

"The example configures provisioning of two clouds Azure and Google Cloud Platform..."

- gcp
- aws
- azr

Adding the appropriate Service Broker per cloud

A secondary script that installs the matching service broker, per cloud. Allowing the end-user developer to gain access to native cloud services that match their cloud platform, visible through the openshift service catalog

support for bare metal vm

it will be great to allow bare metal vm support to allow the build of a hybrid cloud env with multi clouds and local vm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.