-
Notifications
You must be signed in to change notification settings - Fork 82
Conversation
connection: local | ||
gather_facts: False | ||
tasks: | ||
- command: inventory/openstack.py --refresh --list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not needed. meta: refresh_inventory
will invoke the dynamic inventory script
- hosts: OSEv3:dns | ||
tasks: | ||
- name: waiting for server to come back | ||
local_action: wait_for host={{ inventory_hostname }} state=started delay=30 timeout=300 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This play should target all hosts. I received intermittent failures since it only ran against the dns group
Also, to confirm full availability, a port check should be made
local_action: wait_for host={{ hostvars[inventory_hostname]['ansible_ssh_host'] }} port=22 delay=30 timeout=300
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sabre1041 we can't just include all
here because we can't make the assumption that we're running in a clean OSP tenant.
@etsauer reviewed PR. Added some comments inline. Also, due to the upgrade to Ansible 2.2.0.0, bare variables no longer to function completly. This is affecting the dns and dns-server roles. There also appears to be an ansible bug with relative paths and The following is a patch of the changes I made (minus minor inventory file changes) |
@sabre1041 @oybed getting back to this. my tests are mostly working using the end-to-end playbook.. but bombing out during the Instructions to run: First, make sure you have the
NOTE: as @sabre1041 points out above, there is a smal bug in the |
Currently, the install fails at the post-install phase with the following error:
|
@etsauer in general, it seems to work quite well. Thanks again for all your hard work on this one. A few observations along the way that we should write up github issues for to get implemented/corrected, or at least bring up for discussion:
Next steps (beyond working the above items):
|
@oybed will respond bullet-by-bullet:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@etsauer please see some global search/replace comments
openstack_default_image_name="rhel-guest-image-7.2" | ||
openstack_default_flavor="m1.medium" | ||
openstack_external_network_name="external" | ||
openstack_dns_domain="casl.rht-labs.com" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please change to 'example.com'
openstack_nameservers=10.9.48.31 | ||
openstack_num_nodes=1 | ||
openstack_num_infra=1 | ||
dns_domain="casl.rht-labs.com" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please change to 'example.com'
|
||
# Subscription Management Details | ||
rhsm_register=True | ||
rhsm_satellite='sat6-1.etl.lab.eng.rdu2.redhat.com' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please change to '.example.com'
deployment_type=openshift-enterprise | ||
openshift_deployment_type=openshift-enterprise | ||
|
||
openshift_master_default_subdomain=apps.test-stack.casl.rht-labs.com |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please change to 'example.com'
@@ -0,0 +1,22 @@ | |||
-----BEGIN CERTIFICATE----- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd recommend renaming this directory to something with 'example.com' and maybe clobber the content of some of the important files ...
deployment_type: openshift-enterprise | ||
openshift_deployment_type: openshift-enterprise | ||
|
||
openshift_master_default_subdomain: "apps.{{ env_id }}.casl.rht-labs.com" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change 'example.com'.
Also, looking at the content below, this shouldn't have been on github.com in the first place. It will now stick in the history - not sure how big of a problem that is. :-)
openstack_default_image_name="rhel-guest-image-7.2" | ||
openstack_default_flavor="m1.large" | ||
openstack_external_network_name="external" | ||
openstack_dns_domain="casl.rht-labs.com" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above - please change to 'example.com' (global search/replace)
@oybed cleaned up inventory per your request |
…r for an openshift install
In https://github.com/etsauer/casl-ansible/blob/openstack-heat/ose-provision.yml#L112, can you please change |
@oybed done |
@etsauer very very close - please update https://github.com/etsauer/casl-ansible/blob/openstack-heat/provision.sh#L23 to read |
@etsauer looks like the post-install has changed in a way that breaks the (not-so) old implementation:
|
@oybed as |
@etsauer agreed - with that change that you just made, I believe we are good to merge. |
@oybed @sabre1041 I wanted to start getting your eyes on this. It's not complete working yet, but it's very close. The changes so far include the following:
./playbooks/openshift/end-to-end.yaml
, plus sub-playbooksprovision.yaml
,pre-install.yaml
,install.yaml
,post-install.yaml
.roles/openstack-stack
, which uses heat to do the provisioning. not sold on heat provisioning yet as it doesn't appear to be as idempotent as I was hoping.The big advantage of this new approach is that the use of the hybrid inventory is that we can apply the exact same inventory to all phases of the provision/install without needing to do a bunch of fact hacking. It also means we don't need to manage the openshift-install role anymore. No more need to update an inventory template to inherit new functionality from openshift-ansible.
This isn't a polished product yet, lots of things hardcoded still. However it's a good sample of what the next phase could look like. Take a look.
The way this stuff would be run would be something like: