Skip to content

stop.sh: Kill cephadm deployed daemons#35472

Merged
sebastian-philipp merged 1 commit intoceph:masterfrom
varshar16:wip-vstart-stop-cephadm
Jun 15, 2020
Merged

stop.sh: Kill cephadm deployed daemons#35472
sebastian-philipp merged 1 commit intoceph:masterfrom
varshar16:wip-vstart-stop-cephadm

Conversation

@varshar16
Copy link
Contributor

This patch adds call to cephadm vstart-cleanup script to remove daemons.

Signed-off-by: Varsha Rao varao@redhat.com

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard backend
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@varshar16 varshar16 force-pushed the wip-vstart-stop-cephadm branch from 0c94d60 to 5926f77 Compare June 10, 2020 09:00
Copy link
Contributor

@sebastian-philipp sebastian-philipp left a comment

Choose a reason for hiding this comment

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

I think you're fixing https://tracker.ceph.com/issues/44746 here.

Copy link
Contributor

@sebastian-philipp sebastian-philipp left a comment

Choose a reason for hiding this comment

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

Getting

➜  build git:(upstream-pull-35472) ✗ ../src/stop.sh ; finished                                                           
ERROR: cephadm should be run as root
ERROR: cephadm should be run as root
➜  cephadm git:(upstream-pull-35472) ✗ sudo ./cephadm ls
[
    {
        "style": "cephadm:v1",
        "name": "crash.ubuntu",
        "fsid": "5f5a6f60-35dd-4ef2-b3e1-73a4ddc057a0",
        "systemd_unit": "ceph-5f5a6f60-35dd-4ef2-b3e1-73a4ddc057a0@crash.ubuntu",
        "enabled": true,
        "state": "running",
        "container_id": "51101f158c73a5c0281dba83fb1eb086551c9cf93ebc8c3d9dda14e3454fe041",
        "container_image_name": "docker.io/ceph/daemon-base:latest-master-devel",
        "container_image_id": "74803e884bea289d2d2d3ebdf6d37cd560499e955595695b1390a89800f4e37a",
        "version": "16.0.0-901-g713ef3c",
        "started": "2020-06-11T12:38:17.310159",
        "created": "2020-06-11T12:38:17.117573",
        "deployed": "2020-06-11T12:38:16.405570",
        "configured": "2020-06-11T12:38:17.117573"
    }
]

Fixes: https://tracker.ceph.com/issues/44746
Signed-off-by: Varsha Rao <varao@redhat.com>
@varshar16 varshar16 force-pushed the wip-vstart-stop-cephadm branch from 5926f77 to 4930dc7 Compare June 11, 2020 17:12
@varshar16
Copy link
Contributor Author

Getting

➜  build git:(upstream-pull-35472) ✗ ../src/stop.sh ; finished                                                           
ERROR: cephadm should be run as root
ERROR: cephadm should be run as root
➜  cephadm git:(upstream-pull-35472) ✗ sudo ./cephadm ls
[
    {
        "style": "cephadm:v1",
        "name": "crash.ubuntu",
        "fsid": "5f5a6f60-35dd-4ef2-b3e1-73a4ddc057a0",
        "systemd_unit": "ceph-5f5a6f60-35dd-4ef2-b3e1-73a4ddc057a0@crash.ubuntu",
        "enabled": true,
        "state": "running",
        "container_id": "51101f158c73a5c0281dba83fb1eb086551c9cf93ebc8c3d9dda14e3454fe041",
        "container_image_name": "docker.io/ceph/daemon-base:latest-master-devel",
        "container_image_id": "74803e884bea289d2d2d3ebdf6d37cd560499e955595695b1390a89800f4e37a",
        "version": "16.0.0-901-g713ef3c",
        "started": "2020-06-11T12:38:17.310159",
        "created": "2020-06-11T12:38:17.117573",
        "deployed": "2020-06-11T12:38:16.405570",
        "configured": "2020-06-11T12:38:17.117573"
    }
]

Fixed.

@varshar16
Copy link
Contributor Author

I think you're fixing https://tracker.ceph.com/issues/44746 here.

Yes, I have added the tracker ticket in the commit message.

CEPH_CONF_PATH="$PWD"
fi
conf_fn="$CEPH_CONF_PATH/ceph.conf"
CEPHADM_DIR_PATH="$CEPH_CONF_PATH/../src/cephadm"
Copy link
Contributor

Choose a reason for hiding this comment

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

This is going to make it even more complicated to have anything but one big cephadm script without any form of packaging.

@sebastian-philipp sebastian-philipp merged commit 02c4f24 into ceph:master Jun 15, 2020
@varshar16 varshar16 deleted the wip-vstart-stop-cephadm branch June 26, 2020 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants