* -i 843bef24-8c70-40e1-a380-972717c9e4b3: specifies the ID of the Glance image that we just created before.
* -u http://172.16.1.3:5000/v2.0: specifies the Keystone URL, and should match the value from the auth-url field of our environment as specified in $HOME/.juju/environments.yaml.
* -e openstack: identifies the Juju environment described in $HOME/.juju/environments.yaml file.
* -s xenial: specifies the image series (the Ubuntu release name).
* -a amd64: specifies the CPU architecture.
* -d /var/www/html/stack: specifies the base directory where the metadata will be written to. For images, the path will be /opt/stack/images/streams/v1..
4. Generate tools json file:
```shell
juju metadata generate-tools -d /var/www/html/stack/ --stream released
```
Tips:
`/var/www/html` is the Apache server default directory
5. Use the validation command to ensure iamge and tools are available for juju to use: