Konfigurasi Data Nusantara

OpenStackVirtualisasi - Cloud

Managing Projects

Hi…

Setelah manage service dan endpoint , kali ini kita akan mencoba manage project pada openstack.

Sebelum mulai, kita cek command apa saja yang ada

[root@localhost centos(keystone_admin)]# openstack project --help
Command "project" matches:
 project create
 project delete
 project list
 project purge
 project set
 project show

Untuk cek, project yang sudah ada, menggunakan command

[root@localhost centos(keystone_admin)]# openstack project list
+----------------------------------+----------+
| ID                               | Name     |
+----------------------------------+----------+
| 684756bc533142b7b6c83aa142919955 | services |
| 96f6342313114f2094488ec528c6a782 | demo     |
| 9db0b4d06d0548ff96d10845fe44e3b6 | admin    |
+----------------------------------+----------+

Untuk membuat project menggunakan command

[root@localhost centos(keystone_admin)]# openstack project create --domain default --description "Konfigurasi Dot Net Website" konfigurasi
+-------------+----------------------------------+
| Field       | Value                            |
+-------------+----------------------------------+
| description | Konfigurasi Dot Net Website      |
| domain_id   | default                          |
| enabled     | True                             |
| id          | 61b24941d4ff44deb475ccd9ba53971d |
| is_domain   | False                            |
| name        | konfigurasi                      |
| parent_id   | default                          |
+-------------+----------------------------------+

Setelah itu, cek menggunakan command

[root@localhost centos(keystone_admin)]# openstack project list
+----------------------------------+-------------+
| ID                               | Name        |
+----------------------------------+-------------+
| 61b24941d4ff44deb475ccd9ba53971d | konfigurasi |
| 684756bc533142b7b6c83aa142919955 | services    |
| 96f6342313114f2094488ec528c6a782 | demo        |
| 9db0b4d06d0548ff96d10845fe44e3b6 | admin       |
+----------------------------------+-------------+

Untuk menghapusnya, menggunakan command

[root@localhost centos(keystone_admin)]# openstack project delete konfigurasi

atau bisa juga menggunakan 

[root@localhost centos(keystone_admin)]# openstack project delete 61b24941d4ff44deb475ccd9ba53971d

Kita coba create ulang

[root@localhost centos(keystone_admin)]# openstack project create --domain default --description "Konfiguras Dt Net Website" konfigurasi
+-------------+----------------------------------+
| Field       | Value                            |
+-------------+----------------------------------+
| description | Konfiguras Dt Net Website        |
| domain_id   | default                          |
| enabled     | True                             |
| id          | 84268f39f25148739783ca2247b7ba21 |
| is_domain   | False                            |
| name        | konfigurasi                      |
| parent_id   | default                          |
+-------------+----------------------------------+

Sekarang kita coba rubah description dan cek hasil perubahannya

[root@localhost centos(keystone_admin)]# openstack project set --description "Konfigurasi Dot Net Website" konfigurasi
[root@localhost centos(keystone_admin)]# openstack project show konfigurasi
+-------------+----------------------------------+
| Field       | Value                            |
+-------------+----------------------------------+
| description | Konfigurasi Dot Net Website      |
| domain_id   | default                          |
| enabled     | True                             |
| id          | 84268f39f25148739783ca2247b7ba21 |
| is_domain   | False                            |
| name        | konfigurasi                      |
| parent_id   | default                          |
+-------------+----------------------------------+

Selain menggunakan name, kita juga bisa menggunakan id untuk melakukan set, delete maupun show

[root@localhost centos(keystone_admin)]# openstack project show 84268f39f25148739783ca2247b7ba21
+-------------+----------------------------------+
| Field       | Value                            |
+-------------+----------------------------------+
| description | Konfigurasi Dot Net Website      |
| domain_id   | default                          |
| enabled     | True                             |
| id          | 84268f39f25148739783ca2247b7ba21 |
| is_domain   | False                            |
| name        | konfigurasi                      |
| parent_id   | default                          |
+-------------+----------------------------------+

Sekarang, kita cek melalui dashboard

Have any Question or Comment?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.