Skip to content

Instantly share code, notes, and snippets.

Sep 10 19:28:55.509016 127.0.0.1 rsyslogd: [origin software="rsyslogd" swVersion="8.4.0" x-pid="11557" x-info="http://www.rsyslog.com"] start
Sep 10 19:28:55.612367 127.0.0.1 dev: Reinit starting (VERSION=latest).
Sep 10 19:28:58.198428 127.0.0.1 [2014-09-10 19:28:58.198] 11570/MainThread savage/INFO: execute['xz', '-d', '/mnt/flash/tftpboot/root.xz']
Sep 10 19:28:58.208447 127.0.0.1 [2014-09-10 19:28:58.207] 11570/MainThread savage.jobs_installer/ERROR: Job update failed with an unknown error: Command failed: [xz -d /mnt/flash/tftpboot/root.xz] exit[1] stdout[''] stderr['xz: /mnt/flash/tftpboot/root.xz: File format not recognized']
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/savage/command/commands/jobs_installer.py", line 66, in main
File "/usr/lib64/python2.7/site-packages/savage/command/commands/jobs_installer.py", line 153, in build_jobs_image
File "/usr/lib64/python2.7/site-packages/savage/command/commands/jobs_installer.py", line 137, in write_jobs_initramfs
File
def _migrate_helper(self, vm, key, with_dest):
try:
vm.poll_for_status('ACTIVE')
_ip = vm.ensure_floating_ip()
host_before_migrate = vm.current_host
marker = None
with vm.ssh(pkey=key.private_key) as ssh:
marker = self.create_marker(ssh.execute)
2014-08-08 23:18:53.108 4162 TRACE oslo.messaging.rpc.dispatcher newvalue_state = attributes.instance_state(newvalue)
2014-08-08 23:18:53.108 4162 TRACE oslo.messaging.rpc.dispatcher AttributeError: 'FixedIP' object has no attribute '_sa_instance_state'
2014-08-08 23:18:53.108 4162 TRACE oslo.messaging.rpc.dispatcher
Aug 8 23:18:53 10.39.0.18 nova-network 2014-08-08 23:18:53.111 4162 ERROR oslo.messaging._drivers.common [-] Returning exception 'FixedIP' object has no attribute '_sa_instance_state' to caller
Aug 8 23:18:53 10.39.0.18 nova-network 2014-08-08 23:18:53.111 4162 ERROR oslo.messaging._drivers.common [-] ['Traceback (most recent call last):\n', ' File "/usr/lib64/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply\n incoming.message))\n', ' File "/usr/lib64/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch\n return self._do_dispatch(endpoint, method, ctxt, args)\n', ' File "/usr/lib64/python2.7/site-packages/oslo
1. make a flavor
(Pdb) fl = self.nova.flavors.create(utils.rand_name('flavor-m1-'), 512, 1, 0, 19)
(Pdb) fl.__dict__
{'name': u'flavor-m1-90901875967', 'links': [{u'href': u'http://10.39.2.8:8774/v2/f987aa6b0dd4418db0fc3e6f11b43794/flavors/19', u'rel': u'self'}, {u'href': u'http://10.39.2.8:8774/f987aa6b0dd4418db0fc3e6f11b43794/flavors/19', u'rel': u'bookmark'}], 'ram': 512, 'vcpus': 1, 'id': u'19', 'OS-FLV-DISABLED:disabled': False, 'manager': <teacup.common.clients.PistonFlavorManager object at 0x7f6f64505190>, 'swap': u'', 'os-flavor-access:is_public': True, 'rxtx_factor': 1.0, '_info': {u'name': u'flavor-m1-90901875967', u'links': [{u'href': u'http://10.39.2.8:8774/v2/f987aa6b0dd4418db0fc3e6f11b43794/flavors/19', u'rel': u'self'}, {u'href': u'http://10.39.2.8:8774/f987aa6b0dd4418db0fc3e6f11b43794/flavors/19', u'rel': u'bookmark'}], u'ram': 512, u'OS-FLV-DISABLED:disabled': False, u'vcpus': 1, u'swap': u'', u'os-flavor-access:is_public': True, u'rxtx_factor': 1.0, u'OS-FLV-EXT-DATA:ephemeral': 0, u'disk':
#! /usr/bin/python
from oslo.config import cfg
import threading
from oslo import messaging
import time
import datetime
import logging
log = logging.getLogger(__name__)
[root@node-10-31-0-14 ~]# ps waux --sort -rss
ps waux --sort -rss
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
qemu 25034 3.4 5.6 13190152 3755992 ? Sl 05:44 1:45 qemu-system-x86_64-vms -name instance-00000003 -S -machine pc-i440f
qemu 23543 3.4 5.6 13194140 3741176 ? Sl 05:41 1:51 qemu-system-x86_64-vms -name instance-00000002 -S -machine pc-i440f
qemu 26968 3.5 5.6 13187324 3737900 ? Sl 05:46 1:43 qemu-system-x86_64-vms -name instance-00000004 -S -machine pc-i440f
qemu 30523 3.4 5.5 13188664 3688796 ? Sl 05:52 1:30 qemu-system-x86_64-vms -name instance-00000006 -S -machine pc-i440f
qemu 28431 3.4 5.5 13192432 3686956 ? Sl 05:49 1:35 qemu-system-x86_64-vms -name instance-00000005 -S -machine pc-i440f
qemu 4942 0.2 0.7 13129604 485004 ? Sl 06:02 0:05 qemu-system-x86_64-vms -name instance-00000007 -S -machine pc-i440f
root 2203 2.3 0.5 813744 392076 ? Ssl 01:03 7:39 ceph-osd -i 0 --publ
root@noel-m4800 portage # env "USE=" "ROOT=" emerge -pv --tree =app-admin/sudo-1.8.6_p7 =app-admin/syslog-ng-3.4.7 =app-admin/sysstat-10.2.0 =app-arch/cpio-2.11-r1 =app-arch/unzip-6.0-r3 =app-benchmarks/bonnie++-1.96 =app-editors/vim-7.3.762 =app-emulation/libvirt-1.2.5 =app-emulation/qemu-2.0.0-r1 =app-misc/screen-4.0.3-r6 =dev-cpp/gmock-1.6.0 =dev-cpp/tbb-4.1.20121003-r1 =dev-db/apache-cassandra-2.0.2 =dev-db/mysql-5.5.37-r1 =dev-db/redis-2.6.16 =dev-java/irond-0.3.0 =dev-java/oracle-jdk-bin-1.7.0.51-r1 =dev-java/oracle-jre-bin-1.7.0.51 =dev-libs/hiredis-0.11.0 =dev-libs/hiredis-boostasio-adapter-9998 =dev-libs/libcgroup-0.39_rc1-r1 =dev-libs/libev-4.15-r1 =dev-libs/log4cplus-1.1.2 =dev-libs/pugixml-1.2 =dev-libs/rapidjson-0.11 =dev-python/Babel-1.3 =dev-python/alembic-0.6.4 =dev-python/amqplib-1.0.2-r1 =dev-python/anyjson-0.3.3-r1 =dev-python/argh-0.23.2 =dev-python/bitarray-0.8.1 =dev-python/boto-2.28.0 =dev-python/bottle-0.11.6-r1 =dev-python/charade-1.0.3 =dev-python/cheetah-2.4.4-r1 =dev-python/cliff
!!! evacuate start
Jul 16 20:12:12 10.35.0.13 [2014-07-16 20:12:12.516] 943/MainThread savage.Fred/INFO: Evacuating VMs.
Jul 16 20:12:12 10.35.0.13 [2014-07-16 20:12:12.590] 943/MainThread savage.node-evacuation/INFO: Called evacuate
Jul 16 20:12:12 10.35.0.13 [2014-07-16 20:12:12.590] 943/MainThread savage.Fred/INFO: Checking for VMs to migrate.
Jul 16 20:12:12 10.35.0.13 [2014-07-16 20:12:12.590] 943/MainThread savage.node-evacuation/INFO: Called list
Jul 16 20:12:12 10.35.0.13 [2014-07-16 20:12:12.590] 943/MainThread novaclient.base/ERROR: NBK: Manager._list url='/servers/detail?all_tenants=True&host=10.35.0.13' body=None
Jul 16 20:12:12 10.35.0.13 [2014-07-16 20:12:12.591] 943/MainThread novaclient.client/DEBUG: New session created for: (http://10.35.2.3:5000)
Jul 16 20:12:12 10.35.0.13 pound: 10.35.2.3:5000 10.35.2.6 - - [16/Jul/2014:20:12:12 +0000] "POST /v2.0/tokens HTTP/1.1" 200 3290 "" "python-novaclient"
Jul 16 20:12:12 10.35.0.13 [2014-07-16 20:12:12.756] 943/MainThread novaclien
[root@boot-10-35-0-2 ~]# piston-dev.py cluster-info -s
piston-dev.py cluster-info -s
{u'control': {u'state': u'freeze:wait'},
u'hosts': {u'10.35.1.129': {u'host_ip': u'10.35.0.13',
u'progress': [],
u'status': u'ready'},
u'10.35.1.130': {u'host_ip': u'10.35.0.14',
u'progress': [],
u'status': u'ready'},
u'10.35.1.131': {u'host_ip': u'10.35.0.15',
@noelbk
noelbk / gist:f8476952809dac8a295c
Last active August 29, 2015 14:03
rabbit still drops reply if auto_delete=False, durable=True
Search for !!! below for milestones
!!! server consuming
Jul 11 22:15:07 10.35.0.14 nova-network 9862 140599308161744 impl_rabbit impl_rabbit.py _consume NBK: _consume self.do_consume=False self.consumers=[TopicConsumer({'queue': <Queue network -> <Exchange nova(topic) bound to chan:1> -> network bound to chan:1>, 'callback': <oslo.messaging._drivers.amqpdriver.AMQPListener object at 0x7fdfd65c2c90>, 'tag': '1', 'channel': <kombu.transport.pyamqp.Channel object at 0x7fdfd7291e90>, 'kwargs': {'exclusive': False, 'name': 'network', 'exchange': <unbound Exchange nova(topic)>, 'durable': True, 'routing_key': 'network', 'queue_arguments': {}, 'auto_delete': False, 'channel': <kombu.transport.pyamqp.Channel object at 0x7fdfd7291e90>}}), TopicConsumer({'queue': <Queue network.10.35.0.14 -> <Exchange nova(topic) bound to chan:1> -> network.10.35.0.14 bound to chan:1>, 'callback': <oslo.messaging._drivers.amqpdriver.AMQPListener object at 0x7fdfd65c2c90>, 'tag': '2', 'channel': <kombu.transport.pyamqp.Channel objec