Commit Graph

89 Commits

Author SHA1 Message Date
Reddy, Hemachandra (hr858f) 771a058f43 Fixes the space issues in README
Adding an another blank line to README for right spacing
between lines.

Change-Id: I73bfae57d8cd8dabca1ba4e94471f6b33d7ab90b
2021-02-10 18:30:37 -06:00
Chi Lo e9e6b3b1c6 Use status_check boolean return to control retries loop
Change-Id: Ia8042e465084c8caae8479cf96823ab06b9abda3
2020-09-30 19:49:16 +00:00
jh629g 09a742cadb Quick patch for ranger image publish gate
Ranger-agent image publish gate
requires the python docker package,
this patch adds it back

Change-Id: I20058c5df33b029e4dd14219f3d2480599063ba4
2020-09-28 15:31:15 -05:00
jh629g cab06af183 Improve Stack Status Check Loop
Improved loop that polls heat
for status of resource actions
taken

Change-Id: I1655b3143121fada985b44b798002ffc96ee9b42
2020-09-28 14:04:35 -05:00
Chi Lo e8b268c21b Change Heat and Glance client to use internal endpoint
Change-Id: I8267edfb6b10b0f7360c0464ebca8f97db41045e
2020-08-06 12:10:05 -07:00
Chi Lo 7a99462270 Restrict dnspython to not use 2.0.0 version
Recent dnspython release 2.0.0 (Jul 17, 2020) has caused 
ranger-agent-dbsync pod not to reach Completed state.  When making a
connection to the mariadb, a getaddrinfo call is made first which
supposed to lookup the mariadb fqdn to ipaddress.  The lookup failed
which result in failed connection and retry indefinitely.  As a result,
ranger-agent-dbsync is stuck in Running state.  This patch set provides
a constraint to not use dnspython 2.2.0 version.

Change-Id: I6e80772af70bbeff56024b585e378f7b3cafd945
2020-07-28 16:17:12 +00:00
Chi Lo baf81a5641 Use certificate when creating keystone session
Change-Id: Iceceb44b4624207e22420e403a0cbad3b777caf9
2020-07-23 15:06:35 +00:00
Andrii Ostapenko 9b930ca19c
Ensure pip is installed on zuul executor
Change-Id: I725c18fa42b430fdd1209aa6284ff25f9e575f44
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
2020-07-13 22:06:06 -05:00
Zuul cbfd19b550 Merge "Create editable Ranger-Agent Configuration" 2020-05-26 18:58:29 +00:00
jh629g a376a02e2e Create editable Ranger-Agent Configuration
When ranger-agent is deployed in kubernetes,
the configuration becomes uneditable without
editing secrets and restarting the pod.
This patchset will add configuration to the
database so that values can be overriden as
needed to serve development needs. This
includes such needs as altering logging level
and changing the ranger site which ranger-agent
points at.

Change-Id: Id8b9f16668914e3c071639359d33aba0eee076c2
2020-05-26 17:50:10 +00:00
st6218 03b5fc001a Fix glance client initialization
Glance get image call is failing in engine

Change-Id: I4d0b0671941813f5f740fa1d2c47154e696b1764
2020-04-24 22:05:11 +00:00
jh629g b7167794a1 create new tagging method in ranger-agent makefile
resolves conflict in cicd pipeline that caused
mismatched tags on images during publish process

Change-Id: Ibf57a8f0808133fcd09eb38b52333e4a686149b7
2020-01-23 13:39:21 -06:00
jh629g 6006695f76 Dockerfile fix modular variable
variable added in previous commit
to allow dockerfile to accept
base image in a modular fashion
overrides all input. Changes this
variable to prevent that.

Change-Id: I09cea1d1b89044fc20c7d22ff4447f658ffee736
2020-01-22 13:37:13 -06:00
jh629g 9deb5946d3 Update Image build process
Adding variable to allow for modular
build of ranger-agent image.

