Using Command line on devstack (admin-openrc.sh)

By | 8th September 2015
Command line helps to nail down the issues with devstack. The easiest method is to import the open.rc.file and the export it.
1. Go to Access and Security.
2. Download the file to the devstack machine.
openstack_admin.sh_file
3. Run the following command and enter your password.
stack@ubuntu:~$ source admin-openrc.sh
Please enter your OpenStack Password:
4. stack@ubuntu:~$ nova image-list
+————————————–+———————————+——–+——–+
| ID                                   | Name                            | Status | Server |
+————————————–+———————————+——–+——–+
| a0b1ecb1-9ce6-41e6-bfaa-10b40835e92a | cirros-0.3.2-x86_64-uec         | ACTIVE |        |
| 2978b76c-e670-4d51-9798-016dfcf3c462 | cirros-0.3.2-x86_64-uec-kernel  | ACTIVE |        |
| 9bced5cf-a0ae-4216-9dc6-daf13b6b446c | cirros-0.3.2-x86_64-uec-ramdisk | ACTIVE |        |
| 2fc935e4-d687-40f9-b65b-cb92acdd0ece | cirros-0.3.4-x86_64-uec         | ACTIVE |        |
| dd15b9cc-0ec5-4077-98b3-3621c8c03098 | cirros-0.3.4-x86_64-uec-kernel  | ACTIVE |        |
| f70d9fcc-7449-4a12-b401-c4ffd51ab935 | cirros-0.3.4-x86_64-uec-ramdisk | ACTIVE |        |
| 55bc00f5-6c10-475b-be2e-7e211b75b534 | ubuntu1                         | ACTIVE |        |
+————————————–+———————————+——–+——–+
5. If required the file can also be created with the following details.
##
export OS_USERNAME=admin
export OS_PASSWORD=ADMIN_PASS
export OS_TENANT_NAME=admin
export OS_AUTH_URL=http://controller:35357/v2.0
##
Attachments