Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
identity and menu
Browse files Browse the repository at this point in the history
  • Loading branch information
lbrick committed Sep 10, 2023
1 parent c297d85 commit c82c542
Show file tree
Hide file tree
Showing 6 changed files with 269 additions and 3 deletions.
3 changes: 3 additions & 0 deletions docs/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* [Home](index.md)
* [User Guides](user-guides/)
* */
13 changes: 13 additions & 0 deletions docs/user-guides/create-and-manage-identity/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
hidden: false
label_names:
- identity
- create
- manage
position: 1
title: Create and Manage identity
vote_count: 1
vote_sum: 1
---

Flexi Identity
6 changes: 6 additions & 0 deletions docs/user-guides/create-and-manage-identity/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
* [Identity: Create and Manage](index.md)
* With the Dashboard
* [Networks](create-and-manage-networks-with-the-dashboard.md)
* With the CLI
* [Networks](create-and-manage-networks-via-cli.md)
* *
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,246 @@ vote_sum: 1

!!! note
The openstack CLI will need to be setup to interact with the FlexiHPC system. Please read [Setting up your CLI environment](../setting-up-your-CLI-environment/index.md) to interact with FlexiHPC to get started.

## Create a network

Running the below command will generate a network without a subnet

```
openstack network create NETWORK_NAME
```

Our example command with response

```
openstack network create wiki-net
```

``` { .sh .no-copy }
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | UP |
| availability_zone_hints | |
| availability_zones | |
| created_at | 2023-09-10T21:10:02Z |
| description | |
| dns_domain | |
| id | 15274353-ceae-476c-a374-dc7142a676f4 |
| ipv4_address_scope | None |
| ipv6_address_scope | None |
| is_default | False |
| is_vlan_transparent | None |
| mtu | 8942 |
| name | wiki-net |
| port_security_enabled | True |
| project_id | 4f07cc254d6c4471805d49bae1f739b9 |
| provider:network_type | None |
| provider:physical_network | None |
| provider:segmentation_id | None |
| qos_policy_id | None |
| revision_number | 1 |
| router:external | Internal |
| segments | None |
| shared | False |
| status | ACTIVE |
| subnets | |
| tags | |
| tenant_id | 4f07cc254d6c4471805d49bae1f739b9 |
| updated_at | 2023-09-10T21:10:02Z |
+---------------------------+--------------------------------------+
```

Take note of the `id` that is returned for the new network

!!! note
Our `id` from above is `15274353-ceae-476c-a374-dc7142a676f4`

## Create a network subnet

Running the below command will generate a subnet for the network that you supply the id from

```
openstack subnet create SUBNET_NAME --network NETWORK_ID --subnet-range IP_RANGE_CIDR
```

Our example command using the id from above will look like the following

```
openstack subnet create wiki-subnet --network 15274353-ceae-476c-a374-dc7142a676f4 --subnet-range 192.0.2.0/24
```

``` { .sh .no-copy }
+----------------------+--------------------------------------+
| Field | Value |
+----------------------+--------------------------------------+
| allocation_pools | 192.0.2.2-192.0.2.254 |
| cidr | 192.0.2.0/24 |
| created_at | 2023-09-10T21:11:13Z |
| description | |
| dns_nameservers | |
| dns_publish_fixed_ip | False |
| enable_dhcp | True |
| gateway_ip | 192.0.2.1 |
| host_routes | |
| id | ae9277e7-0a2c-4325-8eb1-33ad86eec974 |
| ip_version | 4 |
| ipv6_address_mode | None |
| ipv6_ra_mode | None |
| name | wiki-subnet |
| network_id | 15274353-ceae-476c-a374-dc7142a676f4 |
| project_id | 4f07cc254d6c4471805d49bae1f739b9 |
| revision_number | 0 |
| segment_id | None |
| service_types | |
| subnetpool_id | None |
| tags | |
| updated_at | 2023-09-10T21:11:13Z |
+----------------------+--------------------------------------+
```

## List all networks and subnets

Running the below command will list all networks within your project

```
openstack network list
```

