Browse Source

Deprecate api_extensions of compute service

The patch removes setting compute_feature_enabled.api_extensions
from tempest.conf as the extensions have been deprecated since
Tempest 14.0.

Story: 2005794
Task: 33521

Change-Id: I118c4ac1eac43db6b99605e830467b386be7c0b3
tags/2.2.1^0
Martin Kopec 3 months ago
parent
commit
aa204351a0

+ 0
- 8
config_tempest/services/compute.py View File

@@ -22,11 +22,6 @@ from config_tempest.services.base import VersionedService
22 22
 
23 23
 
24 24
 class ComputeService(VersionedService):
25
-    def set_extensions(self):
26
-        body = self.do_get(self.service_url + '/extensions')
27
-        body = json.loads(body)
28
-        self.extensions = list(map(lambda x: x['alias'], body['extensions']))
29
-
30 25
     def set_versions(self):
31 26
         url, top_level = self.no_port_cut_url()
32 27
         body = self.do_get(url, top_level=top_level)
@@ -47,9 +42,6 @@ class ComputeService(VersionedService):
47 42
         conf.set('compute', 'min_microversion', m_versions['min_microversion'])
48 43
         conf.set('compute', 'max_microversion', m_versions['max_microversion'])
49 44
 
50
-    def get_service_extension_key(self):
51
-        return 'api_extensions'
52
-
53 45
     def _get_number_of_hosts(self):
54 46
         # Right now the client returned is hosts, in the future
55 47
         # change it to a dict, and get the client as requested

+ 1
- 1
config_tempest/tests/services/test_compute.py View File

@@ -30,7 +30,7 @@ class TestComputeService(BaseServiceTest):
30 30
                                       disable_ssl_validation=False)
31 31
 
32 32
     def test_set_get_extensions(self):
33
-        exp_resp = ['NMN', 'OS-DCF']
33
+        exp_resp = []
34 34
         self._set_get_extensions(self.Service, exp_resp, self.FAKE_EXTENSIONS)
35 35
 
36 36
     def test_set_get_versions(self):

+ 7
- 7
doc/source/user/profile.rst View File

@@ -80,19 +80,19 @@ Generating a sample profile.yaml file
80 80
     verbose: false
81 81
     append: {}
82 82
       #identity.username: username
83
-      #compute-feature-enabled.api_extensions:
83
+      #network-feature-enabled.api_extensions:
84 84
       #  - dvr
85 85
       #  - extension
86 86
     overrides: {}
87 87
       #identity.username: username
88 88
       #identity.password:
89 89
       #  - my_password
90
-      #compute-feature-enabled.api_extensions:
90
+      #network-feature-enabled.api_extensions:
91 91
       #  - dvr
92 92
       #  - extension
93 93
     remove: {}
94 94
       #identity.username: username
95
-      #compute-feature-enabled.api_extensions:
95
+      #network-feature-enabled.api_extensions:
96 96
       #  - dvr
97 97
       #  - extension
98 98
 
@@ -117,11 +117,11 @@ what suits you better, either strings or lists:
117 117
       identity.username: my_override
118 118
       identity.password: my_password
119 119
       network-feature-enabled.api_extensions: all
120
-      compute-feature-enabled.api_extensions: dvr,mine
120
+      volume-feature-enabled.api_extensions: dvr,mine
121 121
     remove:
122 122
       auth.identity: username
123 123
       network-feature-enabled.api_extensions: ''
124
-      compute-feature-enabled.api_extensions: dvr,mine
124
+      volume-feature-enabled.api_extensions: dvr,mine
125 125
 
126 126
 
127 127
 .. code-block:: yaml
@@ -136,14 +136,14 @@ what suits you better, either strings or lists:
136 136
         - my_password
137 137
       network-feature-enabled.api_extensions:
138 138
         - all
139
-      compute-feature-enabled.api_extensions:
139
+      volume-feature-enabled.api_extensions:
140 140
         - dvr
141 141
         - mine
142 142
     remove:
143 143
       auth.identity: username
144 144
       network-feature-enabled.api_extensions:
145 145
         - ''
146
-      compute-feature-enabled.api_extensions:
146
+      volume-feature-enabled.api_extensions:
147 147
         - dvr
148 148
         - mine
149 149
 

+ 6
- 6
doc/source/user/usage.rst View File

@@ -128,12 +128,12 @@ if they were discovered or not.
128 128
 
129 129
 In the following case **all** api_extensions will be removed and
130 130
 ``tempest.conf`` will **not contain** the api_extensions key under
131
-compute-feature-enabled section.
131
+volume-feature-enabled section.
132 132
 
133 133
 .. code-block:: shell-session
134 134
 
135 135
     $ discover-tempest-config \
136
-        --remove compute-feature-enabled.api_extensions
136
+        --remove volume-feature-enabled.api_extensions
137 137
 
138 138
 In the following case **only** NMN api extension will be removed from the
139 139
 api_extensions list.
@@ -141,7 +141,7 @@ api_extensions list.
141 141
 .. code-block:: shell-session
142 142
 
143 143
     $ discover-tempest-config \
144
-        --remove compute-feature-enabled.api_extensions=NMN
144
+        --remove volume-feature-enabled.api_extensions=NMN
145 145
 
146 146
 In the following case only NMN **and** OS-EXT-IPS api extensions will be
147 147
 removed.
@@ -149,7 +149,7 @@ removed.
149 149
 .. code-block:: shell-session
150 150
 
151 151
     $ discover-tempest-config \
152
-        --remove compute-feature-enabled.api_extensions=NMN,OS-EXT-IPS
152
+        --remove volume-feature-enabled.api_extensions=NMN,OS-EXT-IPS
153 153
 
154 154
 .. note::
155 155
 
@@ -171,13 +171,13 @@ api_extensions, you can make ``python-tempestconf`` append any extensions
171 171
 by using ``--append`` argument.
172 172
 
173 173
 The following will make ``python-tempestconf`` append my_ext extension to
174
-compute-feature-enabled.api_extensions and tag and tag-ext extensions to
174
+volume-feature-enabled.api_extensions and tag and tag-ext extensions to
175 175
 network-feature-enabled.api_extensions.
176 176
 
177 177
 .. code-block:: shell-session
178 178
 
179 179
     $ discover-tempest-config \
180
-        --append compute-feature-enabled.api_extensions=my_ext \
180
+        --append volume-feature-enabled.api_extensions=my_ext \
181 181
         --append network-feature-enabled.api_extensions=tag,tag-ext
182 182
 
183 183
 .. note::

+ 6
- 0
releasenotes/notes/deprecate-compute-feature-enabled-api_extensions-df602e3835a47816.yaml View File

@@ -0,0 +1,6 @@
1
+---
2
+deprecations:
3
+  - |
4
+    The *api_extensions* config option in the *compute-feature-enabled* group has
5
+    been deprecated since Tempest 14.0. Therefore the option will be no longer
6
+    set by python-tempestconf.

Loading…
Cancel
Save