Commit Graph

72 Commits

Author SHA1 Message Date
Isaac Mungai 054dd47fd3 Add support akamai DV SNI certificates
Change-Id: I9f1ef35ee5cb3e50ac689b333357d43ef43fb343
2016-09-27 09:34:31 -04:00
Isaac Mungai 0458de585d Check shard is within records limit
Before adding a new record to a domain, check to see
if it's at maximum capacity and skip to the next cert
if necessary.

Change-Id: I7e4c56e27cebc45a9cdddf9659762f29f9c6227c
2016-09-21 14:18:02 -04:00
Brian Metzler 14ce47338a Fixes duplicate mailgun section in poppy.conf
Readd retry_send=5, as it wasn't in the top section

Change-Id: Ide335c32d1185954858d8f2a0f3e7c9883789763
Closes-Bug:1577941
2016-05-05 09:19:40 -04:00
Isaac Mungai 39f91aa3d8 fix: register log options to allow context in logs
Adding oslo_log ContextFormatter registers additional options
in the DEFAULT group that poppy ignores when loading the app.

Fixes poppy worker not logging to the configured handler.
Both poppy-server and poppy-worker should send logs to the same
destination.

Change-Id: Iba34f0c6f9e9dc2e23f7a1e9d2d89f8d3337129d
2016-04-25 15:12:36 -04:00
Isaac Mungai 833582a8f0 Refactor san_info akamai storage
Rename san_info to cert_info_storage
Re-use the cassandra storage driver logic for cert_info_storage

Change-Id: I21b92b71d7aa010975e623ced9abb476df9203c6
2016-04-12 11:01:26 -04:00
Isaac Mungai 5f9ba217d0 feat: add endpoints to put/get san_mapping_list
also fixes typos in other modules

Change-Id: I88a8d48a3491dbda75b695d64139595256d9c52f
2016-03-22 22:55:45 -04:00
Sriram Madapusi Vasudevan 0d9f84d616 feat: addition of the BlueFlood Client
- add region mapping to every provider driver
- add logic in analytics manager to call the provider, for which the
  domain is present
- add asynchronous requests supports for blueflood and gather results

REQUEST URL:

GET /v1.0/services/{service_id}/analytics?domain={domain}&metricType=requestCount&startTime=2016-01-22T17:42:08&endTime=2016-01-24T17:42:08

RESPONSE:

{
    "domain": "{domain}",
    "requestCount": {
        "India": [{}],
        "EMEA": [{
            "1453420800000": 47,
            "1453507200000": 31,
            "1453593600000": 2
        }],
        "APAC": [{
            "1453593600000": 2
        }],
        "North America": [{}],
        "South America": [{}],
        "Japan": [{
            "1453593600000": 89
        }]
    },
    "flavor": "{flavor}",
    "provider": "{provider}"
}

Partially Implements: blueprint analytics

Change-Id: I82a594c6ed1b2df93158af2b766dbbf2cd5440df
2016-02-02 10:51:28 -05:00
Sriram Madapusi Vasudevan 4cff19885b feat: Driver for Metrics
- Add stevedore capability to load different metrics drivers,
  once their corresponding classes are built into poppy.

Partially Implements: blueprint analytics

Change-Id: Icb25ddccd0582bb6db34827995bce0f9af2087f0
2016-01-22 12:17:19 -05:00
Sriram Madapusi Vasudevan 4843ac4fb4 feat: move to oslo.log
- Removal of openstack.common.log and rely on oslo.log libraries.
- LOG with oslo context, which gives us ability to track a request
  through a pipeline (server -> worker)

Change-Id: I2ca26de4daa5d013dfe00a0667d3419bf9b55c65
2016-01-22 09:39:39 -05:00
tonytan4ever 8e67aa8879 feat: default automatic C* schema migration to false in request
Change-Id: I62cb2103f3a3721bd3baf38f97ca25fa4d897904
2015-10-12 14:03:38 -04:00
Jenkins 2ffe48fb4a Merge "feat: admin api - limit no. of services/project_id" 2015-10-08 15:08:24 +00:00
Sriram Madapusi Vasudevan 7bb9a09e5f feat: admin api - limit no. of services/project_id
- A default limit on number of services per project_id
  is specified in poppy.conf

- This can be overridden by making a call, to the admin endpoint
  as follows.
  eg:

  REQUEST:

        PUT /v1.0/admin/limits/{project_id}

        {
            "limit": 5
        }

  RESPONSE:

        201 Created

- The limit of a particular project_id can also be checked, using the
  following call.

  eg:

  REQUEST:

        GET /v1.0/admin/limits/{project_id}

  RESPONSE:

        200 OK

        {
            "limit": 5
        }

