Commit Graph

43 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 c814dd5dc6 Update Ranger Null Values
Further null values found by helm v3
in openstack-helm-deployments must
be turned into empty strings instead

Change-Id: I83be4bbfd87add83a72f655e8b326250ef6383c9
2021-01-14 22:41:47 +00:00
Chi Lo fc9b28b3e2 Removed hooks from annotations
The add-region job/pod does not need to tie with the post-install
or post-upgrade hooks. In addition, hook-delete-policy is not needed
since this resource is not created by a hook. Job deletion prior to
upgrade is already being taken care of in values.yaml.

Change-Id: Ib22cce350e82986d0f51c7bca2be0ee5a01c36a9
2020-10-09 14:50:47 +00:00
Chi Lo 7963190677 Reduce resource creation wait time
Change-Id: I8ea7a520e7261fc83afc94bde215f5e6b083c7f6
2020-09-30 17:30:26 +00: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
Chi Lo 743f15efbc Create region retries when Ranger server not available
Change-Id: Ice06d39e465fa70593920d5bf7b18d1a427dadbf
2020-09-15 22:18:07 +00: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 1e7cf7b447 Add missing security context to Ranger-Agent pods/containers
This updates the ranger-agent 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: I9fe5d96958805ae9634521604845411d904d8458
2020-07-08 23:55:17 +00:00
diwakar thyagaraj 7b762a8e23 [FIX] Fix ranger-agent test pod
1)Update ranger-agent SHA to support bionic Images.
 2)Added heat deploy script for ranger deployment.
 3)Created seperate Jobs for ranger and mini-mirror apparmor.

Change-Id: Icecae5bd8f751508ef0417c8cc1a5e3959d44119
Signed-off-by: diwakar thyagaraj <diwakar.chitoor.thyagaraj@att.com>
2020-06-24 15:38:22 +00:00
Zuul ce635602ea Merge "Enable yamllint rules" 2020-06-05 04:10:32 +00:00
Chi Lo b1450140f1 Retreive Location information from new environment variables
Change-Id: Ifb075af88489ef85e45de001a495723f5443ad94
2020-06-04 16:13:03 +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
Zuul 67c2dc7bfa Merge "Remove OSH Authors copyright" 2020-03-20 04:44:49 +00:00
Chi Lo 0037691f53 Create a new job to call Ranger RMS service
This patch creates a new job which will call Ranger RMS service
post deployment.  The service call request Ranger to create a
region for the deployed site.

Change-Id: I03398453f579de5d2da5cf188b4779be527c3f5f
2020-03-11 09:32:09 -07: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
Zuul fef8b29c70 Merge "Remove ssh configurations" 2020-01-17 19:26:51 +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 7339119eb5 Supporting multipart request to allow file object
cgi  module was having issue https://bugs.python.org/issue27777
due to use of tempfile.TemporaryFile("wb") ranger_agent_api needed
readOnlyRootFilesystem: false

Change-Id: Ia010627c931ed2765ea7d95e183e69ade5ab8f25
2020-01-13 23:19:51 +00: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
Chi Lo 759acc5fb4 Enable rabbit HA queues for Ranger-agent pods
Change-Id: I25214b0174549c66fc4de01a5703d557cce314ad
2019-10-13 14:55:27 -07:00
Chi Lo 3b9adc2bf0 Health probe for Ranger-agent pods
Health probe for Ranger-agent pods is used for both liveness
and readiness probe.

ranger-agent-api and ranger-agent-engine pods:
- Sends an RPC call with a known method to pod's listener
  queue. Probe is successful if call returns with no error. If
  listener is not reachable or fails to respond in time, returns
  failure to probe.
- Check if the rpc socket status on ranger-agent pods to rabbitmq
  are in established state.

ranger-agent-api pod:
- Launch a call to pod's open interface. Probe is successful if call
  returns; otherwise failure if response has error or timed out.

Change-Id: I7a22fd50d47e58df19b413ed65ab528e2d78d609
2019-10-11 16:12:28 -07:00
Chi Lo 700f9dfcf3 Use htk function to directly hit RabbitMQ servers
This PS updates the charts to use the htk function
to allow oslo.messaging clients and servers to directly hit their
backends rather than using either DNS or K8S svc based routing.

Change-Id: I389de832740a59c0594e907177c8c2172a83958a
2019-09-06 17:55:08 -07:00
hosingh000 336594600b ResiliencyTesting: ranger-agent helm test failing
- Test is failing when repo changed and test template not exist
- Parameterizing expected status on basis provided template
- Parameterizing to pass region to request for specific site

Change-Id: I0d6cc27222c4b5eb36a91b8e5194e41701bb4820
2019-09-06 13:42:41 -05:00
SANDEEP REDDY THUMMA b6fa5da91c Ranger-Agent: Add pod/container security context
This updates the Ranger-Agent chart to include the pod
security context on the pod template

when I set to true for rangen-agent engine it going to crashloopbackoff

Change-Id: I69f99d651a7d60f27c75f1718e894c84bcfea366
2019-06-05 16:53:01 +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
hs571j 77f41c71a3 Include admin tenant user
Change-Id: I762b6c4260095a61a55f5ad6e70ec58e0f922704
2019-02-04 21:23:39 +00:00
hosingh000 dc58021a69 Fix tls secret keys identification for services
Change-Id: Id92c23a9009f49d065465376288667cd231830a8
2018-12-07 13:09:21 -06:00
Dustin Specker 4dc01cd5bd Reorder Ranger Agent'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: I0961b80c7085dc4ec7a8ba0d4aed9cbac5d7223f
2018-10-22 13:02:37 -05:00
Zuul 2b8581dcc2 Merge "Inclusion annotation for upgrade and install chart changes" 2018-10-09 15:08:49 +00: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
Mclean, Aaron (am9518) 96c4444e8d Changing keystone role names to be ranger_flavor_creator, ranger_customer_creator
Change-Id: Ie313ef96bbc936992c740521f30ac152c9f34ec1
2018-09-24 20:13:14 +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
Zuul 6ae0d1044e Merge "Fix minor chart issues due to osh changes" 2018-06-01 05:49:25 +00:00
wu.chunyang 0ca3c4439f fix typo
A slight mistake

Change-Id: I8f9d188bda3d2ac0c801deb39a07d048645a8976
2018-05-31 05:20:26 +00:00
hosingh000 fca50096dc Fix minor chart issues due to osh changes
Incorporated to Pass git key and config through value

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

Change-Id: I2ebc86ce0fe371379468c0482e705773a553e517
2018-05-29 17:37:54 +00:00
Pete Birley 0cd9ef1839 Helm-Toolkit: Update charts to work with -infra helm toolkit
This PS updates the charts to work with the -infra helm toolkit.

Change-Id: Ia28ebc48560e4c45946a08c777ffa9fd9592448c
2018-05-17 01:54:50 -05:00
Chris Wedgwood c11eca9a6f ranger-agent: yaml indentation fixes
Change-Id: Iedb68b1d8b0b0c4946221149efeb8c1afd16faa2
2018-04-17 00:01:28 +00:00
hosingh000 fb5df6ce88 Implementes: ranger-agent helm charts
This is an effort to implement helm charts for ranger-agent component
Signed-off-by: Hari Om Singh<hosingh000@gmail.com>

Change-Id: If3ef41cf3850edb52af1ec4861073657becec7ed
2018-03-29 13:01:28 -05:00