diff --git a/internal/namespaces/instance/v1/custom_server.go b/internal/namespaces/instance/v1/custom_server.go index 2bd1bef85f..69b70dda29 100644 --- a/internal/namespaces/instance/v1/custom_server.go +++ b/internal/namespaces/instance/v1/custom_server.go @@ -831,9 +831,17 @@ type customTerminateServerRequest struct { Zone scw.Zone ServerID string WithIP bool - WithBlock bool + WithBlock withBlock } +type withBlock string + +const ( + withBlockPrompt = withBlock("prompt") + withBlockTrue = withBlock("true") + withBlockFalse = withBlock("false") +) + func serverTerminateCommand() *core.Command { return &core.Command{ Short: `Terminate server`, @@ -855,7 +863,12 @@ func serverTerminateCommand() *core.Command { { Name: "with-block", Short: "Delete the Block Storage volumes attached to the server", - Default: core.DefaultValueSetter("true"), + Default: core.DefaultValueSetter("prompt"), + EnumValues: []string{ + string(withBlockPrompt), + string(withBlockTrue), + string(withBlockFalse), + }, }, core.ZoneArgSpec(), }, @@ -897,11 +910,15 @@ func serverTerminateCommand() *core.Command { return nil, err } - if !terminateServerArgs.WithBlock { - // detach block storage volumes before terminating the isntance to preserve them + preserveBlockVolumes, err := shouldPreserveBlockVolumes(server, terminateServerArgs.WithBlock) + if err != nil { + return nil, err + } + + if preserveBlockVolumes { + // detach block storage volumes before terminating the instance to preserve them var multiErr error for _, volume := range server.Server.Volumes { - if volume.VolumeType != instance.VolumeTypeBSSD { continue } @@ -947,3 +964,27 @@ func serverTerminateCommand() *core.Command { }, } } + +func shouldPreserveBlockVolumes(server *instance.GetServerResponse, terminateWithBlock withBlock) (bool, error) { + switch terminateWithBlock { + case withBlockTrue: + return false, nil + case withBlockFalse: + return true, nil + case withBlockPrompt: + for _, volume := range server.Server.Volumes { + if volume.VolumeType != instance.VolumeTypeBSSD { + continue + } + + deleteVolumes, err := interactive.PromptBoolWithConfig(&interactive.PromptBoolConfig{ + Prompt: "Do you want to also delete the block volumes attached to this instance ?", + DefaultValue: false, + }) + return !deleteVolumes, err + } + return false, nil + default: + return false, fmt.Errorf("unsupported with-block value %v", terminateWithBlock) + } +} diff --git a/internal/namespaces/instance/v1/testdata/test-server-delete-only-block-volumes.cassette.yaml b/internal/namespaces/instance/v1/testdata/test-server-delete-only-block-volumes.cassette.yaml index 4a552748b4..9517dde025 100644 --- a/internal/namespaces/instance/v1/testdata/test-server-delete-only-block-volumes.cassette.yaml +++ b/internal/namespaces/instance/v1/testdata/test-server-delete-only-block-volumes.cassette.yaml @@ -6,7 +6,7 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.14; linux; amd64) cli-e2e-test + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test url: https://api.scaleway.com/marketplace/v1/images?page=1 method: GET response: @@ -26,8 +26,9 @@ interactions: "par1"}, {"compatible_commercial_types": ["ARM64-8GB", "ARM64-2GB", "ARM64-32GB", "ARM64-128GB", "ARM64-4GB", "ARM64-64GB", "ARM64-16GB"], "arch": "arm64", "id": "b4bdbee1-e1f1-4436-8de4-bdb1b6ba4803", "zone": "par1"}, {"compatible_commercial_types": - ["X64-120GB", "C2M", "START1-S", "VC1S", "START1-XS", "C2L", "X64-15GB", "C2S", - "X64-30GB", "START1-L", "START1-M", "X64-60GB", "VC1L", "VC1M"], "arch": "x86_64", + ["GP1-XS", "DEV1-M", "DEV1-L", "START1-XS", "DEV1-S", "GP1-XL", "C2S", "X64-15GB", + "DEV1-XL", "C2L", "C2M", "VC1S", "START1-S", "X64-30GB", "GP1-L", "GP1-M", "GP1-S", + "START1-L", "START1-M", "VC1L", "VC1M", "X64-120GB", "X64-60GB"], "arch": "x86_64", "id": "9444d178-2285-4842-ac35-5e86eda8da91", "zone": "ams1"}, {"compatible_commercial_types": [], "arch": "arm", "id": "a5076337-734f-4b99-95ed-9a5bc73b9b09", "zone": "ams1"}, {"compatible_commercial_types": ["ARM64-4GB", "ARM64-128GB", "ARM64-16GB", "ARM64-32GB", @@ -577,12 +578,30 @@ interactions: "zone": "par1"}], "name": "2019-03-25T13:04:01.408435"}], "current_public_version": "53d2e4fb-20df-4ba9-8d65-29256f2be480", "label": "torrents", "organization": {"id": "6d6b64e5-6bad-4cc6-b7ef-2030884c3e11", "name": "mtouron@ocs.online.net"}}, - {"valid_until": null, "description": "Ubuntu Bionic for Machine Learning 10.1", - "creation_date": "2019-03-06T17:24:56.871317+00:00", "logo": "https://marketplace-logos.s3.nl-ams.scw.cloud/ubuntu.png", - "id": "e0808ca5-1e0a-4070-8aff-d2e49e9600c1", "categories": ["Machine Learning"], - "name": "Ubuntu Bionic ML 10.1", "modification_date": "2020-02-17T12:56:29.417410+00:00", - "versions": [{"creation_date": "2020-02-17T12:50:10.150196+00:00", "modification_date": - "2020-02-17T12:50:10.150196+00:00", "id": "50a39102-80cf-4c9b-aed8-919e745df9d5", + {"valid_until": null, "description": "Ubuntu is the ideal distribution for scale-out + computing, Ubuntu Server helps you make the most of your infrastructure.", "creation_date": + "2020-02-17T15:50:48.980694+00:00", "logo": "https://marketplace-logos.s3.nl-ams.scw.cloud/ubuntu.png", + "id": "3f1b9623-71ba-4fe3-b994-27fcdaa850ba", "categories": ["distribution"], + "name": "Ubuntu 20.04 Focal Fossa", "modification_date": "2020-04-28T15:23:46.153257+00:00", + "versions": [{"creation_date": "2020-04-28T15:08:03.947699+00:00", "modification_date": + "2020-04-28T15:08:03.947699+00:00", "id": "61cf23b2-447a-48d4-9cfe-02b965fa651b", + "local_images": [{"compatible_commercial_types": ["VC1S", "VC1M", "VC1L", "START1-XS", + "START1-S", "START1-M", "START1-L", "X64-15GB", "X64-30GB", "X64-60GB", "X64-120GB", + "GP1-XS", "GP1-S", "GP1-M", "GP1-L", "GP1-XL", "DEV1-S", "DEV1-M", "DEV1-L", + "DEV1-XL"], "arch": "x86_64", "id": "03e798ba-0c65-485b-82f1-828588f8da58", + "zone": "ams1"}, {"compatible_commercial_types": ["VC1S", "VC1M", "VC1L", "START1-XS", + "START1-S", "START1-M", "START1-L", "X64-15GB", "X64-30GB", "X64-60GB", "X64-120GB", + "GP1-XS", "GP1-S", "GP1-M", "GP1-L", "GP1-XL", "DEV1-S", "DEV1-M", "DEV1-L", + "DEV1-XL"], "arch": "x86_64", "id": "ce6c9d21-0ff3-4355-b385-c930c9f22d9d", + "zone": "par1"}], "name": "2020-04-28T15:08:03.913957+00:00"}], "current_public_version": + "61cf23b2-447a-48d4-9cfe-02b965fa651b", "label": "ubuntu_focal", "organization": + {"id": "51b656e3-4865-41e8-adbc-0c45bdd780db", "name": "Instances User Resources + Build System"}}, {"valid_until": null, "description": "Ubuntu Bionic for Machine + Learning 10.1", "creation_date": "2019-03-06T17:24:56.871317+00:00", "logo": + "https://marketplace-logos.s3.nl-ams.scw.cloud/ubuntu.png", "id": "e0808ca5-1e0a-4070-8aff-d2e49e9600c1", + "categories": ["Machine Learning"], "name": "Ubuntu Bionic ML 10.1", "modification_date": + "2020-02-17T12:56:29.417410+00:00", "versions": [{"creation_date": "2020-02-17T12:50:10.150196+00:00", + "modification_date": "2020-02-17T12:50:10.150196+00:00", "id": "50a39102-80cf-4c9b-aed8-919e745df9d5", "local_images": [{"compatible_commercial_types": ["RENDER-S"], "arch": "x86_64", "id": "8fa4f46b-2cb2-40df-813a-727df120b9e4", "zone": "par1"}], "name": "2020-02-17T12:50:10.040529"}], "current_public_version": "50a39102-80cf-4c9b-aed8-919e745df9d5", "label": "ubuntu_bionic_ml_10.1", @@ -625,13 +644,13 @@ interactions: Cache-Control: - no-cache Content-Length: - - "52351" + - "53980" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Mar 2020 14:29:11 GMT + - Mon, 04 May 2020 16:07:48 GMT Link: - ; rel="last" Server: @@ -642,8 +661,10 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - 71450cef-d68d-48d2-8656-28ebce3b7a61 X-Total-Count: - - "30" + - "31" status: 200 OK code: 200 duration: "" @@ -652,7 +673,7 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.14; linux; amd64) cli-e2e-test + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test url: https://api.scaleway.com/instance/v1/zones/fr-par-1/images/f974feac-abae-4365-b988-8ec7d1cec10d method: GET response: @@ -679,7 +700,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Mar 2020 14:29:11 GMT + - Mon, 04 May 2020 16:07:48 GMT Server: - scaleway_api Strict-Transport-Security: @@ -688,6 +709,8 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - d1184d46-bc2f-4cba-bd31-359d8c3e52a2 status: 200 OK code: 200 duration: "" @@ -696,7 +719,7 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.14; linux; amd64) cli-e2e-test + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test url: https://api.scaleway.com/instance/v1/zones/fr-par-1/products/servers method: GET response: @@ -994,7 +1017,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Mar 2020 14:29:11 GMT + - Mon, 04 May 2020 16:07:48 GMT Link: - ; rel="last" Server: @@ -1005,38 +1028,40 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - 8fb40dcc-1880-4edf-8ae3-64a27722b524 X-Total-Count: - "32" status: 200 OK code: 200 duration: "" - request: - body: '{"organization":"a6c249e9-c32d-46e4-badb-b57528eafc4b"}' + body: '{"organization":"104ff69c-3f34-48f4-b5f0-e516e4ad526b"}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.14; linux; amd64) cli-e2e-test + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test url: https://api.scaleway.com/instance/v1/zones/fr-par-1/ips method: POST response: - body: '{"ip": {"id": "1d6722de-a1b4-4c19-874d-4627e1e0e49b", "address": "51.15.138.78", - "reverse": null, "server": null, "organization": "a6c249e9-c32d-46e4-badb-b57528eafc4b", + body: '{"ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", + "reverse": null, "server": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "zone": "fr-par-1", "tags": []}}' headers: Cache-Control: - no-cache Content-Length: - - "202" + - "203" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Mar 2020 14:29:12 GMT + - Mon, 04 May 2020 16:07:48 GMT Location: - - https://cp-par1.scaleway.com/ips/1d6722de-a1b4-4c19-874d-4627e1e0e49b + - https://cp-par1.scaleway.com/ips/65ae2546-5893-40f2-bcc2-aabee4b4dc2f Server: - scaleway_api Strict-Transport-Security: @@ -1045,23 +1070,25 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - 03911a56-d0d2-4c8d-8532-d154414ed811 status: 201 Created code: 201 duration: "" - request: - body: '{"name":"cli-srv-intelligent-euclid","commercial_type":"DEV1-S","image":"f974feac-abae-4365-b988-8ec7d1cec10d","volumes":{"1":{"name":"cli-srv-intelligent-euclid-1","size":10000000000,"volume_type":"b_ssd","organization":"a6c249e9-c32d-46e4-badb-b57528eafc4b"}},"public_ip":"1d6722de-a1b4-4c19-874d-4627e1e0e49b","organization":"a6c249e9-c32d-46e4-badb-b57528eafc4b"}' + body: '{"name":"cli-srv-cool-chaplygin","commercial_type":"DEV1-S","image":"f974feac-abae-4365-b988-8ec7d1cec10d","volumes":{"1":{"name":"cli-srv-cool-chaplygin-1","size":10000000000,"volume_type":"b_ssd","organization":"104ff69c-3f34-48f4-b5f0-e516e4ad526b"}},"public_ip":"65ae2546-5893-40f2-bcc2-aabee4b4dc2f","organization":"104ff69c-3f34-48f4-b5f0-e516e4ad526b"}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.14; linux; amd64) cli-e2e-test + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers method: POST response: - body: '{"server": {"id": "3bdf525b-6826-448c-a25f-d66a8db4d85d", "name": "cli-srv-intelligent-euclid", + body: '{"server": {"id": "d058f2cc-e5e8-46c0-9fca-b0d402051bb0", "name": "cli-srv-cool-chaplygin", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "a6c249e9-c32d-46e4-badb-b57528eafc4b", "hostname": "cli-srv-intelligent-euclid", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-cool-chaplygin", "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", @@ -1074,44 +1101,44 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "4c6ee427-d812-45cb-92a1-accf42be540b", - "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": - "l_ssd", "export_uri": null, "organization": "a6c249e9-c32d-46e4-badb-b57528eafc4b", - "server": {"id": "3bdf525b-6826-448c-a25f-d66a8db4d85d", "name": "cli-srv-intelligent-euclid"}, - "size": 20000000000, "state": "available", "creation_date": "2020-03-11T14:29:12.859260+00:00", - "modification_date": "2020-03-11T14:29:13.222018+00:00", "zone": "fr-par-1"}, - "1": {"id": "7b45d0de-b5bb-447e-a4ef-d163718995be", "name": "cli-srv-intelligent-euclid-1", - "volume_type": "b_ssd", "export_uri": null, "organization": "a6c249e9-c32d-46e4-badb-b57528eafc4b", - "server": {"id": "3bdf525b-6826-448c-a25f-d66a8db4d85d", "name": "cli-srv-intelligent-euclid"}, - "size": 10000000000, "state": "available", "creation_date": "2020-03-11T14:29:12.859260+00:00", - "modification_date": "2020-03-11T14:29:13.222047+00:00", "zone": "fr-par-1"}}, + "fr-par-1"}, "volumes": {"1": {"id": "025d2370-064c-40e5-9c3d-ba1b12d3593b", + "name": "cli-srv-cool-chaplygin-1", "volume_type": "b_ssd", "export_uri": null, + "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "server": {"id": "d058f2cc-e5e8-46c0-9fca-b0d402051bb0", + "name": "cli-srv-cool-chaplygin"}, "size": 10000000000, "state": "available", + "creation_date": "2020-05-04T16:07:48.669319+00:00", "modification_date": "2020-05-04T16:07:48.985293+00:00", + "zone": "fr-par-1"}, "0": {"id": "686d8f45-91c3-4d45-a010-7e0139ce253e", "name": + "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": + "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", + "server": {"id": "d058f2cc-e5e8-46c0-9fca-b0d402051bb0", "name": "cli-srv-cool-chaplygin"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-04T16:07:48.669319+00:00", + "modification_date": "2020-05-04T16:07:48.985321+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": "", "public_ip": - {"id": "1d6722de-a1b4-4c19-874d-4627e1e0e49b", "address": "51.15.138.78", "dynamic": + {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": false, "enable_ipv6": - false, "private_ip": null, "creation_date": "2020-03-11T14:29:12.859260+00:00", - "modification_date": "2020-03-11T14:29:13.318490+00:00", "bootscript": {"id": + false, "private_ip": null, "creation_date": "2020-05-04T16:07:48.669319+00:00", + "modification_date": "2020-05-04T16:07:48.998636+00:00", "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": - false, "zone": "fr-par-1"}, "security_group": {"id": "b40845ef-3992-4304-ace6-bd6c11fc4caa", + false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": null, "maintenances": [], "allowed_actions": - ["poweron", "backup"], "placement_group": null, "compute_cluster": null, "private_nics": - [], "zone": "fr-par-1"}}' + ["poweron", "backup"], "placement_group": null, "private_nics": [], "zone": + "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3425" + - "3381" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Mar 2020 14:29:13 GMT + - Mon, 04 May 2020 16:07:48 GMT Location: - - https://cp-par1.scaleway.com/servers/3bdf525b-6826-448c-a25f-d66a8db4d85d + - https://cp-par1.scaleway.com/servers/d058f2cc-e5e8-46c0-9fca-b0d402051bb0 Server: - scaleway_api Strict-Transport-Security: @@ -1120,6 +1147,8 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - d3d14499-6308-4e71-9906-4186daacdf9d status: 201 Created code: 201 duration: "" @@ -1128,13 +1157,13 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.14; linux; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/3bdf525b-6826-448c-a25f-d66a8db4d85d + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/d058f2cc-e5e8-46c0-9fca-b0d402051bb0 method: GET response: - body: '{"server": {"id": "3bdf525b-6826-448c-a25f-d66a8db4d85d", "name": "cli-srv-intelligent-euclid", + body: '{"server": {"id": "d058f2cc-e5e8-46c0-9fca-b0d402051bb0", "name": "cli-srv-cool-chaplygin", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "a6c249e9-c32d-46e4-badb-b57528eafc4b", "hostname": "cli-srv-intelligent-euclid", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-cool-chaplygin", "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", @@ -1147,42 +1176,42 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "4c6ee427-d812-45cb-92a1-accf42be540b", - "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": - "l_ssd", "export_uri": null, "organization": "a6c249e9-c32d-46e4-badb-b57528eafc4b", - "server": {"id": "3bdf525b-6826-448c-a25f-d66a8db4d85d", "name": "cli-srv-intelligent-euclid"}, - "size": 20000000000, "state": "available", "creation_date": "2020-03-11T14:29:12.859260+00:00", - "modification_date": "2020-03-11T14:29:13.222018+00:00", "zone": "fr-par-1"}, - "1": {"id": "7b45d0de-b5bb-447e-a4ef-d163718995be", "name": "cli-srv-intelligent-euclid-1", - "volume_type": "b_ssd", "export_uri": null, "organization": "a6c249e9-c32d-46e4-badb-b57528eafc4b", - "server": {"id": "3bdf525b-6826-448c-a25f-d66a8db4d85d", "name": "cli-srv-intelligent-euclid"}, - "size": 10000000000, "state": "available", "creation_date": "2020-03-11T14:29:12.859260+00:00", - "modification_date": "2020-03-11T14:29:13.222047+00:00", "zone": "fr-par-1"}}, + "fr-par-1"}, "volumes": {"1": {"id": "025d2370-064c-40e5-9c3d-ba1b12d3593b", + "name": "cli-srv-cool-chaplygin-1", "volume_type": "b_ssd", "export_uri": null, + "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "server": {"id": "d058f2cc-e5e8-46c0-9fca-b0d402051bb0", + "name": "cli-srv-cool-chaplygin"}, "size": 10000000000, "state": "available", + "creation_date": "2020-05-04T16:07:48.669319+00:00", "modification_date": "2020-05-04T16:07:48.985293+00:00", + "zone": "fr-par-1"}, "0": {"id": "686d8f45-91c3-4d45-a010-7e0139ce253e", "name": + "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": + "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", + "server": {"id": "d058f2cc-e5e8-46c0-9fca-b0d402051bb0", "name": "cli-srv-cool-chaplygin"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-04T16:07:48.669319+00:00", + "modification_date": "2020-05-04T16:07:48.985321+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": "", "public_ip": - {"id": "1d6722de-a1b4-4c19-874d-4627e1e0e49b", "address": "51.15.138.78", "dynamic": + {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": false, "enable_ipv6": - false, "private_ip": null, "creation_date": "2020-03-11T14:29:12.859260+00:00", - "modification_date": "2020-03-11T14:29:13.318490+00:00", "bootscript": {"id": + false, "private_ip": null, "creation_date": "2020-05-04T16:07:48.669319+00:00", + "modification_date": "2020-05-04T16:07:48.998636+00:00", "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": - false, "zone": "fr-par-1"}, "security_group": {"id": "b40845ef-3992-4304-ace6-bd6c11fc4caa", + false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": null, "maintenances": [], "allowed_actions": - ["poweron", "backup"], "placement_group": null, "compute_cluster": null, "private_nics": - [], "zone": "fr-par-1"}}' + ["poweron", "backup"], "placement_group": null, "private_nics": [], "zone": + "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3425" + - "3381" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Mar 2020 14:29:13 GMT + - Mon, 04 May 2020 16:07:49 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1191,6 +1220,8 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - 83ae11e0-5171-4df1-95ea-5d255a93e9c2 status: 200 OK code: 200 duration: "" @@ -1199,8 +1230,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.14; linux; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/3bdf525b-6826-448c-a25f-d66a8db4d85d + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/d058f2cc-e5e8-46c0-9fca-b0d402051bb0 method: DELETE response: body: "" @@ -1212,7 +1243,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Mar 2020 14:29:13 GMT + - Mon, 04 May 2020 16:07:49 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1221,6 +1252,8 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - 155e274b-13d8-4b36-bb4c-2e9bda6e3ffe status: 204 No Content code: 204 duration: "" @@ -1229,8 +1262,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.14; linux; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/ips/1d6722de-a1b4-4c19-874d-4627e1e0e49b + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/ips/65ae2546-5893-40f2-bcc2-aabee4b4dc2f method: DELETE response: body: "" @@ -1242,7 +1275,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Mar 2020 14:29:13 GMT + - Mon, 04 May 2020 16:07:49 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1251,6 +1284,8 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - 46dbbd32-8916-4a72-ab99-4b971d03144f status: 204 No Content code: 204 duration: "" @@ -1259,8 +1294,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.14; linux; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/7b45d0de-b5bb-447e-a4ef-d163718995be + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/025d2370-064c-40e5-9c3d-ba1b12d3593b method: DELETE response: body: "" @@ -1272,7 +1307,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Mar 2020 14:29:13 GMT + - Mon, 04 May 2020 16:07:49 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1281,6 +1316,8 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - 9a16a20b-c9c4-4735-a404-4cadea1ed648 status: 204 No Content code: 204 duration: "" @@ -1289,8 +1326,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.14; linux; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/4c6ee427-d812-45cb-92a1-accf42be540b + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/686d8f45-91c3-4d45-a010-7e0139ce253e method: DELETE response: body: "" @@ -1302,7 +1339,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Mar 2020 14:29:13 GMT + - Mon, 04 May 2020 16:07:49 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1311,6 +1348,8 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - 31a6a7a3-f891-4ac8-a511-7efa05b1992c status: 204 No Content code: 204 duration: "" diff --git a/internal/namespaces/instance/v1/testdata/test-server-delete-only-block-volumes.stderr.golden b/internal/namespaces/instance/v1/testdata/test-server-delete-only-block-volumes.stderr.golden index 7e97b4e087..c7f2cf819a 100644 --- a/internal/namespaces/instance/v1/testdata/test-server-delete-only-block-volumes.stderr.golden +++ b/internal/namespaces/instance/v1/testdata/test-server-delete-only-block-volumes.stderr.golden @@ -1,2 +1,2 @@ -successfully deleted ip 51.15.138.78 -successfully deleted volume cli-srv-intelligent-euclid-1 (10 GB b_ssd) +successfully deleted ip 51.158.108.20 +successfully deleted volume cli-srv-cool-chaplygin-1 (10 GB b_ssd) diff --git a/internal/namespaces/instance/v1/testdata/test-server-delete-only-local-volumes.cassette.yaml b/internal/namespaces/instance/v1/testdata/test-server-delete-only-local-volumes.cassette.yaml index f71a7f9b34..91d5d16431 100644 --- a/internal/namespaces/instance/v1/testdata/test-server-delete-only-local-volumes.cassette.yaml +++ b/internal/namespaces/instance/v1/testdata/test-server-delete-only-local-volumes.cassette.yaml @@ -6,7 +6,7 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.14; linux; amd64) cli-e2e-test + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test url: https://api.scaleway.com/marketplace/v1/images?page=1 method: GET response: @@ -26,8 +26,9 @@ interactions: "par1"}, {"compatible_commercial_types": ["ARM64-8GB", "ARM64-2GB", "ARM64-32GB", "ARM64-128GB", "ARM64-4GB", "ARM64-64GB", "ARM64-16GB"], "arch": "arm64", "id": "b4bdbee1-e1f1-4436-8de4-bdb1b6ba4803", "zone": "par1"}, {"compatible_commercial_types": - ["X64-120GB", "C2M", "START1-S", "VC1S", "START1-XS", "C2L", "X64-15GB", "C2S", - "X64-30GB", "START1-L", "START1-M", "X64-60GB", "VC1L", "VC1M"], "arch": "x86_64", + ["GP1-XS", "DEV1-M", "DEV1-L", "START1-XS", "DEV1-S", "GP1-XL", "C2S", "X64-15GB", + "DEV1-XL", "C2L", "C2M", "VC1S", "START1-S", "X64-30GB", "GP1-L", "GP1-M", "GP1-S", + "START1-L", "START1-M", "VC1L", "VC1M", "X64-120GB", "X64-60GB"], "arch": "x86_64", "id": "9444d178-2285-4842-ac35-5e86eda8da91", "zone": "ams1"}, {"compatible_commercial_types": [], "arch": "arm", "id": "a5076337-734f-4b99-95ed-9a5bc73b9b09", "zone": "ams1"}, {"compatible_commercial_types": ["ARM64-4GB", "ARM64-128GB", "ARM64-16GB", "ARM64-32GB", @@ -577,12 +578,30 @@ interactions: "zone": "par1"}], "name": "2019-03-25T13:04:01.408435"}], "current_public_version": "53d2e4fb-20df-4ba9-8d65-29256f2be480", "label": "torrents", "organization": {"id": "6d6b64e5-6bad-4cc6-b7ef-2030884c3e11", "name": "mtouron@ocs.online.net"}}, - {"valid_until": null, "description": "Ubuntu Bionic for Machine Learning 10.1", - "creation_date": "2019-03-06T17:24:56.871317+00:00", "logo": "https://marketplace-logos.s3.nl-ams.scw.cloud/ubuntu.png", - "id": "e0808ca5-1e0a-4070-8aff-d2e49e9600c1", "categories": ["Machine Learning"], - "name": "Ubuntu Bionic ML 10.1", "modification_date": "2020-02-17T12:56:29.417410+00:00", - "versions": [{"creation_date": "2020-02-17T12:50:10.150196+00:00", "modification_date": - "2020-02-17T12:50:10.150196+00:00", "id": "50a39102-80cf-4c9b-aed8-919e745df9d5", + {"valid_until": null, "description": "Ubuntu is the ideal distribution for scale-out + computing, Ubuntu Server helps you make the most of your infrastructure.", "creation_date": + "2020-02-17T15:50:48.980694+00:00", "logo": "https://marketplace-logos.s3.nl-ams.scw.cloud/ubuntu.png", + "id": "3f1b9623-71ba-4fe3-b994-27fcdaa850ba", "categories": ["distribution"], + "name": "Ubuntu 20.04 Focal Fossa", "modification_date": "2020-04-28T15:23:46.153257+00:00", + "versions": [{"creation_date": "2020-04-28T15:08:03.947699+00:00", "modification_date": + "2020-04-28T15:08:03.947699+00:00", "id": "61cf23b2-447a-48d4-9cfe-02b965fa651b", + "local_images": [{"compatible_commercial_types": ["VC1S", "VC1M", "VC1L", "START1-XS", + "START1-S", "START1-M", "START1-L", "X64-15GB", "X64-30GB", "X64-60GB", "X64-120GB", + "GP1-XS", "GP1-S", "GP1-M", "GP1-L", "GP1-XL", "DEV1-S", "DEV1-M", "DEV1-L", + "DEV1-XL"], "arch": "x86_64", "id": "03e798ba-0c65-485b-82f1-828588f8da58", + "zone": "ams1"}, {"compatible_commercial_types": ["VC1S", "VC1M", "VC1L", "START1-XS", + "START1-S", "START1-M", "START1-L", "X64-15GB", "X64-30GB", "X64-60GB", "X64-120GB", + "GP1-XS", "GP1-S", "GP1-M", "GP1-L", "GP1-XL", "DEV1-S", "DEV1-M", "DEV1-L", + "DEV1-XL"], "arch": "x86_64", "id": "ce6c9d21-0ff3-4355-b385-c930c9f22d9d", + "zone": "par1"}], "name": "2020-04-28T15:08:03.913957+00:00"}], "current_public_version": + "61cf23b2-447a-48d4-9cfe-02b965fa651b", "label": "ubuntu_focal", "organization": + {"id": "51b656e3-4865-41e8-adbc-0c45bdd780db", "name": "Instances User Resources + Build System"}}, {"valid_until": null, "description": "Ubuntu Bionic for Machine + Learning 10.1", "creation_date": "2019-03-06T17:24:56.871317+00:00", "logo": + "https://marketplace-logos.s3.nl-ams.scw.cloud/ubuntu.png", "id": "e0808ca5-1e0a-4070-8aff-d2e49e9600c1", + "categories": ["Machine Learning"], "name": "Ubuntu Bionic ML 10.1", "modification_date": + "2020-02-17T12:56:29.417410+00:00", "versions": [{"creation_date": "2020-02-17T12:50:10.150196+00:00", + "modification_date": "2020-02-17T12:50:10.150196+00:00", "id": "50a39102-80cf-4c9b-aed8-919e745df9d5", "local_images": [{"compatible_commercial_types": ["RENDER-S"], "arch": "x86_64", "id": "8fa4f46b-2cb2-40df-813a-727df120b9e4", "zone": "par1"}], "name": "2020-02-17T12:50:10.040529"}], "current_public_version": "50a39102-80cf-4c9b-aed8-919e745df9d5", "label": "ubuntu_bionic_ml_10.1", @@ -625,13 +644,13 @@ interactions: Cache-Control: - no-cache Content-Length: - - "52351" + - "53980" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Mar 2020 14:29:21 GMT + - Mon, 04 May 2020 16:07:49 GMT Link: - ; rel="last" Server: @@ -642,8 +661,10 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - 5252bdd9-0963-4d99-a254-511508b03aaa X-Total-Count: - - "30" + - "31" status: 200 OK code: 200 duration: "" @@ -652,7 +673,7 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.14; linux; amd64) cli-e2e-test + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test url: https://api.scaleway.com/instance/v1/zones/fr-par-1/images/f974feac-abae-4365-b988-8ec7d1cec10d method: GET response: @@ -679,7 +700,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Mar 2020 14:29:21 GMT + - Mon, 04 May 2020 16:07:50 GMT Server: - scaleway_api Strict-Transport-Security: @@ -688,6 +709,8 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - 4d348e21-7593-4b3d-b859-3499b2ddc7a6 status: 200 OK code: 200 duration: "" @@ -696,7 +719,7 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.14; linux; amd64) cli-e2e-test + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test url: https://api.scaleway.com/instance/v1/zones/fr-par-1/products/servers method: GET response: @@ -994,7 +1017,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Mar 2020 14:29:21 GMT + - Mon, 04 May 2020 16:07:50 GMT Link: - ; rel="last" Server: @@ -1005,38 +1028,40 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - 341eb32c-7df0-4c5f-9eb1-15301fa8b215 X-Total-Count: - "32" status: 200 OK code: 200 duration: "" - request: - body: '{"organization":"a6c249e9-c32d-46e4-badb-b57528eafc4b"}' + body: '{"organization":"104ff69c-3f34-48f4-b5f0-e516e4ad526b"}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.14; linux; amd64) cli-e2e-test + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test url: https://api.scaleway.com/instance/v1/zones/fr-par-1/ips method: POST response: - body: '{"ip": {"id": "1d6722de-a1b4-4c19-874d-4627e1e0e49b", "address": "51.15.138.78", - "reverse": null, "server": null, "organization": "a6c249e9-c32d-46e4-badb-b57528eafc4b", + body: '{"ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", + "reverse": null, "server": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "zone": "fr-par-1", "tags": []}}' headers: Cache-Control: - no-cache Content-Length: - - "202" + - "203" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Mar 2020 14:29:21 GMT + - Mon, 04 May 2020 16:07:50 GMT Location: - - https://cp-par1.scaleway.com/ips/1d6722de-a1b4-4c19-874d-4627e1e0e49b + - https://cp-par1.scaleway.com/ips/65ae2546-5893-40f2-bcc2-aabee4b4dc2f Server: - scaleway_api Strict-Transport-Security: @@ -1045,23 +1070,25 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - da24d0ff-1c79-4825-853e-25d08f429d96 status: 201 Created code: 201 duration: "" - request: - body: '{"name":"cli-srv-hopeful-niel","commercial_type":"DEV1-S","image":"f974feac-abae-4365-b988-8ec7d1cec10d","volumes":{"1":{"name":"cli-srv-hopeful-niel-1","size":10000000000,"volume_type":"b_ssd","organization":"a6c249e9-c32d-46e4-badb-b57528eafc4b"}},"public_ip":"1d6722de-a1b4-4c19-874d-4627e1e0e49b","organization":"a6c249e9-c32d-46e4-badb-b57528eafc4b"}' + body: '{"name":"cli-srv-elastic-minsky","commercial_type":"DEV1-S","image":"f974feac-abae-4365-b988-8ec7d1cec10d","volumes":{"1":{"name":"cli-srv-elastic-minsky-1","size":10000000000,"volume_type":"b_ssd","organization":"104ff69c-3f34-48f4-b5f0-e516e4ad526b"}},"public_ip":"65ae2546-5893-40f2-bcc2-aabee4b4dc2f","organization":"104ff69c-3f34-48f4-b5f0-e516e4ad526b"}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.14; linux; amd64) cli-e2e-test + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers method: POST response: - body: '{"server": {"id": "3fdfbe7f-3184-48e6-b2ab-46c2db735bd3", "name": "cli-srv-hopeful-niel", + body: '{"server": {"id": "a03d7f3a-7b46-4435-83b3-ad293a927548", "name": "cli-srv-elastic-minsky", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "a6c249e9-c32d-46e4-badb-b57528eafc4b", "hostname": "cli-srv-hopeful-niel", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-elastic-minsky", "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", @@ -1074,44 +1101,44 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "0b48d956-bed3-4167-aee6-308642ea0451", - "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": - "l_ssd", "export_uri": null, "organization": "a6c249e9-c32d-46e4-badb-b57528eafc4b", - "server": {"id": "3fdfbe7f-3184-48e6-b2ab-46c2db735bd3", "name": "cli-srv-hopeful-niel"}, - "size": 20000000000, "state": "available", "creation_date": "2020-03-11T14:29:22.281880+00:00", - "modification_date": "2020-03-11T14:29:22.598983+00:00", "zone": "fr-par-1"}, - "1": {"id": "b38d5c2d-cf93-4cfc-a477-f5505d756e72", "name": "cli-srv-hopeful-niel-1", - "volume_type": "b_ssd", "export_uri": null, "organization": "a6c249e9-c32d-46e4-badb-b57528eafc4b", - "server": {"id": "3fdfbe7f-3184-48e6-b2ab-46c2db735bd3", "name": "cli-srv-hopeful-niel"}, - "size": 10000000000, "state": "available", "creation_date": "2020-03-11T14:29:22.281880+00:00", - "modification_date": "2020-03-11T14:29:22.599010+00:00", "zone": "fr-par-1"}}, + "fr-par-1"}, "volumes": {"1": {"id": "981b3431-69ea-4f32-a477-1fe208d930c4", + "name": "cli-srv-elastic-minsky-1", "volume_type": "b_ssd", "export_uri": null, + "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "server": {"id": "a03d7f3a-7b46-4435-83b3-ad293a927548", + "name": "cli-srv-elastic-minsky"}, "size": 10000000000, "state": "available", + "creation_date": "2020-05-04T16:07:50.591881+00:00", "modification_date": "2020-05-04T16:07:50.953096+00:00", + "zone": "fr-par-1"}, "0": {"id": "9da49996-4ae9-4aab-a0ff-53e52fe1d327", "name": + "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": + "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", + "server": {"id": "a03d7f3a-7b46-4435-83b3-ad293a927548", "name": "cli-srv-elastic-minsky"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-04T16:07:50.591881+00:00", + "modification_date": "2020-05-04T16:07:50.953125+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": "", "public_ip": - {"id": "1d6722de-a1b4-4c19-874d-4627e1e0e49b", "address": "51.15.138.78", "dynamic": + {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": false, "enable_ipv6": - false, "private_ip": null, "creation_date": "2020-03-11T14:29:22.281880+00:00", - "modification_date": "2020-03-11T14:29:22.679951+00:00", "bootscript": {"id": + false, "private_ip": null, "creation_date": "2020-05-04T16:07:50.591881+00:00", + "modification_date": "2020-05-04T16:07:50.967054+00:00", "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": - false, "zone": "fr-par-1"}, "security_group": {"id": "b40845ef-3992-4304-ace6-bd6c11fc4caa", + false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": null, "maintenances": [], "allowed_actions": - ["poweron", "backup"], "placement_group": null, "compute_cluster": null, "private_nics": - [], "zone": "fr-par-1"}}' + ["poweron", "backup"], "placement_group": null, "private_nics": [], "zone": + "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3395" + - "3381" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Mar 2020 14:29:22 GMT + - Mon, 04 May 2020 16:07:50 GMT Location: - - https://cp-par1.scaleway.com/servers/3fdfbe7f-3184-48e6-b2ab-46c2db735bd3 + - https://cp-par1.scaleway.com/servers/a03d7f3a-7b46-4435-83b3-ad293a927548 Server: - scaleway_api Strict-Transport-Security: @@ -1120,6 +1147,8 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - f3cfcee9-07b8-4b53-9b70-43236157493c status: 201 Created code: 201 duration: "" @@ -1128,13 +1157,13 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.14; linux; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/3fdfbe7f-3184-48e6-b2ab-46c2db735bd3 + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/a03d7f3a-7b46-4435-83b3-ad293a927548 method: GET response: - body: '{"server": {"id": "3fdfbe7f-3184-48e6-b2ab-46c2db735bd3", "name": "cli-srv-hopeful-niel", + body: '{"server": {"id": "a03d7f3a-7b46-4435-83b3-ad293a927548", "name": "cli-srv-elastic-minsky", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "a6c249e9-c32d-46e4-badb-b57528eafc4b", "hostname": "cli-srv-hopeful-niel", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-elastic-minsky", "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", @@ -1147,42 +1176,42 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "0b48d956-bed3-4167-aee6-308642ea0451", - "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": - "l_ssd", "export_uri": null, "organization": "a6c249e9-c32d-46e4-badb-b57528eafc4b", - "server": {"id": "3fdfbe7f-3184-48e6-b2ab-46c2db735bd3", "name": "cli-srv-hopeful-niel"}, - "size": 20000000000, "state": "available", "creation_date": "2020-03-11T14:29:22.281880+00:00", - "modification_date": "2020-03-11T14:29:22.598983+00:00", "zone": "fr-par-1"}, - "1": {"id": "b38d5c2d-cf93-4cfc-a477-f5505d756e72", "name": "cli-srv-hopeful-niel-1", - "volume_type": "b_ssd", "export_uri": null, "organization": "a6c249e9-c32d-46e4-badb-b57528eafc4b", - "server": {"id": "3fdfbe7f-3184-48e6-b2ab-46c2db735bd3", "name": "cli-srv-hopeful-niel"}, - "size": 10000000000, "state": "available", "creation_date": "2020-03-11T14:29:22.281880+00:00", - "modification_date": "2020-03-11T14:29:22.599010+00:00", "zone": "fr-par-1"}}, + "fr-par-1"}, "volumes": {"1": {"id": "981b3431-69ea-4f32-a477-1fe208d930c4", + "name": "cli-srv-elastic-minsky-1", "volume_type": "b_ssd", "export_uri": null, + "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "server": {"id": "a03d7f3a-7b46-4435-83b3-ad293a927548", + "name": "cli-srv-elastic-minsky"}, "size": 10000000000, "state": "available", + "creation_date": "2020-05-04T16:07:50.591881+00:00", "modification_date": "2020-05-04T16:07:50.953096+00:00", + "zone": "fr-par-1"}, "0": {"id": "9da49996-4ae9-4aab-a0ff-53e52fe1d327", "name": + "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": + "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", + "server": {"id": "a03d7f3a-7b46-4435-83b3-ad293a927548", "name": "cli-srv-elastic-minsky"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-04T16:07:50.591881+00:00", + "modification_date": "2020-05-04T16:07:50.953125+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": "", "public_ip": - {"id": "1d6722de-a1b4-4c19-874d-4627e1e0e49b", "address": "51.15.138.78", "dynamic": + {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": false, "enable_ipv6": - false, "private_ip": null, "creation_date": "2020-03-11T14:29:22.281880+00:00", - "modification_date": "2020-03-11T14:29:22.679951+00:00", "bootscript": {"id": + false, "private_ip": null, "creation_date": "2020-05-04T16:07:50.591881+00:00", + "modification_date": "2020-05-04T16:07:50.967054+00:00", "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": - false, "zone": "fr-par-1"}, "security_group": {"id": "b40845ef-3992-4304-ace6-bd6c11fc4caa", + false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": null, "maintenances": [], "allowed_actions": - ["poweron", "backup"], "placement_group": null, "compute_cluster": null, "private_nics": - [], "zone": "fr-par-1"}}' + ["poweron", "backup"], "placement_group": null, "private_nics": [], "zone": + "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3395" + - "3381" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 11 Mar 2020 14:29:22 GMT + - Mon, 04 May 2020 16:07:51 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1191,6 +1220,8 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - c4a4c917-5a67-4246-a6b6-a68fcbd80568 status: 200 OK code: 200 duration: "" @@ -1199,8 +1230,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.14; linux; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/3fdfbe7f-3184-48e6-b2ab-46c2db735bd3 + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/a03d7f3a-7b46-4435-83b3-ad293a927548 method: DELETE response: body: "" @@ -1212,7 +1243,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Mar 2020 14:29:22 GMT + - Mon, 04 May 2020 16:07:51 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1221,6 +1252,8 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - a719c158-0154-4f22-9800-fd2d3bd385de status: 204 No Content code: 204 duration: "" @@ -1229,8 +1262,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.14; linux; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/ips/1d6722de-a1b4-4c19-874d-4627e1e0e49b + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/ips/65ae2546-5893-40f2-bcc2-aabee4b4dc2f method: DELETE response: body: "" @@ -1242,7 +1275,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Mar 2020 14:29:22 GMT + - Mon, 04 May 2020 16:07:51 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1251,6 +1284,8 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - e7546fbf-a811-45a2-afaa-a17cd9a52cdc status: 204 No Content code: 204 duration: "" @@ -1259,8 +1294,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.14; linux; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/0b48d956-bed3-4167-aee6-308642ea0451 + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/9da49996-4ae9-4aab-a0ff-53e52fe1d327 method: DELETE response: body: "" @@ -1272,7 +1307,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Mar 2020 14:29:22 GMT + - Mon, 04 May 2020 16:07:51 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1281,6 +1316,8 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - 34e96e2c-e16b-41bd-8b15-6d7063409ae9 status: 204 No Content code: 204 duration: "" @@ -1289,8 +1326,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.14; linux; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/b38d5c2d-cf93-4cfc-a477-f5505d756e72 + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/981b3431-69ea-4f32-a477-1fe208d930c4 method: DELETE response: body: "" @@ -1302,7 +1339,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 11 Mar 2020 14:29:23 GMT + - Mon, 04 May 2020 16:07:51 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1311,6 +1348,8 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - 49a89c74-f696-437f-8792-ff027db30c9c status: 204 No Content code: 204 duration: "" diff --git a/internal/namespaces/instance/v1/testdata/test-server-delete-only-local-volumes.stderr.golden b/internal/namespaces/instance/v1/testdata/test-server-delete-only-local-volumes.stderr.golden index 5afac8b966..fb4ba63442 100644 --- a/internal/namespaces/instance/v1/testdata/test-server-delete-only-local-volumes.stderr.golden +++ b/internal/namespaces/instance/v1/testdata/test-server-delete-only-local-volumes.stderr.golden @@ -1,2 +1,2 @@ -successfully deleted ip 51.15.138.78 +successfully deleted ip 51.158.108.20 successfully deleted volume snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13 (20 GB l_ssd) diff --git a/internal/namespaces/instance/v1/testdata/test-server-delete-with-all-volumes.cassette.yaml b/internal/namespaces/instance/v1/testdata/test-server-delete-with-all-volumes.cassette.yaml index 5856e6adbe..2190545b20 100644 --- a/internal/namespaces/instance/v1/testdata/test-server-delete-with-all-volumes.cassette.yaml +++ b/internal/namespaces/instance/v1/testdata/test-server-delete-with-all-volumes.cassette.yaml @@ -6,7 +6,7 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.13.7; darwin; amd64) cli-e2e-test + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test url: https://api.scaleway.com/marketplace/v1/images?page=1 method: GET response: @@ -26,8 +26,9 @@ interactions: "par1"}, {"compatible_commercial_types": ["ARM64-8GB", "ARM64-2GB", "ARM64-32GB", "ARM64-128GB", "ARM64-4GB", "ARM64-64GB", "ARM64-16GB"], "arch": "arm64", "id": "b4bdbee1-e1f1-4436-8de4-bdb1b6ba4803", "zone": "par1"}, {"compatible_commercial_types": - ["X64-120GB", "C2M", "START1-S", "VC1S", "START1-XS", "C2L", "X64-15GB", "C2S", - "X64-30GB", "START1-L", "START1-M", "X64-60GB", "VC1L", "VC1M"], "arch": "x86_64", + ["GP1-XS", "DEV1-M", "DEV1-L", "START1-XS", "DEV1-S", "GP1-XL", "C2S", "X64-15GB", + "DEV1-XL", "C2L", "C2M", "VC1S", "START1-S", "X64-30GB", "GP1-L", "GP1-M", "GP1-S", + "START1-L", "START1-M", "VC1L", "VC1M", "X64-120GB", "X64-60GB"], "arch": "x86_64", "id": "9444d178-2285-4842-ac35-5e86eda8da91", "zone": "ams1"}, {"compatible_commercial_types": [], "arch": "arm", "id": "a5076337-734f-4b99-95ed-9a5bc73b9b09", "zone": "ams1"}, {"compatible_commercial_types": ["ARM64-4GB", "ARM64-128GB", "ARM64-16GB", "ARM64-32GB", @@ -577,12 +578,30 @@ interactions: "zone": "par1"}], "name": "2019-03-25T13:04:01.408435"}], "current_public_version": "53d2e4fb-20df-4ba9-8d65-29256f2be480", "label": "torrents", "organization": {"id": "6d6b64e5-6bad-4cc6-b7ef-2030884c3e11", "name": "mtouron@ocs.online.net"}}, - {"valid_until": null, "description": "Ubuntu Bionic for Machine Learning 10.1", - "creation_date": "2019-03-06T17:24:56.871317+00:00", "logo": "https://marketplace-logos.s3.nl-ams.scw.cloud/ubuntu.png", - "id": "e0808ca5-1e0a-4070-8aff-d2e49e9600c1", "categories": ["Machine Learning"], - "name": "Ubuntu Bionic ML 10.1", "modification_date": "2020-02-17T12:56:29.417410+00:00", - "versions": [{"creation_date": "2020-02-17T12:50:10.150196+00:00", "modification_date": - "2020-02-17T12:50:10.150196+00:00", "id": "50a39102-80cf-4c9b-aed8-919e745df9d5", + {"valid_until": null, "description": "Ubuntu is the ideal distribution for scale-out + computing, Ubuntu Server helps you make the most of your infrastructure.", "creation_date": + "2020-02-17T15:50:48.980694+00:00", "logo": "https://marketplace-logos.s3.nl-ams.scw.cloud/ubuntu.png", + "id": "3f1b9623-71ba-4fe3-b994-27fcdaa850ba", "categories": ["distribution"], + "name": "Ubuntu 20.04 Focal Fossa", "modification_date": "2020-04-28T15:23:46.153257+00:00", + "versions": [{"creation_date": "2020-04-28T15:08:03.947699+00:00", "modification_date": + "2020-04-28T15:08:03.947699+00:00", "id": "61cf23b2-447a-48d4-9cfe-02b965fa651b", + "local_images": [{"compatible_commercial_types": ["VC1S", "VC1M", "VC1L", "START1-XS", + "START1-S", "START1-M", "START1-L", "X64-15GB", "X64-30GB", "X64-60GB", "X64-120GB", + "GP1-XS", "GP1-S", "GP1-M", "GP1-L", "GP1-XL", "DEV1-S", "DEV1-M", "DEV1-L", + "DEV1-XL"], "arch": "x86_64", "id": "03e798ba-0c65-485b-82f1-828588f8da58", + "zone": "ams1"}, {"compatible_commercial_types": ["VC1S", "VC1M", "VC1L", "START1-XS", + "START1-S", "START1-M", "START1-L", "X64-15GB", "X64-30GB", "X64-60GB", "X64-120GB", + "GP1-XS", "GP1-S", "GP1-M", "GP1-L", "GP1-XL", "DEV1-S", "DEV1-M", "DEV1-L", + "DEV1-XL"], "arch": "x86_64", "id": "ce6c9d21-0ff3-4355-b385-c930c9f22d9d", + "zone": "par1"}], "name": "2020-04-28T15:08:03.913957+00:00"}], "current_public_version": + "61cf23b2-447a-48d4-9cfe-02b965fa651b", "label": "ubuntu_focal", "organization": + {"id": "51b656e3-4865-41e8-adbc-0c45bdd780db", "name": "Instances User Resources + Build System"}}, {"valid_until": null, "description": "Ubuntu Bionic for Machine + Learning 10.1", "creation_date": "2019-03-06T17:24:56.871317+00:00", "logo": + "https://marketplace-logos.s3.nl-ams.scw.cloud/ubuntu.png", "id": "e0808ca5-1e0a-4070-8aff-d2e49e9600c1", + "categories": ["Machine Learning"], "name": "Ubuntu Bionic ML 10.1", "modification_date": + "2020-02-17T12:56:29.417410+00:00", "versions": [{"creation_date": "2020-02-17T12:50:10.150196+00:00", + "modification_date": "2020-02-17T12:50:10.150196+00:00", "id": "50a39102-80cf-4c9b-aed8-919e745df9d5", "local_images": [{"compatible_commercial_types": ["RENDER-S"], "arch": "x86_64", "id": "8fa4f46b-2cb2-40df-813a-727df120b9e4", "zone": "par1"}], "name": "2020-02-17T12:50:10.040529"}], "current_public_version": "50a39102-80cf-4c9b-aed8-919e745df9d5", "label": "ubuntu_bionic_ml_10.1", @@ -625,13 +644,13 @@ interactions: Cache-Control: - no-cache Content-Length: - - "52351" + - "53980" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 26 Feb 2020 17:10:44 GMT + - Mon, 04 May 2020 16:07:45 GMT Link: - ; rel="last" Server: @@ -642,8 +661,10 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - c9dac8bd-505b-4b3e-9236-1451fa9366af X-Total-Count: - - "30" + - "31" status: 200 OK code: 200 duration: "" @@ -652,7 +673,7 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.13.7; darwin; amd64) cli-e2e-test + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test url: https://api.scaleway.com/instance/v1/zones/fr-par-1/images/f974feac-abae-4365-b988-8ec7d1cec10d method: GET response: @@ -679,7 +700,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 26 Feb 2020 17:10:44 GMT + - Mon, 04 May 2020 16:07:46 GMT Server: - scaleway_api Strict-Transport-Security: @@ -688,6 +709,8 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - d0aa72a7-7194-4d74-8449-65017683cf74 status: 200 OK code: 200 duration: "" @@ -696,7 +719,7 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.13.7; darwin; amd64) cli-e2e-test + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test url: https://api.scaleway.com/instance/v1/zones/fr-par-1/products/servers method: GET response: @@ -804,8 +827,8 @@ interactions: 15.99, "hourly_price": 0.032, "capabilities": {"boot_types": ["bootscript", "rescue", "local"], "default_boot_type": "local", "hot_snapshots_local_volume": true, "placement_groups": true, "block_storage": true, "private_network": 8}, - "network": {"ipv6_support": true, "sum_internal_bandwidth": 104857600, "sum_internet_bandwidth": - 419430400, "interfaces": [{"internal_bandwidth": 104857600, "internet_bandwidth": + "network": {"ipv6_support": true, "sum_internal_bandwidth": 419430400, "sum_internet_bandwidth": + 419430400, "interfaces": [{"internal_bandwidth": 419430400, "internet_bandwidth": null}, {"internal_bandwidth": null, "internet_bandwidth": 419430400}]}}, "DEV1-M": {"alt_names": [], "arch": "x86_64", "ncpus": 3, "ram": 4294967296, "gpu": null, "volumes_constraint": {"min_size": 40000000000, "max_size": 40000000000}, "per_volume_constraint": @@ -813,8 +836,8 @@ interactions: false, "monthly_price": 7.99, "hourly_price": 0.016, "capabilities": {"boot_types": ["bootscript", "rescue", "local"], "default_boot_type": "local", "hot_snapshots_local_volume": true, "placement_groups": true, "block_storage": true, "private_network": 8}, - "network": {"ipv6_support": true, "sum_internal_bandwidth": 104857600, "sum_internet_bandwidth": - 314572800, "interfaces": [{"internal_bandwidth": 104857600, "internet_bandwidth": + "network": {"ipv6_support": true, "sum_internal_bandwidth": 314572800, "sum_internet_bandwidth": + 314572800, "interfaces": [{"internal_bandwidth": 314572800, "internet_bandwidth": null}, {"internal_bandwidth": null, "internet_bandwidth": 314572800}]}}, "DEV1-S": {"alt_names": [], "arch": "x86_64", "ncpus": 2, "ram": 2147483648, "gpu": null, "volumes_constraint": {"min_size": 20000000000, "max_size": 20000000000}, "per_volume_constraint": @@ -822,8 +845,8 @@ interactions: false, "monthly_price": 2.99, "hourly_price": 0.006, "capabilities": {"boot_types": ["bootscript", "rescue", "local"], "default_boot_type": "local", "hot_snapshots_local_volume": true, "placement_groups": true, "block_storage": true, "private_network": 8}, - "network": {"ipv6_support": true, "sum_internal_bandwidth": 104857600, "sum_internet_bandwidth": - 209715200, "interfaces": [{"internal_bandwidth": 104857600, "internet_bandwidth": + "network": {"ipv6_support": true, "sum_internal_bandwidth": 209715200, "sum_internet_bandwidth": + 209715200, "interfaces": [{"internal_bandwidth": 209715200, "internet_bandwidth": null}, {"internal_bandwidth": null, "internet_bandwidth": 209715200}]}}, "DEV1-XL": {"alt_names": [], "arch": "x86_64", "ncpus": 4, "ram": 12884901888, "gpu": null, "volumes_constraint": {"min_size": 120000000000, "max_size": 120000000000}, @@ -832,8 +855,8 @@ interactions: {"boot_types": ["bootscript", "rescue", "local"], "default_boot_type": "local", "hot_snapshots_local_volume": true, "placement_groups": true, "block_storage": true, "private_network": 8}, "network": {"ipv6_support": true, "sum_internal_bandwidth": - 104857600, "sum_internet_bandwidth": 524288000, "interfaces": [{"internal_bandwidth": - 104857600, "internet_bandwidth": null}, {"internal_bandwidth": null, "internet_bandwidth": + 524288000, "sum_internet_bandwidth": 524288000, "interfaces": [{"internal_bandwidth": + 524288000, "internet_bandwidth": null}, {"internal_bandwidth": null, "internet_bandwidth": 524288000}]}}, "GP1-L": {"alt_names": [], "arch": "x86_64", "ncpus": 32, "ram": 137438953472, "gpu": null, "volumes_constraint": {"min_size": 600000000000, "max_size": 600000000000}, "per_volume_constraint": {"l_ssd": {"min_size": 1000000000, @@ -841,8 +864,8 @@ interactions: 0.598, "capabilities": {"boot_types": ["bootscript", "rescue", "local"], "default_boot_type": "local", "hot_snapshots_local_volume": true, "placement_groups": true, "block_storage": true, "private_network": 8}, "network": {"ipv6_support": true, "sum_internal_bandwidth": - 104857600, "sum_internet_bandwidth": 5368709120, "interfaces": [{"internal_bandwidth": - 104857600, "internet_bandwidth": null}, {"internal_bandwidth": null, "internet_bandwidth": + 5368709120, "sum_internet_bandwidth": 5368709120, "interfaces": [{"internal_bandwidth": + 5368709120, "internet_bandwidth": null}, {"internal_bandwidth": null, "internet_bandwidth": 5368709120}]}}, "GP1-M": {"alt_names": [], "arch": "x86_64", "ncpus": 16, "ram": 68719476736, "gpu": null, "volumes_constraint": {"min_size": 600000000000, "max_size": 600000000000}, "per_volume_constraint": {"l_ssd": {"min_size": 1000000000, "max_size": @@ -850,8 +873,8 @@ interactions: 0.318, "capabilities": {"boot_types": ["bootscript", "rescue", "local"], "default_boot_type": "local", "hot_snapshots_local_volume": true, "placement_groups": true, "block_storage": true, "private_network": 8}, "network": {"ipv6_support": true, "sum_internal_bandwidth": - 104857600, "sum_internet_bandwidth": 1610612736, "interfaces": [{"internal_bandwidth": - 104857600, "internet_bandwidth": null}, {"internal_bandwidth": null, "internet_bandwidth": + 1610612736, "sum_internet_bandwidth": 1610612736, "interfaces": [{"internal_bandwidth": + 1610612736, "internet_bandwidth": null}, {"internal_bandwidth": null, "internet_bandwidth": 1610612736}]}}, "GP1-S": {"alt_names": [], "arch": "x86_64", "ncpus": 8, "ram": 34359738368, "gpu": null, "volumes_constraint": {"min_size": 300000000000, "max_size": 300000000000}, "per_volume_constraint": {"l_ssd": {"min_size": 1000000000, "max_size": @@ -859,8 +882,8 @@ interactions: "capabilities": {"boot_types": ["bootscript", "rescue", "local"], "default_boot_type": "local", "hot_snapshots_local_volume": true, "placement_groups": true, "block_storage": true, "private_network": 8}, "network": {"ipv6_support": true, "sum_internal_bandwidth": - 104857600, "sum_internet_bandwidth": 838860800, "interfaces": [{"internal_bandwidth": - 104857600, "internet_bandwidth": null}, {"internal_bandwidth": null, "internet_bandwidth": + 838860800, "sum_internet_bandwidth": 838860800, "interfaces": [{"internal_bandwidth": + 838860800, "internet_bandwidth": null}, {"internal_bandwidth": null, "internet_bandwidth": 838860800}]}}, "GP1-XL": {"alt_names": [], "arch": "x86_64", "ncpus": 48, "ram": 274877906944, "gpu": null, "volumes_constraint": {"min_size": 600000000000, "max_size": 600000000000}, "per_volume_constraint": {"l_ssd": {"min_size": 1000000000, @@ -868,8 +891,8 @@ interactions: 1.138, "capabilities": {"boot_types": ["bootscript", "rescue", "local"], "default_boot_type": "local", "hot_snapshots_local_volume": true, "placement_groups": true, "block_storage": true, "private_network": 8}, "network": {"ipv6_support": true, "sum_internal_bandwidth": - 104857600, "sum_internet_bandwidth": 10737418240, "interfaces": [{"internal_bandwidth": - 104857600, "internet_bandwidth": null}, {"internal_bandwidth": null, "internet_bandwidth": + 10737418240, "sum_internet_bandwidth": 10737418240, "interfaces": [{"internal_bandwidth": + 10737418240, "internet_bandwidth": null}, {"internal_bandwidth": null, "internet_bandwidth": 10737418240}]}}, "GP1-XS": {"alt_names": [], "arch": "x86_64", "ncpus": 4, "ram": 17179869184, "gpu": null, "volumes_constraint": {"min_size": 150000000000, "max_size": 150000000000}, "per_volume_constraint": {"l_ssd": {"min_size": 1000000000, "max_size": @@ -877,8 +900,8 @@ interactions: "capabilities": {"boot_types": ["bootscript", "rescue", "local"], "default_boot_type": "local", "hot_snapshots_local_volume": true, "placement_groups": true, "block_storage": true, "private_network": 8}, "network": {"ipv6_support": true, "sum_internal_bandwidth": - 104857600, "sum_internet_bandwidth": 524288000, "interfaces": [{"internal_bandwidth": - 104857600, "internet_bandwidth": null}, {"internal_bandwidth": null, "internet_bandwidth": + 524288000, "sum_internet_bandwidth": 524288000, "interfaces": [{"internal_bandwidth": + 524288000, "internet_bandwidth": null}, {"internal_bandwidth": null, "internet_bandwidth": 524288000}]}}, "RENDER-S": {"alt_names": [], "arch": "x86_64", "ncpus": 10, "ram": 48318382080, "gpu": 1, "volumes_constraint": {"min_size": 400000000000, "max_size": 400000000000}, "per_volume_constraint": {"l_ssd": {"min_size": 1000000000, @@ -886,8 +909,8 @@ interactions: 1.0, "capabilities": {"boot_types": ["local", "rescue"], "default_boot_type": "local", "hot_snapshots_local_volume": true, "placement_groups": true, "block_storage": true, "private_network": 8}, "network": {"ipv6_support": true, "sum_internal_bandwidth": - 104857600, "sum_internet_bandwidth": 1073741824, "interfaces": [{"internal_bandwidth": - 104857600, "internet_bandwidth": null}, {"internal_bandwidth": null, "internet_bandwidth": + 1073741824, "sum_internet_bandwidth": 1073741824, "interfaces": [{"internal_bandwidth": + 1073741824, "internet_bandwidth": null}, {"internal_bandwidth": null, "internet_bandwidth": 1073741824}]}}, "START1-L": {"alt_names": [], "arch": "x86_64", "ncpus": 8, "ram": 8589934592, "gpu": null, "volumes_constraint": {"min_size": 200000000000, "max_size": 200000000000}, "per_volume_constraint": {"l_ssd": {"min_size": 1000000000, @@ -988,13 +1011,13 @@ interactions: Cache-Control: - no-cache Content-Length: - - "23699" + - "23709" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 26 Feb 2020 17:10:44 GMT + - Mon, 04 May 2020 16:07:46 GMT Link: - ; rel="last" Server: @@ -1005,38 +1028,40 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - 35b03ea5-53c7-48d2-bd43-57e0ffaafe44 X-Total-Count: - "32" status: 200 OK code: 200 duration: "" - request: - body: '{"organization":"b2593aa3-d0e8-4366-89c3-6e666abe1f6f"}' + body: '{"organization":"104ff69c-3f34-48f4-b5f0-e516e4ad526b"}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.13.7; darwin; amd64) cli-e2e-test + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test url: https://api.scaleway.com/instance/v1/zones/fr-par-1/ips method: POST response: - body: '{"ip": {"id": "e8086eeb-cca1-4fc9-ada3-1495741cdea4", "address": "163.172.146.186", - "reverse": null, "server": null, "organization": "b2593aa3-d0e8-4366-89c3-6e666abe1f6f", + body: '{"ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", + "reverse": null, "server": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "zone": "fr-par-1", "tags": []}}' headers: Cache-Control: - no-cache Content-Length: - - "205" + - "203" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 26 Feb 2020 17:10:44 GMT + - Mon, 04 May 2020 16:07:46 GMT Location: - - https://cp-par1.scaleway.com/ips/e8086eeb-cca1-4fc9-ada3-1495741cdea4 + - https://cp-par1.scaleway.com/ips/65ae2546-5893-40f2-bcc2-aabee4b4dc2f Server: - scaleway_api Strict-Transport-Security: @@ -1045,23 +1070,25 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - c0c663a4-cab7-496a-8896-fb134a686048 status: 201 Created code: 201 duration: "" - request: - body: '{"name":"cli-srv-eager-driscoll","commercial_type":"DEV1-S","image":"f974feac-abae-4365-b988-8ec7d1cec10d","volumes":{"1":{"name":"cli-srv-eager-driscoll-1","size":10000000000,"volume_type":"b_ssd","organization":"b2593aa3-d0e8-4366-89c3-6e666abe1f6f"}},"public_ip":"e8086eeb-cca1-4fc9-ada3-1495741cdea4","boot_type":"local","organization":"b2593aa3-d0e8-4366-89c3-6e666abe1f6f"}' + body: '{"name":"cli-srv-unruffled-sanderson","commercial_type":"DEV1-S","image":"f974feac-abae-4365-b988-8ec7d1cec10d","volumes":{"1":{"name":"cli-srv-unruffled-sanderson-1","size":10000000000,"volume_type":"b_ssd","organization":"104ff69c-3f34-48f4-b5f0-e516e4ad526b"}},"public_ip":"65ae2546-5893-40f2-bcc2-aabee4b4dc2f","organization":"104ff69c-3f34-48f4-b5f0-e516e4ad526b"}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.13.7; darwin; amd64) cli-e2e-test + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers method: POST response: - body: '{"server": {"id": "ea3461f1-bf07-42e5-9f01-89491122b5d7", "name": "cli-srv-eager-driscoll", + body: '{"server": {"id": "0eaefd25-350a-4616-b89b-45515acca04d", "name": "cli-srv-unruffled-sanderson", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "b2593aa3-d0e8-4366-89c3-6e666abe1f6f", "hostname": "cli-srv-eager-driscoll", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-unruffled-sanderson", "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", @@ -1074,44 +1101,44 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"1": {"id": "c79de9b1-a5ce-42d4-bbee-758e7cb87a43", - "name": "cli-srv-eager-driscoll-1", "volume_type": "b_ssd", "export_uri": null, - "organization": "b2593aa3-d0e8-4366-89c3-6e666abe1f6f", "server": {"id": "ea3461f1-bf07-42e5-9f01-89491122b5d7", - "name": "cli-srv-eager-driscoll"}, "size": 10000000000, "state": "available", - "creation_date": "2020-02-26T17:10:45.135101+00:00", "modification_date": "2020-02-26T17:10:45.414825+00:00", - "zone": "fr-par-1"}, "0": {"id": "ca596680-1b34-4ffb-ac56-8fcccf89254f", "name": - "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": - "l_ssd", "export_uri": null, "organization": "b2593aa3-d0e8-4366-89c3-6e666abe1f6f", - "server": {"id": "ea3461f1-bf07-42e5-9f01-89491122b5d7", "name": "cli-srv-eager-driscoll"}, - "size": 20000000000, "state": "available", "creation_date": "2020-02-26T17:10:45.135101+00:00", - "modification_date": "2020-02-26T17:10:45.414876+00:00", "zone": "fr-par-1"}}, + "fr-par-1"}, "volumes": {"0": {"id": "723cdf38-fbe5-4f6e-adac-5ff616691ee0", + "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": + "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", + "server": {"id": "0eaefd25-350a-4616-b89b-45515acca04d", "name": "cli-srv-unruffled-sanderson"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-04T16:07:46.666958+00:00", + "modification_date": "2020-05-04T16:07:47.042513+00:00", "zone": "fr-par-1"}, + "1": {"id": "a6fd6e8b-eeed-4efc-90b7-f17db442ab92", "name": "cli-srv-unruffled-sanderson-1", + "volume_type": "b_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", + "server": {"id": "0eaefd25-350a-4616-b89b-45515acca04d", "name": "cli-srv-unruffled-sanderson"}, + "size": 10000000000, "state": "available", "creation_date": "2020-05-04T16:07:46.666958+00:00", + "modification_date": "2020-05-04T16:07:47.042551+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": "", "public_ip": - {"id": "e8086eeb-cca1-4fc9-ada3-1495741cdea4", "address": "163.172.146.186", - "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": null, "creation_date": "2020-02-26T17:10:45.135101+00:00", - "modification_date": "2020-02-26T17:10:45.498346+00:00", "bootscript": {"id": + {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": + false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": false, "enable_ipv6": + false, "private_ip": null, "creation_date": "2020-05-04T16:07:46.666958+00:00", + "modification_date": "2020-05-04T16:07:47.064047+00:00", "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": - false, "zone": "fr-par-1"}, "security_group": {"id": "980142a3-a959-4aee-8325-91a6ba787439", + false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": null, "maintenances": [], "allowed_actions": - ["poweron", "backup"], "placement_group": null, "compute_cluster": null, "private_nics": - [], "zone": "fr-par-1"}}' + ["poweron", "backup"], "placement_group": null, "private_nics": [], "zone": + "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3408" + - "3406" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 26 Feb 2020 17:10:45 GMT + - Mon, 04 May 2020 16:07:47 GMT Location: - - https://cp-par1.scaleway.com/servers/ea3461f1-bf07-42e5-9f01-89491122b5d7 + - https://cp-par1.scaleway.com/servers/0eaefd25-350a-4616-b89b-45515acca04d Server: - scaleway_api Strict-Transport-Security: @@ -1120,6 +1147,8 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - 34de4397-107e-4fa6-89ea-e6d39ab6993f status: 201 Created code: 201 duration: "" @@ -1128,13 +1157,13 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.13.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/ea3461f1-bf07-42e5-9f01-89491122b5d7 + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/0eaefd25-350a-4616-b89b-45515acca04d method: GET response: - body: '{"server": {"id": "ea3461f1-bf07-42e5-9f01-89491122b5d7", "name": "cli-srv-eager-driscoll", + body: '{"server": {"id": "0eaefd25-350a-4616-b89b-45515acca04d", "name": "cli-srv-unruffled-sanderson", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "b2593aa3-d0e8-4366-89c3-6e666abe1f6f", "hostname": "cli-srv-eager-driscoll", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-unruffled-sanderson", "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", @@ -1147,42 +1176,42 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"1": {"id": "c79de9b1-a5ce-42d4-bbee-758e7cb87a43", - "name": "cli-srv-eager-driscoll-1", "volume_type": "b_ssd", "export_uri": null, - "organization": "b2593aa3-d0e8-4366-89c3-6e666abe1f6f", "server": {"id": "ea3461f1-bf07-42e5-9f01-89491122b5d7", - "name": "cli-srv-eager-driscoll"}, "size": 10000000000, "state": "available", - "creation_date": "2020-02-26T17:10:45.135101+00:00", "modification_date": "2020-02-26T17:10:45.414825+00:00", - "zone": "fr-par-1"}, "0": {"id": "ca596680-1b34-4ffb-ac56-8fcccf89254f", "name": - "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": - "l_ssd", "export_uri": null, "organization": "b2593aa3-d0e8-4366-89c3-6e666abe1f6f", - "server": {"id": "ea3461f1-bf07-42e5-9f01-89491122b5d7", "name": "cli-srv-eager-driscoll"}, - "size": 20000000000, "state": "available", "creation_date": "2020-02-26T17:10:45.135101+00:00", - "modification_date": "2020-02-26T17:10:45.414876+00:00", "zone": "fr-par-1"}}, + "fr-par-1"}, "volumes": {"0": {"id": "723cdf38-fbe5-4f6e-adac-5ff616691ee0", + "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": + "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", + "server": {"id": "0eaefd25-350a-4616-b89b-45515acca04d", "name": "cli-srv-unruffled-sanderson"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-04T16:07:46.666958+00:00", + "modification_date": "2020-05-04T16:07:47.042513+00:00", "zone": "fr-par-1"}, + "1": {"id": "a6fd6e8b-eeed-4efc-90b7-f17db442ab92", "name": "cli-srv-unruffled-sanderson-1", + "volume_type": "b_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", + "server": {"id": "0eaefd25-350a-4616-b89b-45515acca04d", "name": "cli-srv-unruffled-sanderson"}, + "size": 10000000000, "state": "available", "creation_date": "2020-05-04T16:07:46.666958+00:00", + "modification_date": "2020-05-04T16:07:47.042551+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": "", "public_ip": - {"id": "e8086eeb-cca1-4fc9-ada3-1495741cdea4", "address": "163.172.146.186", - "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": null, "creation_date": "2020-02-26T17:10:45.135101+00:00", - "modification_date": "2020-02-26T17:10:45.498346+00:00", "bootscript": {"id": + {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": + false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": false, "enable_ipv6": + false, "private_ip": null, "creation_date": "2020-05-04T16:07:46.666958+00:00", + "modification_date": "2020-05-04T16:07:47.064047+00:00", "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": - false, "zone": "fr-par-1"}, "security_group": {"id": "980142a3-a959-4aee-8325-91a6ba787439", + false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": null, "maintenances": [], "allowed_actions": - ["poweron", "backup"], "placement_group": null, "compute_cluster": null, "private_nics": - [], "zone": "fr-par-1"}}' + ["poweron", "backup"], "placement_group": null, "private_nics": [], "zone": + "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3408" + - "3406" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 26 Feb 2020 17:10:45 GMT + - Mon, 04 May 2020 16:07:47 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1191,6 +1220,8 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - 82c3a224-a265-44cb-bfba-a17c9a56922a status: 200 OK code: 200 duration: "" @@ -1199,8 +1230,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.13.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/ea3461f1-bf07-42e5-9f01-89491122b5d7 + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/0eaefd25-350a-4616-b89b-45515acca04d method: DELETE response: body: "" @@ -1212,7 +1243,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 26 Feb 2020 17:10:45 GMT + - Mon, 04 May 2020 16:07:47 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1221,6 +1252,8 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - 89f4672e-5631-4a8f-8ad3-4506a70866d9 status: 204 No Content code: 204 duration: "" @@ -1229,8 +1262,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.13.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/ips/e8086eeb-cca1-4fc9-ada3-1495741cdea4 + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/ips/65ae2546-5893-40f2-bcc2-aabee4b4dc2f method: DELETE response: body: "" @@ -1242,7 +1275,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 26 Feb 2020 17:10:45 GMT + - Mon, 04 May 2020 16:07:47 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1251,6 +1284,8 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - 8cfdf7a3-01a9-49ab-928a-09ff2a7dfcbe status: 204 No Content code: 204 duration: "" @@ -1259,8 +1294,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.13.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/c79de9b1-a5ce-42d4-bbee-758e7cb87a43 + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/723cdf38-fbe5-4f6e-adac-5ff616691ee0 method: DELETE response: body: "" @@ -1272,7 +1307,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 26 Feb 2020 17:10:45 GMT + - Mon, 04 May 2020 16:07:47 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1281,6 +1316,8 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - ce141f17-0954-4adf-b644-d3361f29a586 status: 204 No Content code: 204 duration: "" @@ -1289,8 +1326,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.5+dev (go1.13.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/ca596680-1b34-4ffb-ac56-8fcccf89254f + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/a6fd6e8b-eeed-4efc-90b7-f17db442ab92 method: DELETE response: body: "" @@ -1302,7 +1339,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 26 Feb 2020 17:10:45 GMT + - Mon, 04 May 2020 16:07:47 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1311,6 +1348,8 @@ interactions: - nosniff X-Frame-Options: - DENY + X-Request-Id: + - 3b7d1914-cba3-45cb-9ea9-7f07d5cd7e0c status: 204 No Content code: 204 duration: "" diff --git a/internal/namespaces/instance/v1/testdata/test-server-delete-with-all-volumes.stderr.golden b/internal/namespaces/instance/v1/testdata/test-server-delete-with-all-volumes.stderr.golden index 7df9b418f0..6eabb084bd 100644 --- a/internal/namespaces/instance/v1/testdata/test-server-delete-with-all-volumes.stderr.golden +++ b/internal/namespaces/instance/v1/testdata/test-server-delete-with-all-volumes.stderr.golden @@ -1,3 +1,3 @@ -successfully deleted ip 163.172.146.186 +successfully deleted ip 51.158.108.20 successfully deleted volume snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13 (20 GB l_ssd) -successfully deleted volume cli-srv-eager-driscoll-1 (10 GB b_ssd) +successfully deleted volume cli-srv-unruffled-sanderson-1 (10 GB b_ssd) diff --git a/internal/namespaces/instance/v1/testdata/test-server-terminate-with-ips.cassette.yaml b/internal/namespaces/instance/v1/testdata/test-server-terminate-with-ips.cassette.yaml index fcb1abdf5b..3283c191dc 100644 --- a/internal/namespaces/instance/v1/testdata/test-server-terminate-with-ips.cassette.yaml +++ b/internal/namespaces/instance/v1/testdata/test-server-terminate-with-ips.cassette.yaml @@ -650,7 +650,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:10 GMT + - Tue, 05 May 2020 07:09:08 GMT Link: - ; rel="last" Server: @@ -662,7 +662,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 24ad1b05-405f-447f-9b34-0b4c12bf2077 + - 34493695-3b8a-4a98-82ce-ac89dd4cbdea X-Total-Count: - "31" status: 200 OK @@ -700,7 +700,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:10 GMT + - Tue, 05 May 2020 07:09:08 GMT Server: - scaleway_api Strict-Transport-Security: @@ -710,7 +710,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ed8dfe00-8559-4af4-be27-9e3b536391b9 + - 067e84a2-d771-4c31-bb20-817fd1e9299d status: 200 OK code: 200 duration: "" @@ -1017,7 +1017,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:10 GMT + - Tue, 05 May 2020 07:09:08 GMT Link: - ; rel="last" Server: @@ -1029,7 +1029,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 3b692c77-5cdd-474b-870d-e9ed988dec98 + - b5750366-df3f-4cc6-a1f4-e8d42206e58b X-Total-Count: - "32" status: 200 OK @@ -1059,7 +1059,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:10 GMT + - Tue, 05 May 2020 07:09:08 GMT Location: - https://cp-par1.scaleway.com/ips/65ae2546-5893-40f2-bcc2-aabee4b4dc2f Server: @@ -1071,12 +1071,12 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 34453983-c440-40a8-b903-31178b8e572c + - 29d57fae-7a01-4f3d-a1a1-78a9628db2e9 status: 201 Created code: 201 duration: "" - request: - body: '{"name":"cli-srv-confident-montalcini","commercial_type":"DEV1-S","image":"f974feac-abae-4365-b988-8ec7d1cec10d","public_ip":"65ae2546-5893-40f2-bcc2-aabee4b4dc2f","organization":"104ff69c-3f34-48f4-b5f0-e516e4ad526b"}' + body: '{"name":"cli-srv-kind-mclean","commercial_type":"DEV1-S","image":"f974feac-abae-4365-b988-8ec7d1cec10d","public_ip":"65ae2546-5893-40f2-bcc2-aabee4b4dc2f","organization":"104ff69c-3f34-48f4-b5f0-e516e4ad526b"}' form: {} headers: Content-Type: @@ -1086,12 +1086,12 @@ interactions: url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers method: POST response: - body: '{"server": {"id": "a5eebb21-313f-4cbf-ab66-c94f56815986", "name": "cli-srv-confident-montalcini", + body: '{"server": {"id": "f7263b3e-44c8-4cba-9d45-c619cadca2ec", "name": "cli-srv-kind-mclean", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-confident-montalcini", - "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic - Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": - {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-kind-mclean", "image": + {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", + "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": + "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2019-03-05T10:13:15.974944+00:00", "modification_date": "2019-03-05T13:32:29.274319+00:00", "default_bootscript": @@ -1101,17 +1101,17 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "ac129829-dc8c-429a-8443-ff1822716d0d", + "fr-par-1"}, "volumes": {"0": {"id": "45757012-0ccc-4f14-ba50-39d57ccaaacf", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "a5eebb21-313f-4cbf-ab66-c94f56815986", "name": "cli-srv-confident-montalcini"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:45:11.122659+00:00", - "modification_date": "2020-05-04T15:45:11.389443+00:00", "zone": "fr-par-1"}}, + "server": {"id": "f7263b3e-44c8-4cba-9d45-c619cadca2ec", "name": "cli-srv-kind-mclean"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:09:09.163927+00:00", + "modification_date": "2020-05-05T07:09:09.416365+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": "", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": false, "enable_ipv6": - false, "private_ip": null, "creation_date": "2020-05-04T15:45:11.122659+00:00", - "modification_date": "2020-05-04T15:45:11.400380+00:00", "bootscript": {"id": + false, "private_ip": null, "creation_date": "2020-05-05T07:09:09.163927+00:00", + "modification_date": "2020-05-05T07:09:09.427315+00:00", "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", @@ -1125,15 +1125,15 @@ interactions: Cache-Control: - no-cache Content-Length: - - "2945" + - "2918" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:11 GMT + - Tue, 05 May 2020 07:09:09 GMT Location: - - https://cp-par1.scaleway.com/servers/a5eebb21-313f-4cbf-ab66-c94f56815986 + - https://cp-par1.scaleway.com/servers/f7263b3e-44c8-4cba-9d45-c619cadca2ec Server: - scaleway_api Strict-Transport-Security: @@ -1143,7 +1143,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f181574d-b89c-466b-bd50-a0de80555b12 + - 07777417-55b3-437f-ad1d-48e440961c09 status: 201 Created code: 201 duration: "" @@ -1155,13 +1155,13 @@ interactions: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/a5eebb21-313f-4cbf-ab66-c94f56815986/action + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/f7263b3e-44c8-4cba-9d45-c619cadca2ec/action method: POST response: body: '{"task": {"status": "pending", "description": "server_batch_poweron", "href_result": - "/servers/a5eebb21-313f-4cbf-ab66-c94f56815986", "terminated_at": null, "href_from": - "/servers/a5eebb21-313f-4cbf-ab66-c94f56815986/action", "started_at": "2020-05-04T15:45:11.826716+00:00", - "id": "fe91c9df-1a93-4561-b3d3-29240b27a7af"}}' + "/servers/f7263b3e-44c8-4cba-9d45-c619cadca2ec", "terminated_at": null, "href_from": + "/servers/f7263b3e-44c8-4cba-9d45-c619cadca2ec/action", "started_at": "2020-05-05T07:09:09.727036+00:00", + "id": "e1aaf1a1-e8a7-49ee-9fba-8a1e016c2a39"}}' headers: Content-Length: - "322" @@ -1170,9 +1170,9 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:11 GMT + - Tue, 05 May 2020 07:09:09 GMT Location: - - https://cp-par1.scaleway.com/tasks/fe91c9df-1a93-4561-b3d3-29240b27a7af + - https://cp-par1.scaleway.com/tasks/e1aaf1a1-e8a7-49ee-9fba-8a1e016c2a39 Server: - scaleway_api Strict-Transport-Security: @@ -1182,7 +1182,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - b199a3e3-d0a4-4436-b66c-3bb4026558d3 + - b8423849-0c37-4ed7-a1ee-595754c9168c status: 202 Accepted code: 202 duration: "" @@ -1192,15 +1192,15 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/a5eebb21-313f-4cbf-ab66-c94f56815986 + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/f7263b3e-44c8-4cba-9d45-c619cadca2ec method: GET response: - body: '{"server": {"id": "a5eebb21-313f-4cbf-ab66-c94f56815986", "name": "cli-srv-confident-montalcini", + body: '{"server": {"id": "f7263b3e-44c8-4cba-9d45-c619cadca2ec", "name": "cli-srv-kind-mclean", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-confident-montalcini", - "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic - Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": - {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-kind-mclean", "image": + {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", + "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": + "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2019-03-05T10:13:15.974944+00:00", "modification_date": "2019-03-05T13:32:29.274319+00:00", "default_bootscript": @@ -1210,17 +1210,17 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "ac129829-dc8c-429a-8443-ff1822716d0d", + "fr-par-1"}, "volumes": {"0": {"id": "45757012-0ccc-4f14-ba50-39d57ccaaacf", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "a5eebb21-313f-4cbf-ab66-c94f56815986", "name": "cli-srv-confident-montalcini"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:45:11.122659+00:00", - "modification_date": "2020-05-04T15:45:11.389443+00:00", "zone": "fr-par-1"}}, + "server": {"id": "f7263b3e-44c8-4cba-9d45-c619cadca2ec", "name": "cli-srv-kind-mclean"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:09:09.163927+00:00", + "modification_date": "2020-05-05T07:09:09.416365+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "starting", "protected": false, "state_detail": "allocating node", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": null, "creation_date": "2020-05-04T15:45:11.122659+00:00", - "modification_date": "2020-05-04T15:45:11.454407+00:00", "bootscript": {"id": + false, "enable_ipv6": false, "private_ip": null, "creation_date": "2020-05-05T07:09:09.163927+00:00", + "modification_date": "2020-05-05T07:09:09.491019+00:00", "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", @@ -1234,13 +1234,13 @@ interactions: Cache-Control: - no-cache Content-Length: - - "2967" + - "2940" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:11 GMT + - Tue, 05 May 2020 07:09:09 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1250,7 +1250,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - e5e6f65b-5efb-43a3-a9c6-2a871cf8a004 + - 849cc919-6f9c-4e37-b1d9-841ed2e57d8a status: 200 OK code: 200 duration: "" @@ -1260,15 +1260,15 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/a5eebb21-313f-4cbf-ab66-c94f56815986 + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/f7263b3e-44c8-4cba-9d45-c619cadca2ec method: GET response: - body: '{"server": {"id": "a5eebb21-313f-4cbf-ab66-c94f56815986", "name": "cli-srv-confident-montalcini", + body: '{"server": {"id": "f7263b3e-44c8-4cba-9d45-c619cadca2ec", "name": "cli-srv-kind-mclean", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-confident-montalcini", - "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic - Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": - {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-kind-mclean", "image": + {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", + "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": + "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2019-03-05T10:13:15.974944+00:00", "modification_date": "2019-03-05T13:32:29.274319+00:00", "default_bootscript": @@ -1278,17 +1278,17 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "ac129829-dc8c-429a-8443-ff1822716d0d", + "fr-par-1"}, "volumes": {"0": {"id": "45757012-0ccc-4f14-ba50-39d57ccaaacf", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "a5eebb21-313f-4cbf-ab66-c94f56815986", "name": "cli-srv-confident-montalcini"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:45:11.122659+00:00", - "modification_date": "2020-05-04T15:45:11.389443+00:00", "zone": "fr-par-1"}}, + "server": {"id": "f7263b3e-44c8-4cba-9d45-c619cadca2ec", "name": "cli-srv-kind-mclean"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:09:09.163927+00:00", + "modification_date": "2020-05-05T07:09:09.416365+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "starting", "protected": false, "state_detail": "provisioning node", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": "10.69.30.63", "creation_date": "2020-05-04T15:45:11.122659+00:00", - "modification_date": "2020-05-04T15:45:11.454407+00:00", "bootscript": {"id": + false, "enable_ipv6": false, "private_ip": "10.65.62.45", "creation_date": "2020-05-05T07:09:09.163927+00:00", + "modification_date": "2020-05-05T07:09:09.491019+00:00", "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", @@ -1296,20 +1296,20 @@ interactions: "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": {"zone_id": "par1", "platform_id": - "14", "cluster_id": "38", "hypervisor_id": "802", "node_id": "32"}, "maintenances": + "14", "cluster_id": "18", "hypervisor_id": "2002", "node_id": "23"}, "maintenances": [], "allowed_actions": ["stop_in_place", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3075" + - "3049" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:16 GMT + - Tue, 05 May 2020 07:09:14 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1319,7 +1319,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 5244da2d-17b0-4a16-80d5-c2ecc844182d + - 04c8f66a-b6e6-4c4e-9fe7-57f9f8be8d83 status: 200 OK code: 200 duration: "" @@ -1329,15 +1329,15 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/a5eebb21-313f-4cbf-ab66-c94f56815986 + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/f7263b3e-44c8-4cba-9d45-c619cadca2ec method: GET response: - body: '{"server": {"id": "a5eebb21-313f-4cbf-ab66-c94f56815986", "name": "cli-srv-confident-montalcini", + body: '{"server": {"id": "f7263b3e-44c8-4cba-9d45-c619cadca2ec", "name": "cli-srv-kind-mclean", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-confident-montalcini", - "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic - Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": - {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-kind-mclean", "image": + {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", + "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": + "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2019-03-05T10:13:15.974944+00:00", "modification_date": "2019-03-05T13:32:29.274319+00:00", "default_bootscript": @@ -1347,17 +1347,17 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "ac129829-dc8c-429a-8443-ff1822716d0d", + "fr-par-1"}, "volumes": {"0": {"id": "45757012-0ccc-4f14-ba50-39d57ccaaacf", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "a5eebb21-313f-4cbf-ab66-c94f56815986", "name": "cli-srv-confident-montalcini"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:45:11.122659+00:00", - "modification_date": "2020-05-04T15:45:11.389443+00:00", "zone": "fr-par-1"}}, + "server": {"id": "f7263b3e-44c8-4cba-9d45-c619cadca2ec", "name": "cli-srv-kind-mclean"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:09:09.163927+00:00", + "modification_date": "2020-05-05T07:09:09.416365+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "starting", "protected": false, "state_detail": "provisioning node", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": "10.69.30.63", "creation_date": "2020-05-04T15:45:11.122659+00:00", - "modification_date": "2020-05-04T15:45:11.454407+00:00", "bootscript": {"id": + false, "enable_ipv6": false, "private_ip": "10.65.62.45", "creation_date": "2020-05-05T07:09:09.163927+00:00", + "modification_date": "2020-05-05T07:09:09.491019+00:00", "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", @@ -1365,20 +1365,20 @@ interactions: "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": {"zone_id": "par1", "platform_id": - "14", "cluster_id": "38", "hypervisor_id": "802", "node_id": "32"}, "maintenances": + "14", "cluster_id": "18", "hypervisor_id": "2002", "node_id": "23"}, "maintenances": [], "allowed_actions": ["stop_in_place", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3075" + - "3049" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:21 GMT + - Tue, 05 May 2020 07:09:19 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1388,7 +1388,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - d008673d-3c17-4c6c-bdb3-73df61c90fee + - 47fa29f9-1fb7-46df-aeae-2a9f4ea0ec9c status: 200 OK code: 200 duration: "" @@ -1398,15 +1398,15 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/a5eebb21-313f-4cbf-ab66-c94f56815986 + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/f7263b3e-44c8-4cba-9d45-c619cadca2ec method: GET response: - body: '{"server": {"id": "a5eebb21-313f-4cbf-ab66-c94f56815986", "name": "cli-srv-confident-montalcini", + body: '{"server": {"id": "f7263b3e-44c8-4cba-9d45-c619cadca2ec", "name": "cli-srv-kind-mclean", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-confident-montalcini", - "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic - Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": - {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-kind-mclean", "image": + {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", + "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": + "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2019-03-05T10:13:15.974944+00:00", "modification_date": "2019-03-05T13:32:29.274319+00:00", "default_bootscript": @@ -1416,17 +1416,17 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "ac129829-dc8c-429a-8443-ff1822716d0d", + "fr-par-1"}, "volumes": {"0": {"id": "45757012-0ccc-4f14-ba50-39d57ccaaacf", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "a5eebb21-313f-4cbf-ab66-c94f56815986", "name": "cli-srv-confident-montalcini"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:45:11.122659+00:00", - "modification_date": "2020-05-04T15:45:11.389443+00:00", "zone": "fr-par-1"}}, + "server": {"id": "f7263b3e-44c8-4cba-9d45-c619cadca2ec", "name": "cli-srv-kind-mclean"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:09:09.163927+00:00", + "modification_date": "2020-05-05T07:09:09.416365+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "starting", "protected": false, "state_detail": "provisioning node", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": "10.69.30.63", "creation_date": "2020-05-04T15:45:11.122659+00:00", - "modification_date": "2020-05-04T15:45:11.454407+00:00", "bootscript": {"id": + false, "enable_ipv6": false, "private_ip": "10.65.62.45", "creation_date": "2020-05-05T07:09:09.163927+00:00", + "modification_date": "2020-05-05T07:09:09.491019+00:00", "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", @@ -1434,20 +1434,20 @@ interactions: "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": {"zone_id": "par1", "platform_id": - "14", "cluster_id": "38", "hypervisor_id": "802", "node_id": "32"}, "maintenances": + "14", "cluster_id": "18", "hypervisor_id": "2002", "node_id": "23"}, "maintenances": [], "allowed_actions": ["stop_in_place", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3075" + - "3049" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:26 GMT + - Tue, 05 May 2020 07:09:24 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1457,7 +1457,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - dbf999df-5fea-4208-81cc-2b4f7528f9ed + - 58321a82-9d9f-4a19-a2b7-9fb756aecb03 status: 200 OK code: 200 duration: "" @@ -1467,15 +1467,84 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/a5eebb21-313f-4cbf-ab66-c94f56815986 + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/f7263b3e-44c8-4cba-9d45-c619cadca2ec method: GET response: - body: '{"server": {"id": "a5eebb21-313f-4cbf-ab66-c94f56815986", "name": "cli-srv-confident-montalcini", + body: '{"server": {"id": "f7263b3e-44c8-4cba-9d45-c619cadca2ec", "name": "cli-srv-kind-mclean", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-confident-montalcini", - "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic - Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": - {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-kind-mclean", "image": + {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", + "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": + "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", + "volume_type": "l_ssd", "size": 10000000000}, "extra_volumes": {}, "public": + true, "arch": "x86_64", "creation_date": "2019-03-05T10:13:15.974944+00:00", + "modification_date": "2019-03-05T13:32:29.274319+00:00", "default_bootscript": + {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 + mainline 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", + "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", + "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", + "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": + false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": + "fr-par-1"}, "volumes": {"0": {"id": "45757012-0ccc-4f14-ba50-39d57ccaaacf", + "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": + "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", + "server": {"id": "f7263b3e-44c8-4cba-9d45-c619cadca2ec", "name": "cli-srv-kind-mclean"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:09:09.163927+00:00", + "modification_date": "2020-05-05T07:09:09.416365+00:00", "zone": "fr-par-1"}}, + "tags": [], "state": "starting", "protected": false, "state_detail": "provisioning + node", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": + "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": + false, "enable_ipv6": false, "private_ip": "10.65.62.45", "creation_date": "2020-05-05T07:09:09.163927+00:00", + "modification_date": "2020-05-05T07:09:09.491019+00:00", "bootscript": {"id": + "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline + 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", + "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", + "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", + "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": + false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", + "name": "Default security group"}, "location": {"zone_id": "par1", "platform_id": + "14", "cluster_id": "18", "hypervisor_id": "2002", "node_id": "23"}, "maintenances": + [], "allowed_actions": ["stop_in_place", "backup"], "placement_group": null, + "private_nics": [], "zone": "fr-par-1"}}' + headers: + Cache-Control: + - no-cache + Content-Length: + - "3049" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 05 May 2020 07:09:30 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 867101bc-ad9c-4563-b7df-3464918e8d65 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/f7263b3e-44c8-4cba-9d45-c619cadca2ec + method: GET + response: + body: '{"server": {"id": "f7263b3e-44c8-4cba-9d45-c619cadca2ec", "name": "cli-srv-kind-mclean", + "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-kind-mclean", "image": + {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", + "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": + "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2019-03-05T10:13:15.974944+00:00", "modification_date": "2019-03-05T13:32:29.274319+00:00", "default_bootscript": @@ -1485,17 +1554,17 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "ac129829-dc8c-429a-8443-ff1822716d0d", + "fr-par-1"}, "volumes": {"0": {"id": "45757012-0ccc-4f14-ba50-39d57ccaaacf", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "a5eebb21-313f-4cbf-ab66-c94f56815986", "name": "cli-srv-confident-montalcini"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:45:11.122659+00:00", - "modification_date": "2020-05-04T15:45:11.389443+00:00", "zone": "fr-par-1"}}, + "server": {"id": "f7263b3e-44c8-4cba-9d45-c619cadca2ec", "name": "cli-srv-kind-mclean"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:09:09.163927+00:00", + "modification_date": "2020-05-05T07:09:09.416365+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "running", "protected": false, "state_detail": "booting kernel", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": "10.69.30.63", "creation_date": "2020-05-04T15:45:11.122659+00:00", - "modification_date": "2020-05-04T15:45:31.888859+00:00", "bootscript": {"id": + false, "enable_ipv6": false, "private_ip": "10.65.62.45", "creation_date": "2020-05-05T07:09:09.163927+00:00", + "modification_date": "2020-05-05T07:09:32.925061+00:00", "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", @@ -1503,20 +1572,20 @@ interactions: "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": {"zone_id": "par1", "platform_id": - "14", "cluster_id": "38", "hypervisor_id": "802", "node_id": "32"}, "maintenances": + "14", "cluster_id": "18", "hypervisor_id": "2002", "node_id": "23"}, "maintenances": [], "allowed_actions": ["poweroff", "terminate", "reboot", "stop_in_place", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3106" + - "3080" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:32 GMT + - Tue, 05 May 2020 07:09:35 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1526,7 +1595,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 67196e01-d4ef-4060-9866-106529c5c0ed + - e93c040c-a99f-45c3-b402-341a1799b8e7 status: 200 OK code: 200 duration: "" @@ -1536,15 +1605,15 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/a5eebb21-313f-4cbf-ab66-c94f56815986 + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/f7263b3e-44c8-4cba-9d45-c619cadca2ec method: GET response: - body: '{"server": {"id": "a5eebb21-313f-4cbf-ab66-c94f56815986", "name": "cli-srv-confident-montalcini", + body: '{"server": {"id": "f7263b3e-44c8-4cba-9d45-c619cadca2ec", "name": "cli-srv-kind-mclean", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-confident-montalcini", - "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic - Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": - {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-kind-mclean", "image": + {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", + "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": + "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2019-03-05T10:13:15.974944+00:00", "modification_date": "2019-03-05T13:32:29.274319+00:00", "default_bootscript": @@ -1554,17 +1623,17 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "ac129829-dc8c-429a-8443-ff1822716d0d", + "fr-par-1"}, "volumes": {"0": {"id": "45757012-0ccc-4f14-ba50-39d57ccaaacf", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "a5eebb21-313f-4cbf-ab66-c94f56815986", "name": "cli-srv-confident-montalcini"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:45:11.122659+00:00", - "modification_date": "2020-05-04T15:45:11.389443+00:00", "zone": "fr-par-1"}}, + "server": {"id": "f7263b3e-44c8-4cba-9d45-c619cadca2ec", "name": "cli-srv-kind-mclean"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:09:09.163927+00:00", + "modification_date": "2020-05-05T07:09:09.416365+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "running", "protected": false, "state_detail": "booting kernel", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": "10.69.30.63", "creation_date": "2020-05-04T15:45:11.122659+00:00", - "modification_date": "2020-05-04T15:45:31.888859+00:00", "bootscript": {"id": + false, "enable_ipv6": false, "private_ip": "10.65.62.45", "creation_date": "2020-05-05T07:09:09.163927+00:00", + "modification_date": "2020-05-05T07:09:32.925061+00:00", "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", @@ -1572,20 +1641,20 @@ interactions: "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": {"zone_id": "par1", "platform_id": - "14", "cluster_id": "38", "hypervisor_id": "802", "node_id": "32"}, "maintenances": + "14", "cluster_id": "18", "hypervisor_id": "2002", "node_id": "23"}, "maintenances": [], "allowed_actions": ["poweroff", "terminate", "reboot", "stop_in_place", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3106" + - "3080" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:32 GMT + - Tue, 05 May 2020 07:09:35 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1595,7 +1664,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - af7c1b45-d022-4e16-8fa5-785120bee68b + - 022d0f10-0c11-4cdb-91d9-5546fb2b6618 status: 200 OK code: 200 duration: "" @@ -1607,13 +1676,13 @@ interactions: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/a5eebb21-313f-4cbf-ab66-c94f56815986/action + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/f7263b3e-44c8-4cba-9d45-c619cadca2ec/action method: POST response: body: '{"task": {"status": "pending", "description": "server_terminate", "href_result": - "/servers/a5eebb21-313f-4cbf-ab66-c94f56815986", "terminated_at": null, "href_from": - "/servers/a5eebb21-313f-4cbf-ab66-c94f56815986/action", "started_at": "2020-05-04T15:45:32.901642+00:00", - "id": "1c22366a-ec8c-4077-9c06-acef951571dc"}}' + "/servers/f7263b3e-44c8-4cba-9d45-c619cadca2ec", "terminated_at": null, "href_from": + "/servers/f7263b3e-44c8-4cba-9d45-c619cadca2ec/action", "started_at": "2020-05-05T07:09:35.830799+00:00", + "id": "b94a2bee-061b-4101-bde2-b3be4dbf5e60"}}' headers: Content-Length: - "318" @@ -1622,9 +1691,9 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:32 GMT + - Tue, 05 May 2020 07:09:35 GMT Location: - - https://cp-par1.scaleway.com/tasks/1c22366a-ec8c-4077-9c06-acef951571dc + - https://cp-par1.scaleway.com/tasks/b94a2bee-061b-4101-bde2-b3be4dbf5e60 Server: - scaleway_api Strict-Transport-Security: @@ -1634,7 +1703,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 603eb81e-73c8-4a2d-b0b5-1a667544997b + - 95ab75d6-a5fe-4fe0-abe2-42d5da4f24b1 status: 202 Accepted code: 202 duration: "" @@ -1656,7 +1725,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:32 GMT + - Tue, 05 May 2020 07:09:35 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1666,7 +1735,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 422d9292-f965-4e85-a5fd-7a69a370473c + - c210159e-3668-4cdd-b104-ac48adfafdba status: 204 No Content code: 204 duration: "" diff --git a/internal/namespaces/instance/v1/testdata/test-server-terminate-without-block.cassette.yaml b/internal/namespaces/instance/v1/testdata/test-server-terminate-without-block.cassette.yaml index fdee9ef03c..a8059e9042 100644 --- a/internal/namespaces/instance/v1/testdata/test-server-terminate-without-block.cassette.yaml +++ b/internal/namespaces/instance/v1/testdata/test-server-terminate-without-block.cassette.yaml @@ -650,7 +650,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:33 GMT + - Tue, 05 May 2020 07:09:36 GMT Link: - ; rel="last" Server: @@ -662,7 +662,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 163b9c41-76df-4455-8ae8-37cfd7cc517b + - b186deac-22a5-4a4e-885a-740348664ac5 X-Total-Count: - "31" status: 200 OK @@ -700,7 +700,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:33 GMT + - Tue, 05 May 2020 07:09:36 GMT Server: - scaleway_api Strict-Transport-Security: @@ -710,7 +710,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1d674ed4-7ea8-44ee-ac32-2a26a3207342 + - fa21ceb4-6433-401f-bb91-23ad268888c9 status: 200 OK code: 200 duration: "" @@ -1017,7 +1017,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:33 GMT + - Tue, 05 May 2020 07:09:36 GMT Link: - ; rel="last" Server: @@ -1029,7 +1029,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 4dfda9a2-d378-4045-8feb-34820d517595 + - d58bc1d3-c566-45a1-a280-796b1e1e0dea X-Total-Count: - "32" status: 200 OK @@ -1059,7 +1059,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:33 GMT + - Tue, 05 May 2020 07:09:36 GMT Location: - https://cp-par1.scaleway.com/ips/65ae2546-5893-40f2-bcc2-aabee4b4dc2f Server: @@ -1071,12 +1071,12 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ac678d54-ff81-4750-8598-57c5e01b0dc2 + - b92e034f-605d-46b5-ae32-8ad7f4298338 status: 201 Created code: 201 duration: "" - request: - body: '{"name":"cli-srv-zen-pascal","commercial_type":"DEV1-S","image":"f974feac-abae-4365-b988-8ec7d1cec10d","volumes":{"1":{"name":"cli-srv-zen-pascal-1","size":10000000000,"volume_type":"b_ssd","organization":"104ff69c-3f34-48f4-b5f0-e516e4ad526b"}},"public_ip":"65ae2546-5893-40f2-bcc2-aabee4b4dc2f","organization":"104ff69c-3f34-48f4-b5f0-e516e4ad526b"}' + body: '{"name":"cli-srv-priceless-rosalind","commercial_type":"DEV1-S","image":"f974feac-abae-4365-b988-8ec7d1cec10d","volumes":{"1":{"name":"cli-srv-priceless-rosalind-1","size":10000000000,"volume_type":"b_ssd","organization":"104ff69c-3f34-48f4-b5f0-e516e4ad526b"}},"public_ip":"65ae2546-5893-40f2-bcc2-aabee4b4dc2f","organization":"104ff69c-3f34-48f4-b5f0-e516e4ad526b"}' form: {} headers: Content-Type: @@ -1086,12 +1086,12 @@ interactions: url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers method: POST response: - body: '{"server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal", + body: '{"server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-zen-pascal", "image": - {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", - "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": - "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-priceless-rosalind", + "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic + Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": + {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2019-03-05T10:13:15.974944+00:00", "modification_date": "2019-03-05T13:32:29.274319+00:00", "default_bootscript": @@ -1101,22 +1101,22 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "382fe7fb-cef3-49df-8737-7799cb99df0d", + "fr-par-1"}, "volumes": {"0": {"id": "5939bb22-d5ea-41e6-a648-558a877e2a16", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.398891+00:00", "zone": "fr-par-1"}, - "1": {"id": "9d5787e5-7e8d-4912-a0b2-6dc1dd5942ad", "name": "cli-srv-zen-pascal-1", + "server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:09:37.048948+00:00", + "modification_date": "2020-05-05T07:09:37.400229+00:00", "zone": "fr-par-1"}, + "1": {"id": "98430fab-9e3d-4b7d-bee5-505572f143fa", "name": "cli-srv-priceless-rosalind-1", "volume_type": "b_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal"}, - "size": 10000000000, "state": "available", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.398917+00:00", "zone": "fr-par-1"}}, + "server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind"}, + "size": 10000000000, "state": "available", "creation_date": "2020-05-05T07:09:37.048948+00:00", + "modification_date": "2020-05-05T07:09:37.400254+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": "", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": false, "enable_ipv6": - false, "private_ip": null, "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.417757+00:00", "bootscript": {"id": + false, "private_ip": null, "creation_date": "2020-05-05T07:09:37.048948+00:00", + "modification_date": "2020-05-05T07:09:37.416667+00:00", "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", @@ -1130,15 +1130,15 @@ interactions: Cache-Control: - no-cache Content-Length: - - "3361" + - "3401" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:34 GMT + - Tue, 05 May 2020 07:09:37 GMT Location: - - https://cp-par1.scaleway.com/servers/1b04199b-fbb2-43a7-b7e1-cebc78113c3c + - https://cp-par1.scaleway.com/servers/bd656965-7300-4b8c-9e9f-e70c575500b2 Server: - scaleway_api Strict-Transport-Security: @@ -1148,7 +1148,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 3be8b81f-3c71-4d5f-b61b-fe02cf66104a + - 647eb557-727f-42dd-96c5-865989de4c2d status: 201 Created code: 201 duration: "" @@ -1160,13 +1160,13 @@ interactions: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/1b04199b-fbb2-43a7-b7e1-cebc78113c3c/action + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/bd656965-7300-4b8c-9e9f-e70c575500b2/action method: POST response: body: '{"task": {"status": "pending", "description": "server_batch_poweron", "href_result": - "/servers/1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "terminated_at": null, "href_from": - "/servers/1b04199b-fbb2-43a7-b7e1-cebc78113c3c/action", "started_at": "2020-05-04T15:45:34.779250+00:00", - "id": "eb825fcb-470b-4d91-988c-9a346a291457"}}' + "/servers/bd656965-7300-4b8c-9e9f-e70c575500b2", "terminated_at": null, "href_from": + "/servers/bd656965-7300-4b8c-9e9f-e70c575500b2/action", "started_at": "2020-05-05T07:09:37.932878+00:00", + "id": "3cd3bdd6-1aeb-404f-b3bb-d0bc447ba424"}}' headers: Content-Length: - "322" @@ -1175,9 +1175,9 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:34 GMT + - Tue, 05 May 2020 07:09:37 GMT Location: - - https://cp-par1.scaleway.com/tasks/eb825fcb-470b-4d91-988c-9a346a291457 + - https://cp-par1.scaleway.com/tasks/3cd3bdd6-1aeb-404f-b3bb-d0bc447ba424 Server: - scaleway_api Strict-Transport-Security: @@ -1187,7 +1187,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 35ab4493-7898-4d09-ad07-6ca079ba1e32 + - 148faa68-8408-4fbd-8243-af60101e4d80 status: 202 Accepted code: 202 duration: "" @@ -1197,15 +1197,15 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/1b04199b-fbb2-43a7-b7e1-cebc78113c3c + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/bd656965-7300-4b8c-9e9f-e70c575500b2 method: GET response: - body: '{"server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal", + body: '{"server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-zen-pascal", "image": - {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", - "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": - "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-priceless-rosalind", + "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic + Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": + {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2019-03-05T10:13:15.974944+00:00", "modification_date": "2019-03-05T13:32:29.274319+00:00", "default_bootscript": @@ -1215,22 +1215,22 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "382fe7fb-cef3-49df-8737-7799cb99df0d", + "fr-par-1"}, "volumes": {"0": {"id": "5939bb22-d5ea-41e6-a648-558a877e2a16", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.398891+00:00", "zone": "fr-par-1"}, - "1": {"id": "9d5787e5-7e8d-4912-a0b2-6dc1dd5942ad", "name": "cli-srv-zen-pascal-1", + "server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:09:37.048948+00:00", + "modification_date": "2020-05-05T07:09:37.400229+00:00", "zone": "fr-par-1"}, + "1": {"id": "98430fab-9e3d-4b7d-bee5-505572f143fa", "name": "cli-srv-priceless-rosalind-1", "volume_type": "b_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal"}, - "size": 10000000000, "state": "available", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.398917+00:00", "zone": "fr-par-1"}}, + "server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind"}, + "size": 10000000000, "state": "available", "creation_date": "2020-05-05T07:09:37.048948+00:00", + "modification_date": "2020-05-05T07:09:37.400254+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "starting", "protected": false, "state_detail": "allocating node", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": null, "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.488220+00:00", "bootscript": {"id": + false, "enable_ipv6": false, "private_ip": null, "creation_date": "2020-05-05T07:09:37.048948+00:00", + "modification_date": "2020-05-05T07:09:37.483107+00:00", "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", @@ -1244,87 +1244,13 @@ interactions: Cache-Control: - no-cache Content-Length: - - "3383" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 04 May 2020 15:45:34 GMT - Server: - - scaleway_api - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 39e005f0-0946-455b-bb49-19526a79d17f - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/1b04199b-fbb2-43a7-b7e1-cebc78113c3c - method: GET - response: - body: '{"server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal", - "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-zen-pascal", "image": - {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", - "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": - "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", - "volume_type": "l_ssd", "size": 10000000000}, "extra_volumes": {}, "public": - true, "arch": "x86_64", "creation_date": "2019-03-05T10:13:15.974944+00:00", - "modification_date": "2019-03-05T13:32:29.274319+00:00", "default_bootscript": - {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 - mainline 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", - "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", - "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", - "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": - false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "382fe7fb-cef3-49df-8737-7799cb99df0d", - "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": - "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.398891+00:00", "zone": "fr-par-1"}, - "1": {"id": "9d5787e5-7e8d-4912-a0b2-6dc1dd5942ad", "name": "cli-srv-zen-pascal-1", - "volume_type": "b_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal"}, - "size": 10000000000, "state": "available", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.398917+00:00", "zone": "fr-par-1"}}, - "tags": [], "state": "starting", "protected": false, "state_detail": "provisioning - node", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": - "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": "10.64.42.15", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.488220+00:00", "bootscript": {"id": - "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline - 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", - "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", - "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", - "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": - false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", - "name": "Default security group"}, "location": {"zone_id": "par1", "platform_id": - "14", "cluster_id": "15", "hypervisor_id": "1102", "node_id": "8"}, "maintenances": - [], "allowed_actions": ["stop_in_place", "backup"], "placement_group": null, - "private_nics": [], "zone": "fr-par-1"}}' - headers: - Cache-Control: - - no-cache - Content-Length: - - "3491" + - "3423" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:39 GMT + - Tue, 05 May 2020 07:09:37 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1334,7 +1260,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 80d16bd2-6ded-4a8e-b136-523e4fc1970d + - e3ff7cf8-5209-4903-9d4f-9202d38a6a66 status: 200 OK code: 200 duration: "" @@ -1344,15 +1270,15 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/1b04199b-fbb2-43a7-b7e1-cebc78113c3c + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/bd656965-7300-4b8c-9e9f-e70c575500b2 method: GET response: - body: '{"server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal", + body: '{"server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-zen-pascal", "image": - {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", - "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": - "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-priceless-rosalind", + "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic + Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": + {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2019-03-05T10:13:15.974944+00:00", "modification_date": "2019-03-05T13:32:29.274319+00:00", "default_bootscript": @@ -1362,43 +1288,43 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "382fe7fb-cef3-49df-8737-7799cb99df0d", + "fr-par-1"}, "volumes": {"0": {"id": "5939bb22-d5ea-41e6-a648-558a877e2a16", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.398891+00:00", "zone": "fr-par-1"}, - "1": {"id": "9d5787e5-7e8d-4912-a0b2-6dc1dd5942ad", "name": "cli-srv-zen-pascal-1", + "server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:09:37.048948+00:00", + "modification_date": "2020-05-05T07:09:37.400229+00:00", "zone": "fr-par-1"}, + "1": {"id": "98430fab-9e3d-4b7d-bee5-505572f143fa", "name": "cli-srv-priceless-rosalind-1", "volume_type": "b_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal"}, - "size": 10000000000, "state": "available", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.398917+00:00", "zone": "fr-par-1"}}, + "server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind"}, + "size": 10000000000, "state": "available", "creation_date": "2020-05-05T07:09:37.048948+00:00", + "modification_date": "2020-05-05T07:09:37.400254+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "starting", "protected": false, "state_detail": "provisioning node", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": "10.64.42.15", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.488220+00:00", "bootscript": {"id": - "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline - 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", - "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", + false, "enable_ipv6": false, "private_ip": "10.68.188.97", "creation_date": + "2020-05-05T07:09:37.048948+00:00", "modification_date": "2020-05-05T07:09:37.483107+00:00", + "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, + "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": + "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": {"zone_id": "par1", "platform_id": - "14", "cluster_id": "15", "hypervisor_id": "1102", "node_id": "8"}, "maintenances": + "14", "cluster_id": "37", "hypervisor_id": "801", "node_id": "49"}, "maintenances": [], "allowed_actions": ["stop_in_place", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3491" + - "3532" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:44 GMT + - Tue, 05 May 2020 07:09:42 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1408,7 +1334,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 7ee97f9b-0a97-4527-ae4c-cbd43c59c958 + - 6d31e74b-3971-49bb-91e1-f9290a167f14 status: 200 OK code: 200 duration: "" @@ -1418,15 +1344,15 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/1b04199b-fbb2-43a7-b7e1-cebc78113c3c + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/bd656965-7300-4b8c-9e9f-e70c575500b2 method: GET response: - body: '{"server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal", + body: '{"server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-zen-pascal", "image": - {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", - "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": - "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-priceless-rosalind", + "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic + Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": + {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2019-03-05T10:13:15.974944+00:00", "modification_date": "2019-03-05T13:32:29.274319+00:00", "default_bootscript": @@ -1436,43 +1362,43 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "382fe7fb-cef3-49df-8737-7799cb99df0d", + "fr-par-1"}, "volumes": {"0": {"id": "5939bb22-d5ea-41e6-a648-558a877e2a16", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.398891+00:00", "zone": "fr-par-1"}, - "1": {"id": "9d5787e5-7e8d-4912-a0b2-6dc1dd5942ad", "name": "cli-srv-zen-pascal-1", + "server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:09:37.048948+00:00", + "modification_date": "2020-05-05T07:09:37.400229+00:00", "zone": "fr-par-1"}, + "1": {"id": "98430fab-9e3d-4b7d-bee5-505572f143fa", "name": "cli-srv-priceless-rosalind-1", "volume_type": "b_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal"}, - "size": 10000000000, "state": "available", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.398917+00:00", "zone": "fr-par-1"}}, + "server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind"}, + "size": 10000000000, "state": "available", "creation_date": "2020-05-05T07:09:37.048948+00:00", + "modification_date": "2020-05-05T07:09:37.400254+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "starting", "protected": false, "state_detail": "provisioning node", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": "10.64.42.15", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.488220+00:00", "bootscript": {"id": - "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline - 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", - "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", + false, "enable_ipv6": false, "private_ip": "10.68.188.97", "creation_date": + "2020-05-05T07:09:37.048948+00:00", "modification_date": "2020-05-05T07:09:37.483107+00:00", + "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, + "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": + "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": {"zone_id": "par1", "platform_id": - "14", "cluster_id": "15", "hypervisor_id": "1102", "node_id": "8"}, "maintenances": + "14", "cluster_id": "37", "hypervisor_id": "801", "node_id": "49"}, "maintenances": [], "allowed_actions": ["stop_in_place", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3491" + - "3532" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:49 GMT + - Tue, 05 May 2020 07:09:48 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1482,7 +1408,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c4e8712e-2bfa-47f6-a9a6-5b9c81cb26c0 + - 532bde8a-ae39-4420-9abb-a8cdffd9d605 status: 200 OK code: 200 duration: "" @@ -1492,15 +1418,15 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/1b04199b-fbb2-43a7-b7e1-cebc78113c3c + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/bd656965-7300-4b8c-9e9f-e70c575500b2 method: GET response: - body: '{"server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal", + body: '{"server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-zen-pascal", "image": - {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", - "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": - "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-priceless-rosalind", + "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic + Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": + {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2019-03-05T10:13:15.974944+00:00", "modification_date": "2019-03-05T13:32:29.274319+00:00", "default_bootscript": @@ -1510,43 +1436,43 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "382fe7fb-cef3-49df-8737-7799cb99df0d", + "fr-par-1"}, "volumes": {"0": {"id": "5939bb22-d5ea-41e6-a648-558a877e2a16", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.398891+00:00", "zone": "fr-par-1"}, - "1": {"id": "9d5787e5-7e8d-4912-a0b2-6dc1dd5942ad", "name": "cli-srv-zen-pascal-1", + "server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:09:37.048948+00:00", + "modification_date": "2020-05-05T07:09:37.400229+00:00", "zone": "fr-par-1"}, + "1": {"id": "98430fab-9e3d-4b7d-bee5-505572f143fa", "name": "cli-srv-priceless-rosalind-1", "volume_type": "b_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal"}, - "size": 10000000000, "state": "available", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.398917+00:00", "zone": "fr-par-1"}}, + "server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind"}, + "size": 10000000000, "state": "available", "creation_date": "2020-05-05T07:09:37.048948+00:00", + "modification_date": "2020-05-05T07:09:37.400254+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "starting", "protected": false, "state_detail": "provisioning node", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": "10.64.42.15", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.488220+00:00", "bootscript": {"id": - "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline - 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", - "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", + false, "enable_ipv6": false, "private_ip": "10.68.188.97", "creation_date": + "2020-05-05T07:09:37.048948+00:00", "modification_date": "2020-05-05T07:09:37.483107+00:00", + "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, + "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": + "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": {"zone_id": "par1", "platform_id": - "14", "cluster_id": "15", "hypervisor_id": "1102", "node_id": "8"}, "maintenances": + "14", "cluster_id": "37", "hypervisor_id": "801", "node_id": "49"}, "maintenances": [], "allowed_actions": ["stop_in_place", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3491" + - "3532" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:55 GMT + - Tue, 05 May 2020 07:09:53 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1556,7 +1482,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 5f2bd382-b88c-4233-a193-ff233b3f8ec4 + - 1b4e613d-c6a6-4d01-b2d2-f20f016362f9 status: 200 OK code: 200 duration: "" @@ -1566,15 +1492,15 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/1b04199b-fbb2-43a7-b7e1-cebc78113c3c + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/bd656965-7300-4b8c-9e9f-e70c575500b2 method: GET response: - body: '{"server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal", + body: '{"server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-zen-pascal", "image": - {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", - "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": - "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-priceless-rosalind", + "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic + Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": + {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2019-03-05T10:13:15.974944+00:00", "modification_date": "2019-03-05T13:32:29.274319+00:00", "default_bootscript": @@ -1584,43 +1510,43 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "382fe7fb-cef3-49df-8737-7799cb99df0d", + "fr-par-1"}, "volumes": {"0": {"id": "5939bb22-d5ea-41e6-a648-558a877e2a16", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.398891+00:00", "zone": "fr-par-1"}, - "1": {"id": "9d5787e5-7e8d-4912-a0b2-6dc1dd5942ad", "name": "cli-srv-zen-pascal-1", + "server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:09:37.048948+00:00", + "modification_date": "2020-05-05T07:09:37.400229+00:00", "zone": "fr-par-1"}, + "1": {"id": "98430fab-9e3d-4b7d-bee5-505572f143fa", "name": "cli-srv-priceless-rosalind-1", "volume_type": "b_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal"}, - "size": 10000000000, "state": "available", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.398917+00:00", "zone": "fr-par-1"}}, + "server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind"}, + "size": 10000000000, "state": "available", "creation_date": "2020-05-05T07:09:37.048948+00:00", + "modification_date": "2020-05-05T07:09:37.400254+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "starting", "protected": false, "state_detail": "provisioning node", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": "10.64.42.15", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.488220+00:00", "bootscript": {"id": - "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline - 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", - "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", + false, "enable_ipv6": false, "private_ip": "10.68.188.97", "creation_date": + "2020-05-05T07:09:37.048948+00:00", "modification_date": "2020-05-05T07:09:37.483107+00:00", + "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, + "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": + "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": {"zone_id": "par1", "platform_id": - "14", "cluster_id": "15", "hypervisor_id": "1102", "node_id": "8"}, "maintenances": + "14", "cluster_id": "37", "hypervisor_id": "801", "node_id": "49"}, "maintenances": [], "allowed_actions": ["stop_in_place", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3491" + - "3532" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:46:00 GMT + - Tue, 05 May 2020 07:09:58 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1630,7 +1556,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1c899dc8-773f-4b3c-a76d-0812b333b615 + - 2f1c2d97-c738-4bda-859c-aad24961ee36 status: 200 OK code: 200 duration: "" @@ -1640,15 +1566,15 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/1b04199b-fbb2-43a7-b7e1-cebc78113c3c + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/bd656965-7300-4b8c-9e9f-e70c575500b2 method: GET response: - body: '{"server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal", + body: '{"server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-zen-pascal", "image": - {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", - "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": - "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-priceless-rosalind", + "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic + Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": + {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2019-03-05T10:13:15.974944+00:00", "modification_date": "2019-03-05T13:32:29.274319+00:00", "default_bootscript": @@ -1658,43 +1584,43 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "382fe7fb-cef3-49df-8737-7799cb99df0d", + "fr-par-1"}, "volumes": {"0": {"id": "5939bb22-d5ea-41e6-a648-558a877e2a16", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.398891+00:00", "zone": "fr-par-1"}, - "1": {"id": "9d5787e5-7e8d-4912-a0b2-6dc1dd5942ad", "name": "cli-srv-zen-pascal-1", + "server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:09:37.048948+00:00", + "modification_date": "2020-05-05T07:09:37.400229+00:00", "zone": "fr-par-1"}, + "1": {"id": "98430fab-9e3d-4b7d-bee5-505572f143fa", "name": "cli-srv-priceless-rosalind-1", "volume_type": "b_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal"}, - "size": 10000000000, "state": "available", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.398917+00:00", "zone": "fr-par-1"}}, + "server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind"}, + "size": 10000000000, "state": "available", "creation_date": "2020-05-05T07:09:37.048948+00:00", + "modification_date": "2020-05-05T07:09:37.400254+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "running", "protected": false, "state_detail": "booting kernel", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": "10.64.42.15", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:46:02.078296+00:00", "bootscript": {"id": - "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline - 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", - "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", + false, "enable_ipv6": false, "private_ip": "10.68.188.97", "creation_date": + "2020-05-05T07:09:37.048948+00:00", "modification_date": "2020-05-05T07:10:00.172933+00:00", + "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, + "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": + "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": {"zone_id": "par1", "platform_id": - "14", "cluster_id": "15", "hypervisor_id": "1102", "node_id": "8"}, "maintenances": + "14", "cluster_id": "37", "hypervisor_id": "801", "node_id": "49"}, "maintenances": [], "allowed_actions": ["poweroff", "terminate", "reboot", "stop_in_place", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3522" + - "3563" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:46:05 GMT + - Tue, 05 May 2020 07:10:03 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1704,7 +1630,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - b3fbc0dd-ebc5-4995-9fe5-61f04a26a1a9 + - 31203437-e1df-4856-86c0-a81f5db9ebd0 status: 200 OK code: 200 duration: "" @@ -1714,15 +1640,15 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/1b04199b-fbb2-43a7-b7e1-cebc78113c3c + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/bd656965-7300-4b8c-9e9f-e70c575500b2 method: GET response: - body: '{"server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal", + body: '{"server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-zen-pascal", "image": - {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", - "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": - "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-priceless-rosalind", + "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic + Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": + {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2019-03-05T10:13:15.974944+00:00", "modification_date": "2019-03-05T13:32:29.274319+00:00", "default_bootscript": @@ -1732,43 +1658,43 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "382fe7fb-cef3-49df-8737-7799cb99df0d", + "fr-par-1"}, "volumes": {"0": {"id": "5939bb22-d5ea-41e6-a648-558a877e2a16", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.398891+00:00", "zone": "fr-par-1"}, - "1": {"id": "9d5787e5-7e8d-4912-a0b2-6dc1dd5942ad", "name": "cli-srv-zen-pascal-1", + "server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:09:37.048948+00:00", + "modification_date": "2020-05-05T07:09:37.400229+00:00", "zone": "fr-par-1"}, + "1": {"id": "98430fab-9e3d-4b7d-bee5-505572f143fa", "name": "cli-srv-priceless-rosalind-1", "volume_type": "b_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal"}, - "size": 10000000000, "state": "available", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.398917+00:00", "zone": "fr-par-1"}}, + "server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind"}, + "size": 10000000000, "state": "available", "creation_date": "2020-05-05T07:09:37.048948+00:00", + "modification_date": "2020-05-05T07:09:37.400254+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "running", "protected": false, "state_detail": "booting kernel", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": "10.64.42.15", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:46:02.078296+00:00", "bootscript": {"id": - "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline - 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", - "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", + false, "enable_ipv6": false, "private_ip": "10.68.188.97", "creation_date": + "2020-05-05T07:09:37.048948+00:00", "modification_date": "2020-05-05T07:10:00.172933+00:00", + "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, + "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": + "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": {"zone_id": "par1", "platform_id": - "14", "cluster_id": "15", "hypervisor_id": "1102", "node_id": "8"}, "maintenances": + "14", "cluster_id": "37", "hypervisor_id": "801", "node_id": "49"}, "maintenances": [], "allowed_actions": ["poweroff", "terminate", "reboot", "stop_in_place", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3522" + - "3563" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:46:05 GMT + - Tue, 05 May 2020 07:10:03 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1778,7 +1704,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 0d9a049b-af4c-4612-b7a1-764e2333fc0c + - 2218edc5-f7e6-414f-89e8-998f7d574198 status: 200 OK code: 200 duration: "" @@ -1788,25 +1714,25 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/9d5787e5-7e8d-4912-a0b2-6dc1dd5942ad + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/98430fab-9e3d-4b7d-bee5-505572f143fa method: GET response: - body: '{"volume": {"id": "9d5787e5-7e8d-4912-a0b2-6dc1dd5942ad", "name": "cli-srv-zen-pascal-1", + body: '{"volume": {"id": "98430fab-9e3d-4b7d-bee5-505572f143fa", "name": "cli-srv-priceless-rosalind-1", "volume_type": "b_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal"}, - "size": 10000000000, "state": "available", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.398917+00:00", "zone": "fr-par-1"}}' + "server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind"}, + "size": 10000000000, "state": "available", "creation_date": "2020-05-05T07:09:37.048948+00:00", + "modification_date": "2020-05-05T07:09:37.400254+00:00", "zone": "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "451" + - "467" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:46:05 GMT + - Tue, 05 May 2020 07:10:03 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1816,7 +1742,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1e16b3d5-aa4b-4379-a144-c02a0ac63d15 + - 8e97366d-2499-44a0-aa05-fc6ddf9155a5 status: 200 OK code: 200 duration: "" @@ -1826,15 +1752,15 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/1b04199b-fbb2-43a7-b7e1-cebc78113c3c + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/bd656965-7300-4b8c-9e9f-e70c575500b2 method: GET response: - body: '{"server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal", + body: '{"server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-zen-pascal", "image": - {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", - "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": - "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-priceless-rosalind", + "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic + Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": + {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2019-03-05T10:13:15.974944+00:00", "modification_date": "2019-03-05T13:32:29.274319+00:00", "default_bootscript": @@ -1844,43 +1770,43 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "382fe7fb-cef3-49df-8737-7799cb99df0d", + "fr-par-1"}, "volumes": {"0": {"id": "5939bb22-d5ea-41e6-a648-558a877e2a16", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.398891+00:00", "zone": "fr-par-1"}, - "1": {"id": "9d5787e5-7e8d-4912-a0b2-6dc1dd5942ad", "name": "cli-srv-zen-pascal-1", + "server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:09:37.048948+00:00", + "modification_date": "2020-05-05T07:09:37.400229+00:00", "zone": "fr-par-1"}, + "1": {"id": "98430fab-9e3d-4b7d-bee5-505572f143fa", "name": "cli-srv-priceless-rosalind-1", "volume_type": "b_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal"}, - "size": 10000000000, "state": "available", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.398917+00:00", "zone": "fr-par-1"}}, + "server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind"}, + "size": 10000000000, "state": "available", "creation_date": "2020-05-05T07:09:37.048948+00:00", + "modification_date": "2020-05-05T07:09:37.400254+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "running", "protected": false, "state_detail": "booting kernel", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": "10.64.42.15", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:46:02.078296+00:00", "bootscript": {"id": - "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline - 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", - "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", + false, "enable_ipv6": false, "private_ip": "10.68.188.97", "creation_date": + "2020-05-05T07:09:37.048948+00:00", "modification_date": "2020-05-05T07:10:00.172933+00:00", + "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, + "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": + "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": {"zone_id": "par1", "platform_id": - "14", "cluster_id": "15", "hypervisor_id": "1102", "node_id": "8"}, "maintenances": + "14", "cluster_id": "37", "hypervisor_id": "801", "node_id": "49"}, "maintenances": [], "allowed_actions": ["poweroff", "terminate", "reboot", "stop_in_place", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3522" + - "3563" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:46:05 GMT + - Tue, 05 May 2020 07:10:04 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1890,27 +1816,27 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 03550519-67cf-4361-93a2-5f16a1b1171f + - 9ecef59a-97ee-44e2-82cf-991d370e5fad status: 200 OK code: 200 duration: "" - request: - body: '{"volumes":{"0":{"id":"382fe7fb-cef3-49df-8737-7799cb99df0d","name":"snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13"}}}' + body: '{"volumes":{"0":{"id":"5939bb22-d5ea-41e6-a648-558a877e2a16","name":"snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13"}}}' form: {} headers: Content-Type: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/1b04199b-fbb2-43a7-b7e1-cebc78113c3c + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/bd656965-7300-4b8c-9e9f-e70c575500b2 method: PATCH response: - body: '{"server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal", + body: '{"server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-zen-pascal", "image": - {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", - "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": - "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-priceless-rosalind", + "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic + Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": + {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "size": 10000000000}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2019-03-05T10:13:15.974944+00:00", "modification_date": "2019-03-05T13:32:29.274319+00:00", "default_bootscript": @@ -1920,38 +1846,38 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "382fe7fb-cef3-49df-8737-7799cb99df0d", + "fr-par-1"}, "volumes": {"0": {"id": "5939bb22-d5ea-41e6-a648-558a877e2a16", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "name": "cli-srv-zen-pascal"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:45:34.398891+00:00", "zone": "fr-par-1"}}, + "server": {"id": "bd656965-7300-4b8c-9e9f-e70c575500b2", "name": "cli-srv-priceless-rosalind"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:09:37.048948+00:00", + "modification_date": "2020-05-05T07:09:37.400229+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "running", "protected": false, "state_detail": "booting kernel", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": "10.64.42.15", "creation_date": "2020-05-04T15:45:34.022533+00:00", - "modification_date": "2020-05-04T15:46:02.078296+00:00", "bootscript": {"id": - "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline - 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", - "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", + false, "enable_ipv6": false, "private_ip": "10.68.188.97", "creation_date": + "2020-05-05T07:09:37.048948+00:00", "modification_date": "2020-05-05T07:10:00.172933+00:00", + "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, + "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": + "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": {"zone_id": "par1", "platform_id": - "14", "cluster_id": "15", "hypervisor_id": "1102", "node_id": "8"}, "maintenances": + "14", "cluster_id": "37", "hypervisor_id": "801", "node_id": "49"}, "maintenances": [], "allowed_actions": ["poweroff", "terminate", "reboot", "stop_in_place", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3076" + - "3101" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:46:06 GMT + - Tue, 05 May 2020 07:10:04 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1961,7 +1887,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 4c9b1a18-bdbb-44d0-8c02-31404e0a0f6c + - 07f69852-dbc8-4b93-9754-0f1dc78bf363 status: 200 OK code: 200 duration: "" @@ -1973,13 +1899,13 @@ interactions: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/1b04199b-fbb2-43a7-b7e1-cebc78113c3c/action + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/bd656965-7300-4b8c-9e9f-e70c575500b2/action method: POST response: body: '{"task": {"status": "pending", "description": "server_terminate", "href_result": - "/servers/1b04199b-fbb2-43a7-b7e1-cebc78113c3c", "terminated_at": null, "href_from": - "/servers/1b04199b-fbb2-43a7-b7e1-cebc78113c3c/action", "started_at": "2020-05-04T15:46:06.887022+00:00", - "id": "9c4256e5-f0b7-4a94-9e7e-89b30873c4e3"}}' + "/servers/bd656965-7300-4b8c-9e9f-e70c575500b2", "terminated_at": null, "href_from": + "/servers/bd656965-7300-4b8c-9e9f-e70c575500b2/action", "started_at": "2020-05-05T07:10:05.658917+00:00", + "id": "0ad0d2b1-ceff-44bf-91d0-72a49068d73b"}}' headers: Content-Length: - "318" @@ -1988,9 +1914,9 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 15:46:06 GMT + - Tue, 05 May 2020 07:10:05 GMT Location: - - https://cp-par1.scaleway.com/tasks/9c4256e5-f0b7-4a94-9e7e-89b30873c4e3 + - https://cp-par1.scaleway.com/tasks/0ad0d2b1-ceff-44bf-91d0-72a49068d73b Server: - scaleway_api Strict-Transport-Security: @@ -2000,7 +1926,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 7aa2fde2-a7a4-481d-84a5-65858cf642bd + - 89c0b9d5-4065-4a3a-99fd-8ab69c175514 status: 202 Accepted code: 202 duration: "" @@ -2022,7 +1948,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 15:46:06 GMT + - Tue, 05 May 2020 07:10:05 GMT Server: - scaleway_api Strict-Transport-Security: @@ -2032,7 +1958,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1ea44d5b-129f-4f49-b366-b57107c058e5 + - d6850950-8250-4982-b8f2-63cd05576154 status: 204 No Content code: 204 duration: "" @@ -2042,7 +1968,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/9d5787e5-7e8d-4912-a0b2-6dc1dd5942ad + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/98430fab-9e3d-4b7d-bee5-505572f143fa method: DELETE response: body: "" @@ -2054,7 +1980,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 15:46:06 GMT + - Tue, 05 May 2020 07:10:05 GMT Server: - scaleway_api Strict-Transport-Security: @@ -2064,7 +1990,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - e1fe56fc-3795-4c0a-98b0-00ac76db1aa4 + - 9bf3612e-2546-4809-949a-328450f0bb97 status: 204 No Content code: 204 duration: "" diff --git a/internal/namespaces/instance/v1/testdata/test-server-terminate-without-block.stderr.golden b/internal/namespaces/instance/v1/testdata/test-server-terminate-without-block.stderr.golden index 7b32a0eb71..c6fd6d8668 100644 --- a/internal/namespaces/instance/v1/testdata/test-server-terminate-without-block.stderr.golden +++ b/internal/namespaces/instance/v1/testdata/test-server-terminate-without-block.stderr.golden @@ -1,2 +1,2 @@ -successfully detached volume cli-srv-zen-pascal-1 +successfully detached volume cli-srv-priceless-rosalind-1 successfully deleted ip 51.158.108.20 diff --git a/internal/namespaces/instance/v1/testdata/test-server-terminate-without-ips.cassette.yaml b/internal/namespaces/instance/v1/testdata/test-server-terminate-without-ips.cassette.yaml index d1e57ec915..a3f3f030e0 100644 --- a/internal/namespaces/instance/v1/testdata/test-server-terminate-without-ips.cassette.yaml +++ b/internal/namespaces/instance/v1/testdata/test-server-terminate-without-ips.cassette.yaml @@ -650,7 +650,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 15:44:32 GMT + - Tue, 05 May 2020 07:08:39 GMT Link: - ; rel="last" Server: @@ -662,7 +662,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - e9f1b2e2-e053-4974-b7e9-39cef850a139 + - 37535e03-b0d1-4a28-954f-9589b4e5f4df X-Total-Count: - "31" status: 200 OK @@ -700,7 +700,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 15:44:32 GMT + - Tue, 05 May 2020 07:08:39 GMT Server: - scaleway_api Strict-Transport-Security: @@ -710,7 +710,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 4b6c3031-6fca-4e06-b53f-088cb69e8a3e + - e9d1fdcf-6352-4e7d-942e-1e8ed590d6cb status: 200 OK code: 200 duration: "" @@ -1017,7 +1017,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 15:44:32 GMT + - Tue, 05 May 2020 07:08:39 GMT Link: - ; rel="last" Server: @@ -1029,7 +1029,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 05d16f9c-8efa-4200-aa5a-9ab7e0276ff4 + - 6b962504-4514-41a0-a54a-9dbaa93ba02c X-Total-Count: - "32" status: 200 OK @@ -1059,7 +1059,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 15:44:32 GMT + - Tue, 05 May 2020 07:08:39 GMT Location: - https://cp-par1.scaleway.com/ips/65ae2546-5893-40f2-bcc2-aabee4b4dc2f Server: @@ -1071,12 +1071,12 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - fae7bdd0-95a8-4149-b6dc-b8ad5121a4eb + - df8fb604-7ae8-4dc6-89bd-33a2d15fa2f5 status: 201 Created code: 201 duration: "" - request: - body: '{"name":"cli-srv-festive-raman","commercial_type":"DEV1-S","image":"f974feac-abae-4365-b988-8ec7d1cec10d","public_ip":"65ae2546-5893-40f2-bcc2-aabee4b4dc2f","organization":"104ff69c-3f34-48f4-b5f0-e516e4ad526b"}' + body: '{"name":"cli-srv-quirky-goldberg","commercial_type":"DEV1-S","image":"f974feac-abae-4365-b988-8ec7d1cec10d","public_ip":"65ae2546-5893-40f2-bcc2-aabee4b4dc2f","organization":"104ff69c-3f34-48f4-b5f0-e516e4ad526b"}' form: {} headers: Content-Type: @@ -1086,9 +1086,9 @@ interactions: url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers method: POST response: - body: '{"server": {"id": "0cb11e2d-c2ad-497b-baf0-84efc830f811", "name": "cli-srv-festive-raman", + body: '{"server": {"id": "d251549c-36ae-4e8d-90c5-e070819c636a", "name": "cli-srv-quirky-goldberg", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-festive-raman", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-quirky-goldberg", "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", @@ -1101,17 +1101,17 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "c082b993-61b5-46ae-a387-38152cfed7b7", + "fr-par-1"}, "volumes": {"0": {"id": "90d79c66-9e0c-435c-9c6b-7059dbbf5a49", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "0cb11e2d-c2ad-497b-baf0-84efc830f811", "name": "cli-srv-festive-raman"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:44:32.975616+00:00", - "modification_date": "2020-05-04T15:44:33.224411+00:00", "zone": "fr-par-1"}}, + "server": {"id": "d251549c-36ae-4e8d-90c5-e070819c636a", "name": "cli-srv-quirky-goldberg"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:08:40.064974+00:00", + "modification_date": "2020-05-05T07:08:40.323669+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": "", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": false, "enable_ipv6": - false, "private_ip": null, "creation_date": "2020-05-04T15:44:32.975616+00:00", - "modification_date": "2020-05-04T15:44:33.238189+00:00", "bootscript": {"id": + false, "private_ip": null, "creation_date": "2020-05-05T07:08:40.064974+00:00", + "modification_date": "2020-05-05T07:08:40.338110+00:00", "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", @@ -1125,15 +1125,15 @@ interactions: Cache-Control: - no-cache Content-Length: - - "2924" + - "2930" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:44:32 GMT + - Tue, 05 May 2020 07:08:40 GMT Location: - - https://cp-par1.scaleway.com/servers/0cb11e2d-c2ad-497b-baf0-84efc830f811 + - https://cp-par1.scaleway.com/servers/d251549c-36ae-4e8d-90c5-e070819c636a Server: - scaleway_api Strict-Transport-Security: @@ -1143,7 +1143,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 73ca2b2b-82e6-4905-ad83-a9e782b5d240 + - 9a406785-c563-47da-a0ca-b95f074ad95b status: 201 Created code: 201 duration: "" @@ -1155,13 +1155,13 @@ interactions: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/0cb11e2d-c2ad-497b-baf0-84efc830f811/action + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/d251549c-36ae-4e8d-90c5-e070819c636a/action method: POST response: body: '{"task": {"status": "pending", "description": "server_batch_poweron", "href_result": - "/servers/0cb11e2d-c2ad-497b-baf0-84efc830f811", "terminated_at": null, "href_from": - "/servers/0cb11e2d-c2ad-497b-baf0-84efc830f811/action", "started_at": "2020-05-04T15:44:33.637996+00:00", - "id": "8df59d40-daa0-43a9-805c-bc5af8bb4354"}}' + "/servers/d251549c-36ae-4e8d-90c5-e070819c636a", "terminated_at": null, "href_from": + "/servers/d251549c-36ae-4e8d-90c5-e070819c636a/action", "started_at": "2020-05-05T07:08:41.598459+00:00", + "id": "075f86c8-4084-4296-876c-86c92ba83e13"}}' headers: Content-Length: - "322" @@ -1170,9 +1170,9 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 15:44:33 GMT + - Tue, 05 May 2020 07:08:41 GMT Location: - - https://cp-par1.scaleway.com/tasks/8df59d40-daa0-43a9-805c-bc5af8bb4354 + - https://cp-par1.scaleway.com/tasks/075f86c8-4084-4296-876c-86c92ba83e13 Server: - scaleway_api Strict-Transport-Security: @@ -1182,7 +1182,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f7beb7eb-5ef1-45a3-9404-b9b12847a3e7 + - 38e3b432-e491-4890-a449-dff3700a8886 status: 202 Accepted code: 202 duration: "" @@ -1192,12 +1192,12 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/0cb11e2d-c2ad-497b-baf0-84efc830f811 + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/d251549c-36ae-4e8d-90c5-e070819c636a method: GET response: - body: '{"server": {"id": "0cb11e2d-c2ad-497b-baf0-84efc830f811", "name": "cli-srv-festive-raman", + body: '{"server": {"id": "d251549c-36ae-4e8d-90c5-e070819c636a", "name": "cli-srv-quirky-goldberg", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-festive-raman", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-quirky-goldberg", "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", @@ -1210,17 +1210,17 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "c082b993-61b5-46ae-a387-38152cfed7b7", + "fr-par-1"}, "volumes": {"0": {"id": "90d79c66-9e0c-435c-9c6b-7059dbbf5a49", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "0cb11e2d-c2ad-497b-baf0-84efc830f811", "name": "cli-srv-festive-raman"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:44:32.975616+00:00", - "modification_date": "2020-05-04T15:44:33.224411+00:00", "zone": "fr-par-1"}}, + "server": {"id": "d251549c-36ae-4e8d-90c5-e070819c636a", "name": "cli-srv-quirky-goldberg"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:08:40.064974+00:00", + "modification_date": "2020-05-05T07:08:40.323669+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "starting", "protected": false, "state_detail": "allocating node", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": null, "creation_date": "2020-05-04T15:44:32.975616+00:00", - "modification_date": "2020-05-04T15:44:33.287750+00:00", "bootscript": {"id": + false, "enable_ipv6": false, "private_ip": null, "creation_date": "2020-05-05T07:08:40.064974+00:00", + "modification_date": "2020-05-05T07:08:40.389155+00:00", "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", @@ -1234,13 +1234,13 @@ interactions: Cache-Control: - no-cache Content-Length: - - "2946" + - "2952" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:44:33 GMT + - Tue, 05 May 2020 07:08:41 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1250,7 +1250,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1dd938ce-a11c-47f9-9c16-6f5b44abf042 + - ff4397b5-cf5c-4dfc-8615-7fbb12d26ba4 status: 200 OK code: 200 duration: "" @@ -1260,12 +1260,12 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/0cb11e2d-c2ad-497b-baf0-84efc830f811 + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/d251549c-36ae-4e8d-90c5-e070819c636a method: GET response: - body: '{"server": {"id": "0cb11e2d-c2ad-497b-baf0-84efc830f811", "name": "cli-srv-festive-raman", + body: '{"server": {"id": "d251549c-36ae-4e8d-90c5-e070819c636a", "name": "cli-srv-quirky-goldberg", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-festive-raman", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-quirky-goldberg", "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", @@ -1278,107 +1278,38 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "c082b993-61b5-46ae-a387-38152cfed7b7", + "fr-par-1"}, "volumes": {"0": {"id": "90d79c66-9e0c-435c-9c6b-7059dbbf5a49", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "0cb11e2d-c2ad-497b-baf0-84efc830f811", "name": "cli-srv-festive-raman"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:44:32.975616+00:00", - "modification_date": "2020-05-04T15:44:33.224411+00:00", "zone": "fr-par-1"}}, + "server": {"id": "d251549c-36ae-4e8d-90c5-e070819c636a", "name": "cli-srv-quirky-goldberg"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:08:40.064974+00:00", + "modification_date": "2020-05-05T07:08:40.323669+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "starting", "protected": false, "state_detail": "provisioning node", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": "10.68.178.113", "creation_date": - "2020-05-04T15:44:32.975616+00:00", "modification_date": "2020-05-04T15:44:33.287750+00:00", - "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, - "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": - "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", - "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", - "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": - false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", - "name": "Default security group"}, "location": {"zone_id": "par1", "platform_id": - "14", "cluster_id": "37", "hypervisor_id": "502", "node_id": "57"}, "maintenances": - [], "allowed_actions": ["stop_in_place", "backup"], "placement_group": null, - "private_nics": [], "zone": "fr-par-1"}}' - headers: - Cache-Control: - - no-cache - Content-Length: - - "3056" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 04 May 2020 15:44:38 GMT - Server: - - scaleway_api - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 68c3faae-a8b9-4163-8bd7-69568592115a - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/0cb11e2d-c2ad-497b-baf0-84efc830f811 - method: GET - response: - body: '{"server": {"id": "0cb11e2d-c2ad-497b-baf0-84efc830f811", "name": "cli-srv-festive-raman", - "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-festive-raman", - "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic - Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": - {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", - "volume_type": "l_ssd", "size": 10000000000}, "extra_volumes": {}, "public": - true, "arch": "x86_64", "creation_date": "2019-03-05T10:13:15.974944+00:00", - "modification_date": "2019-03-05T13:32:29.274319+00:00", "default_bootscript": - {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 - mainline 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", + false, "enable_ipv6": false, "private_ip": "10.65.6.101", "creation_date": "2020-05-05T07:08:40.064974+00:00", + "modification_date": "2020-05-05T07:08:40.389155+00:00", "bootscript": {"id": + "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline + 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": - false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "c082b993-61b5-46ae-a387-38152cfed7b7", - "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": - "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "0cb11e2d-c2ad-497b-baf0-84efc830f811", "name": "cli-srv-festive-raman"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:44:32.975616+00:00", - "modification_date": "2020-05-04T15:44:33.224411+00:00", "zone": "fr-par-1"}}, - "tags": [], "state": "starting", "protected": false, "state_detail": "provisioning - node", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": - "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": "10.68.178.113", "creation_date": - "2020-05-04T15:44:32.975616+00:00", "modification_date": "2020-05-04T15:44:33.287750+00:00", - "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, - "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": - "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", - "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", - "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": {"zone_id": "par1", "platform_id": - "14", "cluster_id": "37", "hypervisor_id": "502", "node_id": "57"}, "maintenances": + "14", "cluster_id": "18", "hypervisor_id": "602", "node_id": "51"}, "maintenances": [], "allowed_actions": ["stop_in_place", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3056" + - "3060" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:44:43 GMT + - Tue, 05 May 2020 07:08:46 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1388,7 +1319,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ad17aa01-a115-4305-aa1d-6e2e5f1cfcee + - 9369f664-35c0-4dee-8bf7-acc702ca2232 status: 200 OK code: 200 duration: "" @@ -1398,12 +1329,12 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/0cb11e2d-c2ad-497b-baf0-84efc830f811 + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/d251549c-36ae-4e8d-90c5-e070819c636a method: GET response: - body: '{"server": {"id": "0cb11e2d-c2ad-497b-baf0-84efc830f811", "name": "cli-srv-festive-raman", + body: '{"server": {"id": "d251549c-36ae-4e8d-90c5-e070819c636a", "name": "cli-srv-quirky-goldberg", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-festive-raman", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-quirky-goldberg", "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", @@ -1416,38 +1347,38 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "c082b993-61b5-46ae-a387-38152cfed7b7", + "fr-par-1"}, "volumes": {"0": {"id": "90d79c66-9e0c-435c-9c6b-7059dbbf5a49", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "0cb11e2d-c2ad-497b-baf0-84efc830f811", "name": "cli-srv-festive-raman"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:44:32.975616+00:00", - "modification_date": "2020-05-04T15:44:33.224411+00:00", "zone": "fr-par-1"}}, + "server": {"id": "d251549c-36ae-4e8d-90c5-e070819c636a", "name": "cli-srv-quirky-goldberg"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:08:40.064974+00:00", + "modification_date": "2020-05-05T07:08:40.323669+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "starting", "protected": false, "state_detail": "provisioning node", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": "10.68.178.113", "creation_date": - "2020-05-04T15:44:32.975616+00:00", "modification_date": "2020-05-04T15:44:33.287750+00:00", - "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, - "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": - "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", + false, "enable_ipv6": false, "private_ip": "10.65.6.101", "creation_date": "2020-05-05T07:08:40.064974+00:00", + "modification_date": "2020-05-05T07:08:40.389155+00:00", "bootscript": {"id": + "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline + 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", + "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": {"zone_id": "par1", "platform_id": - "14", "cluster_id": "37", "hypervisor_id": "502", "node_id": "57"}, "maintenances": + "14", "cluster_id": "18", "hypervisor_id": "602", "node_id": "51"}, "maintenances": [], "allowed_actions": ["stop_in_place", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3056" + - "3060" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:44:48 GMT + - Tue, 05 May 2020 07:08:51 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1457,7 +1388,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a20bafa5-2b1d-4a23-af3a-d21a39ee80ec + - 71a546e1-8628-4982-9ffc-c1e69fd78416 status: 200 OK code: 200 duration: "" @@ -1467,12 +1398,12 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/0cb11e2d-c2ad-497b-baf0-84efc830f811 + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/d251549c-36ae-4e8d-90c5-e070819c636a method: GET response: - body: '{"server": {"id": "0cb11e2d-c2ad-497b-baf0-84efc830f811", "name": "cli-srv-festive-raman", + body: '{"server": {"id": "d251549c-36ae-4e8d-90c5-e070819c636a", "name": "cli-srv-quirky-goldberg", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-festive-raman", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-quirky-goldberg", "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", @@ -1485,38 +1416,38 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "c082b993-61b5-46ae-a387-38152cfed7b7", + "fr-par-1"}, "volumes": {"0": {"id": "90d79c66-9e0c-435c-9c6b-7059dbbf5a49", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "0cb11e2d-c2ad-497b-baf0-84efc830f811", "name": "cli-srv-festive-raman"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:44:32.975616+00:00", - "modification_date": "2020-05-04T15:44:33.224411+00:00", "zone": "fr-par-1"}}, + "server": {"id": "d251549c-36ae-4e8d-90c5-e070819c636a", "name": "cli-srv-quirky-goldberg"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:08:40.064974+00:00", + "modification_date": "2020-05-05T07:08:40.323669+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "starting", "protected": false, "state_detail": "provisioning node", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": "10.68.178.113", "creation_date": - "2020-05-04T15:44:32.975616+00:00", "modification_date": "2020-05-04T15:44:33.287750+00:00", - "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, - "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": - "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", + false, "enable_ipv6": false, "private_ip": "10.65.6.101", "creation_date": "2020-05-05T07:08:40.064974+00:00", + "modification_date": "2020-05-05T07:08:40.389155+00:00", "bootscript": {"id": + "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline + 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", + "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": {"zone_id": "par1", "platform_id": - "14", "cluster_id": "37", "hypervisor_id": "502", "node_id": "57"}, "maintenances": + "14", "cluster_id": "18", "hypervisor_id": "602", "node_id": "51"}, "maintenances": [], "allowed_actions": ["stop_in_place", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3056" + - "3060" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:44:53 GMT + - Tue, 05 May 2020 07:08:56 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1526,7 +1457,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ce4e56bc-1a92-46e4-8cda-5b84dc4728c7 + - 59ea8f18-f21a-4e2c-9202-930ac2917dee status: 200 OK code: 200 duration: "" @@ -1536,12 +1467,12 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/0cb11e2d-c2ad-497b-baf0-84efc830f811 + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/d251549c-36ae-4e8d-90c5-e070819c636a method: GET response: - body: '{"server": {"id": "0cb11e2d-c2ad-497b-baf0-84efc830f811", "name": "cli-srv-festive-raman", + body: '{"server": {"id": "d251549c-36ae-4e8d-90c5-e070819c636a", "name": "cli-srv-quirky-goldberg", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-festive-raman", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-quirky-goldberg", "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", @@ -1554,38 +1485,38 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "c082b993-61b5-46ae-a387-38152cfed7b7", + "fr-par-1"}, "volumes": {"0": {"id": "90d79c66-9e0c-435c-9c6b-7059dbbf5a49", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "0cb11e2d-c2ad-497b-baf0-84efc830f811", "name": "cli-srv-festive-raman"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:44:32.975616+00:00", - "modification_date": "2020-05-04T15:44:33.224411+00:00", "zone": "fr-par-1"}}, + "server": {"id": "d251549c-36ae-4e8d-90c5-e070819c636a", "name": "cli-srv-quirky-goldberg"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:08:40.064974+00:00", + "modification_date": "2020-05-05T07:08:40.323669+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "starting", "protected": false, "state_detail": "provisioning node", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": "10.68.178.113", "creation_date": - "2020-05-04T15:44:32.975616+00:00", "modification_date": "2020-05-04T15:44:33.287750+00:00", - "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, - "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": - "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", + false, "enable_ipv6": false, "private_ip": "10.65.6.101", "creation_date": "2020-05-05T07:08:40.064974+00:00", + "modification_date": "2020-05-05T07:08:40.389155+00:00", "bootscript": {"id": + "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline + 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", + "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": {"zone_id": "par1", "platform_id": - "14", "cluster_id": "37", "hypervisor_id": "502", "node_id": "57"}, "maintenances": + "14", "cluster_id": "18", "hypervisor_id": "602", "node_id": "51"}, "maintenances": [], "allowed_actions": ["stop_in_place", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3056" + - "3060" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:44:59 GMT + - Tue, 05 May 2020 07:09:01 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1595,7 +1526,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 74319f80-1edd-46f0-b32d-b892c7c2c821 + - 8ba6754b-500c-45db-be72-302e593afd74 status: 200 OK code: 200 duration: "" @@ -1605,12 +1536,12 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/0cb11e2d-c2ad-497b-baf0-84efc830f811 + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/d251549c-36ae-4e8d-90c5-e070819c636a method: GET response: - body: '{"server": {"id": "0cb11e2d-c2ad-497b-baf0-84efc830f811", "name": "cli-srv-festive-raman", + body: '{"server": {"id": "d251549c-36ae-4e8d-90c5-e070819c636a", "name": "cli-srv-quirky-goldberg", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-festive-raman", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-quirky-goldberg", "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", @@ -1623,38 +1554,38 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "c082b993-61b5-46ae-a387-38152cfed7b7", + "fr-par-1"}, "volumes": {"0": {"id": "90d79c66-9e0c-435c-9c6b-7059dbbf5a49", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "0cb11e2d-c2ad-497b-baf0-84efc830f811", "name": "cli-srv-festive-raman"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:44:32.975616+00:00", - "modification_date": "2020-05-04T15:44:33.224411+00:00", "zone": "fr-par-1"}}, + "server": {"id": "d251549c-36ae-4e8d-90c5-e070819c636a", "name": "cli-srv-quirky-goldberg"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:08:40.064974+00:00", + "modification_date": "2020-05-05T07:08:40.323669+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "running", "protected": false, "state_detail": "booting kernel", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": "10.68.178.113", "creation_date": - "2020-05-04T15:44:32.975616+00:00", "modification_date": "2020-05-04T15:44:59.585371+00:00", - "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, - "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": - "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", + false, "enable_ipv6": false, "private_ip": "10.65.6.101", "creation_date": "2020-05-05T07:08:40.064974+00:00", + "modification_date": "2020-05-05T07:09:05.841793+00:00", "bootscript": {"id": + "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline + 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", + "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": {"zone_id": "par1", "platform_id": - "14", "cluster_id": "37", "hypervisor_id": "502", "node_id": "57"}, "maintenances": + "14", "cluster_id": "18", "hypervisor_id": "602", "node_id": "51"}, "maintenances": [], "allowed_actions": ["poweroff", "terminate", "reboot", "stop_in_place", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3087" + - "3091" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:04 GMT + - Tue, 05 May 2020 07:09:07 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1664,7 +1595,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1b428cc6-b805-404e-95f6-4ee14d8363a0 + - 2f796725-4282-443a-8486-a777630ff43a status: 200 OK code: 200 duration: "" @@ -1674,12 +1605,12 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/0cb11e2d-c2ad-497b-baf0-84efc830f811 + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/d251549c-36ae-4e8d-90c5-e070819c636a method: GET response: - body: '{"server": {"id": "0cb11e2d-c2ad-497b-baf0-84efc830f811", "name": "cli-srv-festive-raman", + body: '{"server": {"id": "d251549c-36ae-4e8d-90c5-e070819c636a", "name": "cli-srv-quirky-goldberg", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": - "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-festive-raman", + "104ff69c-3f34-48f4-b5f0-e516e4ad526b", "hostname": "cli-srv-quirky-goldberg", "image": {"id": "f974feac-abae-4365-b988-8ec7d1cec10d", "name": "Ubuntu Bionic Beaver", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "dd5f5c10-23b1-4c9c-8445-eb6740957c84", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", @@ -1692,38 +1623,38 @@ interactions: "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "from_server": null, "state": "available", "zone": - "fr-par-1"}, "volumes": {"0": {"id": "c082b993-61b5-46ae-a387-38152cfed7b7", + "fr-par-1"}, "volumes": {"0": {"id": "90d79c66-9e0c-435c-9c6b-7059dbbf5a49", "name": "snapshot-de728daa-0bf6-4c64-abf5-a9477e791c83-2019-03-05_10:13", "volume_type": "l_ssd", "export_uri": null, "organization": "104ff69c-3f34-48f4-b5f0-e516e4ad526b", - "server": {"id": "0cb11e2d-c2ad-497b-baf0-84efc830f811", "name": "cli-srv-festive-raman"}, - "size": 20000000000, "state": "available", "creation_date": "2020-05-04T15:44:32.975616+00:00", - "modification_date": "2020-05-04T15:44:33.224411+00:00", "zone": "fr-par-1"}}, + "server": {"id": "d251549c-36ae-4e8d-90c5-e070819c636a", "name": "cli-srv-quirky-goldberg"}, + "size": 20000000000, "state": "available", "creation_date": "2020-05-05T07:08:40.064974+00:00", + "modification_date": "2020-05-05T07:08:40.323669+00:00", "zone": "fr-par-1"}}, "tags": [], "state": "running", "protected": false, "state_detail": "booting kernel", "public_ip": {"id": "65ae2546-5893-40f2-bcc2-aabee4b4dc2f", "address": "51.158.108.20", "dynamic": false}, "ipv6": null, "extra_networks": [], "dynamic_ip_required": - false, "enable_ipv6": false, "private_ip": "10.68.178.113", "creation_date": - "2020-05-04T15:44:32.975616+00:00", "modification_date": "2020-05-04T15:44:59.585371+00:00", - "bootscript": {"id": "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, - "title": "x86_64 mainline 4.9.93 rev1", "architecture": "x86_64", "organization": - "11111111-1111-4111-8111-111111111111", "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", + false, "enable_ipv6": false, "private_ip": "10.65.6.101", "creation_date": "2020-05-05T07:08:40.064974+00:00", + "modification_date": "2020-05-05T07:09:05.841793+00:00", "bootscript": {"id": + "15fbd2f7-a0f9-412b-8502-6a44da8d98b8", "public": false, "title": "x86_64 mainline + 4.9.93 rev1", "architecture": "x86_64", "organization": "11111111-1111-4111-8111-111111111111", + "kernel": "http://169.254.42.24/kernel/x86_64-mainline-lts-4.9-4.9.93-rev1/vmlinuz-4.9.93", "dtb": "", "initrd": "http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.14.6.gz", "bootcmdargs": "LINUX_COMMON scaleway boot=local nbd.max_part=16", "default": false, "zone": "fr-par-1"}, "security_group": {"id": "00783f68-b80e-4f04-8520-bfc3249380be", "name": "Default security group"}, "location": {"zone_id": "par1", "platform_id": - "14", "cluster_id": "37", "hypervisor_id": "502", "node_id": "57"}, "maintenances": + "14", "cluster_id": "18", "hypervisor_id": "602", "node_id": "51"}, "maintenances": [], "allowed_actions": ["poweroff", "terminate", "reboot", "stop_in_place", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Cache-Control: - no-cache Content-Length: - - "3087" + - "3091" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:05 GMT + - Tue, 05 May 2020 07:09:07 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1733,7 +1664,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 0ad3dd19-6e19-483e-bf14-82c3bac15458 + - d9cdbf9d-876c-4b57-a0d7-50a3ce5b8f20 status: 200 OK code: 200 duration: "" @@ -1745,13 +1676,13 @@ interactions: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.2; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/0cb11e2d-c2ad-497b-baf0-84efc830f811/action + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/d251549c-36ae-4e8d-90c5-e070819c636a/action method: POST response: body: '{"task": {"status": "pending", "description": "server_terminate", "href_result": - "/servers/0cb11e2d-c2ad-497b-baf0-84efc830f811", "terminated_at": null, "href_from": - "/servers/0cb11e2d-c2ad-497b-baf0-84efc830f811/action", "started_at": "2020-05-04T15:45:07.074516+00:00", - "id": "676b1c79-ac9e-4b1a-9538-8af75c17e283"}}' + "/servers/d251549c-36ae-4e8d-90c5-e070819c636a", "terminated_at": null, "href_from": + "/servers/d251549c-36ae-4e8d-90c5-e070819c636a/action", "started_at": "2020-05-05T07:09:07.712897+00:00", + "id": "a91161ee-bdda-4d7b-b2fd-a69cd450b4f4"}}' headers: Content-Length: - "318" @@ -1760,9 +1691,9 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:09 GMT + - Tue, 05 May 2020 07:09:07 GMT Location: - - https://cp-par1.scaleway.com/tasks/676b1c79-ac9e-4b1a-9538-8af75c17e283 + - https://cp-par1.scaleway.com/tasks/a91161ee-bdda-4d7b-b2fd-a69cd450b4f4 Server: - scaleway_api Strict-Transport-Security: @@ -1772,7 +1703,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 2340bef9-5e95-43b4-9aac-1fbbeb38d68a + - 04d4cc29-ad38-4329-8eca-638edc74b9e7 status: 202 Accepted code: 202 duration: "" @@ -1794,7 +1725,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 15:45:09 GMT + - Tue, 05 May 2020 07:09:07 GMT Server: - scaleway_api Strict-Transport-Security: @@ -1804,7 +1735,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - e6c0b85c-91a3-49e8-bfff-b5ad40d05f77 + - b9f99a6e-29bd-49b2-b1ca-3c6ad1f570a1 status: 204 No Content code: 204 duration: ""