``` { .sh .no-copy }
+--------------------------------------+--------------------------------+--------------------------------------+
| ID | Name | Subnets |
+--------------------------------------+--------------------------------+--------------------------------------+
| 15274353-ceae-476c-a374-dc7142a676f4 | wiki-net | ae9277e7-0a2c-4325-8eb1-33ad86eec974 |
| 33d0c11b-b659-4b77-9afc-5676fe965839 | external | 5c2644ad-7253-42f5-ad69-40970b84dea6 |
| 79029286-80ad-4923-a2e6-7d1216a9f2be | rally_verify_88403f86_qmojdKSJ | |
| bcfd4714-ef9c-4c0b-aa58-ad8bcc1a999e | rally_verify_51cf3f2d_mQ0taHVb | |
| d3a7ddb5-6582-42cf-978a-c99b4ed25ad4 | NeSI-Training-Test | f5715775-270c-4230-bfa7-fdbdf51352dc |
| d780f680-9640-430f-813f-dbf2128b445c | azimuth-demo | 70dc21e9-d8f4-4232-bda9-2f0a0d508105 |
+--------------------------------------+--------------------------------+--------------------------------------+
```

Running the below will list all subnets within your project

```
openstack subnet list
```

``` { .sh .no-copy }
+--------------------------------------+--------------------+--------------------------------------+------------------+
| ID | Name | Network | Subnet |
+--------------------------------------+--------------------+--------------------------------------+------------------+
| 5c2644ad-7253-42f5-ad69-40970b84dea6 | external | 33d0c11b-b659-4b77-9afc-5676fe965839 | 163.7.177.0/24 |
| 70dc21e9-d8f4-4232-bda9-2f0a0d508105 | azimuth-demo | d780f680-9640-430f-813f-dbf2128b445c | 192.168.100.0/24 |
| ae9277e7-0a2c-4325-8eb1-33ad86eec974 | wiki-subnet | 15274353-ceae-476c-a374-dc7142a676f4 | 192.0.2.0/24 |
| f5715775-270c-4230-bfa7-fdbdf51352dc | NeSI-Training-Test | d3a7ddb5-6582-42cf-978a-c99b4ed25ad4 | 10.1.0.0/24 |
+--------------------------------------+--------------------+--------------------------------------+------------------+
```

## Delete a subnet

Run the below command to list out all subnets

```
openstack subnet list
```

``` { .sh .no-copy }
+--------------------------------------+--------------------+--------------------------------------+------------------+
| ID | Name | Network | Subnet |
+--------------------------------------+--------------------+--------------------------------------+------------------+
| 5c2644ad-7253-42f5-ad69-40970b84dea6 | external | 33d0c11b-b659-4b77-9afc-5676fe965839 | 163.7.177.0/24 |
| 70dc21e9-d8f4-4232-bda9-2f0a0d508105 | azimuth-demo | d780f680-9640-430f-813f-dbf2128b445c | 192.168.100.0/24 |
| ae9277e7-0a2c-4325-8eb1-33ad86eec974 | wiki-subnet | 15274353-ceae-476c-a374-dc7142a676f4 | 192.0.2.0/24 |
| f5715775-270c-4230-bfa7-fdbdf51352dc | NeSI-Training-Test | d3a7ddb5-6582-42cf-978a-c99b4ed25ad4 | 10.1.0.0/24 |
+--------------------------------------+--------------------+--------------------------------------+------------------+
```

Take note of the subnet id that you wish to delete

!!! note
For our example we will use `ae9277e7-0a2c-4325-8eb1-33ad86eec974`

We then run the following command while supplying it with the id we have chosen to delete

```
openstack subnet delete SUBNET_ID
```

The server will not give a response if successful so you will need to run `openstack subnet list` to confirm its removal

```
openstack subnet list
```

Using our example id our command and list looks like the following

```
openstack subnet delete ae9277e7-0a2c-4325-8eb1-33ad86eec974
```

``` { .sh .no-copy }
+--------------------------------------+--------------------+--------------------------------------+------------------+
| ID | Name | Network | Subnet |
+--------------------------------------+--------------------+--------------------------------------+------------------+
| 5c2644ad-7253-42f5-ad69-40970b84dea6 | external | 33d0c11b-b659-4b77-9afc-5676fe965839 | 163.7.177.0/24 |
| 70dc21e9-d8f4-4232-bda9-2f0a0d508105 | azimuth-demo | d780f680-9640-430f-813f-dbf2128b445c | 192.168.100.0/24 |
| f5715775-270c-4230-bfa7-fdbdf51352dc | NeSI-Training-Test | d3a7ddb5-6582-42cf-978a-c99b4ed25ad4 | 10.1.0.0/24 |
+--------------------------------------+--------------------+--------------------------------------+------------------+
```

