... | ... | @@ -39,7 +39,7 @@ Windows |
|
|
```
|
|
|
where python
|
|
|
```
|
|
|
On MacOS the Python installers inclue pip. On Linux it might have to be installed using the following commands.
|
|
|
On MacOS the Python installers include pip. On Linux it might have to be installed using the following commands.
|
|
|
```
|
|
|
python3 -m pip install --upgrade pip
|
|
|
# Check if pip is installed (also works on macOS)
|
... | ... | @@ -62,12 +62,12 @@ Then check if it is installed using. |
|
|
```
|
|
|
openstack --version
|
|
|
```
|
|
|
This will give the version number if installed correctly. Now if you try to list the servers on the openstack cloud with `openstack server list --all` it will give an authorisation error.
|
|
|
This will give the version number if installed correctly. Now if you try to list the servers on the openstack cloud with `openstack server list --all` it will give an authorization error.
|
|
|
|
|
|
To run commands on the openstack client on the cloud it needs to have the right credentials so it can verify the user. In the top right corner of the OpenStack horizon dashboard click the drop-down and they click the download for the OpenStack RC File which will download "admin-openrc.sh" or the equivalent openrc file for the relevant user. Source this file in the same directory you want to use the client in with source [path/to/file] this will prompt you to enter a password before the file is sourced which will be your relevant users login password.By entering in the correct password it will authorise you to use the client as that user.
|
|
|
To run commands on the openstack client on the cloud it needs to have the right credentials so it can verify the user. In the top right corner of the OpenStack horizon dashboard click the drop-down and they click the download for the OpenStack RC File which will download "admin-openrc.sh" or the equivalent openrc file for the relevant user. Source this file in the same directory you want to use the client in with source [path/to/file] this will prompt you to enter a password before the file is sourced which will be your relevant users login password.By entering in the correct password it will authorize you to use the client as that user.
|
|
|
|
|
|
If you try running the client now it will hang for a while until producing the following exceptions when failing requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='cloud.waltoninstitute.ie', port=5000): Max retries exceeded with url: /v3/auth/tokens (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x108df5890>, 'Connection to cloud.waltoninstitute.ie timed out. (connect timeout=None)'))" and "keystoneauth1.exceptions.connection.ConnectTimeout: Request to http://cloud.waltoninstitute.ie:5000/v3/auth/tokens timed out". These exceptions are due to the client not being able to resolve the url of the controller as there has not been a route set up for it in the hosts file for a DNS entry. This is why it says it is something like "Failed to discover available identity versions when contacting http://cloud.waltoninstitute.ie:5000/v3/. Attempting to parse version from URL.
|
|
|
Request to http://cloud.waltoninstitute.ie:5000/v3/auth/tokens timed out". To resolve this issue we need to add an entry to the hosts file to pint to the right ip for in this case pointing to cloud.waltoninstitute.ie. The entry in the hosts file `'/etc/hosts'` for Unix/macOS
|
|
|
If you try running the client now it will hang for a while until producing the following exceptions when failing `requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='cloud.waltoninstitute.ie', port=5000): Max retries exceeded with url: /v3/auth/tokens (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x108df5890>, 'Connection to cloud.waltoninstitute.ie timed out. (connect timeout=None)'))" and "keystoneauth1.exceptions.connection.ConnectTimeout: Request to http://cloud.waltoninstitute.ie:5000/v3/auth/tokens timed out"`. These exceptions are due to the client not being able to resolve the URL of the controller as there has not been a route set up for it in the hosts file for a DNS entry. This is why it says it is something like `"Failed to discover available identity versions when contacting http://cloud.waltoninstitute.ie:5000/v3/. Attempting to parse version from URL.
|
|
|
Request to http://cloud.waltoninstitute.ie:5000/v3/auth/tokens timed out"`. To resolve this issue we need to add an entry to the hosts file to point to the right IP for in this case pointing to cloud.waltoninstitute.ie. The entry in the hosts file `'/etc/hosts'` for Unix/macOS
|
|
|
and `C:\Windows\System32\drivers\etc` for Windows would be formatted like this.
|
|
|
|
|
|
`10.37.93.100 controller cloud.waltoninstitute.ie`.
|
... | ... | |