Skip to content

Instantly share code, notes, and snippets.

provision_vrouter.py --host_name 172.28.0.16 --host_ip 172.28.0.16 --api_server_ip 208.96.8.91 --api_server_port 8082 --conf_file /etc/contrail/api_server.conf --oper add
provision_linklocal.py --linklocal_service_name metadata --linklocal_service_ip 169.254.169.254 --linklocal_service_port 80 --ipfabric_service_ip 172.28.0.18 --ipfabric_service_port 8775 --api_server_ip 208.96.8.91 --api_server_port 8082 --conf_file /etc/contrail/api_server.conf --oper add
[root@node-172-28-0-18 ~]# grep meta /etc/nova/nova.conf
quantum_metadata_proxy_shared_secret=W3mwqb8rVTempHaEfwfYSDOrB7sDr_OFiUCttWciOw7yMG4R8tKWz8_QcRavdOSfHxQnniDK
service_quantum_metadata_proxy=True
enabled_apis=ec2,osapi_compute,metadata
metadata_listen=172.28.0.18
curl http://localhost:8085/Snh_ItfReq?name=
<?xml-stylesheet type="text/xsl" href="/universal_parse.xsl"?>
<ItfResp type="sandesh">
<itf_list type="list" identifier="1">
<list type="struct" size="6">
<ItfSandeshData>
<index type="i32" identifier="1">2</index>
<name type="string" identifier="2">vroutervtap</name>
<uuid type="string" identifier="3">00000000-0000-0000-0000-000000000000</uuid>
<vrf_name type="string" identifier="4" link="VrfListReq">default-domain:default-project:ip-fabric:__default__</vrf_name>
Jun 17 15:49:23 10.35.0.13 nova-compute 2014-06-17 15:49:23.352 10687 AUDIT nova.compute.resource_tracker [-] Auditing locally available compute resources
Jun 17 15:49:23 10.35.0.13 sudo: nova : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/nova-rootwrap /etc/nova/rootwrap.conf vgs --noheadings --nosuffix --separator | --units b -o vg_size,vg_free nova
Jun 17 15:49:23 10.35.0.13 [2014-06-17 15:49:23.416] 2520/MainThread savage.arp_forever/INFO: execute['arping', '-q', '-A', '-I', 'host', '-c', '1', '-U', '10.35.0.3']
Jun 17 15:49:23 10.35.0.13 nova-compute 2014-06-17 15:49:23.640 10687 AUDIT nova.compute.resource_tracker [-] Free ram (MB): 45169
Jun 17 15:49:23 10.35.0.13 nova-compute 2014-06-17 15:49:23.640 10687 AUDIT nova.compute.resource_tracker [-] Free disk (GB): 1857
Jun 17 15:49:23 10.35.0.13 nova-compute 2014-06-17 15:49:23.640 10687 AUDIT nova.compute.resource_tracker [-] Free VCPUS: -1
Jun 17 15:49:23 10.35.0.13 nova-compute 2014-06-17 15:49:23.667 10687 INFO nova.compute.resource_tracker
Jun 18 16:45:35 10.35.0.14 nova-api 2014-06-18 16:45:35.794 3491 INFO nova.osapi_compute.wsgi.server [req-bb37121c-a91a-4b87-a665-8109660fc44f 948dbdbbb8aa47ebb2dca1ee7c36a865 d579a414366a4ca099d68e64a0fcdbfa] 10.35.2.7,10.35.0.14 "POST /v2/d579a414366a4ca099d68e64a0fcdbfa/servers/796d3e79-8b00-427d-97d5-80f3cf983e64/action HTTP/1.1" status: 200 len: 179 time: 0.2260759
Jun 18 16:45:35 10.35.0.13 cobalt-compute: common DEBUG received {u'_context_roles': [u'_member_', u'ProjectAdmin', u'Admin', u'admin'], u'_context_request_id': u'req-bb37121c-a91a-4b87-a665-8109660fc44f', u'_context_quota_class': None, u'_context_instance_lock_checked': False, u'_context_project_name': u'admin', u'_context_service_catalog': [{u'endpoints': [{u'adminURL': u'http://10.35.2.6:8776/v1/d579a414366a4ca099d68e64a0fcdbfa', u'region': u'RegionOne', u'internalURL': u'http://10.35.2.6:8776/v1/d579a414366a4ca099d68e64a0fcdbfa', u'publicURL': u'http://10.35.2.6:8776/v1/d579a414366a4ca099d68e64a0fcdbfa'}], u'endpoints_links': [], u'type':
@noelbk
noelbk / gist:d12d9690794a54ff63c6
Last active August 29, 2015 14:02
cmessages during teacup test_bless failure. Search for Traceback
tail -f /var/log/cmessages
Jun 23 19:28:09 10.35.0.14 ceph-mon: 2014-06-23 19:28:09.373279 7f16821d1700 1 mon.2@1(peon).paxos(paxos active c 1..399) is_readable now=2014-06-23 19:28:09.373282 lease_expire=2014-06-23 19:28:14.373790 has v0 lc 399
Jun 23 19:28:09 10.35.0.14 cobalt-compute: periodic_task DEBUG Running periodic task CobaltManager._refresh_host
Jun 23 19:28:09 10.35.0.14 cobalt-compute: periodic_task DEBUG Running periodic task CobaltManager._clean
Jun 23 19:28:09 10.35.0.14 cobalt-compute: vmsconn DEBUG Starting to clean symlinks in /dev/nova
Jun 23 19:28:09 10.35.0.14 cobalt-compute: vmsconn DEBUG Link is still active /dev/nova/3dcacea6-184b-418c-8557-667c808d3781_disk
Jun 23 19:28:09 10.35.0.14 cobalt-compute: vmsconn DEBUG Link is still active /dev/nova/libvirt_save
Jun 23 19:28:09 10.35.0.14 cobalt-compute: vmsconn DEBUG Link is still active /dev/nova/novadisk
Jun 23 19:28:09 10.35.0.14 cobalt-compute: loopingcall DEBUG Dynamic looping call sleeping for 60.00 seconds
Jun 23 19:28:12 10.35.0.
@noelbk
noelbk / gist:58aa803607007851b017
Last active August 29, 2015 14:03
GridcentricTest passes on 35...
+ nosetests -s teacup.tests.gc.test_gc:GridcentricTest
GridcentricTest
test_bless OK 201.79
test_migrate_deleted_ephemeral_flavor OK 144.81
test_migrate_deleted_flavor OK 112.32
test_migrate_with_host OK 49.36
test_migrate_without_host OK 60.27
Slowest 5 tests took 568.55 secs:
This file has been truncated, but you can view the full file.
cat /var/log/cmessages
Jun 27 00:05:21 10.144.14.194 dev: Reinit starting (VERSION=latest).
Jun 27 00:05:21 10.144.14.194 syslog-ng[567]: Syslog connection established; fd='93', server='AF_INET(10.144.14.194:514)', local='AF_INET(0.0.0.0:0)'
Jun 27 00:05:21 10.144.14.194 syslog-ng[567]: Configuration reload request received, reloading configuration;
Jun 27 00:05:22 10.144.14.194 [2014-06-27 00:05:22.608] 30529/MainThread savage.jobs_installer/DEBUG: Extracting job image /mnt/flash/tftpboot/jobs.img.
Jun 27 00:05:22 10.144.14.194 [2014-06-27 00:05:22.608] 30529/MainThread savage/INFO: execute['cpio', '-imd', '--no-absolute-filenames']
Jun 27 00:05:22 10.144.14.194 [2014-06-27 00:05:22.615] 30529/MainThread savage/WARNING: cmd cpio -imd --no-absolute-filenames returned with ignored stderr lines: ['1 block']
Jun 27 00:05:23 10.144.14.194 [2014-06-27 00:05:23.434] 30542/MainThread savage/INFO: guaranteed that /mnt/flash/conf exists (created=[], mode=None, owner=None, group=None)
Jun 27 00:05:23 10.144.14.194 [201
Boot vms
kill rabbit
nova cobalt-migrate
fail
Search for '5a138705165b4b8d9a4b3fe374038736' below
Jun 27 00:45:31 10.35.0.13 [2014-06-27 00:45:31.306] 11112/MainThread savage.arp_forever/INFO: execute['arping', '-q', '-A', '-I', 'services', '-c', '1', '-U', '10.35.2.5']
Jun 27 00:45:31 10.35.0.15 [2014-06-27 00:45:31.316] 3710/MainThread savage.arp_forever/INFO: execute['arping', '-q', '-A', '-I', 'services', '-c', '1', '-U', '10.35.2.8']
Jun 27 00:45:32 10.35.0.2 [2014-06-27 00:45:32.846] 629/MainThread savage.Grandpa/INFO: State change: optimal -> optimal: Grandpa<state=optimal, leases=3, blessed=3| ready=3>
curl http://10.144.14.215:8085/Snh_KFlowReq?flow_idx=
<?xml-stylesheet type="text/xsl" href="/universal_parse.xsl"?>
<KFlowResp type="sandesh">
<flow_list type="list" identifier="1">
<list type="struct" size="2">
<KFlowInfo>
<index type="i32" identifier="1">176552</index>
<rflow type="i32" identifier="2">213412</rflow>
<sip type="string" identifier="3">172.18.47.145</sip>
tcpdump -veplni host host 10.144.15.189
error : ret -1
tcpdump: listening on host, link-type EN10MB (Ethernet), capture size 65535 bytes
22:50:18.908740 00:01:e8:8b:56:47 > 84:2b:2b:5d:d1:9b, ethertype 802.1Q (0x8100), length 78: vlan 2980, p 2, ethertype IPv4, (tos 0x0, ttl 59, id 19821, offset 0, flags [DF], proto TCP (6), length 60)
172.18.47.145.37495 > 10.144.15.189.22: Flags [S], cksum 0x4604 (correct), seq 3357281722, win 25400, options [mss 1270,sackOK,TS val 5652695 ecr 0,nop,wscale 7], length 0
22:50:19.907585 00:01:e8:8b:56:47 > 84:2b:2b:5d:d1:9b, ethertype 802.1Q (0x8100), length 78: vlan 2980, p 2, ethertype IPv4, (tos 0x0, ttl 59, id 19822, offset 0, flags [DF], proto TCP (6), length 60)
172.18.47.145.37495 > 10.144.15.189.22: Flags [S], cksum 0x450a (correct), seq 3357281722, win 25400, options [mss 1270,sackOK,TS val 5652945 ecr 0,nop,wscale 7], length 0
22:50:21.911808 00:01:e8:8b:56:47 > 84:2b:2b:5d:d1:9b, ethertype 802.1Q (0x8100), length 78: vlan 2980, p 2, ethertype IPv4, (tos 0x0