...
Code Block | ||||
---|---|---|---|---|
| ||||
# Install the prerequisite software $ sudo yum install python3 python3-devel python3-pip python3-setuptools $ sudo pip3 install --upgrade setuptools $ sudo pip3 install --upgrade pip # Install the OpenStack client $ pip3 install python-openstackclient # Verify correct installation $ openstack --version openstack 5.7.0 |
Application Credentials
Once the client has been downloaded, we need to download the login credentials from OpenStack. Let's connect to the dashboard and click on the tab Identity
-> Application Credentials
. Create an application credential
, assigning a name and an expiration date, and download the generated openrc
file. Upload it to your VM and, before launching any OpenStack client command, execute the command source <openrc-file>
.
Note |
---|
The |
Per prima cosa vanno create delle credenziali applicazione.
Per creare le credenziali da dashboard accedere all seguente URL dopo aver effettuato il login https://cloud-dashboard.cr.cnaf.infn.it/dashboard/identity/application_credentials/
Da qui si creano delle nuove credenziali tramite il pulsante in alto a destra "Create Application Credential"
Inserire opportunamente il nome per identificare le credenziali e il ruolo, se si desidera si può inserire una scadenza delle credenziali. Se si lascia il secret vuoto verrà creato in automatico.
Una volta create le credenziali scricare l'openrc file.
Una volta scaricato il file fare source del file e verificare il funzionamento dei client
[dmichelotto@cloud-ui ~]$ source app-cred-myapp-openrc.sh
[dmichelotto@cloud-ui ~]$ openstack token issue
+------------+--------------------------+
| Field | Value |
+------------+--------------------------+
| expires | 2020-05-27T11:04:12+0000 |
| id | gAAAAAB..... |
| project_id | 016XXXXXXXXXXXXXXXXXX19 |
| user_id | a84XXXXXXXXXXXXXXXXXX6e |
+------------+--------------------------+
Uso oidc-agent
Per prima cosa va installato il pacchetto oidc-agent. Vedi https://indigo-dc.gitbook.io/oidc-agent/
...
[dmichelotto@tb-cloud-ui ~]$ source iam_openrc.sh
[dmichelotto@tb-cloud-ui ~]$ openstack token issue
+------------+--------------------------+
| Field | Value |
+------------+--------------------------+
| expires | 2020-05-27T11:04:12+0000 |
| id | gAAAAAB..... |
| project_id | 016XXXXXXXXXXXXXXXXXX19 |
| user_id | a84XXXXXXXXXXXXXXXXXX6e |
+------------+--------------------------+
Application Credentials
Once the client has been downloaded, we need to download the login credentials from OpenStack. Let's connect to the dashboard and click on the tab Identity
-> Application Credentials
. Create an application credential
, assigning a name and an expiration date, and download the generated openrc
file. Upload it to your VM and, before launching any OpenStack client command, execute the command source <openrc-file>
.
Note |
---|
The |
Per prima cosa vanno create delle credenziali applicazione.
Per creare le credenziali da dashboard accedere all seguente URL dopo aver effettuato il login https://cloud-dashboard.cr.cnaf.infn.it/dashboard/identity/application_credentials/
Da qui si creano delle nuove credenziali tramite il pulsante in alto a destra "Create Application Credential"
Inserire opportunamente il nome per identificare le credenziali e il ruolo, se si desidera si può inserire una scadenza delle credenziali. Se si lascia il secret vuoto verrà creato in automatico.
Una volta create le credenziali scricare l'openrc file.
Una volta scaricato il file fare source del file e verificare il funzionamento dei client
[dmichelotto@cloud-ui ~]$ source app-cred-myapp-openrc.sh
[dmichelotto@cloud-ui ~]$ openstack token issue
+------------+--------------------------+
| Field | Value |
+------------+--------------------------+
| expires | 2020-05-27T11:04:12+0000 |
| id | gAAAAAB..... |
| project_id | 016XXXXXXXXXXXXXXXXXX19 |
| user_id | a84XXXXXXXXXXXXXXXXXX6e |
+------------+--------------------------+