Skip to content

Instantly share code, notes, and snippets.

View nati's full-sized avatar

Nachi Ueno nati

View GitHub Profile
DEBUG: neutronclient.client
REQ: curl -i http://216.69.95.13:9696/v2.0/ports.json -X POST -H "X-Auth-Token: TOKEN" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -d '{"port": {"network_id": "43135eec-e573-4526-8139-0fbbff50f8e5", "fixed_ips": [{"subnet_id": "32f09db6-9bf3-4e15-bbcc-ee4baca4bd62"}], "admin_state_up": true}}'
DEBUG: neutronclient.client RESP:{'date': 'Tue, 08 Apr 2014 00:58:25 GMT', 'status': '201', 'content-length': '503', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-532033b4-39f6-4cf0-b9bb-8d865bfa24d7'} {"port": {"status": "DOWN", "name": "", "allowed_address_pairs": [], "admin_state_up": true, "network_id": "43135eec-e573-4526-8139-0fbbff50f8e5", "tenant_id": "9b2cba10b406405681f148b5a6b99ada", "binding:vnic_type": "normal", "device_owner": "", "mac_address": "fa:16:3e:72:27:df", "fixed_ips": [{"subnet_id": "32f09db6-9bf3-4e15-bbcc-ee4baca4bd62", "ip_address": "10.1.0.8"}], "id": "0145a78f-a383-41
heat_template_version: 2013-05-23
description: >
HOT template to create a new neutron network plus a router to the public
network, and for deploying two servers into the new network. The template also
assigns floating IP addresses to each server so they are routable from the
public network.
preview: https://cdn3.iconfinder.com/data/icons/tango-icon-library/48/network-server-64.png
http://archive.ubuntu.com/ubuntu/dists/saucy/main/installer-i386/current/images/netboot/
>>> a = [(1,),(2,),(3,)]
>>> [a[0] for x in a]
[(1,), (1,), (1,)]
>>> [x[0] for x in a]
[1, 2, 3]
01/22/2014 02:01:18 PM [SandeshUVE]: Add uve <default-domain:demo:devstack-ServerOne-opzmlqr22tsp-FrontendNetwork-4rnfxdtic7ze, 91> in the [UveVirtualNetworkConfigTrace] map
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run
result = self._run(*self.args, **self.kwargs)
File "/usr/local/lib/python2.7/dist-packages/schema_transformer/to_bgp.py", line 2856, in launch_arc
raise e
HttpError: HTTP Status: 500 Content: <class 'vnc_addr_mgmt.AddrMgmtSubnetUndefined'>
Python 2.7.4: /usr/bin/python
Wed Jan 22 14:01:19 2014
ifconfig -a
ip route
arp -a
/opt/stack/contrail/build/debug/vrouter/utils/vif -b
/opt/stack/contrail/build/debug/vrouter/utils/nh -b
/opt/stack/contrail/build/debug/vrouter/utils/rt -b -v 0
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 216.69.95.61
ubuntu@contrail01:~$ grep -E 'src_ip|src_plen|src_vrf|RouteUcSandeshData' routes.xml
<RouteUcSandeshData>
<src_ip type="string" identifier="1">0.0.0.0</src_ip>
<src_plen type="i32" identifier="2">0</src_plen>
<src_vrf type="string" identifier="3" link="VrfListReq">default-domain:default-project:ip-fabric:__default__</src_vrf>
</RouteUcSandeshData>
<RouteUcSandeshData>
<src_ip type="string" identifier="1">10.99.99.0</src_ip>
<src_plen type="i32" identifier="2">24</src_plen>
<src_vrf type="string" identifier="3" link="VrfListReq">default-domain:default-project:ip-fabric:__default__</src_vrf>
2014-01-17 09:09:28 + screen -S contrail -p control -X stuff 'export LD_LIBRARY_PATH=/opt/stack/contrail/build/lib; /opt/stack/contrail/build/debug/control-node/control-node --map-server-url https://216.69.95.61:8443 --map-user 216.69.95.61 --map-password 216.69.95.61 --hostname contrail01 --host-ip 216.69.95.61 --bgp-port 179 || echo "control failed to start" | tee "/opt/stack/status/contrail/control.failure"^M'
2014-01-17 09:09:28 + sleep 2
2014-01-17 09:09:30 + admin_user=admin
2014-01-17 09:09:30 + admin_passwd=contrail123
2014-01-17 09:09:30 + admin_tenant=admin
2014-01-17 09:09:30 + python /home/ubuntu/devstack/contrail/provision_vrouter.py --host_name contrail01 --host_ip 216.69.95.61 --api_server_ip 216.69.95.61 --oper add --admin_user admin --admin_password contrail123 --admin_tenant_name admin
2014-01-17 09:09:31 + test_insert_vrouter
2014-01-17 09:09:31 + lsmod
2014-01-17 09:09:31 + grep -q vrouter
2014-01-17 09:09:31 + insert_vrouter
Q_USE_DEBUG_COMMAND=True
NETWORK_GATEWAY=10.1.0.1
DEST=/opt/stack/newACTIVE_TIMEOUT=90
BOOT_TIMEOUT=90
ASSOCIATE_TIMEOUT=60TERMINATE_TIMEOUT=60
MYSQL_PASSWORD=secret
DATABASE_PASSWORD=secretRABBIT_PASSWORD=secret
ADMIN_PASSWORD=secret
SERVICE_PASSWORD=secret
SERVICE_TOKEN=111222333444