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

artifact tests failed with 'NoneType' object is not subscriptable #8527

Closed
1 task done
Annamikhlin opened this issue Sep 2, 2024 · 1 comment · Fixed by #8531
Closed
1 task done

artifact tests failed with 'NoneType' object is not subscriptable #8527

Annamikhlin opened this issue Sep 2, 2024 · 1 comment · Fixed by #8531
Assignees

Comments

@Annamikhlin
Copy link

Issue description

artifact tests failed with error:

01:39:09  ======================================================================
01:39:09  ERROR: test_scylla_service (artifacts_test.ArtifactsTest)
01:39:09  ----------------------------------------------------------------------
01:39:09  Traceback (most recent call last):
01:39:09    File "/tmp/workspace/scylla-master/artifacts/artifacts-centos9-test/scylla-cluster-tests/artifacts_test.py", line 50, in setUp
01:39:09      super().setUp()
01:39:09    File "/tmp/workspace/scylla-master/artifacts/artifacts-centos9-test/scylla-cluster-tests/sdcm/tester.py", line 185, in wrapper
01:39:09      return method(*args, **kwargs)
01:39:09    File "/tmp/workspace/scylla-master/artifacts/artifacts-centos9-test/scylla-cluster-tests/sdcm/utils/decorators.py", line 121, in inner
01:39:09      res = func(*args, **kwargs)
01:39:09    File "/tmp/workspace/scylla-master/artifacts/artifacts-centos9-test/scylla-cluster-tests/sdcm/tester.py", line 958, in setUp
01:39:09      self.init_resources()
01:39:09    File "/tmp/workspace/scylla-master/artifacts/artifacts-centos9-test/scylla-cluster-tests/sdcm/tester.py", line 1913, in init_resources
01:39:09      self.get_cluster_gce(loader_info=loader_info, db_info=db_info,
01:39:09    File "/tmp/workspace/scylla-master/artifacts/artifacts-centos9-test/scylla-cluster-tests/sdcm/tester.py", line 1256, in get_cluster_gce
01:39:09      self.db_cluster = ScyllaGCECluster(gce_image=self.params.get('gce_image_db').strip(),
01:39:09    File "/tmp/workspace/scylla-master/artifacts/artifacts-centos9-test/scylla-cluster-tests/sdcm/cluster_gce.py", line 548, in __init__
01:39:09      super().__init__(
01:39:09    File "/tmp/workspace/scylla-master/artifacts/artifacts-centos9-test/scylla-cluster-tests/sdcm/cluster.py", line 3968, in __init__
01:39:09      super().__init__(*args, **kwargs)
01:39:09    File "/tmp/workspace/scylla-master/artifacts/artifacts-centos9-test/scylla-cluster-tests/sdcm/cluster_gce.py", line 273, in __init__
01:39:09      super().__init__(cluster_uuid=cluster_uuid,
01:39:09    File "/tmp/workspace/scylla-master/artifacts/artifacts-centos9-test/scylla-cluster-tests/sdcm/cluster.py", line 3231, in __init__
01:39:09      self.add_nodes(nodes_per_az[az_index], dc_idx=dc_idx, rack=rack,
01:39:09    File "/tmp/workspace/scylla-master/artifacts/artifacts-centos9-test/scylla-cluster-tests/sdcm/cluster_gce.py", line 518, in add_nodes
01:39:09      instances = self._create_instances(
01:39:09    File "/tmp/workspace/scylla-master/artifacts/artifacts-centos9-test/scylla-cluster-tests/sdcm/cluster_gce.py", line 446, in _create_instances
01:39:09      instances.append(self._create_instance(node_index, dc_idx, spot,
01:39:09    File "/tmp/workspace/scylla-master/artifacts/artifacts-centos9-test/scylla-cluster-tests/sdcm/cluster_gce.py", line 397, in _create_instance
01:39:09      "user-data": self.prepare_user_data(enable_auto_bootstrap),
01:39:09    File "/tmp/workspace/scylla-master/artifacts/artifacts-centos9-test/scylla-cluster-tests/sdcm/cluster.py", line 3404, in prepare_user_data
01:39:09      return user_data_builder.to_string()
01:39:09    File "/tmp/workspace/scylla-master/artifacts/artifacts-centos9-test/scylla-cluster-tests/sdcm/sct_provision/aws/user_data.py", line 74, in to_string
01:39:09      return self.return_in_format_v3()
01:39:09    File "/tmp/workspace/scylla-master/artifacts/artifacts-centos9-test/scylla-cluster-tests/sdcm/sct_provision/aws/user_data.py", line 78, in return_in_format_v3
01:39:09      scylla_image_configuration = self.dict()
01:39:09    File "/tmp/workspace/scylla-master/artifacts/artifacts-centos9-test/scylla-cluster-tests/sdcm/provision/common/builders.py", line 73, in dict
01:39:09      attribs.update({prop: getattr(self, prop) for prop in props})
01:39:09    File "/tmp/workspace/scylla-master/artifacts/artifacts-centos9-test/scylla-cluster-tests/sdcm/provision/common/builders.py", line 73, in <dictcomp>
01:39:09      attribs.update({prop: getattr(self, prop) for prop in props})
01:39:09    File "/tmp/workspace/scylla-master/artifacts/artifacts-centos9-test/scylla-cluster-tests/sdcm/sct_provision/aws/user_data.py", line 63, in post_configuration_script
01:39:09      ).to_string()
01:39:09    File "/tmp/workspace/scylla-master/artifacts/artifacts-centos9-test/scylla-cluster-tests/sdcm/provision/common/configuration_script.py", line 42, in to_string
01:39:09      script += self._script_body()
01:39:09    File "/tmp/workspace/scylla-master/artifacts/artifacts-centos9-test/scylla-cluster-tests/sdcm/provision/aws/configuration_script.py", line 29, in _script_body
01:39:09      script = super()._script_body()
01:39:09    File "/tmp/workspace/scylla-master/artifacts/artifacts-centos9-test/scylla-cluster-tests/sdcm/provision/common/configuration_script.py", line 90, in _script_body
01:39:09      host=self.syslog_host_port[0],
01:39:09  TypeError: 'NoneType' object is not subscriptable
01:39:09  
01:39:09  ----------------------------------------------------------------------
01:39:09  Ran 1 test in 8.645s
01:39:09  
01:39:09  FAILED (errors=2)
  • This issue is a regression.

Link to failed jobs:

@Annamikhlin
Copy link
Author

related to commit: 4899ec5

@Annamikhlin Annamikhlin assigned dimakr and unassigned Annamikhlin Sep 2, 2024
dimakr added a commit to dimakr/scylla-cluster-tests that referenced this issue Sep 2, 2024
ConfigurationScriptBuilder should skip syslog-ng setup steps for
artifacts tests, which do not use syslog-ng logs transport.

Fixes: scylladb#8527
@fruch fruch closed this as completed in 3db9391 Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants