Skip to content

Commit

Permalink
Merge pull request #426 from SeanMooney/ceph
Browse files Browse the repository at this point in the history
use correct ceph host dir for libvirt and nova
  • Loading branch information
openshift-ci[bot] authored Oct 9, 2023
2 parents f027f2a + 81f2fe8 commit b1de2a9
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 10 deletions.
2 changes: 0 additions & 2 deletions roles/edpm_libvirt/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@
proto: tcp
dport: 22
# edpm_nova molecule depends on edpm_libvirt so it tests
# the case where this directory does not exsit
- name: Create Ceph client file directory
become: true
ansible.builtin.file:
Expand Down
2 changes: 1 addition & 1 deletion roles/edpm_libvirt/molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
- "/var/log/containers"
- "/var/log/containers/stdouts"
# extrenal deps
- "/etc/ceph"
- "/var/lib/openstack/config/ceph"
# libvirt directories
- "/var/lib/libvirt"
- "/var/lib/openstack/config/libvirt"
Expand Down
2 changes: 1 addition & 1 deletion roles/edpm_libvirt/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
# dont set owner/group or mode on these, as they are managed
# by other roles, just ensure they exist.
- { "path": "/var/log/containers/stdouts" }
- { "path": "/etc/ceph" }
- { "path": "/var/lib/openstack/config/ceph" }
- name: render libvirt container
tags:
- install
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"/var/lib/nova:/var/lib/nova:shared,z",
"/run/libvirt:/run/libvirt:shared,z",
"/dev:/dev",
"/etc/ceph:/var/lib/kolla/config_files/ceph:ro"
"/var/lib/openstack/config/ceph:/var/lib/kolla/config_files/ceph:ro"
]
}
14 changes: 11 additions & 3 deletions roles/edpm_nova/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
src: /usr/share/zoneinfo/UTC
state: link
- name: set timezone
import_role:
ansible.builtin.import_role:
name: osp.edpm.edpm_timezone
- name: install podman
import_role:
ansible.builtin.import_role:
name: osp.edpm.edpm_podman
- name: Create firewall directory
become: true
Expand All @@ -65,11 +65,19 @@
proto: tcp
dport: 22
- name: install libvirt
import_role:
ansible.builtin.import_role:
name: osp.edpm.edpm_libvirt
- name: ensure /etc/multipath.conf exists
become: true
ansible.builtin.file:
path: /etc/multipath.conf
state: touch
mode: "0644"
- name: Create Ceph client file directory
become: true
ansible.builtin.file:
path: '/var/lib/openstack/config/ceph/'
state: directory
owner: root
group: root
mode: 0755
2 changes: 1 addition & 1 deletion roles/edpm_nova/molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
- "/var/log/containers"
- "/var/log/containers/stdouts"
# extrenal deps
- "/etc/ceph"
- "/var/lib/openstack/config/ceph"
# nova directories
- "/var/lib/nova"
- "/var/lib/openstack/config/nova"
Expand Down
2 changes: 1 addition & 1 deletion roles/edpm_nova/templates/nova_compute.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"/etc/multipath:/etc/multipath:z",
"/etc/multipath.conf:/etc/multipath.conf:ro",
"/etc/iscsi:/etc/iscsi:ro",
"/etc/ceph:/var/lib/kolla/config_files/ceph:ro"
"/var/lib/openstack/config/ceph:/var/lib/kolla/config_files/ceph:ro"
]
}

0 comments on commit b1de2a9

Please sign in to comment.