Change-Id: I283932be11303cde9e1f8af0b489bb786e76fec0
2020-01-20 17:48:22 -06:00
st6218 67790d01fe Minor fix to correct missing argument issue
Change-Id: I0f39d03ac755b4fea2bcf1a4cbd548a5f5e18c6d
2019-11-27 20:39:05 +00:00
jh629g 4891d9aad2 Ranger add git dependency back
Until we have the bandwidth to
figure out what dependencies git
installs that ranger and ranger-agent
images need, we must add git back
in in order to have a functional
image

Change-Id: I46f5655324a245c8ae8a7271852a828806dddc4a
2019-11-25 14:14:12 -06:00
Zuul c1e791817d Merge "Ranger-Agent: Update heat send logic" 2019-11-25 17:34:42 +00:00
jh629g 6fa9a7dbfb Ranger Agent add tag and push of latest
Latest tag is not auto-updated by quay,
so this puts support to tag ranger-agent
image as latest each time an image is pushed
to quay.io.

Change-Id: I3e28017d315356ed24653292159307a5a58a617b
2019-11-22 11:46:25 -06:00
jh629g 899fe1973f Ranger-Agent Add Image Build & Publish
Adding ranger-agent check and gate
to build and publish ranger-agent
image to quay.io after successfully
using these techniques for ranger

Change-Id: I6296eb8007002329594dd254a252f0a4dc5c09f1
2019-11-21 17:14:29 -06:00
Chi Lo 0aaed0f5bb Port from python2: Specify exchange for Ranger-agent pods
python2: https://review.opendev.org/#/c/693092/

Change-Id: Ia754aae4f2263d7ed0783f861c05212bb98f98b4
2019-11-20 22:28:46 +00:00
jh629g 52897d20a5 Ranger-Agent: Update heat send logic
Remove logic to stage heat template in git repo.
Ranger-agent will receive heat template directly from ranger.

Change-Id: I9b6b0df2460989775a51368d019e49e66369c56e
2019-11-19 15:24:01 +00:00
hosingh000 b0c32e7e47 Merge Python3 branch
This change is going to upgrade ranger-agent to use Python 3.x

Change-Id: Ib7453eb32838672254d85f4981cab33dd816f75c
2019-10-29 14:26:10 -05:00
Chi Lo 02114b616b Add unit test cases for Ranger-agent health check
This patch also disable health check for heat component
during upstream gate process.

Change-Id: Ic5717f00212e924c059654c93d26fd2f2002438e
2019-10-06 05:51:25 -07:00
Chi Lo 8fb22dab18 Add health check for Ranger and Ranger-agent
This patch adds health check functions and corresponding
database enhancement to support health check.

Change-Id: I57cd3a7b1f18ad2dbf3b363a3772707c20d966ee
2019-09-20 20:05:42 -07:00
Chi Lo 3ccba6fc5b Add pip install upgrade to Dockerfile
A new package more-itertools (v7.2.0) is pulled in the latest build
environment which is not compatible with python 2.x. Upgraded pip
version helps to constraint the more-itertools version being pulled
to version 5.0.0.

Change-Id: I52416d66c1749499c675e3f4d6f1761a9859d1a4
2019-09-13 18:56:21 +00:00
Chi Lo 8e7171da6f Update SQLAlchemy version
Change-Id: Iee170737ea73be19f12508c96a4a255456e4b879
2019-09-06 15:47:44 -07:00
Chi Lo ecd8d36fe3 Increase Ranger-agent-engine retries interval
This patch increases the polling interval for Ranger-agent-engine to
    the database once it has sent an event to Ranger-agent-api to notify
    RDS.

Change-Id: I6e27b5d14c37084a1ce883387b112243c378f7c0
2019-08-30 18:39:13 -07:00
Chi Lo e796eb5395 Minor fix - Catch DBConnectionError when update target data
This patch catches DBConnectionError Exception when it occurs during database update with target data.
Removed extra call to update_target_data

Change-Id: I19736a22ea9e1efbb5e577e9695967c622916eaa
2019-06-29 22:41:15 -07:00
Chi Lo 8f0180542d Catch DBConnectionError when update target data
This patch catches DBConnectionError Exception when it occurs during
database update with target data.

