From 3e9a648601e011efbbc9d929382bf74745e6224d Mon Sep 17 00:00:00 2001 From: "wu.chunyang" Date: Sun, 7 Jun 2020 19:25:20 +0800 Subject: [PATCH] permission denied when enable_kolla_dev_mod non-root user has no permission to create directory under /opt directory. use "become: true" to resolve it. Change-Id: I155efc4b1e0691da0aaf6ef19ca709e9dc2d9168 --- ansible/roles/aodh/tasks/clone.yml | 1 + ansible/roles/barbican/tasks/clone.yml | 1 + ansible/roles/blazar/tasks/clone.yml | 1 + ansible/roles/ceilometer/tasks/clone.yml | 1 + ansible/roles/cinder/tasks/clone.yml | 1 + ansible/roles/cloudkitty/tasks/clone.yml | 1 + ansible/roles/congress/tasks/clone.yml | 1 + ansible/roles/cyborg/tasks/clone.yml | 1 + ansible/roles/designate/tasks/clone.yml | 1 + ansible/roles/freezer/tasks/clone.yml | 2 ++ ansible/roles/glance/tasks/clone.yml | 1 + ansible/roles/heat/tasks/clone.yml | 1 + ansible/roles/horizon/tasks/clone.yml | 2 ++ ansible/roles/ironic/tasks/clone.yml | 2 ++ ansible/roles/keystone/tasks/clone.yml | 1 + ansible/roles/kuryr/tasks/clone.yml | 2 ++ ansible/roles/magnum/tasks/clone.yml | 1 + ansible/roles/manila/tasks/clone.yml | 1 + ansible/roles/masakari/tasks/clone.yml | 2 ++ ansible/roles/mistral/tasks/clone.yml | 1 + ansible/roles/murano/tasks/clone.yml | 1 + ansible/roles/neutron/tasks/clone.yml | 1 + ansible/roles/nova-cell/tasks/clone.yml | 1 + ansible/roles/nova/tasks/clone.yml | 1 + ansible/roles/placement/tasks/clone.yml | 1 + ansible/roles/qinling/tasks/clone.yml | 1 + ansible/roles/sahara/tasks/clone.yml | 1 + ansible/roles/senlin/tasks/clone.yml | 1 + ansible/roles/solum/tasks/clone.yml | 1 + ansible/roles/tacker/tasks/clone.yml | 1 + ansible/roles/trove/tasks/clone.yml | 1 + ansible/roles/vitrage/tasks/clone.yml | 1 + ansible/roles/watcher/tasks/clone.yml | 1 + ansible/roles/zun/tasks/clone.yml | 1 + 34 files changed, 39 insertions(+) diff --git a/ansible/roles/aodh/tasks/clone.yml b/ansible/roles/aodh/tasks/clone.yml index 498c4a0bbb..d7ab9a0204 100644 --- a/ansible/roles/aodh/tasks/clone.yml +++ b/ansible/roles/aodh/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning aodh source repository for development + become: true git: repo: "{{ aodh_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/barbican/tasks/clone.yml b/ansible/roles/barbican/tasks/clone.yml index 9b76362fe0..27dd0c4ce6 100644 --- a/ansible/roles/barbican/tasks/clone.yml +++ b/ansible/roles/barbican/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning barbican source repository for development + become: true git: repo: "{{ barbican_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/blazar/tasks/clone.yml b/ansible/roles/blazar/tasks/clone.yml index 43427861d7..af7ffb3f58 100644 --- a/ansible/roles/blazar/tasks/clone.yml +++ b/ansible/roles/blazar/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning blazar source repository for development + become: true git: repo: "{{ blazar_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/ceilometer/tasks/clone.yml b/ansible/roles/ceilometer/tasks/clone.yml index a811fe49ad..f7a6842f31 100644 --- a/ansible/roles/ceilometer/tasks/clone.yml +++ b/ansible/roles/ceilometer/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning ceilometer source repository for development + become: true git: repo: "{{ ceilometer_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/ceilometer" diff --git a/ansible/roles/cinder/tasks/clone.yml b/ansible/roles/cinder/tasks/clone.yml index 5ac31ac289..50d12a5d30 100644 --- a/ansible/roles/cinder/tasks/clone.yml +++ b/ansible/roles/cinder/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning cinder source repository for development + become: true git: repo: "{{ cinder_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/cloudkitty/tasks/clone.yml b/ansible/roles/cloudkitty/tasks/clone.yml index 775b933782..217a7fa4d1 100644 --- a/ansible/roles/cloudkitty/tasks/clone.yml +++ b/ansible/roles/cloudkitty/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning cloudkitty source repository for development + become: true git: repo: "{{ cloudkitty_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/congress/tasks/clone.yml b/ansible/roles/congress/tasks/clone.yml index 1cee822709..ef914c29e2 100644 --- a/ansible/roles/congress/tasks/clone.yml +++ b/ansible/roles/congress/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning congress source repository for development + become: true git: repo: "{{ congress_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/cyborg/tasks/clone.yml b/ansible/roles/cyborg/tasks/clone.yml index 0493d85c65..01704b56a3 100644 --- a/ansible/roles/cyborg/tasks/clone.yml +++ b/ansible/roles/cyborg/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning cyborg source repository for development + become: true git: repo: "{{ cyborg_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/designate/tasks/clone.yml b/ansible/roles/designate/tasks/clone.yml index 2eab8626b3..67b28b18b1 100644 --- a/ansible/roles/designate/tasks/clone.yml +++ b/ansible/roles/designate/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning designate source repository for development + become: true git: repo: "{{ designate_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/freezer/tasks/clone.yml b/ansible/roles/freezer/tasks/clone.yml index 5e5c4b1f4e..faa337569b 100644 --- a/ansible/roles/freezer/tasks/clone.yml +++ b/ansible/roles/freezer/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning freezer source repository for development + become: true git: repo: "{{ freezer_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" @@ -7,6 +8,7 @@ version: "{{ freezer_source_version }}" - name: Cloning freezer-api source repository for development + become: true git: repo: "{{ freezer_api_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/freezer-api" diff --git a/ansible/roles/glance/tasks/clone.yml b/ansible/roles/glance/tasks/clone.yml index 5dfd3490f7..da9072fbee 100644 --- a/ansible/roles/glance/tasks/clone.yml +++ b/ansible/roles/glance/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning source repositories for development + become: true git: repo: "{{ glance_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/heat/tasks/clone.yml b/ansible/roles/heat/tasks/clone.yml index 0171cb9fd7..5fc5f8c02e 100644 --- a/ansible/roles/heat/tasks/clone.yml +++ b/ansible/roles/heat/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning source repositories for development + become: true git: repo: "{{ heat_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/horizon/tasks/clone.yml b/ansible/roles/horizon/tasks/clone.yml index 8b42d92d23..6e03a95296 100644 --- a/ansible/roles/horizon/tasks/clone.yml +++ b/ansible/roles/horizon/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning Horizon source repositories for development + become: true git: repo: "{{ horizon_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" @@ -7,6 +8,7 @@ version: "{{ horizon_source_version }}" - name: Cloning murano-dashboard source repositories for development + become: true git: repo: "{{ murano_dashboard_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/murano-dashboard" diff --git a/ansible/roles/ironic/tasks/clone.yml b/ansible/roles/ironic/tasks/clone.yml index db7f2a83f9..0dc10862f1 100644 --- a/ansible/roles/ironic/tasks/clone.yml +++ b/ansible/roles/ironic/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning ironic source repository for development + become: true git: repo: "{{ ironic_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" @@ -7,6 +8,7 @@ version: "{{ ironic_source_version }}" - name: Cloning ironic-inspector source repository for development + become: true git: repo: "{{ ironic_inspector_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/ironic-inspector" diff --git a/ansible/roles/keystone/tasks/clone.yml b/ansible/roles/keystone/tasks/clone.yml index a56604d536..fd1d368349 100644 --- a/ansible/roles/keystone/tasks/clone.yml +++ b/ansible/roles/keystone/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning keystone source repository for development + become: true git: repo: "{{ keystone_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/kuryr/tasks/clone.yml b/ansible/roles/kuryr/tasks/clone.yml index a4ea56297e..b8e013bab4 100644 --- a/ansible/roles/kuryr/tasks/clone.yml +++ b/ansible/roles/kuryr/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning kuryr source repository for development + become: true git: repo: "{{ kuryr_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" @@ -7,6 +8,7 @@ version: "{{ kuryr_source_version }}" - name: Cloning kuryr-libnetwork source repository for development + become: true git: repo: "{{ kuryr_libnetwork_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ libnetwork_project_name }}" diff --git a/ansible/roles/magnum/tasks/clone.yml b/ansible/roles/magnum/tasks/clone.yml index d4c28aa0a5..fac82c0c04 100644 --- a/ansible/roles/magnum/tasks/clone.yml +++ b/ansible/roles/magnum/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning magnum source repository for development + become: true git: repo: "{{ magnum_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/manila/tasks/clone.yml b/ansible/roles/manila/tasks/clone.yml index 2a0f303d4b..8c4e3707c8 100644 --- a/ansible/roles/manila/tasks/clone.yml +++ b/ansible/roles/manila/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning manila source repository for development + become: true git: repo: "{{ manila_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/masakari/tasks/clone.yml b/ansible/roles/masakari/tasks/clone.yml index 8d0fe912b8..383de1920a 100644 --- a/ansible/roles/masakari/tasks/clone.yml +++ b/ansible/roles/masakari/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning masakari source repository for development + become: true git: repo: "{{ masakari_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" @@ -7,6 +8,7 @@ version: "{{ masakari_source_version }}" - name: Cloning masakarimonitors source repository for development + become: true git: repo: "{{ masakarimonitors_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/masakarimonitors" diff --git a/ansible/roles/mistral/tasks/clone.yml b/ansible/roles/mistral/tasks/clone.yml index 341299de2a..d6ab1b0342 100644 --- a/ansible/roles/mistral/tasks/clone.yml +++ b/ansible/roles/mistral/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning mistral source repository for development + become: true git: repo: "{{ mistral_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/murano/tasks/clone.yml b/ansible/roles/murano/tasks/clone.yml index d412d6c46e..d284a1b13a 100644 --- a/ansible/roles/murano/tasks/clone.yml +++ b/ansible/roles/murano/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning source repositories for development + become: true git: repo: "{{ murano_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/neutron/tasks/clone.yml b/ansible/roles/neutron/tasks/clone.yml index 6d72843691..dd19483706 100644 --- a/ansible/roles/neutron/tasks/clone.yml +++ b/ansible/roles/neutron/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning neutron source repository for development + become: true git: repo: "{{ neutron_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/nova-cell/tasks/clone.yml b/ansible/roles/nova-cell/tasks/clone.yml index e68f7454af..e1232926c0 100644 --- a/ansible/roles/nova-cell/tasks/clone.yml +++ b/ansible/roles/nova-cell/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning nova source repository for development + become: true git: repo: "{{ nova_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/nova/tasks/clone.yml b/ansible/roles/nova/tasks/clone.yml index e68f7454af..e1232926c0 100644 --- a/ansible/roles/nova/tasks/clone.yml +++ b/ansible/roles/nova/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning nova source repository for development + become: true git: repo: "{{ nova_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/placement/tasks/clone.yml b/ansible/roles/placement/tasks/clone.yml index cfe3fe3436..e0a90a6ca4 100644 --- a/ansible/roles/placement/tasks/clone.yml +++ b/ansible/roles/placement/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning placement source repository for development + become: true git: repo: "{{ placement_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/qinling/tasks/clone.yml b/ansible/roles/qinling/tasks/clone.yml index dc608348b5..b003d4855f 100644 --- a/ansible/roles/qinling/tasks/clone.yml +++ b/ansible/roles/qinling/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning qinling source repository for development + become: true git: repo: "{{ qinling_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/sahara/tasks/clone.yml b/ansible/roles/sahara/tasks/clone.yml index ae22e136d5..6385f6c236 100644 --- a/ansible/roles/sahara/tasks/clone.yml +++ b/ansible/roles/sahara/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning sahara source repository for development + become: true git: repo: "{{ sahara_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/senlin/tasks/clone.yml b/ansible/roles/senlin/tasks/clone.yml index 1ab389a8d0..95709ce358 100644 --- a/ansible/roles/senlin/tasks/clone.yml +++ b/ansible/roles/senlin/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning senlin source repository for development + become: true git: repo: "{{ senlin_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/solum/tasks/clone.yml b/ansible/roles/solum/tasks/clone.yml index 8a434af9e0..58c9835d55 100644 --- a/ansible/roles/solum/tasks/clone.yml +++ b/ansible/roles/solum/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning solum source repository for development + become: true git: repo: "{{ solum_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/tacker/tasks/clone.yml b/ansible/roles/tacker/tasks/clone.yml index e36cd776d9..5b427d9a56 100644 --- a/ansible/roles/tacker/tasks/clone.yml +++ b/ansible/roles/tacker/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning source repositories for development + become: true git: repo: "{{ tacker_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/trove/tasks/clone.yml b/ansible/roles/trove/tasks/clone.yml index c025219158..7a3b2aecbb 100644 --- a/ansible/roles/trove/tasks/clone.yml +++ b/ansible/roles/trove/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning trove source repository for development + become: true git: repo: "{{ trove_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/vitrage/tasks/clone.yml b/ansible/roles/vitrage/tasks/clone.yml index 3e42798309..439f99f3c3 100644 --- a/ansible/roles/vitrage/tasks/clone.yml +++ b/ansible/roles/vitrage/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning vitrage source repository for development + become: true git: repo: "{{ vitrage_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/watcher/tasks/clone.yml b/ansible/roles/watcher/tasks/clone.yml index 53bb788eea..b9ac86a72a 100644 --- a/ansible/roles/watcher/tasks/clone.yml +++ b/ansible/roles/watcher/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning watcher source repository for development + become: true git: repo: "{{ watcher_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}" diff --git a/ansible/roles/zun/tasks/clone.yml b/ansible/roles/zun/tasks/clone.yml index 3f71539a2d..14effb2fa8 100644 --- a/ansible/roles/zun/tasks/clone.yml +++ b/ansible/roles/zun/tasks/clone.yml @@ -1,5 +1,6 @@ --- - name: Cloning zun source repository for development + become: true git: repo: "{{ zun_git_repository }}" dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}"