Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

docs/dev/libvirt: Add troubleshooting docs for libvirt console issue. #1371

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions docs/dev/libvirt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,40 @@ kubectl get --all-namespaces pods
## Troubleshooting
If following the above steps hasn't quite worked, please review this section for well known issues.

### Console doesn't come up
In case of libvirt there is no wildcard DNS resolution and console depends on the route which is created by auth operator ([Issue #1007](https://github.com/openshift/installer/issues/1007)).
To make it work we need to first create the manifests and edit the `domain` for ingress config, before directly creating the cluster.

- Add another domain entry in the openshift.conf which used by dnsmasq.
Here `tt.testing` is the domain which I choose when running the installer.
Here the IP in the address belong to one of the worker node.
```console
$ cat /etc/NetworkManager/dnsmasq.d/openshift.conf
server=/tt.testing/192.168.126.1
address=/.apps.tt.testing/192.168.126.51
```

- Make sure you restart the NetworkManager after change in the openshift.conf
```console
$ sudo systemctl restart NetworkManager
```

- Create the manifests
```console
$ openshift-install --dir $INSTALL_DIR create manifests
```

- Domain entry for cluster-ingress-02-config.yml file should be following (here domain is what your created initially)
```console
$ grep domain $INSTALL_DIR/manifests/cluster-ingress-02-config.yml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@praveenkumar Wouldn't you agree that my sed suggestion would better since folks can just directly copy&paste it?

domain: apps.tt.testing
```

- Start the installer to create the cluster
```console
$ openshift-install --dir $INSTALL_DIR create cluster
```

### Install throws an `Unable to resolve address 'localhost'` error

If you're seeing an error similar to
Expand Down