Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bambusa / Expired demos aren't deleted #82

Open
chillu opened this issue Sep 19, 2019 · 0 comments
Open

Bambusa / Expired demos aren't deleted #82

chillu opened this issue Sep 19, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@chillu
Copy link
Member

chillu commented Sep 19, 2019

Moved from https://github.com/silverstripeltd/silverstripe.com/issues/126 to simplify backlog planning

TL;DR; looks like we don't trigger platform API

Here's another demo that didn't get deleted:

Description

I've received the email (as expected):

Your personal SilverStripe demo https://serge04-sscom.demo.silverstripe.cc
will expire after 13 September 2019. Simply login into your demo before
it expires to extend it by 7 days.

Once expired, you will no longer be able to access the demo.
Any content within the demo will be permanently removed.

The SilverStripe team

Hovewer, today (2019-09-19) I'm still seeing it existing in the cluster.

Here's what Platform API returned to me:

http https://platform.silverstripe.com/naut/project/ssdemo/environment/prod/demo/223
HTTP/1.1 200 OK
Cache-Control: no-cache, no-store, must-revalidate
Connection: keep-alive
Content-Length: 1477
Content-Security-Policy: default-src 'none'; connect-src 'self' https://wchat.freshchat.com https://www.google-analytics.com; font-src 'self' https://use.typekit.net https://fonts.gstatic.com https://maxcdn.bootstrapcdn.com; frame-src 'self' https://silverstripe.webpush.freshchat.com https://wchat.freshchat.com; img-src 'self' data: https://p.typekit.net https://platform.slack-edge.com https://www.googletagmanager.com https://www.google-analytics.com; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://use.typekit.net https://wchat.freshchat.com https://www.googletagmanager.com https://www.google-analytics.com https://ssl.google-analytics.com; style-src 'self' 'unsafe-inline' https://wchat.freshchat.com https://use.typekit.net https://maxcdn.bootstrapcdn.com https://fonts.googleapis.com; manifest-src 'self'; base-uri 'self'; form-action 'self' https://*.platform.silverstripe.com https://*.cwp.govt.nz https://silverstripe.freshdesk.com https://slack.com; frame-ancestors 'self'
Content-Type: application/vnd.api+json
Date: Wed, 18 Sep 2019 23:22:14 GMT
Last-Modified: Wed, 18 Sep 2019 23:22:09 GMT
Referrer-Policy: same-origin
Server: nginx
Strict-Transport-Security: max-age=31536000
Vary: X-Forwarded-Protocol
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block

{
    "data": {
        "attributes": {
            "admin_password": "2ZnpcUyAQE0nxPDv",
            "admin_username": "admin",
            "date_expire_unix": 0,
            "endpoint": "https://serge04-sscom.demo.silverstripe.cc",
            "image": "silverstripe/bambusa-installer:latest",
            "name": "serge04-sscom",
            "status": "Finished"
        },
        "id": 223,
        "links": {
            "self": "https://platform.silverstripe.com/naut/project/ssdemo/environment/prod/demo/223"
        },
        "relationships": {
            "environment": {
                "data": {
                    "id": "prod",
                    "links": {
                        "self": "https://platform.silverstripe.com/naut/project/ssdemo/environment/prod"
                    },
                    "type": "environments"
                }
            },
            "snapshot": {
                "data": {
                    "id": 21718,
                    "links": {
                        "self": "https://platform.silverstripe.com/naut/project/ssdemo/snapshots/21718"
                    },
                    "meta": {
                        "url": "https://platform.silverstripe.com/naut/project/ssdemo/snapshots/21718"
                    },
                    "type": "snapshots"
                }
            }
        },
        "type": "demos"
    },
    "meta": {
        "server_time": "1568848934",
        "status_code": 200
    }
}

When I manually triggered the DELETE for the demo it worked just fine.
Now I can see the demo pod is actually removed from the cluster and the platform API returns 404 for it. Meaning - the problem is on the ss.com side.

I've had a look around Raygun logs - nothing reported in there. Looks like tho job didn't trigger the deletion.

@chillu chillu added the bug Something isn't working label Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant