# One OCP Deploy
* [Flexy job](https://openshift-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/Launch%20Environment%20Flexy/)
* [One OCP deploy google document](https://docs.google.com/document/d/1y9zEufKQt279dBFEaOIosEs860lC5KYex-Me1BT_1pU/edit)
* [flexy-containerized git repo](https://gitlab.cee.redhat.com/ccit/flexy-containerized)
* [Openshift-misc](http://git.app.eng.bos.redhat.com/git/openshift-misc.git/)
* https://github.com/openshift/verification-tests
* https://gitlab.cee.redhat.com/aosqe/private-flexy-example (Just found out this one today)
# My road to first IPI on AWS cluster
* Just follow the README & try it!
* Didn't work :slightly_frowning_face:
* Figure out, why my config is not respected
* Bug in flexy-conteinerized - [First MR](https://gitlab.cee.redhat.com/ccit/flexy-containerized/merge_requests/2) :+1:
* Figure out, how to pass my own aws credentials
* Put .awscred file into config folder
* Select that folder in config.yaml
```
services:
AWS-CI:
awscred: "/flexy/config/.awscred"
config_opts:
region: us-east-2
install_base_domain: codereadyqe.com # depend on route53 setup
cloud_type: aws
```
* Final envvar:
```
INSTANCE_NAME_PREFIX=rhopp-flex
VARIABLES_LOCATION=private-openshift-misc/v3-launch-templates/functionality-testing/aos-4_4/ipi-on-aws/versioned-installer
LAUNCHER_VARS={"installer_payload_image":"registry.svc.ci.openshift.org/ocp/release:4.4.0-rc.8","num_nodes": 1}
BUSHSLICER_CONFIG={}
BUSHSLICER_LOG_LEVEL=INFO
REG_SVC_CI_USER=username-unused
REG_SVC_CI_PASSWORD=<myPass>
REG_QUAY_USER=<myQuayUser>
REG_QUAY_PASSWORD=<myQuayPass>
```
* ## Success!
# My road to first disconnected UPI on AWS
* Change the template... maybe it will work?
* Nope <sub>(just Chuck Testa)</sub>
* aws client is not installed in the image. [Merge request](https://gitlab.cee.redhat.com/ccit/flexy-containerized/merge_requests/3) #2 :thumbsup:
* Installer is complaining about missing AMI (amazon machine image)
* This AMI is used as bastion host and mirror registry
* Openshift-qe team shared this AMI with my AWS account
* I don't have `openshift-qe` key pair in AWS
* Needed to create one in aws and pass its private part to flexy (in `config.yaml`):
```
host_opts:
user: root
class: SSHAccessibleHost
ssh_private_key: /flexy/config/openshift-qe.pem
```
* Mirroring of images fails, because mirror registry is using self-signed certificate
* I've created [an issue about that](https://gitlab.cee.redhat.com/ccit/flexy-containerized/issues/1) and worked around this on my side.
* ## Success!
# My take on this
This tool can prove to be valuable and I believe it has potential to become the "One OCP deploy tool", but it's still quite new tool with lot of rough edges and lack of documentation (mainly about the templates and preconfiguration requirements)