8000 Two issues with scripts/common/cb_cleanup.sh · Issue #447 · ibmcb/cbtool · GitHub
[go: up one dir, main page]

Skip to content

Two issues with scripts/common/cb_cleanup.sh #447

Open

Description

@rayx

While I use the following command to create cassandra_ycsb workload image, it fails consistently:

vmattach check:cb_nullworkload:ubuntu:nullworkload

The error log:

...
[2024-07-02 09:52:55,440] [INFO] dependencies.py/instance_preparation  - Running the instance cleanup script "/home/ubuntu/cbtool//scripts//common/cb_cleanup.sh"...
/home/ubuntu/cbtool//scripts//common/cb_cleanup.sh
Killed

The issue is caused by this line in scripts//common/cb_cleanup.sh:

blowawaypids redis

At the end of the vmattach command, it runs this command on vm

~/cbtool/pre_install.sh; ~/cbtool/install --role workload --wks nullworkload,cassandra_ycsb,mongo_ycsb,redis_ycsb

The install command invokes cb_cleanup.sh. And the above line kills install process by accident.

I don't understand why it's necessary to kill these processes in general (I don't think they have any effect on vmcapture command). I comment out the above code to work around this specific issue.

While I investigate it, I also notice another unrelated issue in the code:

blowawaypids -f gtkCBUI

The "-f" is a typo and should be removed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0