Skip to content

Instantly share code, notes, and snippets.

PERFORMANCE_FLAVORS = {
"c": {"name": "standard", "reserved": 2048.0},
"a": {"name": "performance2", "reserved": 8192.0},
"b": {"name": "performance1", "reserved": 38912.0},
"h": {"name": "hadoop", "reserved": 4096.0},
"m": {"name": "onmetal", "reserved": 0.0}
"compute1": {"name": "compute1", "reserved": 7000.0},
"memory1": {"name": "memory1", "reserved": 38911.0}
}
[
[
"DFW",
"262",
"3",
"50,275",
"1",
"29,100",
"2,335",
"360",
[vagrant@localhost ~]$ pip list
abacus (1.0.28, /vagrant)
Babel (0.9.4)
backports.ssl-match-hostname (3.4.0.2)
certifi (14.05.14)
chardet (2.0.1)
distribute (0.6.10)
ethtool (0.6)
eventlet (0.15.2)
Flask (0.10.1)
~/src/abacus[master]$ vagrant up
Bringing machine 'abacus' up with 'virtualbox' provider...
Bringing machine 'abacus_build' up with 'virtualbox' provider...
[abacus] Importing base box 'centos-6.5-64-vagrant'...
[abacus] Matching MAC address for NAT networking...
[abacus] Setting the name of the VM...
[abacus] Clearing any previously set forwarded ports...
[abacus] Creating shared folders metadata...
[abacus] Clearing any previously set network interfaces...
[abacus] Preparing network interfaces based on configuration...
Vagrant cannot forward the specified ports on this VM, since they
would collide with some other application that is already listening
on these ports. The forwarded port to 8000 is already in use
on the host machine.
To fix this, modify your current projects Vagrantfile to use another
port. Example, where '1234' would be replaced by a unique host port:
config.vm.network :forwarded_port, guest: 80, host: 1234
# ----------------------------------------------------------------------------
# The WriteListFrom routine, a flexible object-lister taking care of
# plurals, inventory information, various formats and so on. This is used
# by everything in the library which ever wants to list anything.
#
# If there were no objects to list, it prints nothing and returns false;
# otherwise it returns true.
#
# o is the object, and style is a bitmap, whose bits are given by:
$ sudo poller_capacity /var/tmp/nextgen-capacity-regional.json
Traceback (most recent call last):
File "/usr/bin/poller_capacity", line 4, in <module>
from pkg_resources import require; require('abacus==1.0.24')
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in <module>
working_set.require(__requires__)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve
raise DistributionNotFound(req)
Stderr from the command:
Warning: Could not retrieve fact fqdn
Error: Could not start Service[abacus-service]: Execution of '/sbin/service abacusd start' returned 56:
Error: /Stage[main]/Abacus/Service[abacus-service]/ensure: change from stopped to running failed: Could not start Service[abacus-service]: Execution of '/sbin/service abacusd start' returned 56:
Error: Could not start Service[abacus-service]: Execution of '/sbin/service abacusd start' returned 56:
Error: /Stage[main]/Abacus/Service[abacus-service]/ensure: change from stopped to running failed: Could not start Service[abacus-service]: Execution of '/sbin/service abacusd start' returned 56:
Warning: /Stage[main]/Nginx/File[/etc/yum.repos.d/nginx.repo]: Skipping because of failed dependencies
Warning: /Stage[main]/Nginx/Package[nginx]: Skipping because of failed dependencies
Warning: /Stage[main]/Nginx/Tidy[/etc/nginx/conf.d]: Skipping because of failed dependencies
nels.nelson@sol:~/src/abacus[master]$ ls
MANIFEST.in README.md abacus crons etc manifests requirements.txt setup.cfg www
Makefile Vagrantfile abacus.spec dev_requirements.txt init nginx scripts setup.py
nels.nelson@sol:~/src/abacus[master]$ vagrant up
Bringing machine 'abacus' up with 'virtualbox' provider...
Bringing machine 'abacus_build' up with 'virtualbox' provider...
[abacus] Box 'centos-6.5-64-vagrant' was not found. Fetching box from specified URL for
the provider 'virtualbox'. Note that if the URL does not have
a box for this provider, you should interrupt Vagrant now and add
the box yourself. Otherwise Vagrant will attempt to download the
$ sudo abacus
[E 150127 05:22:01 app:1423] Exception on / [GET]
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/dist-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request