## Delete a network

Run the below command to list all networks

```
openstack network list
```

``` { .sh .no-copy }
+--------------------------------------+--------------------------------+--------------------------------------+
| ID | Name | Subnets |
+--------------------------------------+--------------------------------+--------------------------------------+
| 15274353-ceae-476c-a374-dc7142a676f4 | wiki-net | ae9277e7-0a2c-4325-8eb1-33ad86eec974 |
| 33d0c11b-b659-4b77-9afc-5676fe965839 | external | 5c2644ad-7253-42f5-ad69-40970b84dea6 |
| 79029286-80ad-4923-a2e6-7d1216a9f2be | rally_verify_88403f86_qmojdKSJ | |
| bcfd4714-ef9c-4c0b-aa58-ad8bcc1a999e | rally_verify_51cf3f2d_mQ0taHVb | |
| d3a7ddb5-6582-42cf-978a-c99b4ed25ad4 | NeSI-Training-Test | f5715775-270c-4230-bfa7-fdbdf51352dc |
| d780f680-9640-430f-813f-dbf2128b445c | azimuth-demo | 70dc21e9-d8f4-4232-bda9-2f0a0d508105 |
+--------------------------------------+--------------------------------+--------------------------------------+
```

Take note of the network id we want to remove

!!! note
For our example we will use `15274353-ceae-476c-a374-dc7142a676f4`

Then run the below command while supplying the id for the network you wish to remove

```
openstack network delete NETWORK_ID
```

There will be no response from the server when you send the command so will need to list the networks to confirm removal.

Example command and list response

```
openstack network delete 15274353-ceae-476c-a374-dc7142a676f4
```

```
openstack network list
```

``` { .sh .no-copy }
+--------------------------------------+--------------------------------+--------------------------------------+
| ID | Name | Subnets |
+--------------------------------------+--------------------------------+--------------------------------------+
| 33d0c11b-b659-4b77-9afc-5676fe965839 | external | 5c2644ad-7253-42f5-ad69-40970b84dea6 |
| 79029286-80ad-4923-a2e6-7d1216a9f2be | rally_verify_88403f86_qmojdKSJ | |
| bcfd4714-ef9c-4c0b-aa58-ad8bcc1a999e | rally_verify_51cf3f2d_mQ0taHVb | |
| d3a7ddb5-6582-42cf-978a-c99b4ed25ad4 | NeSI-Training-Test | f5715775-270c-4230-bfa7-fdbdf51352dc |
| d780f680-9640-430f-813f-dbf2128b445c | azimuth-demo | 70dc21e9-d8f4-4232-bda9-2f0a0d508105 |
+--------------------------------------+--------------------------------+--------------------------------------+
```
6 changes: 3 additions & 3 deletions docs/user-guides/create-and-manage-networks/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Networks can be created and managed in 2 ways

- [Create and Manage networks with the Dashboard](create-and-manage-networks-with-the-dashboard.md)

- Create and Manage networks via CLI
- [Create and Manage networks via CLI](create-and-manage-networks-via-cli.md)

Within the network tab you also have the following that you are able to manage

Expand All @@ -30,7 +30,7 @@ Security Groups can be created and managed within the FlexiHPC dashboard. Howeve

- [Create and Manage Security groups with the Dashboard](manage-security-groups-with-the-dashboard.md)

- Manage Security groups via CLI
- [Manage Security groups via CLI](manage-security-groups-via-cli.md)

## Floating IPs

Expand All @@ -52,4 +52,4 @@ These network ports can be managed 2 ways

- [Create and Manage network ports with the Dashboard](create-and-manage-network-ports-with-the-dashboard.md)

- Create and manage network ports via CLI
- [Create and manage network ports via CLI](create-and-manage-network-ports-via-cli.md)
1 change: 1 addition & 0 deletions docs/user-guides/summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
* [Images: Upload and Manage](uploading-and-managing-Images/)
* [Volumes: Create and Manage](create-and-manage-volumes/)
* [Networks: Create and Manage](create-and-manage-networks/)
* [Identity: Create and Manage](create-and-manage-identity/)
* [Set up your CLI environment](setting-up-your-CLI-environment/)
* */

0 comments on commit c82c542

Please sign in to comment.