Change-Id: I064b7e4d1c5f19704750b1012a6f18e0d07a67e2
2015-10-07 16:31:09 -04:00
tonytan4ever 5291308eba Add cassandra akamai san info storage
Change-Id: I1a37130190399e6c5f33148c258b4b7fa3ddeaf8
2015-09-29 14:06:17 -04:00
tonytan4ever 53275f6d02 Refactor akamai provider and taskflow config
Change-Id: I2ae50e8b3a85448988945b46c43c9ebedb70fb4e
2015-09-24 16:08:52 -04:00
tonytan4ever df58d6014a ssl-cert-provision endpoint.This allows user to create a certificate with akamai driver.
Should be letting user assoicate a certificate with ta domain.
Implements blueprint: ssl-certificates
Implements blueprint: akamai-ssl-driver

Change-Id: Iab5dc13d6a0d36bc4e4857364ae3d27a1bcd5113
2015-09-23 10:42:07 -04:00
tonytan4ever 4954298a60 Notification driver implementation
Implements blueprint: notification-driver

Change-Id: I959b7b6e30ddef5e2591d4ad43177213d53ab0cd
2015-08-11 14:27:50 -04:00
amitgandhinz 0d08dfa66e Added Docker Files to mimic third party API's
This change works towards making the API tests pass
against Mimic'd drivers so that real production accounts
do not need to be set up - namely:
- Mimic - Fastly
- Mimic - Keystone

It also makes the mimic fastly instance the default driver in /etc

Implements: bp/mimic-fastly

Change-Id: I35d36fbc2452fc4e2233c19abefd738c9975edd0
2015-08-04 15:12:34 -04:00
Sriram Madapusi Vasudevan 40745c4101 fix: create a default caching rule with ttl
- if no caching is specified, lets create a default caching rule on
  request_url of '/*' with the default ttl value derived from poppy.conf

Change-Id: Ib12a3ea1e3cac044b067f06a2c716847caf88b67
2015-07-23 14:12:58 -04:00
Anantha Arunachalam 20ab7f58de Adds API tests for admin endpoint to migrate SAN domain
Change-Id: Ic71fefc67108e022cd438fda017413fdc108ee1e
2015-07-14 16:34:28 -04:00
Obulpathi ddeff007f1 Adds support for operator status
This patch adds support of operator_status. This can be used for
enabling or disabling a service.

Implements: blueprint enable-disable-service

Change-Id: I458abb7b34b88a823118af5f5da6f82555d34a2d
2015-06-15 16:30:04 -04:00
Sriram Madapusi Vasudevan 810fcddbe3 fix: change cassandra schema migration consistency level: LOCAL_QUORUM
- `migrations_consistency_level` is now a configurable option.

Change-Id: If3aaccc6d1ced3ec68b3229698d976a351070c42
2015-04-28 16:50:01 -04:00
Jenkins 97b2af03d5 Merge "fix: openstack swift operations use either internalURL or publicURL" 2015-04-24 19:38:29 +00:00
Sriram Madapusi Vasudevan 8801a8f3c3 fix: openstack swift operations use either internalURL or publicURL
- use internalURL if poppy's current running datacenter matches with the
  preferred dc, otherwise use publicURL

Change-Id: Iea46f891e5717c172710d9d57d42027cf90c9201
2015-04-24 15:19:57 -04:00
Sriram Madapusi Vasudevan 274f72e34a fix: correct config option `preferred_dcs` in poppy.conf
Change-Id: I632872955af909075881ec0ee4689ee7c9e6c3fb
2015-04-23 17:30:22 -04:00
Jenkins fc0822f48d Merge "Separate Shared, SAN, and Custom property numbers" 2015-04-22 13:58:00 +00:00
tonytan4ever 2cb9c9d5c7 Separate Shared, SAN, and Custom property numbers
Change-Id: I98e01806729753d85320762683d5fcbde3b549a3
2015-04-21 14:42:06 -04:00
Sriram Madapusi Vasudevan add80eb0c9 Enables creating container for log_delivery
This patch creates swift container for log delivery, if log_delivery
is enabled.

Change-Id: Ifbabec501a1f8578d5ed5e97feda8e144f93f468
2015-04-17 17:12:04 -04:00
Jenkins d10bb01b85 Merge "Manual SSL initial Check in" 2015-04-16 18:35:00 +00:00
tonytan4ever 8ec6286ac6 Manual SSL initial Check in
Change-Id: Ife300dd642fd624347d042012ff5c7cb5302bb48
2015-04-15 16:18:08 -04:00
Sriram Madapusi Vasudevan 7516fbe63c fix: migration commands must have consistency set to ALL
- the migration commands need to have the consistency level set to ALL
- max schema agreement time is bumped up to 30 seconds

