Skip to content

Commit 42dff7d

Browse files
committed
Drop support for Packet platform
The platform is dead: https://deploy.equinix.com/blog/sunsetting-equinix-metal/
1 parent fcc06af commit 42dff7d

File tree

21 files changed

+8
-1477
lines changed

21 files changed

+8
-1477
lines changed

mantle/README.md

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Ideally, all software needed for a test should be included by building
2424
it into the image from the SDK.
2525

2626
Kola supports running tests on multiple platforms, currently QEMU, GCP,
27-
AWS, VMware VSphere, Packet, and OpenStack. In the future systemd-nspawn and other
27+
AWS, VMware VSphere, and OpenStack. In the future systemd-nspawn and other
2828
platforms may be added.
2929
Local platforms do not rely on access to the Internet as a design
3030
principle of kola, minimizing external dependencies. Any network
@@ -154,7 +154,7 @@ is not invoked manually.
154154
### ore
155155
Ore provides a low-level interface for each cloud provider. It has commands
156156
related to launching instances on a variety of platforms (gcloud, aliyun, aws,
157-
azure, esx, ibmcloud and packet) within the latest SDK image. Ore mimics the underlying
157+
azure, esx, and ibmcloud) within the latest SDK image. Ore mimics the underlying
158158
api for each cloud provider closely, so the interface for each cloud provider
159159
is different. See each providers `help` command for the available actions.
160160

@@ -183,7 +183,7 @@ Plume release handles this as well, so it does not need to be run as part of
183183
the release process.
184184

185185
## Platform Credentials
186-
Each platform reads the credentials it uses from different files. The `aliyun`, `aws`, `azure`, `do`, `esx`, `ibmcloud` and `packet`
186+
Each platform reads the credentials it uses from different files. The `aliyun`, `aws`, `azure`, `do`, `esx`, and `ibmcloud`
187187
platforms support selecting from multiple configured credentials, call "profiles". The examples below
188188
are for the "default" profile, but other profiles can be specified in the credentials files and selected
189189
via the `--<platform-name>-profile` flag:
@@ -336,17 +336,6 @@ IAM > Service Accounts > [account] > Keys.
336336

337337
`user_domain` is required on some newer versions of OpenStack using Keystone V3 but is optional on older versions. `floating_ip_pool` and `region_name` can be optionally specified here to be used as a default if not specified on the command line.
338338

