Skip to content

Commit

Permalink
Merge pull request #479 from deNBI/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
dweinholz authored Oct 27, 2023
2 parents 35725c3 + 839a0fe commit 62a4741
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 1 deletion.
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)

0 comments on commit 62a4741

Please sign in to comment.