From 13568d6accd3204de93c6f3dca8b8a2cee736da7 Mon Sep 17 00:00:00 2001
From: lzhu1
Date: Wed, 7 Sep 2022 20:06:01 +0000
Subject: [PATCH] Debian: Fix openstack secret get failure
Correct the required exec resource title for updating DC keystone
admin user/project IDs section.
The exec resource title was renamed from "keystone-manage bootstrap"
to "keystone bootstrap" in Debian. Update this patch accordingly.
Test Plan:
Verified: successfully get openstack secrets after DC installation
and Subcloud managed on Debian.
Story: 2010119
Task: 46218
Signed-off-by: lzhu1
Change-Id: I5dd9f06436903a01b564f44004058438a93de8b6
---
...Barbican-admin-secret-s-user-project-IDs-duri.patch | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/config/puppet-modules/openstack/puppet-keystone-17.4.0/debian/patches/0003-Update-Barbican-admin-secret-s-user-project-IDs-duri.patch b/config/puppet-modules/openstack/puppet-keystone-17.4.0/debian/patches/0003-Update-Barbican-admin-secret-s-user-project-IDs-duri.patch
index 4bdc84fb2..79783195d 100644
--- a/config/puppet-modules/openstack/puppet-keystone-17.4.0/debian/patches/0003-Update-Barbican-admin-secret-s-user-project-IDs-duri.patch
+++ b/config/puppet-modules/openstack/puppet-keystone-17.4.0/debian/patches/0003-Update-Barbican-admin-secret-s-user-project-IDs-duri.patch
@@ -1,7 +1,7 @@
-From da6335eee107386e555097522152fcbb335c608c Mon Sep 17 00:00:00 2001
+From 127b8a6d5b8845a25044f3000a8a14d032546135 Mon Sep 17 00:00:00 2001
From: Dan Voiculeasa
Date: Mon, 20 Sep 2021 17:25:11 +0300
-Subject: [PATCH 3/3] Update Barbican admin secret's user/project IDs during
+Subject: [PATCH] Update Barbican admin secret's user/project IDs during
bootstrap
Adapt 0006-update-Barbican-admin-secret-s-user-project-IDs-duri.patch
@@ -36,7 +36,7 @@ Signed-off-by: Dan Voiculeasa
1 file changed, 18 insertions(+)
diff --git a/manifests/bootstrap.pp b/manifests/bootstrap.pp
-index d8db334..6d79625 100644
+index d8db334..8a2feea 100644
--- a/manifests/bootstrap.pp
+++ b/manifests/bootstrap.pp
@@ -69,6 +69,8 @@ class keystone::bootstrap (
@@ -55,7 +55,7 @@ index d8db334..6d79625 100644
+ if $dc_admin_user_id and $dc_admin_project_id {
+ exec { 'update keystone admin assignment actor_id':
+ command => "sudo -u postgres psql -d keystone -c \"update public.assignment set actor_id='$dc_admin_user_id' from public.local_user where public.assignment.actor_id=public.local_user.user_id and public.local_user.name='admin'\"",
-+ require => Exec['keystone-manage bootstrap'],
++ require => Exec['keystone bootstrap'],
+ }
+ -> exec { 'update keystone admin assignment target_id':
+ command => "sudo -u postgres psql -d keystone -c \"update public.assignment set target_id='$dc_admin_project_id' from public.project where public.assignment.target_id=public.project.id and public.project.name='admin'\"",
@@ -72,5 +72,5 @@ index d8db334..6d79625 100644
# use the below resources to make sure the current resources are
# correct so if some value was updated we set that.
--
-2.30.0
+2.34.1