Skip to content

Commit

Permalink
Save a troubleshooting tip and allow for 'none' platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
ssorj committed Feb 29, 2024
1 parent d707c2d commit 49e1ed6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and produces two outputs: a `README.md` file and a test routine.
* [Skewer YAML](#skewer-yaml)
* [Standard steps](#standard-steps)
* [Demo mode](#demo-mode)
* [Troubleshooting](#troubleshooting)

## An example example

Expand Down Expand Up @@ -329,3 +330,24 @@ up and exiting, it pauses so you can inspect things.
It is enabled by setting the environment variable `SKEWER_DEMO` to any
value when you call `./plano run` or one of its variants. You can
also use `./plano demo`, which sets the variable for you.

## Troubleshooting

### Subnet is already used

Error:

~~~ console
plano: notice: Starting Minikube
plano: notice: Running command 'minikube start -p skewer --auto-update-drivers false'
* Creating podman container (CPUs=2, Memory=16000MB) ...- E0229 05:44:29.821273 12224 network_create.go:113] error while trying to create podman network skewer 192.168.49.0/24: create podman network skewer 192.168.49.0/24 with gateway 192.168.49.1 and MTU of 0: sudo -n podman network create --driver=bridge --subnet=192.168.49.0/24 --gateway=192.168.49.1 --label=created_by.minikube.sigs.k8s.io=true --label=name.minikube.sigs.k8s.io=skewer skewer: exit status 125

Error: subnet 192.168.49.0/24 is already used on the host or by another config
~~~

Remove the existing Podman network. Note that it might belong to
another user on the host.

~~~ shell
sudo podman network rm minikube
~~~
2 changes: 1 addition & 1 deletion python/skewer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ def check(self):
check_required_attributes(self, "platform")
check_unknown_attributes(self)

if self.platform not in ("kubernetes", "podman"):
if self.platform not in ("kubernetes", "podman", None):
fail(f"{self} attribute 'platform' has an illegal value: {self.platform}")

if self.platform == "kubernetes":
Expand Down

0 comments on commit 49e1ed6

Please sign in to comment.