summaryrefslogtreecommitdiff
path: root/playbooks/libvirt
AgeCommit message (Collapse)Author
2016-02-15Merge pull request #1355 from lhuard1A/fix_when_no_infraThomas Wiest
Fix issue when there are no infra nodes
2016-02-12Merge pull request #1392 from lhuard1A/manage_etc_hosts_falseBrenton Leanhardt
Fix libvirt cluster creation
2016-02-12Fix libvirt cluster creationLénaïc Huard
Doing a `bin/cluster create libvirt …` fails with the following error: ``` TASK: [Warn user about bad openshift_hostname values] ************************* [lenaic-node-compute-cf3fb, lenaic-node-compute-f39d3, lenaic-node-infra-0407f, lenaic-master-fc5f9] The hostname "lenaic-node-compute-cf3fb.example.com" for "lenaic-node-compute-cf3fb.example.com" doesn't resolve to an ip address owned by this host. Please set openshift_hostname variable to a hostname that when resolved on the host in question resolves to an IP address matching an interface on this host. This host will fail liveness checks for pods utilizing hostPorts, press CTRL-C to continue.: ``` because the `/etc/hosts` of the VM is containing: ``` [openshift@lenaic-node-compute-cf3fb ~]$ cat /etc/hosts # Your system has configured 'manage_etc_hosts' as True. # As a result, if you wish for changes to this file to persist # then you will need to either # a.) make changes to the master file in /etc/cloud/templates/hosts.redhat.tmpl # b.) change or remove the value of 'manage_etc_hosts' in # /etc/cloud/cloud.cfg or cloud-config from user-data # # The following lines are desirable for IPv4 capable hosts 127.0.0.1 lenaic-node-compute-cf3fb.example.com lenaic-node-compute-cf3fb 127.0.0.1 localhost.localdomain localhost 127.0.0.1 localhost4.localdomain4 localhost4 # The following lines are desirable for IPv6 capable hosts ::1 lenaic-node-compute-cf3fb.example.com lenaic-node-compute-cf3fb ::1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 ``` Disabling `manage_etc_hosts` removes the lines for `lenaic-node-compute-cf3fb` from `/etc/hosts` and makes than name resolved by the DNS to its real IP.
2016-02-12Add missing `type` node labels on OpenStack and libvirtLénaïc Huard
2016-02-10Merge pull request #1364 from codificat/openshift-enterpriseBrenton Leanhardt
Add missing atomic- and openshift-enterprise
2016-02-09Fix issue when there are no infra nodesLénaïc Huard
2016-02-09Add missing atomic- and openshift-enterprisePep Turró Mauri
Some checks related to *enterprise deployments were still only looking for "enterprise" deployment_type. Update them to cover also atomic-enterprise and openshift-enterprise deployment types.
2016-02-04Merge pull request #1088 from akram/allow_no_compression_for_qcow_imageThomas Wiest
Allow compression option to be set to empty for non compressed images
2016-02-03Merge pull request #1239 from detiber/bin_cluster_overridesThomas Wiest
Additional overrides for cloud provider playbooks
2016-02-03Merge pull request #1173 from abutcher/nfs-groupBrenton Leanhardt
Refactor storage options
2016-02-03Allow compression option to be set to empty for non compressed QCow imagesAkram Ben Aissi
Support tgz and gzip compressed images
2016-02-01Refactor registry storage options.Andrew Butcher
2016-02-01Additional overrides for cloud provider playbooksJason DeTiberus
- sdn overrides - allow overrides for use_flannel and use_fluentd
2016-02-01Multi-master fixes for provider playbooksJason DeTiberus
- set openshift_master_cluster_method=native for all cloud providers so bin/cluster will build the ha masters correctly
2016-02-01infra_node fixesJason DeTiberus
- openshift_master role update - infra_nodes was previously being set to num_infra, which is an integer value when using the cloud providers, added a new variable osm_infra_nodes that is expected to be a list of hosts - if openshift_infra_nodes is not already set, create it from the nodes that have the region=infra label. - Cloud provider config playbook updates - override openshift_router_selector for cloud providers to avoid using the default of 'region=infra' when deployment_type is not 'online' - Set openshift_infra_nodes to g_infra_host for cloud providers
2016-01-19Update cluster_hosts.yml for cloud providersJason DeTiberus
- Add g_infra_hosts (nodes with sub-type infra) - Add g_compute_hosts (nodes with sub-type compute) - Reduce duplication by re-using previously defined variables
2016-01-11Merge pull request #1128 from lhuard1A/bin_cluster_ose_3.1Thomas Wiest
Make bin/cluster able to spawn an OSE 3.1 cluster
2016-01-08Make bin/cluster able to spawn OSE 3.1 clustersLénaïc Huard
2016-01-07Fix VM drive cleanup during terminate on libvirtLénaïc Huard
2016-01-04Fix error in byo cluster_hosts.ymlJason DeTiberus
2016-01-04Cleanup and fixes for cluster_id changeJason DeTiberus
- Move debug_level into vars.yml and byo inventory - change variables in cluster_hosts.yml to be g_* and update playbooks to use those values directly instead of setting them indirectly - added a new g_all_hosts entry in cluster_hosts to use in the update playbook instead of unioning all host types within the playbook - added a cluster_hosts.yml for the byo playbook
2016-01-04Removing environment and env tags.Kenny Woodson
2015-12-15Create nfs host group with registry volume attachment.Andrew Butcher
2015-12-14Merge pull request #1028 from kwoodson/remove_env_host_typeKenny Woodson
Removing env-host-type in preparation of env and environment changes.
2015-12-11Updating env-host-type to host patternsKenny Woodson
2015-12-10Merge pull request #954 from damaestro/update_latest_cloud_imageThomas Wiest
Update for latest CentOS-7-x86_64-GenericCloud.
2015-11-30Enforce connection: local and become: no on all localhost playsJason DeTiberus
2015-11-22Use join for the uncompress command.Jonathan Steffan
2015-11-22Update for latest CentOS-7-x86_64-GenericCloud.Jonathan Steffan
- Use xz compressed image - Update sha256 for new image - Update docs to reflect new settings
2015-11-13Better structure the output of the list playbookLénaïc Huard
The list playbook listed the IPs of the VMs without logging their role like: TASK: [debug ] ************************************************************ ok: [10.64.109.37] => { "msg": "public:10.64.109.37 private:192.168.165.5" } ok: [10.64.109.47] => { "msg": "public:10.64.109.47 private:192.168.165.6" } ok: [10.64.109.36] => { "msg": "public:10.64.109.36 private:192.168.165.4" } ok: [10.64.109.215] => { "msg": "public:10.64.109.215 private:192.168.165.2" } The list playbook now prints the information in a more structured way with a list of masters, a list of nodes and the subtype of the nodes like: TASK: [debug ] ************************************************************ ok: [localhost] => { "msg": { "lenaicnewlist": { "master": [ { "name": "10.64.109.215", "private IP": "192.168.165.2", "public IP": "10.64.109.215", "subtype": "default" } ], "node": [ { "name": "10.64.109.47", "private IP": "192.168.165.6", "public IP": "10.64.109.47", "subtype": "compute" }, { "name": "10.64.109.37", "private IP": "192.168.165.5", "public IP": "10.64.109.37", "subtype": "compute" }, { "name": "10.64.109.36", "private IP": "192.168.165.4", "public IP": "10.64.109.36", "subtype": "infra" } ] } } }
2015-11-13Add the sub-host-type tag to the libvirt VMsLénaïc Huard
2015-11-05Fix lb group related errorsJason DeTiberus
2015-11-04Refactor common group evaluation to avoid duplicationJason DeTiberus
2015-11-01Disable requiretty for only the openshift usererror10
Use write_files to disable requiretty for the openshift user as suggested by @detiberm, fixes #773
2015-10-30Don't require tty to run sudoerror10
Set Defaults !requiretty so that ansible can run sudo without a terminal. Fixes #773
2015-10-20Increase sleep when waiting for IP.Jaroslav Henner
It was timeouting on slower hardware.
2015-10-20Use runcmd to restart network.Jaroslav Henner
Using bootcmd in cloud-config lead to restarts prior to starting the systemd-hostnamed, which was probable cause of the failure when DHCP client was failing to send the hostname, and subsequently, the ansible-opnshift was not able to identify the VM among the others when checking DHCP leases. The failure looked like: following 10:17:31 failed: [localhost] => {"attempts": 60, "changed": true, "cmd": "virsh -c qemu:///system net-dhcp-leases openshift-ansible | egrep -c 'experiment-node-compute-453d0|experiment-node-compute-61e16'", "delta": "0:00:00.033061", "end": "2015-10-19 10:17:31.409434", "failed": true, "rc": 0, "start": "2015-10-19 10:17:31.376373", "warnings": []} 10:17:31 stdout: 1 10:17:31 msg: Task failed as maximum retries was encountered
2015-09-30Prevent dns resolution recursion (loop).Jaroslav Henner
The dnsmasq should not be resolving the example.com recursively, because in case that we have /etc/NetworkManager/dnsmasq.d/libvirt_dnsmasq.conf: server=/example.com/192.168.55.1 the dnsmasq will be asking itself, therefore a dns resolution loop is created, which causes Maximum number of concurrent DNS queries reached (max: 150) and performance degradation of dns resolution on the whole hypervizor and guests. This patch will fix that in the domain.xml, which will cause adding local=/example.com/ to the /var/lib/libvirt/dnsmasq/openshift-ansible.conf, effectively fixing the problem.
2015-08-25Add etcd nodes management in libvirtLénaïc Huard
2015-08-17Merge pull request #405 from sdodson/loglevel2Brenton Leanhardt
Set loglevel=2 as our default across the board
2015-08-11Fix infra node support on libvirtLénaïc Huard
2015-07-29Set loglevel=2 as our default across the boardScott Dodson
2015-07-23Infra node supportWesley Hearn
2015-07-17Implement RHEL subscription for enterprise deployment typeLénaïc Huard
2015-07-10Playbook updates for clustered etcdJason DeTiberus
- Add support to bin/cluster for specifying etcd hosts - defaults to 0, if no etcd hosts are selected, then configures embedded etcd - Updates for the byo inventory file for etcd and master as node by default - Consolidation of cluster logic more centrally into common playbook - Added etcd config support to playbooks - Restructured byo playbooks to leverage the common openshift-cluster playbook - Added support to common master playbook to generate and apply external etcd client certs from the etcd ca - start of refactor for better handling of master certs in a multi-master environment. - added the openshift_master_ca and openshift_master_certificates roles to manage master certs instead of generating them in the openshift_master role - added etcd host groups to the cluster update playbooks - aded better handling of host groups when they are either not present or are empty. - Update AWS readme
2015-07-03Add a generic mechanism for passing optionsLénaïc Huard
And use it in the libvirt and openstack playbooks
2015-06-10Templatize configs and 0.5.2 changesJason DeTiberus
- Templatize node config - Templatize master config - Integrated sdn changes - Updates for openshift_facts - Added support for node, master and sdn related changes - registry_url - added identity provider facts - Removed openshift_sdn_* roles - Install httpd-tools if configuring htpasswd auth - Remove references to external_id - Setting external_id interferes with nodes associating with the generated node object when pre-registering nodes. - osc/oc and osadm/oadm binary detection in openshift_facts Misc Changes: - make non-errata puddle default for byo example - comment out master in list of nodes in inventory/byo/hosts - remove non-error errors from fluentd_* roles - Use admin kubeconfig instead of openshift-client
2015-06-07Fix libvirt playbookLénaïc Huard
If we don’t explicitly specify the libvirt URI to use for virsh, it will use the LIBVIRT_DEFAULT_URI environment variable. For a consistent behavior, all `virsh` invocation must be done with the `-c <libvirt_uri>` parameter.
2015-06-03Infrastructure - Add service action to bin/clusterJhon Honce
* Add necessary playbooks/roles * Cleanup bin/cluster to meet new design guide lines
2015-05-22[libvirt cluster] Use net-dhcp-leases to find VMs’ IPsLénaïc Huard
Query libvirt’s DHCP leases rather than inspecting the host’s ARP cache to find the VMs’ IPs.