Hello Ranjit,
No, I am not able to list them and I am not able to execute any other command:
[root@controller ~]# nova network-list
ERROR (CommandError): You must provide a username or user id via --os-username, --os-user-id, env[OS_USERNAME] or env[OS_USER_ID]
[root@controller ~]# nova service-list
ERROR (CommandError): You must provide a username or user id via --os-username, --os-user-id, env[OS_USERNAME] or env[OS_USER_ID]
[root@controller ~]# keystone tenant-list
Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL]
[root@controller ~]#
I can already launch commands:
-bash-4.2$ nova network-list
+--------------------------------------+----------+-----------------+
| ID | Label | Cidr |
+--------------------------------------+----------+-----------------+
| d77a2c86-2536-4471-aecc-21d61413ef5a | demo-net | 203.0.113.24/29 |
+--------------------------------------+----------+-----------------+
But it only shows the demo-net and in the dashboard it shows 3 networks:
Nombre
Subredes asociadas
Compartido
Estado
Estado de administración
Acciones
test
test 192.168.174.0/24
no ACTIVE UP Editar red
demo-net
demo-subnet 192.168.1.0/24
no ACTIVE UP Editar red
ext-net
ext-subnet 203.0.113.0/24
Sí ACTIVE UP
Mostrando 3 elementos
I access to the dashboard as admin.
I access to the VM as root and the I do that:
Last login: Thu Jan 22 08:07:31 2015 from 192.168.129.18
[root@controller ~]# su - keystone
Last login: Thu Jan 22 07:49:22 EST 2015 on pts/3
-bash-4.2$ source admin-openrc.sh
-bash-4.2$ cat admin-openrc.sh
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=os_pass
export OS_AUTH_URL=http://controller:35357/v2.0
-bash-4.2$
Now I could to launch two instances from command line but they have an ERROR status:
-bash-4.2$ nova boot --image 73898070-b986-4e33-add3-f6ff1f8f73dd --flavor m1.tiny INS20150122
-bash-4.2$ nova boot --image dd97eeff-0881-426a-828b-35f6e97c3224 --flavor m1.tiny INS20150122-1
-bash-4.2$
-bash-4.2$ nova list
+--------------------------------------+---------------+--------+------------+-------------+-----------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+---------------+--------+------------+-------------+-----------------------+
| 6d6bdc91-292d-494b-94e5-e8500032f3b0 | INS20150122 | ERROR | - | NOSTATE | demo-net=203.0.113.26 |
| 0e2dbf68-2ef9-4be9-a775-d22b60a51a4b | INS20150122-1 | ERROR | - | NOSTATE | |
+--------------------------------------+---------------+--------+------------+-------------+-----------------------+
-bash-4.2$ nova show 6d6bdc91-292d-494b-94e5-e8500032f3b0^C
-bash-4.2$ nova show 6d6bdc91-292d-494b-94e5-e8500032f3b0
+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property | Value |
+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | compute |
| OS-EXT-SRV-ATTR:hypervisor_hostname | compute |
| OS-EXT-SRV-ATTR:instance_name | instance-00000002 |
| OS-EXT-STS:power_state | 0 |
| OS-EXT-STS:task_state | - |
| OS-EXT-STS:vm_state | error |
| OS-SRV-USG:launched_at | - |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2015-01-22T15:32:05Z |
| demo-net network | 203.0.113.26 |
| fault | {"message": "No valid host was found. ", "code": 500, "details": " File \"/usr/lib/python2.7/site-packages/nova/conductor/manager.py\", line 614, in build_instances |
| | request_spec, filter_properties) |
| | File \"/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py\", line 49, in select_destinations |
| | context, request_spec, filter_properties) |
| | File \"/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py\", line 35, in __run_method |
| | return getattr(self.instance, __name)(args, *kwargs) |
| | File \"/usr/lib/python2.7/site-packages/nova/scheduler/client/query.py\", line 34, in select_destinations |
| | context, request_spec, filter_properties) |
| | File \"/usr/lib/python2.7/site-packages/nova/scheduler/rpcapi.py\", line 108, in select_destinations |
| | request_spec=request_spec, filter_properties=filter_properties) |
| | File \"/usr/lib/python2.7/site-packages/oslo/messaging/rpc/client.py\", line 152, in call |
| | retry=self.retry) |
| | File \"/usr/lib/python2.7/site-packages/oslo/messaging/transport.py\", line 90, in _send |
| | timeout=timeout, retry=retry) |
| | File \"/usr/lib/python2.7/site-packages/oslo/messaging/_drivers ...
(more)
Are you able to list the networks using the credentials used for launching the VM?
No, I am not able to list them and I am not able to execute any other command: ....continue as an answer...