pwongcha / cli-onboard-custom-solutions

Apache License 2.0
0 stars 0 forks source link

STG env delivery config activation failing. #5

Open urvashinayak opened 5 days ago

urvashinayak commented 5 days ago

Here are the logs from :

version : v1197

============================================ 

024-10-16 17:39:12 19117 akamai-onboard.py 997   INFO    : Start Akamai CLI onboard
2024-10-16 17:39:15 19117 utility.py        713   WARNING : Validating environment file information. Please wait, may take a few moments
2024-10-16 17:39:15 19117 utility.py        718   INFO    : stg                                               environment
2024-10-16 17:39:16 19117 utility.py        729   INFO    : www.stg.hilton.com                                property name
2024-10-16 17:39:17 19117 utility.py        740   INFO    : prp_392141                                        property id
2024-10-16 17:39:17 19117 utility.py        741   INFO    : ctr_15R-UUBR                                      contract id
2024-10-16 17:39:17 19117 utility.py        742   INFO    : grp_241534                                        group id
2024-10-16 17:39:17 19117 utility.py        764   INFO    : v1196:v1195:v1195                                 latest:staging:production version
2024-10-16 17:39:17 19117 utility.py        768   INFO    : v1195                                             build from version
2024-10-16 17:39:18 19117 utility.py        794   INFO    : prd_Fresca                                        product id
2024-10-16 17:39:18 19117 utility.py        809   INFO    : Properties                                        rule name to inject into
2024-10-16 17:39:18 19117 utility.py        820   INFO    : Define HTTPS paths                                rule name to add path matches into
2024-10-16 17:39:19 19117 utility.py        848   INFO    : One Hero Web (STG)                                valid waf_config_name
2024-10-16 17:39:19 19117 utility.py        849   INFO    : 74391                                             waf config id
2024-10-16 17:39:19 19117 utility.py        857   INFO    : v620:v620:v620                                    latest:staging:production version
2024-10-16 17:39:23 19117 utility.py        869   INFO    : Curated                                           found existing policy
2024-10-16 17:39:23 19117 utility.py        870   INFO    : 3682114                                           found waf_match_target_id
2024-10-16 17:39:28 19117 utility_papi.py   456   WARNING : Validating https path injection rulename
2024-10-16 17:39:28 19117 utility_papi.py   470   INFO    : Define HTTPS paths                                rulename not found in the property, continuing anyway
2024-10-16 17:39:28 19117 utility_papi.py   476   WARNING : Validating rule bundle rulename
2024-10-16 17:39:28 19117 utility_papi.py   487   INFO    : Properties                                        rulename found in the property
2024-10-16 17:39:28 19117 utility.py        1966  WARNING : Validating cloudlet policy
2024-10-16 17:39:30 19117 utility.py        1971  INFO    : Found policy-id 161695, cloudlet policy OHW_STG_Cardinal

+---------+---------+---------------------+------------+
| Version | Network | PM Config           | PM Version |
+---------+---------+---------------------+------------+
| 249     | prod    | www.stg.hilton.com  | 1195       |
| 249     | prod    | my_example_property | 0          |
| 249     | staging | www.stg.hilton.com  | 1195       |
| 249     | staging | my_example_property | 22         |
+---------+---------+---------------------+------------+

