Added in keystone reserved port

This change adds a reserved port for keystone based on the defined
admin port in the variable `keystone_admin_port`.

Please note this task is expected to fail as the current trusty kernel
does not support this action
(https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1279041)

Change-Id: I18ef63747369c6722194b6412fea24fbb248ab1d
Partial-Bug: #1426371
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
kevin 2015-06-29 10:18:55 -05:00 committed by Kevin Carter
parent 23deb2c39c
commit 41b23acac3
No known key found for this signature in database
GPG Key ID: 69FEFFC5E2D9273F

View File

@ -71,6 +71,23 @@
when: is_metal | bool
tags:
- keystone-logs
# todo(cloudnull): this task is being run only if/when keystone is installed on a physical host.
# This is not being run within a container because it is an unsupported action due to this
# issue: (https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1279041)
# This issue was resolved however we'll need to eval it in the next LTS release.
# Related OSA Bug: https://launchpad.net/bugs/1426371
- name: Add keystone reserved port to physical host
sysctl:
name: "{{ item.key }}"
value: "{{ item.value }}"
sysctl_set: "{{ item.set|default('yes') }}"
state: "{{ item.state|default('present') }}"
reload: "{{ item.reload|default('yes') }}"
with_items:
- { key: "net.ipv4.ip_local_reserved_ports", value: "{{ keystone_admin_port }}"}
when: is_metal | bool
tags:
- keystone-reserved-port
roles:
- role: "os_keystone"
keystone_venv_tag: "{{ openstack_release }}"
@ -91,5 +108,7 @@
- "system-crontab-coordination"
vars:
galera_address: "{{ internal_lb_vip_address }}"
keystone_admin_port: 35357
ansible_hostname: "{{ container_name }}"
is_metal: "{{ properties.is_metal|default(false) }}"