This PS fixes the jobs falling into a crash loop state
when upgrading charts.
'kubectl create' command cannot overwrite if a secret already
exists. But 'kubectl apply' command can do it.
Change-Id: Idd6eea06892a30e36e51a9b1130fd7cd84ff65cf
This PS tidies the Ceph scripts. In addition, it allows the
chart to be removed and re-deployed without data loss,
and improves robustness to rebooting nodes and/or
the cluster.
Change-Id: If5a65d0dcca1d049b177d9bffb654a13d56c3823
This PS adds Ceph OSD's to the host specific over-rides, it also
simplifies the host-specific daemonset logic.
Change-Id: Icd5daf46f29a328e96273ac64ad761e30d933e9c
The logic for check ceph version in some charts has a code that doesn't
work. This patch check ceph version properly.
Change-Id: Ie97a3ec5ac5078f556f59a09db820ee574c60f50
This PS moves all credentials for OpenStack services from 'user' to
the service name. This allows a single yaml snippet to articulate
the credentials for a deployment.
Change-Id: Ic720109f2ba854561b23767cb480bcae91f74b6b
Every manifests has to be controlled by manifests key in values.yaml.
In ceph, job-rbd-pool doesn't have manifests value,
so it can't be disabled.
When using already installed ceph, it is necessary to disable
job-rbd-pool because it is an unnecessary.
Change-Id: Idf61855423f28fbb1c7730118869bdddc463960b
Closes-bug: 1742017
The storage_init script in some charts has a code that doesn't work
with older than ceph luminous. This PS allows execution in both ceph
luminous and older versions like kraken jewel.
Change-Id: I5d21fb027328e7d3490625894bd14905988ba320
Closes-bug: 1742021
Instead of relying on the dashboard availability
we check the ceph-mgr map
Signed-off-by: Alexandre Marangone <amarango@redhat.com>
Change-Id: I78d33a4b522ed085ed85a638b3784c2d07026e39
This PS set the Ceph MGR pod .spec.strategy to recreate.
Signed-off-by: Alexandre Marangone <amarango@redhat.com>
Change-Id: I14a817dbf8e0d1ec86345cf97911302f5acc3466
When monmap is persisted, don't overwrite it when mon pod restarts.
This helps when there is just one mon or all mons reboot
Change-Id: I9119379f4bc026c315a2fa7507a1664b12ea6205
Signed-off-by: Huamin Chen <hchen@redhat.com>
The Cinder chart can now manage its storage init itself. This PS
now removes the unrequired pool creation in the Ceph bootstrap job.
It also updates the `ensure_pool` to better support luminious.
Change-Id: I4a71df9a6d3a0e45c6ef6812926d66455055ae9f
This PS updates the dependency tree in ceph to take into account
the keyring jobs and also the tollerance for unready endpoints
introduced in the k8s 1.6 era.
Change-Id: If76efeafdbcbe88ee699e7553f0effd5da7ce624
The ceph mon daemonset had a typo, and referenced the osd
resource limit specification in Values instead of its own.
Change-Id: I06433b9039842322786e73eff89da2836c17bb7f
init osd: Ceph luminous release init osd differently. This fix detects
ceph releases and use the right process to init osd directory
mgr: Set mgr daemonset that is in Luminous
Change-Id: I99a102f24c4a8ba18a0bba873e9f752368bea594
Signed-off-by: Huamin Chen <hchen@redhat.com>
Depends-On: I17359df62a720cbd0b3ff79b1d642f99b3e81b3f
Replace socket-based liveness checks with scripts
The current TCP socket-based liveness/readiness check for Ceph
doesn't accurately reflect when daemons are live, doesn't handle
multiple OSDs on a host, and doesn't work when hostNetworking is
in use and the Ceph network is different from the one associated
with the hostname. This change adds new scripts for checking
Ceph monitor and OSD liveness/readiness that query the Ceph Unix
domain sockets to get daemon status and exits 0 iff all sockets
report that their daemons are in an "active" state.
This isn't perfect: we don't know how many daemons SHOULD be
active, so if only a subset is live and the others have no
sockets (yet?), we'll still claim the pod is ready. The scripts
also don't distinguish between liveness and readiness for OSDs.
Change-Id: I5d370b4bc4025fece2e640355c3a29167afca871
This PS makes the service-specific images for Ceph have
explicit names, allowing simple over-riding of images for an
entire site.
Change-Id: I735c5fdc08c2a83893f25e6f6f9824089916507f
This PS updates the values file layout for images to allow simple
parsing of the images in use by charts, allowing them to be queried
and modified much more simply. By moving the image tags to a 'tags'
key, we can extend the options used simply to accomodate extra
options simply (eg prefixing the tag for use with an internal
registry) or pre-pulling the images to reduce chart deploy failure.
Change-Id: I9ec1dbb00d997ab6cb021bf0b698f7aae740e95d
Currently, "general" storage class always created even if
provision_storage_class is set to false. This patch fixed
storageclass template to check the option is enabled.
Change-Id: I6397b24fa9c6517f2646e53ea0f601ad2aa4b9f8
New kubernetes-entrypoint version was released. K8s-entrypoint
authors maintain images at Quay. The image uses CoreOS, which
is more lightweight than the current Ubuntu image, so it
should lessen the burden on the infrastructure.
Change-Id: Id8c2a4d065550ffbd64476377247cccf213b58e1
Partial-Implements: blueprint entrypoint-namespaces
Kubernetes 1.8 is stricter about the feilds in a secrets manifest,
this PS updates OpenStack-Helm to be compliant.
Change-Id: I9e19d07060d8517e0f4fd3056013191b1b4ba2da