Change-Id: Ibf8a16f152bd683dc36d638963f3dd774e269852
2019-06-29 14:36:27 -07:00
OpenDev Sysadmins eaa3716838 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:50:36 +00:00
Zuul 0583808e68 Merge "Fix update template issue in Ranger-Agent" 2019-04-11 20:47:45 +00:00
st6218 af67a6877a Fix update template issue in Ranger-Agent
Change-Id: Id6430fc5806f8fee1f2c27bd6677f391a6c72744
2019-04-11 12:19:35 -07:00
Ian Wienand 2687ba515b Merge "Replace openstack.org git:// URLs with https://" 2019-04-10 00:43:54 +00:00
st6218 0fc8a7490e Add Security Headers into Ranger-Agent
Change-Id: I427424702597e9b1bdcbb1d67d1863c13322f025
2019-04-05 19:32:50 +00:00
Ian Wienand b7f3844a7c Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: Id81cf0418cc385b50557d1e7450887a96678534e
2019-03-24 20:36:00 +00:00
st6218 5c4b27cfc3 Update Dockerfile
Change-Id: I407d20f8b5eb07dd0951f916822419d8d3034dbe
2019-02-08 11:15:22 -08:00
hosingh000 1733bf23bd Update User variable for specific component
Change-Id: If58f7264666b0c12679638bbb98224bdd71671af
2019-01-31 14:59:04 -06:00
hosingh000 d94bcdb3c2 Docker image creation by using component specific user
Change-Id: Ia101571e6c882988fcb42494a34c069258e78396
2019-01-17 13:30:00 -06:00
ranadheer 8cfcbec0f4 Bandit Scans for the ranger-agent
Change-Id: I03093f8e525a08f4c30c943164fa194e506c832f
2019-01-09 23:31:07 +05:30
ranadheer 1dfc0eb8fd Ranger Agent - Configurable log levels (446126)
Set the logging level from the conf file to override the default level.
Default level is now made to ERROR.

Change-Id: I982839509643036cfb8038f85f63f4e6ca33d74b
2019-01-03 00:04:35 +05:30
st6218 fe41f3f500 Update ranger-agent
Change-Id: Ie0cd82023eaba78c11cc7a59d6b23c4d7cd944f7
2018-12-18 00:31:35 +00:00
stewie925 3935196db1 Passing project_name to heat client and glance
Also update requirements.txt

Change-Id: Ie8a77813836d6dcc5427fc4c45c8fc481fc597ec
2018-12-14 08:43:50 -08:00
Zuul 151d90f046 Merge "Fix link in HACKING.rst" 2018-12-12 15:11:36 +00:00
stewie925 e5c3adfbcb Update ranger-agent requirements.txt for heat
Change-Id: If0b27c4810196fe0cd4f0cc2b4be016c5064e2c7
2018-12-06 13:20:22 -08:00
stewie925 230c8be712 ranger agent https verify
Change-Id: I2bd21547bb50a2ae18c6ab83330c6c7d32616e31
2018-11-29 14:04:50 +00:00
zhouxinyong 66f460e5fe Fix link in HACKING.rst
Change-Id: I5ec08c4f48f3bace3e31e61bcb9f2aef91d6fc9d
2018-11-16 08:50:34 +08:00
stewie925 0fa886466a Fix Ranger-Agent to allow Token Scope Authorization
Ranger-agent could not send heat template due to failed
token authentication.  This was due to ranger-agent making an
unscoped authorization.  The fix is to enable project authorization
for token authentication.

Change-Id: I6796a627b4b4bdd9f3290ebf01aa02c23ec2218f
2018-11-14 12:46:09 -08:00
stewie925 5712eda181 Ranger-Agent minor fix
Rename 'ord' to 'ranger-agent' in orm/service.py

Change-Id: I92b9c06d7557bd7960d3ce62952aa95b06dfdf27
2018-11-13 17:08:41 +00:00
hosingh000 60529ac023 Allow user to set use_stderr
In case no log_dir or log_fle set from oslo_conf function should allow to use stdout/stderr

Change-Id: I047a452c0e77df8bad13188b0f92ef6968b5cc4c
2018-09-19 13:59:22 -05:00
Zuul 51a85a8588 Merge "Add reno" 2018-09-19 02:33:24 +00:00