Skip to content

octopus: cephadm: batch backport June (1) - #35347

Merged
sebastian-philipp merged 26 commits into
ceph:octopusfrom
sebastian-philipp:octopus-backport-35104-35142-34902-35198-35097-35195-35266-35159-35106-35229-35194-3500
Jun 4, 2020
Merged

sebastian-philipp merged 26 commits into
ceph:octopusfrom
sebastian-philipp:octopus-backport-35104-35142-34902-35198-35097-35195-35266-35159-35106-35229-35194-3500

Conversation

@sebastian-philipp

@sebastian-philipp sebastian-philipp commented Jun 2, 2020 •

Copy link
Copy Markdown
Contributor

Backport of #35104, #35142, #34902, #35198, #35097, #35195, #35266, #35159, #35106, #35229, #35194, #35006, #35287, #35124, #35281

UPDATE: also backport of #34902

varshar16 and others added 25 commits June 2, 2020 14:58
Signed-off-by: Sebastian Wagner <[email protected]>
(cherry picked from commit 3c3a97e)
Signed-off-by: Michael Fritch <[email protected]>
(cherry picked from commit 41c0ccd)
Signed-off-by: Michael Fritch <[email protected]>
(cherry picked from commit 959ee9b)
A new section to describe the command used to blink lights in physical devices

Signed-off-by: Juan Miguel Olmo Martínez <[email protected]>
(cherry picked from commit e025727)
Currently we make and cache connections to nodes during a check_host.
If a cached connection is disconnect from the other end the remoto
connection object doesn't track this, so further checks to the host
fail.

I have pushed up a PR[0] to remoto to add a `has_connection` method to
their `BaseConnection` class, which we now use in this patch to check to
see if the connection is stale. If it is it is then recreated.

There is some monkey patching happening so we can add the required
`has_connection` to remoto in this patch which we can remove as soon as
the other PR have landed and a new version of remoto is released.

[0] alfredodeza/remoto#56
Fixes: https://tracker.ceph.com/issues/45627
Fixes: https://tracker.ceph.com/issues/45032
Signed-off-by: Matthew Oliver <[email protected]>
(cherry picked from commit afabf82)
The api user and password is required in order to use the API so let's
make these mandatory. The `ceph orch daemon add iscsi` now has them
mandatory:

  ceph orch daemon add iscsi <pool> <api_user> <api_password>

If your using apply with a yaml file, the validate_add in the spec now
checks for these too.

Signed-off-by: Matthew Oliver <[email protected]>
(cherry picked from commit a36165b)
Custom ssh config can be provided by using the '--ssh-config' option

Signed-off-by: Ricardo Marques <[email protected]>
(cherry picked from commit 84c390f)
previews

Signed-off-by: Joshua Schmid <[email protected]>
(cherry picked from commit fc3b4d1)
There's no reason for this cap to be used for talking to the MDS. The
individual exports have their own caps for talking to the file system.

Fixes: https://tracker.ceph.com/issues/45632
Signed-off-by: Patrick Donnelly <[email protected]>
(cherry picked from commit dac13ab)
Namely,
- Grafana
- Prometheus
- Alertmanager and
- Node exporter.

Fixes: https://tracker.ceph.com/issues/45463

Signed-off-by: Patrick Seidensal <[email protected]>
(cherry picked from commit 5d601bc)
Signed-off-by: Patrick Seidensal <[email protected]>
(cherry picked from commit d76bf4c)
Signed-off-by: Patrick Seidensal <[email protected]>
(cherry picked from commit bf20608)
Signed-off-by: Patrick Seidensal <[email protected]>
(cherry picked from commit 41cbca7)
Signed-off-by: Patrick Seidensal <[email protected]>
(cherry picked from commit 07583d2)
Signed-off-by: Patrick Seidensal <[email protected]>
(cherry picked from commit 7ca3b47)
…Manager

Calling Dashboard's CLI to set service URLs after deploying Prometheus
and AlertManager Daemons.

Fixes: https://tracker.ceph.com/issues/45625
Signed-off-by: Kiefer Chang <[email protected]>
(cherry picked from commit a613542)
Signed-off-by: Kiefer Chang <[email protected]>
(cherry picked from commit c336d60)
Adding a check for already bootstrapped clusters where the image is
already set to avoid overriding it.

Signed-off-by: Georgios Kyratsas <[email protected]>
(cherry picked from commit fabcbea)
Signed-off-by: Zac Dover <[email protected]>

Incorporating mgfritch's improvements.

Signed-off-by: Zac Dover <[email protected]>

s/docker/podman/ -- as per mgfritch's suggestion

Signed-off-by: Zac Dover <[email protected]>

s/: latest/:latest/

Signed-off-by: Zac Dover <[email protected]>

s/image ids/image IDs/ -- as per Alex Settle's suggestion.

Signed-off-by: Zac Dover <[email protected]>

Add note warning against the :latest tag.

Signed-off-by: Zac Dover <[email protected]>

s/image ids/image IDs/ -- as per Alex Settle's suggestion.

Signed-off-by: Zac Dover <[email protected]>

Linked to container page from cephadm install page.

Signed-off-by: Zac Dover <[email protected]>

Clarified the note directing readers to the container documentation.

Signed-off-by: Zac Dover <[email protected]>
(cherry picked from commit f0fe087)

@mgfritch mgfritch left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This PR needs a backport of #33886 to Octopus --

==================================== ERRORS ====================================
_____________________ ERROR collecting cephadm/__init__.py _____________________
cephadm/__init__.py:5: in <module>
    tests.mock_ceph_modules()  # type: ignore
E   AttributeError: module 'tests' has no attribute 'mock_ceph_modules'
____________________ ERROR collecting cephadm/inventory.py _____________________
.tox/py3/lib/python3.6/site-packages/py/_path/local.py:701: in pyimport
    __import__(modname)
cephadm/__init__.py:5: in <module>
    tests.mock_ceph_modules()  # type: ignore
E   AttributeError: module 'tests' has no attribute 'mock_ceph_modules'

Signed-off-by: Sebastian Wagner <[email protected]>
(cherry picked from commit 6b029c0)
@sebastian-philipp

sebastian-philipp commented Jun 3, 2020 •

Copy link
Copy Markdown
Contributor Author

@sebastian-philipp
sebastian-philipp merged commit dcc6234 into ceph:octopus Jun 4, 2020
@smithfarm smithfarm changed the title octopus: cephadm batch backport June (1) octopus: cephadm: batch backport June (1) Jun 6, 2020
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.

7 participants