This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling Cookbooks... | |
================================================================================ | |
Recipe Compile Error in /var/chef/cache/cookbooks/swift-private-cloud/recipes/admin-server.rb | |
================================================================================ | |
ArgumentError | |
------------- | |
address family must be specified |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2013-08-07T13:00:03+00:00] INFO: runit_service[git-daemon] configured | |
[2013-08-07T13:00:03+00:00] INFO: Processing service[git-daemon] action nothing (dynamically defined) | |
[2013-08-07T13:00:03+00:00] INFO: Processing runit_service[git-daemon] action enable (swift-private-cloud::admin-server line 32) | |
[2013-08-07T13:00:03+00:00] INFO: Processing directory[/etc/sv/git-daemon] action create (dynamically defined) | |
[2013-08-07T13:00:03+00:00] INFO: Processing template[/etc/sv/git-daemon/run] action create (dynamically defined) | |
[2013-08-07T13:00:04+00:00] INFO: template[/etc/sv/git-daemon/run] backed up to /var/chef/backup/etc/sv/git-daemon/run.chef-20130807130004 | |
[2013-08-07T13:00:04+00:00] INFO: template[/etc/sv/git-daemon/run] updated content | |
[2013-08-07T13:00:04+00:00] INFO: template[/etc/sv/git-daemon/run] mode changed to 755 | |
[2013-08-07T13:00:04+00:00] INFO: Processing directory[/etc/sv/git-daemon/log] action create (dynamically defined) | |
[2013-08-07T13:00:04+00:00] INFO: Processing directory[/etc/sv/git-daemon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> d=datetime.dateime(2010,10,10) | |
>>> time.mktime(d.utctimetuple()); calendar.timegm(d.utctimetuple()) | |
1286668800.0 | |
1286668800 | |
>>> time.mktime(d.timetuple()); calendar.timegm(d.timetuple()) | |
1286665200.0 | |
1286668800 | |
>>> d.timetuple() | |
time.struct_time(tm_year=2010, tm_mon=10, tm_mday=10, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=6, tm_yday=283, tm_isdst=-1) | |
>>> d.utctimetuple() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Disable BT on local machine and enable it on remote machine, so KB/Mouse reconnect to remote machine. | |
#ensure local bluetooth is off | |
blueutil off | |
#enable imac bluetooth | |
ssh [email protected] '/usr/local/bin/blueutil on' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ceph@ctcephadmin:~$ rados lspools |cat -A | |
metadata$ | |
rbd$ | |
.rgw.root$ | |
.rgw.control$ | |
.rgw$ | |
.rgw.gc$ | |
.users.uid$ | |
.users$ | |
.users.swift$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================================================================================ | |
Recipe Compile Error in /var/chef/cache/cookbooks/git/recipes/server.rb | |
================================================================================ | |
NameError | |
--------- | |
Cannot find a resource for xinetd_service on ubuntu version 12.04 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
buckets='[{"hash": "rjenkins1", "name": "default", "weight": 11796, "type_id": 6, "alg": "straw", "type_name": "root", "items": [{"id": -2, "weight": 3932, "pos": 0}, {"id": -3, "weight": 3932, "pos": 1}, {"id": -4, "weight": 3932, "pos": 2}], "id": -1}, {"hash": "rjenkins1", "name": "ceph-server1", "weight": 3932, "type_id": 1, "alg": "straw", "type_name": "host", "items": [{"id": 0, "weight": 3932, "pos": 0}], "id": -2}, {"hash": "rjenkins1", "name": "ceph-server2", "weight": 3932, "type_id": 1, "alg": "straw", "type_name": "host", "items": [{"id": 1, "weight": 3932, "pos": 0}], "id": -3}, {"hash": "rjenkins1", "name": "ceph-server3", "weight": 3932, "type_id": 1, "alg": "straw", "type_name": "host", "items": [{"id": 2, "weight": 3932, "pos": 0}], "id": -4}]' | |
devices='[{"id": 0, "name": "osd.0"}, {"id": 1, "name": "osd.1"}, {"id": 2, "name": "osd.2"}]' | |
# Read json and combine into single list | |
combined=json.loads(buckets)+json.loads(devices) | |
# Create dictionary indexed by id | |
items=dict(zip([x[' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copyright (C) 2013 Loic Dachary <[email protected]> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU Affero General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(d)sd:~ hughsaunders$ boot devstack4 | |
Booting instance: sn uk boot --image 80fbcb55-b206-41f9-9bc2-2dd7aac6c061 --flavor 4 --key-name key devstack4 --nic net-id=53d66a5e-eb13-47bf-96a2-b6aa4d6d03a2 --nic net-id=57942f15-31f7-4e70-b001-9497d3c438ec --nic net-id=5223a375-517f-4c95-a4e9-ce88bbd63f4e --disk-config MANUAL --poll devstack4 | |
+------------------------+--------------------------------------+ | |
| Property | Value | | |
+------------------------+--------------------------------------+ | |
| status | BUILD | | |
| updated | 2013-11-14T13:35:29Z | | |
| OS-EXT-STS:task_state | scheduling | | |
| key_name | key | | |
| image | Ubuntu 12.04 LTS (Precise Pangolin) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== ceph === | |
000_test_includes 0.736s | |
001_ceph_health FAIL (Error Code: 1) | |
002_ceph_status FAIL (Error Code: 1) | |
010_osd_tree 0.527s | |
020_rados_create_pool 1.652s | |
030_rados_ls_pools 0.694s | |
040_rados_put_object 1.785s | |
050_rados_list_objects 0.831s |