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

fix(docker): multiple fixes to docker_backend_local.yaml #7315

Merged
merged 4 commits into from
Apr 2, 2024

Conversation

fruch
Copy link
Contributor

@fruch fruch commented Mar 31, 2024

Testing

  • tested locally

PR pre-checks (self review)

  • I added the relevant backport labels
  • I didn't leave commented-out/debugging code

Reminders

  • Add New configuration option and document them (in sdcm/sct_config.py)
  • Add unit tests to cover my changes (under unit-test/ folder)
  • Update the Readme/doc folder relevent to this change (if needed)

@fruch fruch requested review from soyacz and dimakr March 31, 2024 14:09
@fruch fruch added the backport/none Backport is not required label Mar 31, 2024
@fruch fruch changed the title Fix docker backend [fix(docker): multiple fixes to docker_backend_local.yaml Mar 31, 2024
@fruch fruch changed the title [fix(docker): multiple fixes to docker_backend_local.yaml fix(docker): multiple fixes to docker_backend_local.yaml Mar 31, 2024
* fix case back to older monitoring stack, cause of scylladb/scylla-monitoring#2246
* rate limit also prepare phase
* disable argus reporting for this case
when there a topology change during this function being called

it can fail like the following:
```
File ".../sdcm/stress_thread.py", line 298, in _run_cs_stress
 stress_cmd = self.create_stress_cmd(cmd_runner, keyspace_idx, loader)
File ".../sdcm/stress_thread.py", line 187, in create_stress_cmd
 stress_cmd = self.adjust_cmd_connection_options(stress_cmd, loader, cmd_runner)
File ".../sdcm/stress_thread.py", line 159, in adjust_cmd_connection_options
 stress_cmd = self.adjust_cmd_node_option(stress_cmd, loader, cmd_runner)
File ".../sdcm/stress_thread.py", line 142, in adjust_cmd_node_option
 rack_names = self.loader_set.get_rack_names_per_datacenter_and_rack_idx(db_nodes=self.node_list)
File ".../sdcm/cluster.py", line 3224, in get_rack_names_per_datacenter_and_rack_idx
 rack_names_mapping[(region, rack)] = status[nodes[0]]['rack']
```

since one of the nodes it might use as a key, isn't in `nodetool status` anymore.

so we using only the intersection of the nodes from the argument
and from the response of `nodetool status`
this logger was filter only lines that had scylla in them
and our docker logs doesn't have the scylla compoent printed
in all of them, so we were loosing lots of the relevent log
information, we should log everything the docker output has.
since our monitoring node in docker backend isn't a real
instance, we don't need the tunneling, and we can run
it locally as is

some nemesis code it decorated with functions
that generate grafana screenshots, hence we need
this fixed
Copy link
Contributor

@soyacz soyacz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@dimakr dimakr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fruch fruch merged commit 5afc954 into scylladb:master Apr 2, 2024
5 checks passed
@vponomaryov
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/none Backport is not required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants