Commit Graph

46 Commits

Author SHA1 Message Date
jh629g 4b3bfbd550 Retire Ranger from OSH-Addons
Ranger is beginning the process
of retirement in openstack, and
will be removed from OSH as a
result.

Change-Id: I4844964c4edbde935de47dad3f689ffa89671ccc
2021-06-29 10:57:08 -05:00
jh629g c7816d8397 Complete removal of SSH data in Ranger
Ranger has not used SSH since the
project finished conversions to
python 3.6. The data below is to be
removed, barring user_home and
retry_limit as they are values
which have been co-opted by other
parts of the ranger/ranger-agent
codebase.

Change-Id: If7cd18ddd6f266d58a10bfabd202f9daa4a518bf
2021-01-28 19:17:40 +00:00
jh629g 0f44380f08 Update Ranger Secrets for Helm v3
Helm v3 doesnt like null secrets.
Attempting to switch to empty string,
testing for v2 compatibility before
merging for v3 use. Also removed references
to deprecated code cloud repo usage for
storing heat templates.

Change-Id: I3d06c77d02b398253f22b847f68bb359e0c2ec2f
2020-12-18 21:33:01 +00:00
Andrii Ostapenko b6a94835a3
Change helm-toolkit dependency version to ">= 0.1.0"
Since we introduced chart version check in gates, requirements are not
satisfied with strict check of 0.1.0

Change-Id: I6e0a3b301392e82231a2081859ca4d380a0138d8
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
2020-09-29 13:12:55 -05:00
KHIYANI, RAHUL (rk0850) 5e993fbb20 Add headers to nginx ingress containers
Added X-XSS-Protection header to nginx ingress containers
Enable X-Frame-Options DENY header in nginx

Also Fix chart lint errors

Change-Id: I2b696fffd13518aa9f423f6d8624a279726c60ca
2020-09-24 16:22:39 -05:00
okozachenko 0945d57d27 Fix chart lint errors
Change-Id: Ifda0b64f7319f0885568a8848ee809af7b581014
2020-09-16 21:07:10 +03:00
Chi Lo b5cbc37078 Fix pod not restarted when issue detected
Service pod which fails connection, timed out, or unexpected
error during health probing should return with error status.

Change-Id: I26795a9f421fbdc84e75501b729da043b898c994
2020-09-02 13:58:26 -07:00
Chi Lo 7e211a6366 Enable TLS for Ranger Agent services call to Openstack Services
This patch enables TLS for Ranger Agent services so that internal
call from Ranger Agent services pods to Openstack services such as
keystone, heat, and mariadb utilizes TLS.

Change-Id: I8a548ff435e8b87783a50c5ce82b5931a3d76a22
2020-08-06 23:24:52 +00:00
DODDA, PRATEEK REDDY cbafbe21e7 Add missing security context to Ranger pods/containers
This updates the Ranger chart to include the pod
security context on the pod template.

This also adds the container security context to set
readOnlyRootFilesystem flag to true.

Depends-On: https://review.opendev.org/740119/

Change-Id: Ic06caec81015ac04fb162d8c2482da6b2329e204
2020-07-13 17:43:14 +00:00
dt241s@att.com 768722b1cf Enable Apparmor to Components in Addons
1)Added Apparmor Script andimoved apparmor configurations
to values-overrides to enable optional experimental Jobs.

2)Added Apparmor to mini-mirror,ranger,ranger-agent
 and sonobuy Components.

3)Moved apparmot
Change-Id: I9772d8425aa3d46e1fb0e1a6962ea999e77a6655
2020-06-17 19:30:06 +00:00
Andrii Ostapenko 4254e9a3ef Enable yamllint rules
- comments-indentation
- document-end
- document-start
- empty-lines
- new-line-at-end-of-file
- new-lines
- octal-values

Change-Id: I9cf4b60ee920b092c56cc54f331b6130955f93b8
2020-06-01 09:33:01 -05:00
Andrii Ostapenko c47a2b63c2 Enable yamllint checks
- brackets
- braces
- colon
- commas
- comments
- key-duplicates

with corresponding code adjustment.

Also removes x flag from yamls for ranger and ranger-agent charts.

Change-Id: I156b991ba6e17b6f9e1f128295362c0675afd8cc
2020-05-21 10:46:13 -05:00
hs571j eb09d81a26 Separate Ranger services
Change-Id: I4c4e6443ccd35eaee24444443013967dd8b5381c
2020-04-14 13:30:41 -07:00
Chi Lo 0ab9ddf4da Add Ranger services endpoint to configmap
Change-Id: I39aff92ea85fa955eab88b313834b8002a966ee8
2020-04-07 14:27:06 +00:00
hosingh000 382bc2e4ad Configuration change to not use admin user for mariadb
Change-Id: I3ea2194cb839c3be2dd89660c43af07778b0b385
2020-03-25 08:07:43 -05:00
Zuul 67c2dc7bfa Merge "Remove OSH Authors copyright" 2020-03-20 04:44:49 +00:00
Chi Lo f098b84f68 Added labels to Ranger and Ranger-agent deployment files
Change-Id: Ifee84fc8a91a87fb5f0fc599bfacd6bd293ea676
2020-03-12 14:33:02 -07:00
Zuul fcc74560f9 Merge "Enable Docker default AppArmor profile to Ranger" 2020-03-11 20:29:15 +00:00
Prateek Dodda f9d07d49a7 Enable Docker default AppArmor profile to Ranger
This adds default Apparmor profile to Ranger.

Change-Id: I4b86d6303abce261e6ed0dee263af2bf6329b35c
2020-03-09 20:47:29 +00:00
Gage Hugo 09b6e52c32 Remove OSH Authors copyright
The current copyright refers to a non-existent group
"openstack helm authors" with often out-of-date references that
are confusing when adding a new file to the repo.

This change removes all references to this copyright by the
non-existent group and any blank lines underneath.

Change-Id: I631ae4345f18fee70b380867ba8b33af5e3b3254
2020-03-02 14:01:56 -06:00
Chi Lo 771599d718 Add services dependency to ranger and ranger-agent helm test
Change-Id: Iaf049c4fe4b86aea31cba896015b73c495c71d0a
2020-03-02 17:10:26 +00:00
hosingh000 37b47ca4af Include Ranger Helm Test and Increase timeout
Test will make default call for all 7 services to ensure service running
Increase timeout to 100 second in case services are restarting
Increase timeout to 100 second for health probe to avoid pod restart

Change-Id: Id635d24236238e73b7a8292ee183b88328d621c4
2020-02-20 20:36:10 +00:00
hs571j 6a9037c10d Enable ranger-agent https flag and uuid access
Fix typo for ranger_agent_https_enable flag
Include uuid service to public access

Change-Id: Ie3eb07da61f97235d2cbea424401e057327480a5
2020-02-03 18:27:05 +00:00
hosingh000 80b8ec444a Remove ssh configurations
Newer versions (2.x) of Ranger is removing git repo support When
Older versions (1.x) still using it, this patch is to attempt to flag to
not use repo in case not supported repo and do cleanup

Change-Id: I36c36faa0be1f9e9ea4e5479e219dc14c205d853
2020-01-16 17:09:16 +00:00
hosingh000 0110d39ac2 Fix to stop service with lifecycle hookup
Change-Id: I63fbb39a9ad6002ee4be46b74b27d36fbd449725
2019-11-26 13:14:49 -06:00
Zuul b32b02211e Merge "Specify rabbitmq exchange for Ranger-agent queues" 2019-11-12 17:42:03 +00:00
Steve Wilkerson d6309100d7 Update kubernetes-entrypoint image reference
This updates the kubernetes-entrypoint image reference to consume
the publicly available kubernetes-entrypoint image that is built
and maintained under the airshipit namespace, as the stackanetes
image is no longer actively maintained

Depends-On: https://review.opendev.org/688435

Change-Id: I7f48605f08f574822179d51cd645ded07714d9c3
Signed-off-by: Steve Wilkerson <sw5822@att.com>
2019-11-11 07:34:30 +00:00
Chi Lo 38883b84c7 Specify rabbitmq exchange for Ranger-agent queues
Change-Id: I97465614c7f6136220b9dfe65ab5de16988f2d7e
2019-11-08 16:13:05 +00:00
Zuul 2915715919 Merge "Health probe for Ranger-services pod" 2019-10-22 20:45:16 +00:00
Steve Wilkerson 78d1e49e1e Ranger/Ranger-Agent: Fix deployment api versions
This updates the kubernetes api version for the ranger and
ranger agent deployment templates to apps/v1

Change-Id: I9a75de99441ad7c0bc7068e720686a3f96e92870
Signed-off-by: Steve Wilkerson <sw5822@att.com>
2019-10-18 08:40:14 -05:00
Chi Lo 200823a47e Health probe for Ranger-services pod
Health probe for Ranger-services pod is used for both liveness
and readiness probe.

Health probe launches a call to ranger services open interfaces.
Probe is successful if call returns without error; otherwise failure
will be reported.

Change-Id: I55ce381f344330157085ef294a169ea6df975737
2019-10-13 17:38:27 -07:00
SANDEEP REDDY THUMMA 58a73f7364 Ranger: Add pod/container security context
This updates the Ranger chart to include the pod
security context on the pod template

when I set to true It is going into crashloopbackoff

Change-Id: I00304483de5109e75860bde826ed18370610e286
2019-05-28 14:00:13 +00:00
Jean-Philippe Evrard 87f30975b9 Point to OSH-images images
We now have a process for OSH-images image building,
using Zuul, so we should point the images by default to those
images, instead of pointing to stale images.

Without this, the osh-images build process is completely not
in use (and completely opaque to deployers), and updating the
osh-images process or patching its code has no impact on OSH-addons.

This should fix it.

Change-Id: I23d69b56e6de4f0f76d6031b301e81a294ddcc50
2019-05-13 11:20:51 +02:00
hosingh000 144c4f62e9 Stop all ranger processes in container on invocation of stop
Change-Id: I029de49bbef2f66c4fd3b67ad73d2ae1f243e38b
2019-05-03 16:51:10 -05:00
caoyuan 77abfeb526 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Ie7dccec5b2a7acd257f3385a3ba18c024baca21a
2019-04-23 17:01:36 +00:00
Chi Lo 35fd5b92a8 Add label to Ranger test pod
Add label to Ranger test-pod so that Armada can search for it.

Change-Id: Iceca2f2906790d2ba2ee308d36258fcc93ab5621
2019-03-13 15:07:59 -07:00
Steve Wilkerson 15b5f31291 Add release-uuid annotation to pod spec
This adds the release-uuid annotation to the pod spec for all
replication controller templates in the openstack-helm-addons
charts

Change-Id: I040fe3a60d4d10e101238a4d760da14cbb18bf31
2019-03-15 06:00:25 +00:00
Chi Lo 9cf4f288fd Adding Ranger Audit Services to Ingress
Change-Id: I684c35209427143c750918f4fc683b85c0d4a967
2019-02-23 03:54:15 -08:00
jmq 5fa68b90df Fixed ranger/ranger-agent helm charts main deployment scripts to include $USER
The "ranger" and "ranger-agent" user ids are hard coded in the helm
services scripts.  This prevents overriding them.  Changed both scripts
to use $USER instead of hard-coded values.

Change-Id: I2dd9a667c6b33575324c179a8c10c394bf07ab47
2019-02-12 11:02:01 -06:00
hs571j 77f41c71a3 Include admin tenant user
Change-Id: I762b6c4260095a61a55f5ad6e70ec58e0f922704
2019-02-04 21:23:39 +00:00
hosingh000 999d4bd0e7 Changes to use home directory according to component user
Change-Id: I1188a561042174f688a7836afa2e25ed0184024e
2019-01-18 14:08:25 -06:00
hosingh000 3461a89714 Encrease probe check time to allow git cloning
Change-Id: I626843f749cb454342fe6432b1c0666cdec308ce
2018-12-26 23:35:32 -06:00
Dustin Specker 38b255a047 Reorder Ranger's values.yaml to follow spec
The values.yaml functionality is the same, just reordered according
to the values ordering spec[1].

BREAKING CHANGE:

1. Removed `release_group`

[1] https://docs.openstack.org/openstack-helm/latest/specs/values-ordering.html

Change-Id: I278a3f8aabc68b3ba17abd0aa74da1955f4400ac
2018-11-27 14:49:41 -06:00
hosingh000 ca2878611e Fix tls, services chart configurations
1. Fix tls secret keys identification for services
2. Removed ingress definitions for uuid and audit which are not required for now
3. Fix flag for ingress definitions in rds

Change-Id: Ifa2a97334c83901af705a061a0d8fd9cc1753651
2018-10-31 09:41:18 -05:00
hosingh000 1f4b4525fd Inclusion annotation for upgrade and install chart changes
remove default log file usage

Change-Id: I20a052f4e8953e56755dea2e6800f31498a657d2
2018-10-05 03:48:25 +00:00
hosingh000 bdac1be107 Implement: ranger helm charts and supporting change for agent
This is an effort to implement helm charts for ranger component
Included integration changes needed in ranger-agent

 Signed-off-by: Hari Om Singh<hosingh000@gmail.com>

Change-Id: I27911d134882365a29b7ffcf1f7ab2e38cf717be
2018-09-20 21:40:36 +00:00