2024-10-16 17:39:30 19117 akamai-onboard.py 1033  WARNING : Updating Delivery Config
2024-10-16 17:39:32 19117 utility_papi.py   110   INFO    : Created new cpcode: 'www.stg.hilton.com.curated.herrsqq', id: 1714776
2024-10-16 17:39:32 19117 utility.py        1814  WARNING : Created new 1 rules
2024-10-16 17:39:32 19117 utility.py        1818  INFO    :     rulename HERRSQQ              /en/hotels/herrsqq-the-royal-senses-resort-and-spa-crete/*
2024-10-16 17:39:34 19117 utility_papi.py   513   WARNING : Created new property version: v1197
2024-10-16 17:40:09 19117 utility_papi.py   74    WARNING : Preparing to activate property www.stg.hilton.com on Akamai STAGING network
2024-10-16 17:40:15 19117 wrapper_api.py    282   ERROR   : https://akab-de4jhzxbp5xrbina-22atr2wzg3ugsf6n.luna.akamaiapis.net/papi/v1/properties/prp_392141/activations?contractId=ctr_15R-UUBR&groupId=grp_241534 400
2024-10-16 17:40:15 19117 utility_papi.py   84    ERROR   : {
    "type": "https://problems.luna.akamaiapis.net/papi/v0/activation/errors",
    "instance": "https://akab-de4jhzxbp5xrbina-22atr2wzg3ugsf6n.luna.akamaiapis.net/papi/v1/properties/prp_392141/activations?contractId=ctr_15R-UUBR&groupId=grp_241534#aed9670ffa79555d",
    "status": 400,
    "warnings": [
        {
            "type": "https://problems.luna.akamaiapis.net/papi/v0/activation/unstable_rule_format",
            "detail": "This property is using `latest` rule format, which is designed to reflect interface changes immediately. We suggest converting the property to a stable rule format such as `v2024-08-13` to minimize the risk of interface changes breaking your API client program.",
            "messageId": "msg_eac797d55da505d7f40dcd3857d003c83ba8d7c1",
            "currentRuleFormat": "latest",
            "suggestedRuleFormat": "v2024-08-13"
        }
    ],
    "errors": [
        {
            "type": "https://problems.luna.akamaiapis.net/papi/v0/activation/validation_errors_exist",
            "detail": "There are validation errors that exist. Please return to the edit page to correct them.",
            "messageId": "msg_48d270436925422781ac6dd06763470987ed7a5d"
        }
    ]
}
2024-10-16 17:40:15 19117 akamai-onboard.py 1072  WARNING : SKIP - Activate delivery configuration on PRODUCTION
2024-10-16 17:40:15 19117 akamai-onboard.py 1087  WARNING : Updating Security Config
2024-10-16 17:41:18 19117 utility_waf.py    195   INFO    : 'One Hero Web (STG)'        id: 74391               new version: 621   existing Security Configuration
2024-10-16 17:41:24 19117 akamai-onboard.py 1098  INFO    : Successfully added ['/en/hotels/herrsqq-the-royal-senses-resort-and-spa-crete/*'] to WAF Configuration Match Target
2024-10-16 17:41:24 19117 akamai-onboard.py 1102  WARNING : SKIP - Activate Security configuration on STAGING
2024-10-16 17:41:24 19117 akamai-onboard.py 1103  WARNING : SKIP - Activate Security configuration on PRODUCTION
2024-10-16 17:41:24 19117 akamai-onboard.py 1107  WARNING : Processing Cloudlet Policy
2024-10-16 17:41:28 19117 akamai-onboard.py 1154  INFO    : Successfully read policy_matchrules.json
2024-10-16 17:41:28 19117 utility.py        2068  INFO    :    Property         58.1   path     False      contains   130     8     100%  PROPERTY_STG_UI_PR
2024-10-16 17:41:28 19117 utility.py        2068  INFO    :    Property         58.2   path     True       contains   669     19    100%  PROPERTY_STG_UI_PR
2024-10-16 17:41:28 19117 utility.py        2068  INFO    :    Property         58.3   path     True       contains   8005    172   100%  PROPERTY_STG_UI_PR
2024-10-16 17:41:28 19117 utility.py        2068  INFO    :    Property         58.4   path     True       contains   1000    21    100%  PROPERTY_STG_UI_PR
2024-10-16 17:41:28 19117 utility.py        2091  INFO    : Update criteria  58.4 contains   1059
2024-10-16 17:41:28 19117 utility.py        2102  WARNING : Number of condition for rule Property before/after: 4/4
2024-10-16 17:41:28 19117 utility.py        2110  INFO    : 1   130        8    
2024-10-16 17:41:28 19117 utility.py        2110  INFO    : 2   669        19   
2024-10-16 17:41:28 19117 utility.py        2110  INFO    : 3   8005       172  
2024-10-16 17:41:28 19117 utility.py        2110  INFO    : 4   1059       22   
2024-10-16 17:41:28 19117 akamai-onboard.py 1122  WARNING : Updating Cloudlet Policy
2024-10-16 17:41:30 19117 utility.py        2013  WARNING : cloudlet new version number: v251
2024-10-16 17:41:32 19117 utility.py        2023  WARNING : SKIP - Activate Cloudlet on PRODUCTION
2024-10-16 17:41:32 19117 akamai-onboard.py 1134  INFO    : TOTAL DURATION: 00:02:20, End Akamai CLI onboard
============================================================================
pwongcha commented 5 days ago

Need to investigate validation_errors_exist by rerun script on www.stg.hilton.com v1195

pwongcha commented 2 days ago

Possible issue: too many client ips in the property

Command akamai pm property-update --property <redact> --file update_property_response.json --note "akamai pm v1202" --propver 1202 --suppress

Output

[
    {
        "type": "https://problems.luna.akamaiapis.net/papi/v0/validation/fixed_limit_exceeded",
        "errorLocation": "#/rules",
        "detail": "There are too many client ips in this property.  Current usage is 12 out of 10 available."
    }
]

Confirmed JSON rules

12_clientIp