summaryrefslogtreecommitdiffstats
path: root/build/patches/tacker-client-fix-symmetrical.patch
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2017-09-25 13:22:09 -0400
committerFeng Pan <fpan@redhat.com>2017-09-26 02:02:29 +0000
commit6a2bb6d1e625e6f58ab8f39c9db1c546a41c921d (patch)
tree258f0709133f4532504b45a4cf21b1509d86817a /build/patches/tacker-client-fix-symmetrical.patch
parent96e8ffec3e9534f4cc131303334cb2d93179feed (diff)
Applies Tacker upstream patches and fixes fernet dir perms
We need a couple patches to Tacker upstream that we will not get now that our images are frozen in RDO. We should remove them on upgrade to Pike. Also this patch fixes the permissions on the fernet keys dir so that the Tacker group can write. Change-Id: I6468356f1d16d3b8ab58d46f653431e29960e190 Signed-off-by: Tim Rozet <trozet@redhat.com> (cherry picked from commit 91a5fa414d46b5b2215bf823166babd034e92503)
Diffstat (limited to 'build/patches/tacker-client-fix-symmetrical.patch')
-rw-r--r--build/patches/tacker-client-fix-symmetrical.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/build/patches/tacker-client-fix-symmetrical.patch b/build/patches/tacker-client-fix-symmetrical.patch
new file mode 100644
index 00000000..eab01a62
--- /dev/null
+++ b/build/patches/tacker-client-fix-symmetrical.patch
@@ -0,0 +1,31 @@
+From 9630f711a88a69480c44d6ac21244d9a8b0d92c7 Mon Sep 17 00:00:00 2001
+From: Tim Rozet <trozet@redhat.com>
+Date: Fri, 18 Aug 2017 16:22:23 -0400
+Subject: [PATCH] Fixes passing boolean as string for symmetrical
+
+Bug where 'True'/'False' strings were being passed in REST to Tacker
+service which would end up throwing an exception because the DB type for
+symmetrical is boolean/small int. This converts it to boolean in the
+client.
+
+Closes-Bug: 1711550
+
+Change-Id: Ide2aeab73b1dd88beb6e491e6b07cdee9fb7e48a
+Signed-off-by: Tim Rozet <trozet@redhat.com>
+---
+
+diff --git a/tackerclient/tacker/v1_0/nfvo/vnffg.py b/tackerclient/tacker/v1_0/nfvo/vnffg.py
+index 729cd19..92b98ed 100644
+--- a/tackerclient/tacker/v1_0/nfvo/vnffg.py
++++ b/tackerclient/tacker/v1_0/nfvo/vnffg.py
+@@ -97,7 +97,9 @@
+ help=_('List of logical VNFD name to VNF instance name mapping. '
+ 'Example: VNF1:my_vnf1,VNF2:my_vnf2'))
+ parser.add_argument(
+- '--symmetrical', metavar='{True,False}',
++ '--symmetrical',
++ action='store_true',
++ default=False,
+ help=_('Should a reverse path be created for the NFP'))
+ parser.add_argument(
+ '--param-file',