Change-Id: I2940de1b81a630ea4cea305c3855ef78de9b5733
2015-04-14 12:14:32 -04:00
tonytan4ever e84df4ff3e shared ssl domain implmentation
Change-Id: I81ed3dfd073c00aa56bd2a7968c06ab2798d25b7
2015-04-07 11:28:19 -04:00
Jenkins fb48a20e0c Merge "Adds response timeout and delay options to Rackspace DNS" 2015-03-19 21:27:28 +00:00
Obulpathi 7eb7e7732c Adds response timeout and delay options to Rackspace DNS
Closes-Bug: 1434204
Change-Id: Ib63451cef3142d2463a160b20fb51f323fe5e118
2015-03-19 15:12:39 -04:00
Obulpathi 7cbe2e3c08 Lowers the default num of shards for Rackspace DNS from 500 to 400
Change-Id: I4e852b83432e4362145457aa78a207d8d7f3b545
2015-03-17 12:18:14 -04:00
Sriram Madapusi Vasudevan 141ca58d73 fix: exponentially backoff at different rates
- Make sure that we dont have a herding effect, backoff at different
  rates everytime.

- A random number is picked between min and max backoff time, which is
  used as a starting point for exponential back off.

Change-Id: Ied5f19c5b542cc67b6345023b84d5dcfd3cb6830
2015-03-05 10:50:13 -05:00
tonytan4ever 893f88c078 Add cassandra schema migration framework
Implements: blueprint cassandra-schema-versioning

Change-Id: I37ac447116d69b465052063269f55d8487142124
2015-02-27 13:41:10 -05:00
wbrothers 43de028285 feat: Break down async tasks with TaskFlow
- Each of Create Service, Delete Service, Purge Service and
  Update service now consistute of smaller tasks, contained within
  a Graph Flow

- The DNS tasks have been in-built retry logic within them, by
  exponentially backing off, in case of a failure.

Change-Id: I61f8ad613b97087f5ff03c0fc2ac4994258b655f
2015-02-18 17:47:53 -05:00
tonytan4ever 32fc357d48 Implemented TaskFlow distributed task driver to replace subprocess
Change-Id: Ic64ea2a1f3cb0b8e0b5fa952c39ba95884958e17
2015-02-18 16:56:49 -05:00
tonytan4ever 713c8a93d6 Cassandra max wait for schema agreement option
Change-Id: Iaee63632620666330c3f1b7f6b9a86cbf45b3ac7
2015-01-20 13:57:50 -05:00
tonytan4ever 95a944763f Add cassandra consistency level
Closes-Bug: 1409782

Change-Id: Ic53b2ac32592458bd4b32c6edfa51a04415fa1cf
2015-01-14 18:06:01 -05:00
amitgandhinz 8456b609d6 https domains for akamai driver
Closes-Bug: 1403621

Change-Id: Ibb6125dff2ee24f9c60e5d84e404f1a8007012e2
2014-12-23 10:41:40 -05:00
Jenkins aee20c0717 Merge "Akamai config adjustment" 2014-12-21 02:06:45 +00:00
amitgandhinz bf99d8efa7 Modified delete to archive services instead of hard delete
This change also resolves the issue where services would not be
deleted when providers have issues.

Closes-Bug: 1400525

Change-Id: I8bd798bc4c97a1ed88694c611c32ea2cfadcd849
2014-12-16 12:27:20 -05:00
tonytan4ever 000e493a17 Akamai config adjustment
Change-Id: Ie73e39a761b153e912f1250dd1c1998b3b597cb7
2014-12-16 12:18:37 -05:00
Jenkins bfaad4f768 Merge "Add project_id to rax-identity base url Closes-Bug: 1401628" 2014-12-15 21:42:28 +00:00
Obulpathi 51b0000740 Add project_id to rax-identity base url
Closes-Bug: 1401628

Change-Id: I5e7c61841d0ea8605f990c301aa0c18b8938dca1
2014-12-15 14:54:01 -05:00
amitgandhinz 64ce27c5a5 Added sample of loading logging.conf to poppy.conf sample
Closes-Bug: 1401153
Change-Id: I01909c1dbec723ca7b2adfc7f63eca3c51b19f27
2014-12-15 12:57:05 -05:00
Obulpathi 7ae747460e Adds auth_endpoint configutation option for pyrax
Change-Id: Ifc2d85397784010d17c4377e65674b4587893cc9
2014-12-10 11:43:42 -05:00
Obulpathi 06d8131201 Human friendly DNS shard indexes
Change-Id: Ibcd29b916c85694d126b3d9b32990d5ac7573dad
2014-12-09 10:34:07 -05:00
Obulpathi 0a4c407637 Fixed invalid credentials bug in Rackspace DNS Driver
Change-Id: Ie161799fdf31725e505208d8287e8236262a6408
2014-12-08 10:46:42 -05:00