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

Dev #479

Merged
merged 4 commits into from
Oct 27, 2023
Merged

Dev #479

Show file tree
Hide file tree
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
42 changes: 42 additions & 0 deletions wiki/Compute_Center/Berlin.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,3 +301,45 @@ the correct format (typically qcow2). If there are special requirements for
your image, you can specify the minimum disk size and also the minimum
amount of RAM. After the successful upload only the members of your project
can use the image.

## openstack-cli

This tutorial shows how you can setup openstack-cli in a project to manage your project from the vm without a web browser. This tutorial does only apply to the de.NBI site Berlin and was only tested with the Ubuntu 22.04 image.


1. Create Application credentials in your project.

![select application credentials](img/berlin/application_credentials_select.png)

![create application credentials](img/berlin/application_credentials_create.png)

2. Download both files presented to you: openrc.sh and cloud.yaml

![download application credentials files](img/berlin/application_credentials_files.png)

3. Create a vm in your project.
4. Copy both files to your vm. Save 'clouds.yaml' to the directory ```~/.config/openstack/```.
5. Install virtual environment for python
```bash
sudo apt-get install python-virtualenv
```
6. Create virtual environment named 'venv'.
```bash
virtualenv ~/venv
```
7. activate the environment
```bash
source ~/venv/bin/activate
```
8. Install the openstack cli client in the environment
```bash
pip install python-openstackclient
```
9. Source the ```openrc.sh``` file to use the credentials to use openstack-cli
```bash
source openrc.sh
```
10. Use openstack-cli to get information about your project
```bash
openstack server list
```
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion wiki/Tutorials/Persistent_SSH_Sessions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ $ man screen

```

- Good alternative: [TMUX](https://tmuxguide.readthedocs.io/en/latest/tmux/tmux.html)
- Good alternative: [TMUX](https://github.com/tmux/tmux/wiki/Getting-Started#getting-started)