Closed vijay8451 closed 5 years ago
self = <tests.foreman.api.test_repository.OstreeRepositoryTestCase testMethod=test_positive_sync_rh_atomic> @tier2 @run_in_one_thread @skip_if_not_set('fake_manifest') @upgrade def test_positive_sync_rh_atomic(self): """Sync RH Atomic Ostree Repository. :id: 38c8aeaa-5ad2-40cb-b1d2-f0ac604f9fdd :expectedresults: Synced repo should fetch the data successfully. :CaseLevel: Integration """ org = entities.Organization().create() with manifests.clone() as manifest: upload_manifest(org.id, manifest.content) repo_id = enable_rhrepo_and_fetchid( org_id=org.id, product=PRDS['rhah'], repo=REPOS['rhaht']['name'], reposet=REPOSET['rhaht'], releasever=None, > basearch=None, ) tests/foreman/api/test_repository.py:1680: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ robottelo/api/utils.py:66: in enable_rhrepo_and_fetchid r_set.enable(data=payload) ../../shiningpanda/jobs/b56fba1f/virtualenvs/d41d8cd9/lib/python3.6/site-packages/nailgun/entities.py:6171: in enable return _handle_response(response, self._server_config, synchronous) ../../shiningpanda/jobs/b56fba1f/virtualenvs/d41d8cd9/lib/python3.6/site-packages/nailgun/entities.py:118: in _handle_response response.raise_for_status() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <Response [422]> def raise_for_status(self): """Raises stored :class:`HTTPError`, if one occurred.""" http_error_msg = '' if isinstance(self.reason, bytes): # We attempt to decode utf-8 first because some servers # choose to localize their reason strings. If the string # isn't utf-8, we fall back to iso-8859-1 for all other # encodings. (See PR #3538) try: reason = self.reason.decode('utf-8') except UnicodeDecodeError: reason = self.reason.decode('iso-8859-1') else: reason = self.reason if 400 <= self.status_code < 500: http_error_msg = u'%s Client Error: %s for url: %s' % (self.status_code, reason, self.url) elif 500 <= self.status_code < 600: http_error_msg = u'%s Server Error: %s for url: %s' % (self.status_code, reason, self.url) if http_error_msg: > raise HTTPError(http_error_msg, response=self) E requests.exceptions.HTTPError: 422 Client Error: Unprocessable Entity for url: https://satellite.example.com/katello/api/v2/repository_sets/3822/enable ../../shiningpanda/jobs/b56fba1f/virtualenvs/d41d8cd9/lib/python3.6/site-packages/requests/models.py:940: HTTPError
As issue only re-producing on automation upgraded satellite setup . Hence worth to check at snap too.
Issue no more reproducing . closing the issue