339-
### packet
340-
`packet` uses `~/.config/packet.json`. This can be configured manually:
341-
```
342-
{
343-
"default": {
344-
"api_key": "your api key here",
345-
"project": "project id here"
346-
}
347-
}
348-
```
349-
350339
### ibmcloud
351340
`ibmcloud` uses `~/.bluemix/apikey.json`. This can be populated by downloading the apikey from the IBMCloud UI (https://cloud.ibm.com/login) or by using the IBMCloud cli (https://cloud.ibm.com/docs/cli?topic=cli-install-ibmcloud-cli). This would require the user to login with the correct credentials:
352341
```

mantle/auth/packet.go

Lines changed: 0 additions & 62 deletions
This file was deleted.

mantle/cmd/kola/kola.go

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ func preRun(cmd *cobra.Command, args []string) error {
167167
return err
168168
}
169169

170-
// Packet uses storage, and storage talks too much.
170+
// Reduce storage log level by default. We probably don't want to
171+
// reduce it in general, but in the "kola run" output the extra
172+
// messages are a distraction.
171173
if !plog.LevelAt(capnslog.INFO) {
172174
mantleLogger := capnslog.MustRepoLogger("github.com/coreos/coreos-assembler/mantle")
173175
mantleLogger.SetLogLevel(map[string]capnslog.LogLevel{
@@ -324,14 +326,6 @@ func writeProps() error {
324326
Image string `json:"image"`
325327
Flavor string `json:"flavor"`
326328
}
327-
type Packet struct {
328-
Facility string `json:"facility"`
329-
Plan string `json:"plan"`
330-
InstallerImageBaseURL string `json:"installer"`
331-
Architecture string `json:"architecture"`
332-
IPXEURL string `json:"ipxe"`
333-
ImageURL string `json:"image"`
334-
}
335329
type QEMU struct {
336330
Image string `json:"image"`
337331
ImageSize string `json:"imageSize"`
@@ -349,7 +343,6 @@ func writeProps() error {
349343
ESX ESX `json:"esx"`
350344
GCP GCP `json:"gcp"`
351345
OpenStack OpenStack `json:"openstack"`
352-
Packet Packet `json:"packet"`
353346
QEMU QEMU `json:"qemu"`
354347
}{
355348
Cmdline: os.Args,
@@ -388,13 +381,6 @@ func writeProps() error {
388381
Image: kola.OpenStackOptions.Image,
389382
Flavor: kola.OpenStackOptions.Flavor,
390383
},
391-
Packet: Packet{
392-
Facility: kola.PacketOptions.Facility,
393-
Plan: kola.PacketOptions.Plan,
394-
Architecture: kola.PacketOptions.Architecture,
395-
IPXEURL: kola.PacketOptions.IPXEURL,
396-
ImageURL: kola.PacketOptions.ImageURL,
397-
},
398384
QEMU: QEMU{
399385
Image: kola.QEMUOptions.DiskImage,
400386
ImageSize: kola.QEMUOptions.DiskSize,

mantle/cmd/kola/options.go

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ var (
4040
kolaPlatform string
4141
kolaParallelArg string
4242
kolaArchitectures = []string{"amd64"}
43-
kolaPlatforms = []string{"aws", "azure", "do", "esx", "gcp", "openstack", "packet", "qemu", "qemu-iso"}
43+
kolaPlatforms = []string{"aws", "azure", "do", "esx", "gcp", "openstack", "qemu", "qemu-iso"}
4444
kolaDistros = []string{"fcos", "rhcos", "scos"}
4545
)
4646

@@ -137,17 +137,6 @@ func init() {
137137
sv(&kola.OpenStackOptions.Domain, "openstack-domain", "", "OpenStack domain ID")
138138
sv(&kola.OpenStackOptions.FloatingIPNetwork, "openstack-floating-ip-network", "", "OpenStack network to use when creating a floating IP")
139139

140-
// packet-specific options
141-
sv(&kola.PacketOptions.ConfigPath, "packet-config-file", "", "Packet config file (default \"~/"+auth.PacketConfigPath+"\")")
142-
sv(&kola.PacketOptions.Profile, "packet-profile", "", "Packet profile (default \"default\")")
143-
sv(&kola.PacketOptions.ApiKey, "packet-api-key", "", "Packet API key (overrides config file)")
144-
sv(&kola.PacketOptions.Project, "packet-project", "", "Packet project UUID (overrides config file)")
145-
sv(&kola.PacketOptions.Facility, "packet-facility", "sjc1", "Packet facility code")
146-
sv(&kola.PacketOptions.Plan, "packet-plan", "", "Packet plan slug (default arch-dependent, e.g. \"t1.small.x86\")")
147-
sv(&kola.PacketOptions.Architecture, "packet-architecture", "x86_64", "Packet CPU architecture")
148-
sv(&kola.PacketOptions.IPXEURL, "packet-ipxe-url", "", "iPXE script URL (default arch-dependent, e.g. \"https://raw.githubusercontent.com/coreos/coreos-assembler/main/mantle/platform/api/packet/fcos-x86_64.ipxe\")")
149-
sv(&kola.PacketOptions.ImageURL, "packet-image-url", "", "image URL (default arch-dependent, e.g. \"https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/31.20200223.3.0/x86_64/fedora-coreos-31.20200223.3.0-metal.x86_64.raw.xz\")")
150-
151140
// QEMU-specific options
152141
sv(&kola.QEMUOptions.Firmware, "qemu-firmware", "", "Boot firmware: bios,uefi,uefi-secure (default bios)")
153142
sv(&kola.QEMUOptions.DiskImage, "qemu-image", "", "path to CoreOS disk image")

mantle/cmd/ore/packet.go

Lines changed: 0 additions & 23 deletions
This file was deleted.

mantle/cmd/ore/packet/create-device.go

Lines changed: 0 additions & 90 deletions
This file was deleted.

mantle/cmd/ore/packet/delete-keys.go

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)