Skip to content

Instantly share code, notes, and snippets.

@FlorianOtel
Created December 9, 2013 23:41
Show Gist options
  • Save FlorianOtel/7883135 to your computer and use it in GitHub Desktop.
Save FlorianOtel/7883135 to your computer and use it in GitHub Desktop.
[fedora@fedora19-controller devstack]$ nova list
+--------------------------------------+--------------------------+--------+------------+-------------+------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+--------------------------+--------+------------+-------------+------------------+
| 015fd93f-6fd1-4d95-b940-d460d1a7e4b9 | Cirros0Sv20131209-230404 | ERROR | None | Shutdown | private=10.0.0.3 |
| d1785294-742c-460d-af72-8326696cec3d | Cirros0Sv20131210-003241 | ERROR | None | NOSTATE | private=10.0.0.4 |
+--------------------------------------+--------------------------+--------+------------+-------------+------------------+
#### Details on failed spawned instances
[fedora@fedora19-controller devstack]$ nova show d1785294-742c-460d-af72-8326696cec3d
+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property | Value |
+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | fedora19-controller |
| OS-EXT-SRV-ATTR:hypervisor_hostname | fedora19-controller |
| OS-EXT-SRV-ATTR:instance_name | instance-00000002 |
| OS-EXT-STS:power_state | 0 |
| OS-EXT-STS:task_state | None |
| OS-EXT-STS:vm_state | error |
| OS-SRV-USG:launched_at | None |
| OS-SRV-USG:terminated_at | None |
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2013-12-09T23:32:44Z |
| fault | {u'message': u"local variable 'network_name' referenced before assignment", u'code': 500, u'details': u' File "/mnt/opt/stack/nova/nova/compute/manager.py", line 266, in decorated_function |
| | return function(self, context, *args, **kwargs) |
| | File "/mnt/opt/stack/nova/nova/compute/manager.py", line 1829, in run_instance |
| | do_run_instance() |
| | File "/mnt/opt/stack/nova/nova/openstack/common/lockutils.py", line 248, in inner |
| | return f(*args, **kwargs) |
| | File "/mnt/opt/stack/nova/nova/compute/manager.py", line 1828, in do_run_instance |
| | legacy_bdm_in_spec) |
| | File "/mnt/opt/stack/nova/nova/compute/manager.py", line 982, in _run_instance |
| | notify("error", msg=unicode(e)) # notify that build failed |
| | File "/mnt/opt/stack/nova/nova/compute/manager.py", line 966, in _run_instance |
| | instance, image_meta, legacy_bdm_in_spec) |
| | File "/mnt/opt/stack/nova/nova/compute/manager.py", line 1092, in _build_instance |
| | filter_properties, bdms, legacy_bdm_in_spec) |
| | File "/mnt/opt/stack/nova/nova/compute/manager.py", line 1136, in _reschedule_or_error |
| | self._log_original_error(exc_info, instance_uuid) |
| | File "/mnt/opt/stack/nova/nova/compute/manager.py", line 1131, in _reschedule_or_error |
| | bdms, requested_networks) |
| | File "/mnt/opt/stack/nova/nova/compute/manager.py", line 1855, in _shutdown_instance |
| | network_info = self._get_instance_nw_info(context, instance) |
| | File "/mnt/opt/stack/nova/nova/compute/manager.py", line 896, in _get_instance_nw_info |
| | instance) |
| | File "/mnt/opt/stack/nova/nova/network/api.py", line 50, in wrapper |
| | res = f(self, context, *args, **kwargs) |
| | File "/mnt/opt/stack/nova/nova/network/neutronv2/api.py", line 445, in get_instance_nw_info |
| | result = self._get_instance_nw_info(context, instance, networks) |
| | File "/mnt/opt/stack/nova/nova/network/neutronv2/api.py", line 452, in _get_instance_nw_info |
| | nw_info = self._build_network_info_model(context, instance, networks) |
| | File "/mnt/opt/stack/nova/nova/network/neutronv2/api.py", line 1023, in _build_network_info_model |
| | subnets) |
| | File "/mnt/opt/stack/nova/nova/network/neutronv2/api.py", line 953, in _nw_info_build_network |
| | label=network_name, |
| | ', u'created': u'2013-12-09T23:34:57Z'} |
| flavor | m1.small (2) |
| hostId | e173cb4e73fda4227efa3543b59a59d4d4f6806df0268411190dadc5 |
| id | d1785294-742c-460d-af72-8326696cec3d |
| image | cirros-0.3.1-x86_64-uec (c6abc4bc-aabb-429d-9834-109016507b0b) |
| key_name | ODL-keypair |
| metadata | {} |
| name | Cirros0Sv20131210-003241 |
| os-extended-volumes:volumes_attached | [] |
| private network | 10.0.0.4 |
| security_groups | default |
| status | ERROR |
| tenant_id | 739890f0423b42439c39ea4f81c8d046 |
| updated | 2013-12-09T23:34:57Z |
| user_id | eb4e2a1fd13b4a8a8b7933c1aa553b7d |
+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
[fedora@fedora19-controller devstack]$
#### OVS config on the (DevStack) controller
[fedora@fedora19-controller devstack]$ sudo ovs-vsctl show
3cc9dac3-9fa6-4c69-acc1-a2d463396fc8
Manager "tcp:192.168.254.1:6640"
is_connected: true
Bridge br-int
Controller "tcp:192.168.254.1:6633"
is_connected: true
Port "tapfc3ec127-92"
tag: 1
Interface "tapfc3ec127-92"
Port "tapf7d6c270-ff"
tag: 1
Interface "tapf7d6c270-ff"
Port br-int
Interface br-int
type: internal
Port patch-tun
Interface patch-tun
type: patch
options: {peer=patch-int}
Bridge br-ex
Controller "tcp:192.168.254.1:6633"
is_connected: true
Port "tap392d38b0-4e"
Interface "tap392d38b0-4e"
Port br-ex
Interface br-ex
type: internal
Bridge br-tun
Controller "tcp:192.168.254.1:6633"
is_connected: true
Port br-tun
Interface br-tun
Port patch-int
Interface patch-int
type: patch
options: {peer=patch-tun}
ovs_version: "2.0.0"
####
[fedora@fedora19-controller devstack]$ sudo ovs-vsctl list Open_vSwitch .
_uuid : 3cc9dac3-9fa6-4c69-acc1-a2d463396fc8
bridges : [2d866784-9eb3-494b-a98f-91924e758e3d, 8265cdae-9607-4338-b790-33085f8168d5, ad8f06f6-9959-4ac9-be5d-c313fdad90cd]
cur_cfg : 11
db_version : "7.3.0"
external_ids : {system-id=""}
manager_options : [c3f5cbf4-0a7c-4f72-9dcd-5ac347aa0196]
next_cfg : 11
other_config : {local_ip="192.168.254.253"}
ovs_version : "2.0.0"
ssl : []
statistics : {}
system_type : unknown
system_version : unknown
#### OVS on the Compute node
[fedora@fedora19-compute devstack]$ sudo ovs-vsctl show
3cc9dac3-9fa6-4c69-acc1-a2d463396fc8
Manager "tcp:192.168.254.1:6640"
is_connected: true
Bridge br-tun
Controller "tcp:192.168.254.1:6633"
is_connected: true
Port br-tun
Interface br-tun
Port patch-int
Interface patch-int
type: patch
options: {peer=patch-tun}
Bridge br-int
Controller "tcp:192.168.254.1:6633"
is_connected: true
Port patch-tun
Interface patch-tun
type: patch
options: {peer=patch-int}
Port br-int
Interface br-int
ovs_version: "2.0.0"
[fedora@fedora19-compute devstack]$ sudo ovs-vsctl list Open_vSwitch .
_uuid : 3cc9dac3-9fa6-4c69-acc1-a2d463396fc8
bridges : [5ed8832d-965b-4ad7-a603-c3aa7a1c141e, a07d3e5e-a89d-4b0a-9929-9e5c2cc5ac6e]
cur_cfg : 6
db_version : "7.3.0"
external_ids : {system-id=""}
manager_options : [1ad1d55b-b68a-4745-8e2d-61cc1b400d82]
next_cfg : 6
other_config : {local_ip="192.168.254.254"}
ovs_version : "2.0.0"
ssl : []
statistics : {}
system_type : unknown
system_version : unknown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment