Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.6](backport #34964) Update allow_older_versions when running under Elastic Agent #35574

Merged
merged 4 commits into from
May 25, 2023

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented May 25, 2023

This is an automatic backport of pull request #34964 done by Mergify.
Cherry-pick of 1a9d627 has failed:

On branch mergify/bp/8.6/pr-34964
Your branch is up to date with 'origin/8.6'.

You are currently cherry-picking commit 1a9d627794.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   CHANGELOG.next.asciidoc
	modified:   libbeat/cmd/instance/beat.go

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   libbeat/cmd/instance/beat_test.go

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/github/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

When Beats are running under Elastic Agent their initial output
configuration is empty. Only a few moments later the output
configuration arrives as an update via the control protocol.

On startup Beats register a global Elasticsearch connection
callback to validate the Elasticsearch version. Unfortunately,
this callback didn't account for the later `allow_older_versions`
update via the control protocol and the updated value was not used.

This fixes that broken behaviour and makes an update to the entire in-memory
output configuration on each control protocol update.

(cherry picked from commit 1a9d627)

# Conflicts:
#	libbeat/cmd/instance/beat_test.go
@mergify mergify bot requested a review from a team as a code owner May 25, 2023 12:44
@mergify mergify bot requested review from pierrehilbert and faec and removed request for a team May 25, 2023 12:44
@mergify mergify bot added backport conflicts There is a conflict in the backported pull request labels May 25, 2023
@mergify mergify bot assigned rdner May 25, 2023
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label May 25, 2023
@botelastic
Copy link

botelastic bot commented May 25, 2023

This pull request doesn't have a Team:<team> label.

CHANGELOG.next.asciidoc Outdated Show resolved Hide resolved
@elasticmachine
Copy link
Collaborator

elasticmachine commented May 25, 2023

💔 Tests Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-05-25T14:55:07.425+0000

  • Duration: 87 min 45 sec

Test stats 🧪

Test Results
Failed 3
Passed 224
Skipped 33
Total 260

Test errors 3

Expand to view the tests failures

test_datastore – metricbeat.module.vsphere.test_vsphere.TestVsphere_0
    Expand to view the error details

     failed on setup with "compose.service.BuildError: (<Service: vsphere>, "The command '/bin/sh -c go get -u github.com/vmware/govmomi/vcsim' returned a non-zero code: 2")" 
    

    Expand to view the stacktrace

     self = <compose.service._ClientBuilder object at 0x7f3b811d9910>
    service = <Service: vsphere>
    path = '/go/src/github.com/elastic/beats/metricbeat/module/vsphere/_meta'
    tag = 'docker.elastic.co/integrations-ci/beats-vsphere:1.14-1', quiet = False
    fileobj = None, nocache = False, rm = True, timeout = None
    custom_context = False, encoding = None, pull = False, forcerm = False
    dockerfile = None, container_limits = {'memory': None}, decode = False
    buildargs = {'VSPHERE_GOLANG_VERSION': '1.14'}, gzip = False, shmsize = None
    labels = None, cache_from = None, target = None, network_mode = None
    squash = None, extra_hosts = None, platform = None, isolation = None
    use_config_proxy = True
    output_stream = <_io.TextIOWrapper name="<_io.FileIO name=6 mode='rb+' closefd=True>" mode='r+' encoding='utf-8'>
    
        def build(self, service, path, tag=None, quiet=False, fileobj=None,
                  nocache=False, rm=False, timeout=None,
                  custom_context=False, encoding=None, pull=False,
                  forcerm=False, dockerfile=None, container_limits=None,
                  decode=False, buildargs=None, gzip=False, shmsize=None,
                  labels=None, cache_from=None, target=None, network_mode=None,
                  squash=None, extra_hosts=None, platform=None, isolation=None,
                  use_config_proxy=True, output_stream=sys.stdout):
            build_output = self.client.build(
                path=path,
                tag=tag,
                nocache=nocache,
                rm=rm,
                pull=pull,
                forcerm=forcerm,
                dockerfile=dockerfile,
                labels=labels,
                cache_from=cache_from,
                buildargs=buildargs,
                network_mode=network_mode,
                target=target,
                shmsize=shmsize,
                extra_hosts=extra_hosts,
                container_limits=container_limits,
                gzip=gzip,
                isolation=isolation,
                platform=platform)
        
            try:
    >           all_events = list(stream_output(build_output, output_stream))
    
    ../build/ve/docker/lib/python3.9/site-packages/compose/service.py:1823: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    output = <generator object APIClient._stream_helper at 0x7f3b81383350>
    stream = <_io.TextIOWrapper name="<_io.FileIO name=6 mode='rb+' closefd=True>" mode='r+' encoding='utf-8'>
    
        def stream_output(output, stream):
            is_terminal = hasattr(stream, 'isatty') and stream.isatty()
            stream = stream
            lines = {}
            diff = 0
        
            for event in utils.json_stream(output):
                yield event
                is_progress_event = 'progress' in event or 'progressDetail' in event
        
                if not is_progress_event:
    >               print_output_event(event, stream, is_terminal)
    
    ../build/ve/docker/lib/python3.9/site-packages/compose/progress_stream.py:27: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    event = {'error': "The command '/bin/sh -c go get -u github.com/vmware/govmomi/vcsim' returned a non-zero code: 2", 'errorDeta...code': 2, 'message': "The command '/bin/sh -c go get -u github.com/vmware/govmomi/vcsim' returned a non-zero code: 2"}}
    stream = <_io.TextIOWrapper name="<_io.FileIO name=6 mode='rb+' closefd=True>" mode='r+' encoding='utf-8'>
    is_terminal = False
    
        def print_output_event(event, stream, is_terminal):
            if 'errorDetail' in event:
    >           raise StreamOutputError(event['errorDetail']['message'])
    E           compose.progress_stream.StreamOutputError: The command '/bin/sh -c go get -u github.com/vmware/govmomi/vcsim' returned a non-zero code: 2
    
    ../build/ve/docker/lib/python3.9/site-packages/compose/progress_stream.py:59: StreamOutputError
    
    During handling of the above exception, another exception occurred:
    
    cls = <class 'test_vsphere.TestVsphere_0'>
    
        @classmethod
        def setUpClass(cls):  # pylint: disable=invalid-name
            """
            initializes the Test class
            """
            if not hasattr(cls, 'beat_name'):
                cls.beat_name = "metricbeat"
        
            if not hasattr(cls, 'beat_path'):
                cls.beat_path = os.path.abspath(
                    os.path.join(os.path.dirname(__file__), "../../"))
        
    >       super().setUpClass()
    
    tests/system/metricbeat.py:42: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    ../libbeat/tests/system/beat/beat.py:204: in setUpClass
        cls.compose_up_with_retries()
    ../libbeat/tests/system/beat/beat.py:222: in compose_up_with_retries
        raise ex
    ../libbeat/tests/system/beat/beat.py:218: in compose_up_with_retries
        cls.compose_up()
    ../libbeat/tests/system/beat/compose.py:66: in compose_up
        project.up(
    ../build/ve/docker/lib/python3.9/site-packages/compose/project.py:664: in up
        svc.ensure_image_exists(do_build=do_build, silent=silent, cli=cli)
    ../build/ve/docker/lib/python3.9/site-packages/compose/service.py:364: in ensure_image_exists
        self.build(cli=cli)
    ../build/ve/docker/lib/python3.9/site-packages/compose/service.py:1111: in build
        return builder.build(
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    self = <compose.service._ClientBuilder object at 0x7f3b811d9910>
    service = <Service: vsphere>
    path = '/go/src/github.com/elastic/beats/metricbeat/module/vsphere/_meta'
    tag = 'docker.elastic.co/integrations-ci/beats-vsphere:1.14-1', quiet = False
    fileobj = None, nocache = False, rm = True, timeout = None
    custom_context = False, encoding = None, pull = False, forcerm = False
    dockerfile = None, container_limits = {'memory': None}, decode = False
    buildargs = {'VSPHERE_GOLANG_VERSION': '1.14'}, gzip = False, shmsize = None
    labels = None, cache_from = None, target = None, network_mode = None
    squash = None, extra_hosts = None, platform = None, isolation = None
    use_config_proxy = True
    output_stream = <_io.TextIOWrapper name="<_io.FileIO name=6 mode='rb+' closefd=True>" mode='r+' encoding='utf-8'>
    
        def build(self, service, path, tag=None, quiet=False, fileobj=None,
                  nocache=False, rm=False, timeout=None,
                  custom_context=False, encoding=None, pull=False,
                  forcerm=False, dockerfile=None, container_limits=None,
                  decode=False, buildargs=None, gzip=False, shmsize=None,
                  labels=None, cache_from=None, target=None, network_mode=None,
                  squash=None, extra_hosts=None, platform=None, isolation=None,
                  use_config_proxy=True, output_stream=sys.stdout):
            build_output = self.client.build(
                path=path,
                tag=tag,
                nocache=nocache,
                rm=rm,
                pull=pull,
                forcerm=forcerm,
                dockerfile=dockerfile,
                labels=labels,
                cache_from=cache_from,
                buildargs=buildargs,
                network_mode=network_mode,
                target=target,
                shmsize=shmsize,
                extra_hosts=extra_hosts,
                container_limits=container_limits,
                gzip=gzip,
                isolation=isolation,
                platform=platform)
        
            try:
                all_events = list(stream_output(build_output, output_stream))
            except StreamOutputError as e:
    >           raise BuildError(service, str(e))
    E           compose.service.BuildError: (<Service: vsphere>, "The command '/bin/sh -c go get -u github.com/vmware/govmomi/vcsim' returned a non-zero code: 2")
    
    ../build/ve/docker/lib/python3.9/site-packages/compose/service.py:1825: BuildError 
    

test_host – metricbeat.module.vsphere.test_vsphere.TestVsphere_0
    Expand to view the error details

     failed on setup with "compose.service.BuildError: (<Service: vsphere>, "The command '/bin/sh -c go get -u github.com/vmware/govmomi/vcsim' returned a non-zero code: 2")" 
    

    Expand to view the stacktrace

     self = <compose.service._ClientBuilder object at 0x7f3b811d9910>
    service = <Service: vsphere>
    path = '/go/src/github.com/elastic/beats/metricbeat/module/vsphere/_meta'
    tag = 'docker.elastic.co/integrations-ci/beats-vsphere:1.14-1', quiet = False
    fileobj = None, nocache = False, rm = True, timeout = None
    custom_context = False, encoding = None, pull = False, forcerm = False
    dockerfile = None, container_limits = {'memory': None}, decode = False
    buildargs = {'VSPHERE_GOLANG_VERSION': '1.14'}, gzip = False, shmsize = None
    labels = None, cache_from = None, target = None, network_mode = None
    squash = None, extra_hosts = None, platform = None, isolation = None
    use_config_proxy = True
    output_stream = <_io.TextIOWrapper name="<_io.FileIO name=6 mode='rb+' closefd=True>" mode='r+' encoding='utf-8'>
    
        def build(self, service, path, tag=None, quiet=False, fileobj=None,
                  nocache=False, rm=False, timeout=None,
                  custom_context=False, encoding=None, pull=False,
                  forcerm=False, dockerfile=None, container_limits=None,
                  decode=False, buildargs=None, gzip=False, shmsize=None,
                  labels=None, cache_from=None, target=None, network_mode=None,
                  squash=None, extra_hosts=None, platform=None, isolation=None,
                  use_config_proxy=True, output_stream=sys.stdout):
            build_output = self.client.build(
                path=path,
                tag=tag,
                nocache=nocache,
                rm=rm,
                pull=pull,
                forcerm=forcerm,
                dockerfile=dockerfile,
                labels=labels,
                cache_from=cache_from,
                buildargs=buildargs,
                network_mode=network_mode,
                target=target,
                shmsize=shmsize,
                extra_hosts=extra_hosts,
                container_limits=container_limits,
                gzip=gzip,
                isolation=isolation,
                platform=platform)
        
            try:
    >           all_events = list(stream_output(build_output, output_stream))
    
    ../build/ve/docker/lib/python3.9/site-packages/compose/service.py:1823: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    output = <generator object APIClient._stream_helper at 0x7f3b81383350>
    stream = <_io.TextIOWrapper name="<_io.FileIO name=6 mode='rb+' closefd=True>" mode='r+' encoding='utf-8'>
    
        def stream_output(output, stream):
            is_terminal = hasattr(stream, 'isatty') and stream.isatty()
            stream = stream
            lines = {}
            diff = 0
        
            for event in utils.json_stream(output):
                yield event
                is_progress_event = 'progress' in event or 'progressDetail' in event
        
                if not is_progress_event:
    >               print_output_event(event, stream, is_terminal)
    
    ../build/ve/docker/lib/python3.9/site-packages/compose/progress_stream.py:27: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    event = {'error': "The command '/bin/sh -c go get -u github.com/vmware/govmomi/vcsim' returned a non-zero code: 2", 'errorDeta...code': 2, 'message': "The command '/bin/sh -c go get -u github.com/vmware/govmomi/vcsim' returned a non-zero code: 2"}}
    stream = <_io.TextIOWrapper name="<_io.FileIO name=6 mode='rb+' closefd=True>" mode='r+' encoding='utf-8'>
    is_terminal = False
    
        def print_output_event(event, stream, is_terminal):
            if 'errorDetail' in event:
    >           raise StreamOutputError(event['errorDetail']['message'])
    E           compose.progress_stream.StreamOutputError: The command '/bin/sh -c go get -u github.com/vmware/govmomi/vcsim' returned a non-zero code: 2
    
    ../build/ve/docker/lib/python3.9/site-packages/compose/progress_stream.py:59: StreamOutputError
    
    During handling of the above exception, another exception occurred:
    
    cls = <class 'test_vsphere.TestVsphere_0'>
    
        @classmethod
        def setUpClass(cls):  # pylint: disable=invalid-name
            """
            initializes the Test class
            """
            if not hasattr(cls, 'beat_name'):
                cls.beat_name = "metricbeat"
        
            if not hasattr(cls, 'beat_path'):
                cls.beat_path = os.path.abspath(
                    os.path.join(os.path.dirname(__file__), "../../"))
        
    >       super().setUpClass()
    
    tests/system/metricbeat.py:42: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    ../libbeat/tests/system/beat/beat.py:204: in setUpClass
        cls.compose_up_with_retries()
    ../libbeat/tests/system/beat/beat.py:222: in compose_up_with_retries
        raise ex
    ../libbeat/tests/system/beat/beat.py:218: in compose_up_with_retries
        cls.compose_up()
    ../libbeat/tests/system/beat/compose.py:66: in compose_up
        project.up(
    ../build/ve/docker/lib/python3.9/site-packages/compose/project.py:664: in up
        svc.ensure_image_exists(do_build=do_build, silent=silent, cli=cli)
    ../build/ve/docker/lib/python3.9/site-packages/compose/service.py:364: in ensure_image_exists
        self.build(cli=cli)
    ../build/ve/docker/lib/python3.9/site-packages/compose/service.py:1111: in build
        return builder.build(
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    self = <compose.service._ClientBuilder object at 0x7f3b811d9910>
    service = <Service: vsphere>
    path = '/go/src/github.com/elastic/beats/metricbeat/module/vsphere/_meta'
    tag = 'docker.elastic.co/integrations-ci/beats-vsphere:1.14-1', quiet = False
    fileobj = None, nocache = False, rm = True, timeout = None
    custom_context = False, encoding = None, pull = False, forcerm = False
    dockerfile = None, container_limits = {'memory': None}, decode = False
    buildargs = {'VSPHERE_GOLANG_VERSION': '1.14'}, gzip = False, shmsize = None
    labels = None, cache_from = None, target = None, network_mode = None
    squash = None, extra_hosts = None, platform = None, isolation = None
    use_config_proxy = True
    output_stream = <_io.TextIOWrapper name="<_io.FileIO name=6 mode='rb+' closefd=True>" mode='r+' encoding='utf-8'>
    
        def build(self, service, path, tag=None, quiet=False, fileobj=None,
                  nocache=False, rm=False, timeout=None,
                  custom_context=False, encoding=None, pull=False,
                  forcerm=False, dockerfile=None, container_limits=None,
                  decode=False, buildargs=None, gzip=False, shmsize=None,
                  labels=None, cache_from=None, target=None, network_mode=None,
                  squash=None, extra_hosts=None, platform=None, isolation=None,
                  use_config_proxy=True, output_stream=sys.stdout):
            build_output = self.client.build(
                path=path,
                tag=tag,
                nocache=nocache,
                rm=rm,
                pull=pull,
                forcerm=forcerm,
                dockerfile=dockerfile,
                labels=labels,
                cache_from=cache_from,
                buildargs=buildargs,
                network_mode=network_mode,
                target=target,
                shmsize=shmsize,
                extra_hosts=extra_hosts,
                container_limits=container_limits,
                gzip=gzip,
                isolation=isolation,
                platform=platform)
        
            try:
                all_events = list(stream_output(build_output, output_stream))
            except StreamOutputError as e:
    >           raise BuildError(service, str(e))
    E           compose.service.BuildError: (<Service: vsphere>, "The command '/bin/sh -c go get -u github.com/vmware/govmomi/vcsim' returned a non-zero code: 2")
    
    ../build/ve/docker/lib/python3.9/site-packages/compose/service.py:1825: BuildError 
    

test_virtualmachine – metricbeat.module.vsphere.test_vsphere.TestVsphere_0
    Expand to view the error details

     failed on setup with "compose.service.BuildError: (<Service: vsphere>, "The command '/bin/sh -c go get -u github.com/vmware/govmomi/vcsim' returned a non-zero code: 2")" 
    

    Expand to view the stacktrace

     self = <compose.service._ClientBuilder object at 0x7f3b811d9910>
    service = <Service: vsphere>
    path = '/go/src/github.com/elastic/beats/metricbeat/module/vsphere/_meta'
    tag = 'docker.elastic.co/integrations-ci/beats-vsphere:1.14-1', quiet = False
    fileobj = None, nocache = False, rm = True, timeout = None
    custom_context = False, encoding = None, pull = False, forcerm = False
    dockerfile = None, container_limits = {'memory': None}, decode = False
    buildargs = {'VSPHERE_GOLANG_VERSION': '1.14'}, gzip = False, shmsize = None
    labels = None, cache_from = None, target = None, network_mode = None
    squash = None, extra_hosts = None, platform = None, isolation = None
    use_config_proxy = True
    output_stream = <_io.TextIOWrapper name="<_io.FileIO name=6 mode='rb+' closefd=True>" mode='r+' encoding='utf-8'>
    
        def build(self, service, path, tag=None, quiet=False, fileobj=None,
                  nocache=False, rm=False, timeout=None,
                  custom_context=False, encoding=None, pull=False,
                  forcerm=False, dockerfile=None, container_limits=None,
                  decode=False, buildargs=None, gzip=False, shmsize=None,
                  labels=None, cache_from=None, target=None, network_mode=None,
                  squash=None, extra_hosts=None, platform=None, isolation=None,
                  use_config_proxy=True, output_stream=sys.stdout):
            build_output = self.client.build(
                path=path,
                tag=tag,
                nocache=nocache,
                rm=rm,
                pull=pull,
                forcerm=forcerm,
                dockerfile=dockerfile,
                labels=labels,
                cache_from=cache_from,
                buildargs=buildargs,
                network_mode=network_mode,
                target=target,
                shmsize=shmsize,
                extra_hosts=extra_hosts,
                container_limits=container_limits,
                gzip=gzip,
                isolation=isolation,
                platform=platform)
        
            try:
    >           all_events = list(stream_output(build_output, output_stream))
    
    ../build/ve/docker/lib/python3.9/site-packages/compose/service.py:1823: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    output = <generator object APIClient._stream_helper at 0x7f3b81383350>
    stream = <_io.TextIOWrapper name="<_io.FileIO name=6 mode='rb+' closefd=True>" mode='r+' encoding='utf-8'>
    
        def stream_output(output, stream):
            is_terminal = hasattr(stream, 'isatty') and stream.isatty()
            stream = stream
            lines = {}
            diff = 0
        
            for event in utils.json_stream(output):
                yield event
                is_progress_event = 'progress' in event or 'progressDetail' in event
        
                if not is_progress_event:
    >               print_output_event(event, stream, is_terminal)
    
    ../build/ve/docker/lib/python3.9/site-packages/compose/progress_stream.py:27: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    event = {'error': "The command '/bin/sh -c go get -u github.com/vmware/govmomi/vcsim' returned a non-zero code: 2", 'errorDeta...code': 2, 'message': "The command '/bin/sh -c go get -u github.com/vmware/govmomi/vcsim' returned a non-zero code: 2"}}
    stream = <_io.TextIOWrapper name="<_io.FileIO name=6 mode='rb+' closefd=True>" mode='r+' encoding='utf-8'>
    is_terminal = False
    
        def print_output_event(event, stream, is_terminal):
            if 'errorDetail' in event:
    >           raise StreamOutputError(event['errorDetail']['message'])
    E           compose.progress_stream.StreamOutputError: The command '/bin/sh -c go get -u github.com/vmware/govmomi/vcsim' returned a non-zero code: 2
    
    ../build/ve/docker/lib/python3.9/site-packages/compose/progress_stream.py:59: StreamOutputError
    
    During handling of the above exception, another exception occurred:
    
    cls = <class 'test_vsphere.TestVsphere_0'>
    
        @classmethod
        def setUpClass(cls):  # pylint: disable=invalid-name
            """
            initializes the Test class
            """
            if not hasattr(cls, 'beat_name'):
                cls.beat_name = "metricbeat"
        
            if not hasattr(cls, 'beat_path'):
                cls.beat_path = os.path.abspath(
                    os.path.join(os.path.dirname(__file__), "../../"))
        
    >       super().setUpClass()
    
    tests/system/metricbeat.py:42: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    ../libbeat/tests/system/beat/beat.py:204: in setUpClass
        cls.compose_up_with_retries()
    ../libbeat/tests/system/beat/beat.py:222: in compose_up_with_retries
        raise ex
    ../libbeat/tests/system/beat/beat.py:218: in compose_up_with_retries
        cls.compose_up()
    ../libbeat/tests/system/beat/compose.py:66: in compose_up
        project.up(
    ../build/ve/docker/lib/python3.9/site-packages/compose/project.py:664: in up
        svc.ensure_image_exists(do_build=do_build, silent=silent, cli=cli)
    ../build/ve/docker/lib/python3.9/site-packages/compose/service.py:364: in ensure_image_exists
        self.build(cli=cli)
    ../build/ve/docker/lib/python3.9/site-packages/compose/service.py:1111: in build
        return builder.build(
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    self = <compose.service._ClientBuilder object at 0x7f3b811d9910>
    service = <Service: vsphere>
    path = '/go/src/github.com/elastic/beats/metricbeat/module/vsphere/_meta'
    tag = 'docker.elastic.co/integrations-ci/beats-vsphere:1.14-1', quiet = False
    fileobj = None, nocache = False, rm = True, timeout = None
    custom_context = False, encoding = None, pull = False, forcerm = False
    dockerfile = None, container_limits = {'memory': None}, decode = False
    buildargs = {'VSPHERE_GOLANG_VERSION': '1.14'}, gzip = False, shmsize = None
    labels = None, cache_from = None, target = None, network_mode = None
    squash = None, extra_hosts = None, platform = None, isolation = None
    use_config_proxy = True
    output_stream = <_io.TextIOWrapper name="<_io.FileIO name=6 mode='rb+' closefd=True>" mode='r+' encoding='utf-8'>
    
        def build(self, service, path, tag=None, quiet=False, fileobj=None,
                  nocache=False, rm=False, timeout=None,
                  custom_context=False, encoding=None, pull=False,
                  forcerm=False, dockerfile=None, container_limits=None,
                  decode=False, buildargs=None, gzip=False, shmsize=None,
                  labels=None, cache_from=None, target=None, network_mode=None,
                  squash=None, extra_hosts=None, platform=None, isolation=None,
                  use_config_proxy=True, output_stream=sys.stdout):
            build_output = self.client.build(
                path=path,
                tag=tag,
                nocache=nocache,
                rm=rm,
                pull=pull,
                forcerm=forcerm,
                dockerfile=dockerfile,
                labels=labels,
                cache_from=cache_from,
                buildargs=buildargs,
                network_mode=network_mode,
                target=target,
                shmsize=shmsize,
                extra_hosts=extra_hosts,
                container_limits=container_limits,
                gzip=gzip,
                isolation=isolation,
                platform=platform)
        
            try:
                all_events = list(stream_output(build_output, output_stream))
            except StreamOutputError as e:
    >           raise BuildError(service, str(e))
    E           compose.service.BuildError: (<Service: vsphere>, "The command '/bin/sh -c go get -u github.com/vmware/govmomi/vcsim' returned a non-zero code: 2")
    
    ../build/ve/docker/lib/python3.9/site-packages/compose/service.py:1825: BuildError 
    

Steps errors 4

Expand to view the steps failures

metricbeat-pythonIntegTest - mage pythonIntegTest
  • Took 30 min 59 sec . View more details here
  • Description: mage pythonIntegTest
metricbeat-pythonIntegTest - mage pythonIntegTest
  • Took 21 min 40 sec . View more details here
  • Description: mage pythonIntegTest
metricbeat-pythonIntegTest - mage pythonIntegTest
  • Took 22 min 44 sec . View more details here
  • Description: mage pythonIntegTest
Error signal
  • Took 0 min 0 sec . View more details here
  • Description: Error 'hudson.AbortException: script returned exit code 1'

🐛 Flaky test report

❕ There are test failures but not known flaky tests.

Expand to view the summary

Genuine test errors 3

💔 There are test failures but not known flaky tests, most likely a genuine test failure.

  • Name: test_datastore – metricbeat.module.vsphere.test_vsphere.TestVsphere_0
  • Name: test_host – metricbeat.module.vsphere.test_vsphere.TestVsphere_0
  • Name: test_virtualmachine – metricbeat.module.vsphere.test_vsphere.TestVsphere_0

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate the packages and run the E2E tests.

  • /beats-tester : Run the installation tests with beats-tester.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@cmacknz
Copy link
Member

cmacknz commented May 25, 2023

/test metricbeat-pythonIntegTest

@cmacknz cmacknz merged commit fee9b12 into 8.6 May 25, 2023
@cmacknz cmacknz deleted the mergify/bp/8.6/pr-34964 branch May 25, 2023 19:24
@elasticmachine
Copy link
Collaborator

❕ Build Aborted

Either there was a build timeout or someone aborted the build.

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Start Time: 2023-05-25T18:02:13.422+0000

  • Duration: 362 min 24 sec

Test stats 🧪

Test Results
Failed 0
Passed 24535
Skipped 1965
Total 26500

Steps errors 1

Expand to view the steps failures

x-pack/filebeat-pythonIntegTest - mage pythonIntegTest
  • Took 0 min 12 sec . View more details here
  • Description: mage pythonIntegTest

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate the packages and run the E2E tests.

  • /beats-tester : Run the installation tests with beats-tester.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport conflicts There is a conflict in the backported pull request needs_team Indicates that the issue/PR needs a Team:* label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants