diff options
Diffstat (limited to 'deploy')
50 files changed, 260 insertions, 168 deletions
diff --git a/deploy/adapters/ansible/openstack/HA-ansible-multinodes.yml b/deploy/adapters/ansible/openstack/HA-ansible-multinodes.yml index eb285fd8..8398ca76 100644 --- a/deploy/adapters/ansible/openstack/HA-ansible-multinodes.yml +++ b/deploy/adapters/ansible/openstack/HA-ansible-multinodes.yml @@ -142,7 +142,6 @@ roles: - monitor - - hosts: all remote_user: root max_fail_percentage: 0 diff --git a/deploy/adapters/ansible/openstack/templates/neutron.conf b/deploy/adapters/ansible/openstack/templates/neutron.conf index 49caa879..840a5cf7 100644 --- a/deploy/adapters/ansible/openstack/templates/neutron.conf +++ b/deploy/adapters/ansible/openstack/templates/neutron.conf @@ -8,7 +8,6 @@ verbose = {{ VERBOSE }} debug = {{ VERBOSE }} state_path = /var/lib/neutron -lock_path = $state_path/lock notify_nova_on_port_status_changes = True notify_nova_on_port_data_changes = True log_dir = /var/log/neutron @@ -110,3 +109,6 @@ rabbit_host = {{ rabbit_host }} rabbit_password = {{ RABBIT_PASS }} rabbit_port = 5672 rabbit_userid = {{ RABBIT_USER }} + +[oslo_concurrency] +lock_path = $state_path/lock diff --git a/deploy/adapters/ansible/roles/ceilometer_compute/vars/RedHat.yml b/deploy/adapters/ansible/roles/ceilometer_compute/vars/RedHat.yml index c5778a49..f3d5f0e1 100644 --- a/deploy/adapters/ansible/roles/ceilometer_compute/vars/RedHat.yml +++ b/deploy/adapters/ansible/roles/ceilometer_compute/vars/RedHat.yml @@ -15,3 +15,6 @@ ceilometer_packages: ceilometer_services: - openstack-ceilometer-compute - openstack-nova-compute + +nova_services: + - openstack-nova-compute diff --git a/deploy/adapters/ansible/roles/ceilometer_controller/handlers/main.yml b/deploy/adapters/ansible/roles/ceilometer_controller/handlers/main.yml index 1507c6e9..2d0e3159 100644 --- a/deploy/adapters/ansible/roles/ceilometer_controller/handlers/main.yml +++ b/deploy/adapters/ansible/roles/ceilometer_controller/handlers/main.yml @@ -16,7 +16,9 @@ with_items: "{{ glance_cinder_services }}" - name: reload apache server - service: name=apache2 state=reloaded + service: name={{ item }} state=reloaded + with_items: "{{ services }}" - name: restart apache server - service: name=apache2 state=restarted enabled=yes + service: name={{ item }} state=restarted enabled=yes + with_items: "{{ services }}" diff --git a/deploy/adapters/ansible/roles/ceilometer_controller/tasks/ceilometer_config.yml b/deploy/adapters/ansible/roles/ceilometer_controller/tasks/ceilometer_config.yml index 694cc0dd..b2d58d4b 100644 --- a/deploy/adapters/ansible/roles/ceilometer_controller/tasks/ceilometer_config.yml +++ b/deploy/adapters/ansible/roles/ceilometer_controller/tasks/ceilometer_config.yml @@ -9,25 +9,35 @@ --- - include_vars: "{{ ansible_os_family }}.yml" +- name: assure listen port exist + lineinfile: + dest: '{{ apache_config_dir }}/ports.conf' + regexp: "^Listen {{ internal_ip }}:8777" + line: "Listen {{ internal_ip }}:8777" + notify: restart apache server + +- name: update apache2 configs + template: + src: wsgi-ceilometer.conf.j2 + dest: '{{ apache_config_dir }}/sites-available/ceilometer.conf' + when: ansible_os_family == 'Debian' + notify: reload apache server + - name: update apache2 configs template: src: wsgi-ceilometer.conf.j2 - dest: /etc/apache2/sites-available/ceilometer.conf + dest: '{{ apache_config_dir }}/ceilometer.conf' + when: ansible_os_family == 'RedHat' notify: reload apache server - name: enable ceilometer server file: - src: /etc/apache2/sites-available/ceilometer.conf - dest: /etc/apache2/sites-enabled/ceilometer.conf + src: "{{ apache_config_dir }}/sites-available/ceilometer.conf" + dest: "{{ apache_config_dir }}/sites-enabled/ceilometer.conf" state: "link" when: ansible_os_family == 'Debian' notify: reload apache server -- name: assure listen port exist - shell: echo "Listen {{ internal_ip }}:8777" >> /etc/apache2/ports.conf - notify: - - restart apache server - - name: copy glance & cinder configs template: src: "{{ item }}" diff --git a/deploy/adapters/ansible/roles/ceilometer_controller/templates/ceilometer.j2 b/deploy/adapters/ansible/roles/ceilometer_controller/templates/ceilometer.j2 deleted file mode 100644 index d0cadeaa..00000000 --- a/deploy/adapters/ansible/roles/ceilometer_controller/templates/ceilometer.j2 +++ /dev/null @@ -1,37 +0,0 @@ -[DEFAULT] -rpc_backend = rabbit -auth_strategy = keystone -verbose = True - -[oslo_messaging_rabbit] -rabbit_host = {{ internal_vip.ip }} -rabbit_userid = {{ RABBIT_USER }} -rabbit_password = {{ RABBIT_PASS }} - -[database] -connection = mongodb://ceilometer:{{ CEILOMETER_DBPASS }}@{{ internal_vip.ip }}:27017/ceilometer - -[keystone_authtoken] -auth_uri = http://{{ internal_vip.ip }}:5000 -auth_url = http://{{ internal_vip.ip }}:35357 -identity_uri = http://{{ internal_vip.ip }}:35357 -auth_plugin = password -project_domain_id = default -user_domain_id = default -project_name = service -username = ceilometer -password = {{ CEILOMETER_PASS }} - -[service_credentials] -os_auth_url = http://{{ internal_vip.ip }}:5000/v2.0 -os_username = ceilometer -os_tenant_name = service -os_password = {{ CEILOMETER_PASS }} -os_endpoint_type = internalURL -os_region_name = RegionOne - -[publisher] -metering_secret = {{ metering_secret }} - -[api] -host = {{ internal_ip }} diff --git a/deploy/adapters/ansible/roles/ceilometer_controller/templates/cinder.j2 b/deploy/adapters/ansible/roles/ceilometer_controller/templates/cinder.j2 deleted file mode 100644 index dfd04739..00000000 --- a/deploy/adapters/ansible/roles/ceilometer_controller/templates/cinder.j2 +++ /dev/null @@ -1,2 +0,0 @@ -[DEFAULT] -notification_driver = messagingv2 diff --git a/deploy/adapters/ansible/roles/ceilometer_controller/templates/glance.j2 b/deploy/adapters/ansible/roles/ceilometer_controller/templates/glance.j2 deleted file mode 100644 index a513d2c1..00000000 --- a/deploy/adapters/ansible/roles/ceilometer_controller/templates/glance.j2 +++ /dev/null @@ -1,8 +0,0 @@ -[DEFAULT] -notification_driver = messagingv2 -rpc_backend = rabbit - -[oslo_messaging_rabbit] -rabbit_host = {{ internal_vip.ip }} -rabbit_userid = {{ RABBIT_USER }} -rabbit_password = {{ RABBIT_PASS }} diff --git a/deploy/adapters/ansible/roles/ceilometer_controller/templates/wsgi-ceilometer.conf.j2 b/deploy/adapters/ansible/roles/ceilometer_controller/templates/wsgi-ceilometer.conf.j2 index 9909f800..c876efda 100644 --- a/deploy/adapters/ansible/roles/ceilometer_controller/templates/wsgi-ceilometer.conf.j2 +++ b/deploy/adapters/ansible/roles/ceilometer_controller/templates/wsgi-ceilometer.conf.j2 @@ -6,10 +6,10 @@ <VirtualHost {{ internal_ip }}:8777> WSGIDaemonProcess ceilometer-api processes=4 threads={{ work_threads }} user=ceilometer group=ceilometer display-name=%{GROUP} WSGIProcessGroup ceilometer-api - WSGIScriptAlias / /usr/lib/python2.7/dist-packages/ceilometer/api/app.wsgi + WSGIScriptAlias / {{ WSGIScriptAlias_path }} WSGIApplicationGroup %{GLOBAL} - ErrorLog /var/log/apache2/ceilometer_error.log - CustomLog /var/log/apache2/ceilometer_access.log combined + ErrorLog /var/log/{{ http_service_name }}/ceilometer_error.log + CustomLog /var/log/{{ http_service_name }}/ceilometer_access.log combined <Directory /usr/lib/python2.7/dist-packages/ceilometer/api/> <IfVersion >= 2.4> @@ -22,4 +22,4 @@ </Directory> </VirtualHost> -WSGISocketPrefix /var/run/apache2 +WSGISocketPrefix /var/run/{{ http_service_name }} diff --git a/deploy/adapters/ansible/roles/ceilometer_controller/vars/Debian.yml b/deploy/adapters/ansible/roles/ceilometer_controller/vars/Debian.yml index de860533..1456ee50 100644 --- a/deploy/adapters/ansible/roles/ceilometer_controller/vars/Debian.yml +++ b/deploy/adapters/ansible/roles/ceilometer_controller/vars/Debian.yml @@ -12,6 +12,7 @@ ceilometer_packages: - ceilometer-collector - ceilometer-agent-central - ceilometer-agent-notification + - ceilometer-agent-compute - python-ceilometerclient ceilometer_services: @@ -24,3 +25,10 @@ glance_cinder_services: - glance-api - cinder-api - cinder-scheduler + +services: + - apache2 + +apache_config_dir: /etc/apache2 +http_service_name: apache2 +WSGIScriptAlias_path: /usr/lib/python2.7/dist-packages/ceilometer/api/app.wsgi diff --git a/deploy/adapters/ansible/roles/ceilometer_controller/vars/RedHat.yml b/deploy/adapters/ansible/roles/ceilometer_controller/vars/RedHat.yml index de860533..08d1a921 100644 --- a/deploy/adapters/ansible/roles/ceilometer_controller/vars/RedHat.yml +++ b/deploy/adapters/ansible/roles/ceilometer_controller/vars/RedHat.yml @@ -8,19 +8,28 @@ ############################################################################## --- ceilometer_packages: - - ceilometer-api - - ceilometer-collector - - ceilometer-agent-central - - ceilometer-agent-notification + - openstack-ceilometer-api + - openstack-ceilometer-collector + - openstack-ceilometer-central + - openstack-ceilometer-notification + - openstack-ceilometer-compute - python-ceilometerclient ceilometer_services: - - ceilometer-agent-central - - ceilometer-agent-notification - - ceilometer-collector + - openstack-ceilometer-central + - openstack-ceilometer-notification + - openstack-ceilometer-api + - openstack-ceilometer-collector glance_cinder_services: - - glance-registry - - glance-api - - cinder-api - - cinder-scheduler + - openstack-glance-registry + - openstack-glance-api + - openstack-cinder-api + - openstack-cinder-scheduler + +services: + - httpd + +apache_config_dir: /etc/httpd/conf.d +http_service_name: httpd +WSGIScriptAlias_path: /usr/lib/python2.7/site-packages/ceilometer/api/app.wsgi diff --git a/deploy/adapters/ansible/roles/ceph-openstack/vars/RedHat.yml b/deploy/adapters/ansible/roles/ceph-openstack/vars/RedHat.yml index d0310f8b..fc60bf55 100755 --- a/deploy/adapters/ansible/roles/ceph-openstack/vars/RedHat.yml +++ b/deploy/adapters/ansible/roles/ceph-openstack/vars/RedHat.yml @@ -10,7 +10,6 @@ packages: - ceph-radosgw - fcgi - - ceph-deploy - ceph services: [] diff --git a/deploy/adapters/ansible/roles/ceph-osd/files/ceph-crush-location.in b/deploy/adapters/ansible/roles/ceph-osd/files/ceph-crush-location.in new file mode 100644 index 00000000..d7637510 --- /dev/null +++ b/deploy/adapters/ansible/roles/ceph-osd/files/ceph-crush-location.in @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Generate a CRUSH location for the given entity +# +# The CRUSH location consists of a list of key=value pairs, separated +# by spaces, all on a single line. This describes where in CRUSH +# hierarhcy this entity should be placed. +# +# Arguments: +# --cluster <clustername> name of the cluster (see /etc/ceph/$cluster.conf) +# --type <osd|mds|client> daemon/entity type +# --id <id> id (osd number, mds name, client name) +# + +# if we start up as ./ceph-crush-location, assume everything else is +# in the current directory too. +if [ `dirname $0` = "." ] && [ $PWD != "/usr/bin" ]; then + BINDIR=. + SBINDIR=. + LIBDIR=. + ETCDIR=. +else + BINDIR=@bindir@ + SBINDIR=@prefix@/sbin + LIBDIR=@libdir@/ceph + ETCDIR=@sysconfdir@/ceph +fi + +usage_exit() { + echo "usage: $0 [--cluster <cluster>] --id <id> --type <osd|mds|client>" + exit +} + +cluster="ceph" +type="" +id="" +while [ $# -ge 1 ]; do + case $1 in + --cluster | -C) + shift + cluster="$1" + shift + ;; + --id | -i) + shift + id="$1" + shift + ;; + --type | -t) + shift + type="$1" + shift + ;; + *) + echo "unrecognized option '$1'" + usage_exit + ;; + esac +done + +if [ -z "$type" ]; then + echo "must specify entity type" + usage_exit +fi + +if [ -z "$id" ]; then + echo "must specify id" + usage_exit +fi + +# try a generic location +location="$($BINDIR/ceph-conf --cluster=${cluster:-ceph} --name=$type.$id --lookup crush_location || :)" +if [ -n "$location" ]; then + echo $location + exit 0 +fi + +# spit out something generic +echo "host=$(hostname -s) root=default" diff --git a/deploy/adapters/ansible/roles/ceph-osd/tasks/install_osd.yml b/deploy/adapters/ansible/roles/ceph-osd/tasks/install_osd.yml index 78d62f67..2a9ea3a5 100644 --- a/deploy/adapters/ansible/roles/ceph-osd/tasks/install_osd.yml +++ b/deploy/adapters/ansible/roles/ceph-osd/tasks/install_osd.yml @@ -30,6 +30,13 @@ shell: chown -R ceph:ceph /var/local/osd when: ansible_os_family == "Debian" +- name: copy ceph-crush-location to osd host + copy: + src: ceph-crush-location.in + dest: /usr/bin/ceph-crush-location + mode: 0755 + when: ansible_os_family == "RedHat" + - name: activate osd node shell: ceph-disk activate /var/local/osd diff --git a/deploy/adapters/ansible/roles/ceph-purge/tasks/main.yml b/deploy/adapters/ansible/roles/ceph-purge/tasks/main.yml index 5364cc82..663641ba 100644 --- a/deploy/adapters/ansible/roles/ceph-purge/tasks/main.yml +++ b/deploy/adapters/ansible/roles/ceph-purge/tasks/main.yml @@ -20,6 +20,7 @@ tags: - ceph_purge - ceph_deploy + when: ansible_os_family == "Debian" - name: purge ceph shell: | @@ -29,6 +30,7 @@ tags: - ceph_purge - ceph_deploy + when: ansible_os_family == "Debian" - name: remove monmap file: path="/tmp/monmap" state="absent" diff --git a/deploy/adapters/ansible/roles/common/tasks/main.yml b/deploy/adapters/ansible/roles/common/tasks/main.yml index 135d5356..69fc1d49 100644 --- a/deploy/adapters/ansible/roles/common/tasks/main.yml +++ b/deploy/adapters/ansible/roles/common/tasks/main.yml @@ -24,6 +24,10 @@ shell: awk -F'=' '/compass_server/ {print $2}' /etc/compass.conf register: COMPASS_SERVER +- name: add yum repository for openstack + template: src=openstack_ppa_repo.repo.j2 dest=/etc/yum.repos.d/openstack_ppa_repo.repo + when: ansible_os_family == "RedHat" + - name: update compass-core name and ip to hosts files shell: | echo "# compass" >> /etc/hosts; diff --git a/deploy/adapters/ansible/roles/common/templates/openstack_ppa_repo.repo.j2 b/deploy/adapters/ansible/roles/common/templates/openstack_ppa_repo.repo.j2 new file mode 100644 index 00000000..bc95ef45 --- /dev/null +++ b/deploy/adapters/ansible/roles/common/templates/openstack_ppa_repo.repo.j2 @@ -0,0 +1,7 @@ +[openstack_ppa_repo] +name=openstack - openstack_repo +proxy=_none_ +baseurl=http://{{ COMPASS_SERVER.stdout_lines[0] }}/cblr/repo_mirror/centos7-newton-ppa +enabled=1 +gpgcheck=0 +skip_if_unavailable=1 diff --git a/deploy/adapters/ansible/roles/common/vars/RedHat.yml b/deploy/adapters/ansible/roles/common/vars/RedHat.yml index 8143e1cb..0697fec7 100644 --- a/deploy/adapters/ansible/roles/common/vars/RedHat.yml +++ b/deploy/adapters/ansible/roles/common/vars/RedHat.yml @@ -14,6 +14,12 @@ packages: - gcc - redhat-lsb-core - python-crypto + - wget + - yum-plugin-priorities + - vim + - lsof + - strace + - net-tools pip_packages: - crudini diff --git a/deploy/adapters/ansible/roles/database/vars/RedHat.yml b/deploy/adapters/ansible/roles/database/vars/RedHat.yml index aed1ac98..62f331c7 100644 --- a/deploy/adapters/ansible/roles/database/vars/RedHat.yml +++ b/deploy/adapters/ansible/roles/database/vars/RedHat.yml @@ -16,7 +16,6 @@ maridb_packages: - MariaDB-Galera-server - MariaDB-client - galera - - MySQL-python mongodb_packages: - mongo-10gen-server diff --git a/deploy/adapters/ansible/roles/keystone/templates/admin-openrc-v3.sh b/deploy/adapters/ansible/roles/keystone/templates/admin-openrc-v3.sh deleted file mode 100644 index c3d863e8..00000000 --- a/deploy/adapters/ansible/roles/keystone/templates/admin-openrc-v3.sh +++ /dev/null @@ -1,19 +0,0 @@ -############################################################################## -# Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Apache License, Version 2.0 -# which accompanies this distribution, and is available at -# http://www.apache.org/licenses/LICENSE-2.0 -############################################################################## -# Verify the Identity Service installation -export OS_PASSWORD={{ ADMIN_PASS }} -export OS_TENANT_NAME=admin -export OS_AUTH_URL=http://{{ internal_vip.ip }}:35357/v3 -export OS_IDENTITY_API_VERSION=3 -export OS_USERNAME=admin -export OS_VOLUME_API_VERSION=2 -export OS_USER_DOMAIN_NAME=Default -export OS_PROJECT_DOMAIN_NAME=Default - - diff --git a/deploy/adapters/ansible/roles/keystone/vars/RedHat.yml b/deploy/adapters/ansible/roles/keystone/vars/RedHat.yml index 38f8d91b..63ddce3c 100644 --- a/deploy/adapters/ansible/roles/keystone/vars/RedHat.yml +++ b/deploy/adapters/ansible/roles/keystone/vars/RedHat.yml @@ -11,6 +11,7 @@ cron_path: "/var/spool/cron" packages: - openstack-keystone + - python-openstackclient services: - httpd diff --git a/deploy/adapters/ansible/roles/keystone/vars/main.yml b/deploy/adapters/ansible/roles/keystone/vars/main.yml index 5dbc5628..65ae4090 100644 --- a/deploy/adapters/ansible/roles/keystone/vars/main.yml +++ b/deploy/adapters/ansible/roles/keystone/vars/main.yml @@ -9,7 +9,6 @@ --- packages_noarch: - python-keystoneclient - - python3-keystoneclient services_noarch: [] os_services: diff --git a/deploy/adapters/ansible/roles/neutron-compute/handlers/main.yml b/deploy/adapters/ansible/roles/neutron-compute/handlers/main.yml index 83737980..1e2ad35d 100644 --- a/deploy/adapters/ansible/roles/neutron-compute/handlers/main.yml +++ b/deploy/adapters/ansible/roles/neutron-compute/handlers/main.yml @@ -12,4 +12,4 @@ with_items: "{{ services | union(services_noarch) }}" - name: restart nova-compute services - service: name=nova-compute state=restarted enabled=yes + service: name={{ nova_compute_service }} state=restarted enabled=yes diff --git a/deploy/adapters/ansible/roles/neutron-compute/templates/neutron.conf b/deploy/adapters/ansible/roles/neutron-compute/templates/neutron.conf index a676e951..d74435fe 100644 --- a/deploy/adapters/ansible/roles/neutron-compute/templates/neutron.conf +++ b/deploy/adapters/ansible/roles/neutron-compute/templates/neutron.conf @@ -2,7 +2,6 @@ verbose = {{ VERBOSE }} debug = {{ VERBOSE }} state_path = /var/lib/neutron -lock_path = $state_path/lock notify_nova_on_port_status_changes = True notify_nova_on_port_data_changes = True log_dir = /var/log/neutron @@ -103,3 +102,6 @@ rabbit_host = {{ rabbit_host }} rabbit_password = {{ RABBIT_PASS }} rabbit_port = 5672 rabbit_userid = {{ RABBIT_USER }} + +[oslo_concurrency] +lock_path = $state_path/lock diff --git a/deploy/adapters/ansible/roles/neutron-compute/vars/Debian.yml b/deploy/adapters/ansible/roles/neutron-compute/vars/Debian.yml index 83d7f323..d0ae2bdd 100644 --- a/deploy/adapters/ansible/roles/neutron-compute/vars/Debian.yml +++ b/deploy/adapters/ansible/roles/neutron-compute/vars/Debian.yml @@ -17,3 +17,6 @@ packages: services: - neutron-openvswitch-agent + +nova_compute_service: + - nova-compute diff --git a/deploy/adapters/ansible/roles/neutron-compute/vars/RedHat.yml b/deploy/adapters/ansible/roles/neutron-compute/vars/RedHat.yml index 65dda6b5..8486a1aa 100644 --- a/deploy/adapters/ansible/roles/neutron-compute/vars/RedHat.yml +++ b/deploy/adapters/ansible/roles/neutron-compute/vars/RedHat.yml @@ -16,3 +16,6 @@ services: - openvswitch - neutron-openvswitch-agent - libvirtd + +nova_compute_service: + - openstack-nova-compute diff --git a/deploy/adapters/ansible/roles/nova-compute/tasks/main.yml b/deploy/adapters/ansible/roles/nova-compute/tasks/main.yml index 417f8771..f918344b 100644 --- a/deploy/adapters/ansible/roles/nova-compute/tasks/main.yml +++ b/deploy/adapters/ansible/roles/nova-compute/tasks/main.yml @@ -50,8 +50,3 @@ shell: rm /var/lib/nova/nova.sqlite || touch nova.sqlite.removed - meta: flush_handlers - -- name: restart nova-compute and libvirt-bin - shell: > - service nova-compute restart; - service libvirt-bin restart; diff --git a/deploy/adapters/ansible/roles/nova-compute/templates/nova-compute.conf b/deploy/adapters/ansible/roles/nova-compute/templates/nova-compute.conf index 305d408b..a46c6b8d 100644 --- a/deploy/adapters/ansible/roles/nova-compute/templates/nova-compute.conf +++ b/deploy/adapters/ansible/roles/nova-compute/templates/nova-compute.conf @@ -1,11 +1,12 @@ [DEFAULT] -compute_driver=libvirt.LibvirtDriver +compute_driver = libvirt.LibvirtDriver force_raw_images = true [libvirt] +cpu_mode = none {% if kvm_cpu_num.stdout_lines[0]|int == 0 %} -virt_type=qemu +virt_type = qemu {% else %} -virt_type=kvm +virt_type = kvm {% endif %} images_type = raw -mem_stats_period_seconds=0 +mem_stats_period_seconds = 0 diff --git a/deploy/adapters/ansible/roles/nova-compute/vars/Debian.yml b/deploy/adapters/ansible/roles/nova-compute/vars/Debian.yml index 20b1141a..4e599500 100644 --- a/deploy/adapters/ansible/roles/nova-compute/vars/Debian.yml +++ b/deploy/adapters/ansible/roles/nova-compute/vars/Debian.yml @@ -13,3 +13,4 @@ packages: services: - nova-compute + - libvirt-bin diff --git a/deploy/adapters/ansible/roles/setup-network/tasks/main.yml b/deploy/adapters/ansible/roles/setup-network/tasks/main.yml index 5e5a0936..9edee350 100644 --- a/deploy/adapters/ansible/roles/setup-network/tasks/main.yml +++ b/deploy/adapters/ansible/roles/setup-network/tasks/main.yml @@ -74,5 +74,12 @@ - name: add to boot scripts shell: update-rc.d net_init defaults + when: ansible_os_family == "Debian" + +- name: add to boot scripts + shell: | + chkconfig --add net_init; + chkconfig --level 2345 net_init on; + when: ansible_os_family == 'RedHat' - meta: flush_handlers diff --git a/deploy/adapters/ansible/roles/storage/tasks/main.yml b/deploy/adapters/ansible/roles/storage/tasks/main.yml index b4263d6b..b054be9e 100755 --- a/deploy/adapters/ansible/roles/storage/tasks/main.yml +++ b/deploy/adapters/ansible/roles/storage/tasks/main.yml @@ -51,9 +51,17 @@ tags: - storage - -- name: enable service +- name: add to boot scripts shell: update-rc.d storage defaults + when: ansible_os_family == "Debian" + tags: + - storage + +- name: add to boot scripts + shell: | + chkconfig --add storage; + chkconfig --level 2345 storage on; + when: ansible_os_family == 'RedHat' tags: - storage diff --git a/deploy/adapters/cobbler/kickstarts/default.ks b/deploy/adapters/cobbler/kickstarts/default.ks index ecd877b8..aea955bb 100644 --- a/deploy/adapters/cobbler/kickstarts/default.ks +++ b/deploy/adapters/cobbler/kickstarts/default.ks @@ -87,20 +87,20 @@ $SNIPPET('kickstart_pre_anamon') %packages --nobase @core iproute -ntp +# ntp openssh-clients -wget -yum-plugin-priorities +# wget +# yum-plugin-priorities json-c libestr rsyslog parted -vim -lsof -strace -#if $os_version == "rhel7" -net-tools -#end if +# vim +# lsof +# strace +# if $os_version == "rhel7" +# net-tools +# end if #if $getVar('tool', '') != '' #set $kickstart_software = "kickstart_software_%s" % $tool $SNIPPET($kickstart_software) @@ -118,7 +118,7 @@ chkconfig ip6tables off $SNIPPET('kickstart_yum') $SNIPPET('kickstart_ssh') -$SNIPPET('kickstart_ntp') +# $SNIPPET('kickstart_ntp') $SNIPPET('kickstart_limits.conf') $SNIPPET('kickstart_sysctl.conf') $SNIPPET('kickstart_rsyslog.conf') diff --git a/deploy/adapters/cobbler/snippets/kickstart_post_anamon b/deploy/adapters/cobbler/snippets/kickstart_post_anamon index 699e830f..d1dec7b4 100644 --- a/deploy/adapters/cobbler/snippets/kickstart_post_anamon +++ b/deploy/adapters/cobbler/snippets/kickstart_post_anamon @@ -76,7 +76,7 @@ cat << EOF > /etc/init.d/set_state # #end raw -wget -O /tmp/os_state --post-data='{"ready": true}' --header=Content-Type:application/json "http://$srv/api/hosts/${hostname}/state_internal" +curl -H "Content-Type: application/json" -X POST -d '{"ready": true}' "http://$srv/api/hosts/${hostname}/state_internal" chkconfig set_state off mv /etc/init.d/set_state /tmp/set_state EOF diff --git a/deploy/compass_conf/adapter/ansible_openstack_newton.conf b/deploy/compass_conf/adapter/ansible_openstack_newton.conf index dfc8f1af..0e90e7bc 100755 --- a/deploy/compass_conf/adapter/ansible_openstack_newton.conf +++ b/deploy/compass_conf/adapter/ansible_openstack_newton.conf @@ -3,5 +3,5 @@ DISPLAY_NAME = 'Openstack Newton' PARENT = 'openstack' PACKAGE_INSTALLER = 'ansible_installer_newton' OS_INSTALLER = 'cobbler' -SUPPORTED_OS_PATTERNS = ['(?i)ubuntu-16\.04', '(?i)CentOS-7.*15.*'] +SUPPORTED_OS_PATTERNS = ['(?i)ubuntu-16\.04', '(?i)CentOS-7.*16.*'] DEPLOYABLE = True diff --git a/deploy/compass_conf/os/centos7.0.conf b/deploy/compass_conf/os/centos7.0.conf deleted file mode 100755 index 9dcdf753..00000000 --- a/deploy/compass_conf/os/centos7.0.conf +++ /dev/null @@ -1,3 +0,0 @@ -NAME = 'CentOS-7.0-x86_64' -PARENT = 'CentOS' -DEPLOYABLE = True diff --git a/deploy/compass_conf/os/centos7.3.conf b/deploy/compass_conf/os/centos7.3.conf new file mode 100755 index 00000000..f814f44d --- /dev/null +++ b/deploy/compass_conf/os/centos7.3.conf @@ -0,0 +1,3 @@ +NAME = 'CentOS-7-Minimal-1611-x86_64' +PARENT = 'CentOS' +DEPLOYABLE = True diff --git a/deploy/compass_conf/os/rhel7.2.conf b/deploy/compass_conf/os/rhel7.2.conf deleted file mode 100755 index bcb5f581..00000000 --- a/deploy/compass_conf/os/rhel7.2.conf +++ /dev/null @@ -1,3 +0,0 @@ -NAME = 'rhel-server-7.2-x86_64' -PARENT = 'CentOS' -DEPLOYABLE = True diff --git a/deploy/compass_conf/templates/cobbler/rhel-server-7.2-x86_64/profile.tmpl b/deploy/compass_conf/templates/cobbler/CentOS-7-Minimal-1611-x86_64/profile.tmpl index cfa89004..cfa89004 100755 --- a/deploy/compass_conf/templates/cobbler/rhel-server-7.2-x86_64/profile.tmpl +++ b/deploy/compass_conf/templates/cobbler/CentOS-7-Minimal-1611-x86_64/profile.tmpl diff --git a/deploy/compass_conf/templates/cobbler/rhel-server-7.2-x86_64/system.tmpl b/deploy/compass_conf/templates/cobbler/CentOS-7-Minimal-1611-x86_64/system.tmpl index 8e4cbbbe..8e4cbbbe 100755 --- a/deploy/compass_conf/templates/cobbler/rhel-server-7.2-x86_64/system.tmpl +++ b/deploy/compass_conf/templates/cobbler/CentOS-7-Minimal-1611-x86_64/system.tmpl diff --git a/deploy/conf/cluster.conf b/deploy/conf/cluster.conf index ad21dcd8..e0c5655b 100644 --- a/deploy/conf/cluster.conf +++ b/deploy/conf/cluster.conf @@ -5,7 +5,7 @@ export OS_VERSION=${OS_VERSION:-"xenial"} if [ $OS_VERSION = 'xenial' ]; then export ADAPTER_OS_PATTERN=${ADAPTER_OS_PATTERN:-'(?i)ubuntu-16\.04'} else - export ADAPTER_OS_PATTERN=${ADAPTER_OS_PATTERN:-'(?i)CentOS-7.*15.*'} + export ADAPTER_OS_PATTERN=${ADAPTER_OS_PATTERN:-'(?i)CentOS-7.*16.*'} fi # newton @@ -14,7 +14,12 @@ export OPENSTACK_VERSION=${OPENSTACK_VERSION:-"newton"} # don't touch this export ADAPTER_TARGET_SYSTEM_PATTERN="^openstack$" -export REPO_NAME="$OS_VERSION-$OPENSTACK_VERSION-ppa" +if [ $OS_VERSION = 'centos7' ]; then + unset REPO_NAME +else + export REPO_NAME="$OS_VERSION-$OPENSTACK_VERSION-ppa" +fi + export ADAPTER_NAME="openstack_$OPENSTACK_VERSION" export ADAPTER_FLAVOR_PATTERN="HA-ansible-multinodes-$OPENSTACK_VERSION" diff --git a/deploy/conf/hardware_environment/intel-pod8/network.yml b/deploy/conf/hardware_environment/intel-pod8/network.yml index 7f00bc3e..85e379da 100644 --- a/deploy/conf/hardware_environment/intel-pod8/network.yml +++ b/deploy/conf/hardware_environment/intel-pod8/network.yml @@ -14,7 +14,7 @@ provider_net_mappings: sys_intf_mappings: - name: mgmt interface: eth3 - vlan_tag: 854 + vlan_tag: 805 type: vlan role: - controller diff --git a/deploy/conf/hardware_environment/intel-pod8/network_ocl.yml b/deploy/conf/hardware_environment/intel-pod8/network_ocl.yml index 7f00bc3e..85e379da 100644 --- a/deploy/conf/hardware_environment/intel-pod8/network_ocl.yml +++ b/deploy/conf/hardware_environment/intel-pod8/network_ocl.yml @@ -14,7 +14,7 @@ provider_net_mappings: sys_intf_mappings: - name: mgmt interface: eth3 - vlan_tag: 854 + vlan_tag: 805 type: vlan role: - controller diff --git a/deploy/conf/hardware_environment/intel-pod8/network_onos.yml b/deploy/conf/hardware_environment/intel-pod8/network_onos.yml index e1d099a1..5437a74b 100644 --- a/deploy/conf/hardware_environment/intel-pod8/network_onos.yml +++ b/deploy/conf/hardware_environment/intel-pod8/network_onos.yml @@ -5,7 +5,7 @@ bond_mappings: [] provider_net_mappings: - name: br-prv network: physnet - interface: eth2 + interface: eth1 type: ovs role: - controller @@ -14,7 +14,7 @@ provider_net_mappings: sys_intf_mappings: - name: mgmt interface: eth3 - vlan_tag: 854 + vlan_tag: 805 type: vlan role: - controller diff --git a/deploy/conf/hardware_environment/intel-pod8/os-nosdn-nofeature-ha.yml b/deploy/conf/hardware_environment/intel-pod8/os-nosdn-nofeature-ha.yml index 1d1fd529..b144603b 100644 --- a/deploy/conf/hardware_environment/intel-pod8/os-nosdn-nofeature-ha.yml +++ b/deploy/conf/hardware_environment/intel-pod8/os-nosdn-nofeature-ha.yml @@ -14,7 +14,7 @@ hosts: - eth1: '00:1E:67:D4:30:D1' - eth2: '00:1E:67:C5:5B:28' - eth3: '00:1E:67:C5:5B:29' - ipmiIp: 10.2.117.134 + ipmiIp: 10.2.117.133 roles: - controller - ha @@ -27,7 +27,7 @@ hosts: - eth1: '00:1E:67:D4:39:B4' - eth2: '00:1E:67:C5:52:24' - eth3: '00:1E:67:C5:52:25' - ipmiIp: 10.2.117.136 + ipmiIp: 10.2.117.134 roles: - controller - ha @@ -39,7 +39,7 @@ hosts: - eth1: '00:1E:67:D4:31:B1' - eth2: '00:1E:67:C1:FA:E0' - eth3: '00:1E:67:C1:FA:E1' - ipmiIp: 10.2.117.138 + ipmiIp: 10.2.117.135 roles: - controller - ha @@ -51,7 +51,7 @@ hosts: - eth1: '00:1E:67:D4:34:66' - eth2: '00:1E:67:E2:58:80' - eth3: '00:1E:67:E2:58:81' - ipmiIp: 10.2.117.140 + ipmiIp: 10.2.117.136 roles: - compute - ceph-osd @@ -62,7 +62,7 @@ hosts: - eth1: '00:1E:67:D4:38:41' - eth2: '00:1E:67:C1:F9:2C' - eth3: '00:1E:67:C1:F9:2D' - ipmiIp: 10.2.117.142 + ipmiIp: 10.2.117.137 roles: - compute - ceph-osd diff --git a/deploy/conf/hardware_environment/intel-pod8/os-ocl-nofeature-ha.yml b/deploy/conf/hardware_environment/intel-pod8/os-ocl-nofeature-ha.yml index 026e40aa..1beee7fb 100644 --- a/deploy/conf/hardware_environment/intel-pod8/os-ocl-nofeature-ha.yml +++ b/deploy/conf/hardware_environment/intel-pod8/os-ocl-nofeature-ha.yml @@ -15,7 +15,7 @@ hosts: - eth1: '00:1E:67:D4:30:D1' - eth2: '00:1E:67:C5:5B:28' - eth3: '00:1E:67:C5:5B:29' - ipmiIp: 10.2.117.134 + ipmiIp: 10.2.117.133 roles: - controller - ha @@ -29,7 +29,7 @@ hosts: - eth1: '00:1E:67:D4:39:B4' - eth2: '00:1E:67:C5:52:24' - eth3: '00:1E:67:C5:52:25' - ipmiIp: 10.2.117.136 + ipmiIp: 10.2.117.134 roles: - compute - ceph-osd @@ -40,7 +40,7 @@ hosts: - eth1: '00:1E:67:D4:31:B1' - eth2: '00:1E:67:C1:FA:E0' - eth3: '00:1E:67:C1:FA:E1' - ipmiIp: 10.2.117.138 + ipmiIp: 10.2.117.135 roles: - compute - ceph-osd @@ -51,7 +51,7 @@ hosts: - eth1: '00:1E:67:D4:34:66' - eth2: '00:1E:67:E2:58:80' - eth3: '00:1E:67:E2:58:81' - ipmiIp: 10.2.117.140 + ipmiIp: 10.2.117.136 roles: - compute - ceph-osd @@ -62,7 +62,7 @@ hosts: - eth1: '00:1E:67:D4:38:41' - eth2: '00:1E:67:C1:F9:2C' - eth3: '00:1E:67:C1:F9:2D' - ipmiIp: 10.2.117.142 + ipmiIp: 10.2.117.137 roles: - compute - ceph-osd diff --git a/deploy/conf/hardware_environment/intel-pod8/os-odl_l2-moon-ha.yml b/deploy/conf/hardware_environment/intel-pod8/os-odl_l2-moon-ha.yml index c065f5c6..431d8535 100644 --- a/deploy/conf/hardware_environment/intel-pod8/os-odl_l2-moon-ha.yml +++ b/deploy/conf/hardware_environment/intel-pod8/os-odl_l2-moon-ha.yml @@ -16,7 +16,7 @@ hosts: - eth1: '00:1E:67:D4:30:D1' - eth2: '00:1E:67:C5:5B:28' - eth3: '00:1E:67:C5:5B:29' - ipmiIp: 10.2.117.134 + ipmiIp: 10.2.117.133 roles: - controller - ha @@ -30,7 +30,7 @@ hosts: - eth1: '00:1E:67:D4:39:B4' - eth2: '00:1E:67:C5:52:24' - eth3: '00:1E:67:C5:52:25' - ipmiIp: 10.2.117.136 + ipmiIp: 10.2.117.134 roles: - controller - ha @@ -43,7 +43,7 @@ hosts: - eth1: '00:1E:67:D4:31:B1' - eth2: '00:1E:67:C1:FA:E0' - eth3: '00:1E:67:C1:FA:E1' - ipmiIp: 10.2.117.138 + ipmiIp: 10.2.117.135 roles: - controller - ha @@ -56,7 +56,7 @@ hosts: - eth1: '00:1E:67:D4:34:66' - eth2: '00:1E:67:E2:58:80' - eth3: '00:1E:67:E2:58:81' - ipmiIp: 10.2.117.140 + ipmiIp: 10.2.117.136 roles: - compute - ceph-osd @@ -67,7 +67,7 @@ hosts: - eth1: '00:1E:67:D4:38:41' - eth2: '00:1E:67:C1:F9:2C' - eth3: '00:1E:67:C1:F9:2D' - ipmiIp: 10.2.117.142 + ipmiIp: 10.2.117.137 roles: - compute - ceph-osd diff --git a/deploy/conf/hardware_environment/intel-pod8/os-odl_l2-nofeature-ha.yml b/deploy/conf/hardware_environment/intel-pod8/os-odl_l2-nofeature-ha.yml index 13e7fd0d..bf845d73 100644 --- a/deploy/conf/hardware_environment/intel-pod8/os-odl_l2-nofeature-ha.yml +++ b/deploy/conf/hardware_environment/intel-pod8/os-odl_l2-nofeature-ha.yml @@ -14,7 +14,7 @@ hosts: - eth1: '00:1E:67:D4:30:D1' - eth2: '00:1E:67:C5:5B:28' - eth3: '00:1E:67:C5:5B:29' - ipmiIp: 10.2.117.134 + ipmiIp: 10.2.117.133 roles: - controller - ha @@ -28,7 +28,7 @@ hosts: - eth1: '00:1E:67:D4:39:B4' - eth2: '00:1E:67:C5:52:24' - eth3: '00:1E:67:C5:52:25' - ipmiIp: 10.2.117.136 + ipmiIp: 10.2.117.134 roles: - controller - ha @@ -41,7 +41,7 @@ hosts: - eth1: '00:1E:67:D4:31:B1' - eth2: '00:1E:67:C1:FA:E0' - eth3: '00:1E:67:C1:FA:E1' - ipmiIp: 10.2.117.138 + ipmiIp: 10.2.117.135 roles: - controller - ha @@ -54,7 +54,7 @@ hosts: - eth1: '00:1E:67:D4:34:66' - eth2: '00:1E:67:E2:58:80' - eth3: '00:1E:67:E2:58:81' - ipmiIp: 10.2.117.140 + ipmiIp: 10.2.117.136 roles: - compute - ceph-osd @@ -65,7 +65,7 @@ hosts: - eth1: '00:1E:67:D4:38:41' - eth2: '00:1E:67:C1:F9:2C' - eth3: '00:1E:67:C1:F9:2D' - ipmiIp: 10.2.117.142 + ipmiIp: 10.2.117.137 roles: - compute - ceph-osd diff --git a/deploy/conf/hardware_environment/intel-pod8/os-odl_l3-nofeature-ha.yml b/deploy/conf/hardware_environment/intel-pod8/os-odl_l3-nofeature-ha.yml index 04fba033..23460ff0 100644 --- a/deploy/conf/hardware_environment/intel-pod8/os-odl_l3-nofeature-ha.yml +++ b/deploy/conf/hardware_environment/intel-pod8/os-odl_l3-nofeature-ha.yml @@ -16,7 +16,7 @@ hosts: - eth1: '00:1E:67:D4:30:D1' - eth2: '00:1E:67:C5:5B:28' - eth3: '00:1E:67:C5:5B:29' - ipmiIp: 10.2.117.134 + ipmiIp: 10.2.117.133 roles: - controller - ha @@ -30,7 +30,7 @@ hosts: - eth1: '00:1E:67:D4:39:B4' - eth2: '00:1E:67:C5:52:24' - eth3: '00:1E:67:C5:52:25' - ipmiIp: 10.2.117.136 + ipmiIp: 10.2.117.134 roles: - controller - ha @@ -43,7 +43,7 @@ hosts: - eth1: '00:1E:67:D4:31:B1' - eth2: '00:1E:67:C1:FA:E0' - eth3: '00:1E:67:C1:FA:E1' - ipmiIp: 10.2.117.138 + ipmiIp: 10.2.117.135 roles: - controller - ha @@ -56,7 +56,7 @@ hosts: - eth1: '00:1E:67:D4:34:66' - eth2: '00:1E:67:E2:58:80' - eth3: '00:1E:67:E2:58:81' - ipmiIp: 10.2.117.140 + ipmiIp: 10.2.117.136 roles: - compute - ceph-osd @@ -67,7 +67,7 @@ hosts: - eth1: '00:1E:67:D4:38:41' - eth2: '00:1E:67:C1:F9:2C' - eth3: '00:1E:67:C1:F9:2D' - ipmiIp: 10.2.117.142 + ipmiIp: 10.2.117.137 roles: - compute - ceph-osd diff --git a/deploy/conf/hardware_environment/intel-pod8/os-onos-nofeature-ha.yml b/deploy/conf/hardware_environment/intel-pod8/os-onos-nofeature-ha.yml index 57a790ea..d7fa89f5 100644 --- a/deploy/conf/hardware_environment/intel-pod8/os-onos-nofeature-ha.yml +++ b/deploy/conf/hardware_environment/intel-pod8/os-onos-nofeature-ha.yml @@ -14,7 +14,7 @@ hosts: - eth1: '00:1E:67:D4:30:D1' - eth2: '00:1E:67:C5:5B:28' - eth3: '00:1E:67:C5:5B:29' - ipmiIp: 10.2.117.134 + ipmiIp: 10.2.117.133 roles: - controller - ha @@ -28,7 +28,7 @@ hosts: - eth1: '00:1E:67:D4:39:B4' - eth2: '00:1E:67:C5:52:24' - eth3: '00:1E:67:C5:52:25' - ipmiIp: 10.2.117.136 + ipmiIp: 10.2.117.134 roles: - controller - ha @@ -41,7 +41,7 @@ hosts: - eth1: '00:1E:67:D4:31:B1' - eth2: '00:1E:67:C1:FA:E0' - eth3: '00:1E:67:C1:FA:E1' - ipmiIp: 10.2.117.138 + ipmiIp: 10.2.117.135 roles: - controller - ha @@ -54,7 +54,7 @@ hosts: - eth1: '00:1E:67:D4:34:66' - eth2: '00:1E:67:E2:58:80' - eth3: '00:1E:67:E2:58:81' - ipmiIp: 10.2.117.140 + ipmiIp: 10.2.117.136 roles: - compute - ceph-osd @@ -65,7 +65,7 @@ hosts: - eth1: '00:1E:67:D4:38:41' - eth2: '00:1E:67:C1:F9:2C' - eth3: '00:1E:67:C1:F9:2D' - ipmiIp: 10.2.117.142 + ipmiIp: 10.2.117.137 roles: - compute - ceph-osd diff --git a/deploy/conf/hardware_environment/intel-pod8/os-onos-sfc-ha.yml b/deploy/conf/hardware_environment/intel-pod8/os-onos-sfc-ha.yml index 1edd0276..fdafc3b9 100644 --- a/deploy/conf/hardware_environment/intel-pod8/os-onos-sfc-ha.yml +++ b/deploy/conf/hardware_environment/intel-pod8/os-onos-sfc-ha.yml @@ -16,7 +16,7 @@ hosts: - eth1: '00:1E:67:D4:30:D1' - eth2: '00:1E:67:C5:5B:28' - eth3: '00:1E:67:C5:5B:29' - ipmiIp: 10.2.117.134 + ipmiIp: 10.2.117.133 roles: - controller - ha @@ -30,7 +30,7 @@ hosts: - eth1: '00:1E:67:D4:39:B4' - eth2: '00:1E:67:C5:52:24' - eth3: '00:1E:67:C5:52:25' - ipmiIp: 10.2.117.136 + ipmiIp: 10.2.117.134 roles: - controller - ha @@ -43,7 +43,7 @@ hosts: - eth1: '00:1E:67:D4:31:B1' - eth2: '00:1E:67:C1:FA:E0' - eth3: '00:1E:67:C1:FA:E1' - ipmiIp: 10.2.117.138 + ipmiIp: 10.2.117.135 roles: - controller - ha @@ -56,7 +56,7 @@ hosts: - eth1: '00:1E:67:D4:34:66' - eth2: '00:1E:67:E2:58:80' - eth3: '00:1E:67:E2:58:81' - ipmiIp: 10.2.117.140 + ipmiIp: 10.2.117.136 roles: - compute - ceph-osd @@ -67,7 +67,7 @@ hosts: - eth1: '00:1E:67:D4:38:41' - eth2: '00:1E:67:C1:F9:2C' - eth3: '00:1E:67:C1:F9:2D' - ipmiIp: 10.2.117.142 + ipmiIp: 10.2.117.137 roles: - compute - ceph-osd |