Replace glance_nfs_client
We should reflect changes introduced in dependant patch for CI to test new variable properly. Until this patch gets merged dependant patch runs compatability mode check (testing old glance_nfs_client). All futher checks would run with new glance_remote_client variable defined. Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_glance/+/837550 Change-Id: I381752ac0bcd7faf5bbdc2d929ce2a9a0a3f1488
This commit is contained in:
parent
d081d92831
commit
f40abfa2f4
@ -156,30 +156,27 @@ image_hosts:
|
|||||||
ip: 172.29.236.11
|
ip: 172.29.236.11
|
||||||
container_vars:
|
container_vars:
|
||||||
limit_container_types: glance
|
limit_container_types: glance
|
||||||
glance_nfs_client:
|
glance_remote_client:
|
||||||
- server: "172.29.244.15"
|
- what: "172.29.244.15:/images"
|
||||||
remote_path: "/images"
|
where: "/var/lib/glance/images"
|
||||||
local_path: "/var/lib/glance/images"
|
|
||||||
type: "nfs"
|
type: "nfs"
|
||||||
options: "_netdev,auto"
|
options: "_netdev,auto"
|
||||||
infra2:
|
infra2:
|
||||||
ip: 172.29.236.12
|
ip: 172.29.236.12
|
||||||
container_vars:
|
container_vars:
|
||||||
limit_container_types: glance
|
limit_container_types: glance
|
||||||
glance_nfs_client:
|
glance_remote_client:
|
||||||
- server: "172.29.244.15"
|
- what: "172.29.244.15:/images"
|
||||||
remote_path: "/images"
|
where: "/var/lib/glance/images"
|
||||||
local_path: "/var/lib/glance/images"
|
|
||||||
type: "nfs"
|
type: "nfs"
|
||||||
options: "_netdev,auto"
|
options: "_netdev,auto"
|
||||||
infra3:
|
infra3:
|
||||||
ip: 172.29.236.13
|
ip: 172.29.236.13
|
||||||
container_vars:
|
container_vars:
|
||||||
limit_container_types: glance
|
limit_container_types: glance
|
||||||
glance_nfs_client:
|
glance_remote_client:
|
||||||
- server: "172.29.244.15"
|
- what: "172.29.244.15:/images"
|
||||||
remote_path: "/images"
|
where: "/var/lib/glance/images"
|
||||||
local_path: "/var/lib/glance/images"
|
|
||||||
type: "nfs"
|
type: "nfs"
|
||||||
options: "_netdev,auto"
|
options: "_netdev,auto"
|
||||||
|
|
||||||
|
@ -355,30 +355,27 @@ image_hosts:
|
|||||||
ip: 172.29.236.11
|
ip: 172.29.236.11
|
||||||
container_vars:
|
container_vars:
|
||||||
limit_container_types: glance
|
limit_container_types: glance
|
||||||
glance_nfs_client:
|
glance_remote_client:
|
||||||
- server: "172.29.244.15"
|
- what: "172.29.244.15:/images"
|
||||||
remote_path: "/images"
|
where: "/var/lib/glance/images"
|
||||||
local_path: "/var/lib/glance/images"
|
|
||||||
type: "nfs"
|
type: "nfs"
|
||||||
options: "_netdev,auto"
|
options: "_netdev,auto"
|
||||||
infra2:
|
infra2:
|
||||||
ip: 172.29.236.12
|
ip: 172.29.236.12
|
||||||
container_vars:
|
container_vars:
|
||||||
limit_container_types: glance
|
limit_container_types: glance
|
||||||
glance_nfs_client:
|
glance_remote_client:
|
||||||
- server: "172.29.244.15"
|
- what: "172.29.244.15:/images"
|
||||||
remote_path: "/images"
|
where: "/var/lib/glance/images"
|
||||||
local_path: "/var/lib/glance/images"
|
|
||||||
type: "nfs"
|
type: "nfs"
|
||||||
options: "_netdev,auto"
|
options: "_netdev,auto"
|
||||||
infra3:
|
infra3:
|
||||||
ip: 172.29.236.13
|
ip: 172.29.236.13
|
||||||
container_vars:
|
container_vars:
|
||||||
limit_container_types: glance
|
limit_container_types: glance
|
||||||
glance_nfs_client:
|
glance_remote_client:
|
||||||
- server: "172.29.244.15"
|
- what: "172.29.244.15:/images"
|
||||||
remote_path: "/images"
|
where: "/var/lib/glance/images"
|
||||||
local_path: "/var/lib/glance/images"
|
|
||||||
type: "nfs"
|
type: "nfs"
|
||||||
options: "_netdev,auto"
|
options: "_netdev,auto"
|
||||||
|
|
||||||
|
@ -141,30 +141,27 @@ image_hosts:
|
|||||||
ip: 172.29.236.11
|
ip: 172.29.236.11
|
||||||
container_vars:
|
container_vars:
|
||||||
limit_container_types: glance
|
limit_container_types: glance
|
||||||
glance_nfs_client:
|
glance_remote_client:
|
||||||
- server: "172.29.244.15"
|
- what: "172.29.244.15:/images"
|
||||||
remote_path: "/images"
|
where: "/var/lib/glance/images"
|
||||||
local_path: "/var/lib/glance/images"
|
|
||||||
type: "nfs"
|
type: "nfs"
|
||||||
options: "_netdev,auto"
|
options: "_netdev,auto"
|
||||||
infra2:
|
infra2:
|
||||||
ip: 172.29.236.12
|
ip: 172.29.236.12
|
||||||
container_vars:
|
container_vars:
|
||||||
limit_container_types: glance
|
limit_container_types: glance
|
||||||
glance_nfs_client:
|
glance_remote_client:
|
||||||
- server: "172.29.244.15"
|
- what: "172.29.244.15:/images"
|
||||||
remote_path: "/images"
|
where: "/var/lib/glance/images"
|
||||||
local_path: "/var/lib/glance/images"
|
|
||||||
type: "nfs"
|
type: "nfs"
|
||||||
options: "_netdev,auto"
|
options: "_netdev,auto"
|
||||||
infra3:
|
infra3:
|
||||||
ip: 172.29.236.13
|
ip: 172.29.236.13
|
||||||
container_vars:
|
container_vars:
|
||||||
limit_container_types: glance
|
limit_container_types: glance
|
||||||
glance_nfs_client:
|
glance_remote_client:
|
||||||
- server: "172.29.244.15"
|
- what: "172.29.244.15:/images"
|
||||||
remote_path: "/images"
|
where: "/var/lib/glance/images"
|
||||||
local_path: "/var/lib/glance/images"
|
|
||||||
type: "nfs"
|
type: "nfs"
|
||||||
options: "_netdev,auto"
|
options: "_netdev,auto"
|
||||||
|
|
||||||
|
@ -194,30 +194,27 @@ image_hosts:
|
|||||||
ip: 172.29.236.11
|
ip: 172.29.236.11
|
||||||
container_vars:
|
container_vars:
|
||||||
limit_container_types: glance
|
limit_container_types: glance
|
||||||
glance_nfs_client:
|
glance_remote_client:
|
||||||
- server: "172.29.244.15"
|
- what: "172.29.244.15:/images"
|
||||||
remote_path: "/images"
|
where: "/var/lib/glance/images"
|
||||||
local_path: "/var/lib/glance/images"
|
|
||||||
type: "nfs"
|
type: "nfs"
|
||||||
options: "_netdev,auto"
|
options: "_netdev,auto"
|
||||||
infra2:
|
infra2:
|
||||||
ip: 172.29.236.12
|
ip: 172.29.236.12
|
||||||
container_vars:
|
container_vars:
|
||||||
limit_container_types: glance
|
limit_container_types: glance
|
||||||
glance_nfs_client:
|
glance_remote_client:
|
||||||
- server: "172.29.244.15"
|
- what: "172.29.244.15:/images"
|
||||||
remote_path: "/images"
|
where: "/var/lib/glance/images"
|
||||||
local_path: "/var/lib/glance/images"
|
|
||||||
type: "nfs"
|
type: "nfs"
|
||||||
options: "_netdev,auto"
|
options: "_netdev,auto"
|
||||||
infra3:
|
infra3:
|
||||||
ip: 172.29.236.13
|
ip: 172.29.236.13
|
||||||
container_vars:
|
container_vars:
|
||||||
limit_container_types: glance
|
limit_container_types: glance
|
||||||
glance_nfs_client:
|
glance_remote_client:
|
||||||
- server: "172.29.244.15"
|
- what: "172.29.244.15:/images"
|
||||||
remote_path: "/images"
|
where: "/var/lib/glance/images"
|
||||||
local_path: "/var/lib/glance/images"
|
|
||||||
type: "nfs"
|
type: "nfs"
|
||||||
options: "_netdev,auto"
|
options: "_netdev,auto"
|
||||||
|
|
||||||
|
@ -156,30 +156,27 @@ image_hosts:
|
|||||||
ip: 172.29.236.11
|
ip: 172.29.236.11
|
||||||
container_vars:
|
container_vars:
|
||||||
limit_container_types: glance
|
limit_container_types: glance
|
||||||
glance_nfs_client:
|
glance_remote_client:
|
||||||
- server: "172.29.244.15"
|
- what: "172.29.244.15:/images"
|
||||||
remote_path: "/images"
|
where: "/var/lib/glance/images"
|
||||||
local_path: "/var/lib/glance/images"
|
|
||||||
type: "nfs"
|
type: "nfs"
|
||||||
options: "_netdev,auto"
|
options: "_netdev,auto"
|
||||||
infra2:
|
infra2:
|
||||||
ip: 172.29.236.12
|
ip: 172.29.236.12
|
||||||
container_vars:
|
container_vars:
|
||||||
limit_container_types: glance
|
limit_container_types: glance
|
||||||
glance_nfs_client:
|
glance_remote_client:
|
||||||
- server: "172.29.244.15"
|
- what: "172.29.244.15:/images"
|
||||||
remote_path: "/images"
|
where: "/var/lib/glance/images"
|
||||||
local_path: "/var/lib/glance/images"
|
|
||||||
type: "nfs"
|
type: "nfs"
|
||||||
options: "_netdev,auto"
|
options: "_netdev,auto"
|
||||||
infra3:
|
infra3:
|
||||||
ip: 172.29.236.13
|
ip: 172.29.236.13
|
||||||
container_vars:
|
container_vars:
|
||||||
limit_container_types: glance
|
limit_container_types: glance
|
||||||
glance_nfs_client:
|
glance_remote_client:
|
||||||
- server: "172.29.244.15"
|
- what: "172.29.244.15:/images"
|
||||||
remote_path: "/images"
|
where: "/var/lib/glance/images"
|
||||||
local_path: "/var/lib/glance/images"
|
|
||||||
type: "nfs"
|
type: "nfs"
|
||||||
options: "_netdev,auto"
|
options: "_netdev,auto"
|
||||||
|
|
||||||
|
@ -47,20 +47,20 @@
|
|||||||
- "'glance_api' in group_names"
|
- "'glance_api' in group_names"
|
||||||
- "groups['glance_api'] | length > 1"
|
- "groups['glance_api'] | length > 1"
|
||||||
|
|
||||||
- name: Configure container (non-nfs)
|
- name: Configure container (local storage bind mount from host)
|
||||||
include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||||
vars:
|
vars:
|
||||||
list_of_bind_mounts: "{{ glance_container_bind_mounts }}"
|
list_of_bind_mounts: "{{ glance_container_bind_mounts }}"
|
||||||
when:
|
when:
|
||||||
- not is_metal
|
- not is_metal
|
||||||
- glance_default_store == "file"
|
- glance_default_store == "file"
|
||||||
- (glance_nfs_client is not defined) or (glance_nfs_client | length == 0)
|
- (glance_remote_client is not defined) or (glance_remote_client | length == 0)
|
||||||
|
|
||||||
- name: Configure container (nfs)
|
- name: Configure container (remote storage)
|
||||||
include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||||
when:
|
when:
|
||||||
- not is_metal
|
- not is_metal
|
||||||
- (glance_default_store != "file") or (glance_nfs_client is defined)
|
- (glance_default_store != "file") or (glance_remote_client is defined)
|
||||||
|
|
||||||
- include_tasks: common-tasks/unbound-clients.yml
|
- include_tasks: common-tasks/unbound-clients.yml
|
||||||
when:
|
when:
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
glance_default_store: file
|
glance_default_store: file
|
||||||
glance_nfs_client:
|
glance_remote_client:
|
||||||
- server: "172.29.244.100"
|
- what: "172.29.244.100:/srv/nfs/glance"
|
||||||
remote_path: "/srv/nfs/glance"
|
where: "/var/lib/glance/images"
|
||||||
local_path: "/var/lib/glance/images"
|
|
||||||
type: "nfs"
|
type: "nfs"
|
||||||
options: "_netdev,auto"
|
options: "_netdev,auto"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user