Skip to content

Instantly share code, notes, and snippets.

View cholcombe973's full-sized avatar

Chris Holcombe cholcombe973

  • @tesla.com
  • Portland
View GitHub Profile
typedef hyper quad_t;
typedef unsigned int uint32_t;
typedef unsigned int u_int32_t;
typedef unsigned hyper u_int64_t;
typedef hyper int64_t;
typedef int int32_t;
struct aclentry {
int acl_type;
int uid;
// GENERATED CODE
//
// Generated from /home/chris/repos/glusterfs/rpc/xdr/src/rpc-common-xdr.x.
//
// DO NOT EDIT
#[derive(Debug, Eq, PartialEq, Clone, Copy)]
pub struct auth_glusterfs_parms {
pub lk_owner: i64,
/* This file has definition of few XDR structures which are
* not captured in any section specific file */
typedef unsigned hyper u_quad_t;
struct auth_glusterfs_parms_v2 {
int pid;
unsigned int uid;
unsigned int gid;
unsigned int groups<>;
opaque lk_owner<>;
fn parse_rule<'a>(input: &'a [u8], num_of_rules: u32) ->nom::IResult<&[u8], [Option<Rule>]>{
let mut rules = [Option::<Rule>; num_of_rules];
for i in 0..num_of_rules{
let yes = le_u32(input);
if yes == 0{
rules[i] = None;
continue;
}
else{
let rule = Rule::parse(input);
2016-03-10 23:58:54.598205 7fc7f5f03700 10 cephx server client.osd-upgrade: start_session server_challenge e6f8791538dcf8ea
2016-03-10 23:58:54.599631 7fc7f5f03700 10 cephx server client.osd-upgrade: handle_request get_auth_session_key for client.osd-upgrade
2016-03-10 23:58:54.599694 7fc7f5f03700 20 cephx server client.osd-upgrade: checking key: req.key=eaf4d8c6cfb442f5 expected_key=eaf4d8c6cfb442f5
2016-03-10 23:58:54.599725 7fc7f5f03700 10 cephx: build_service_ticket_reply encoding 1 tickets with secret AQBd8+FW6FxFNBAAfiiOwsbC0jg7IVel/0A8bQ==
2016-03-10 23:58:54.599748 7fc7f5f03700 10 cephx: build_service_ticket service auth secret_id 2 ticket_info.ticket.name=client.osd-upgrade
2016-03-10 23:58:54.599764 7fc7f5f03700 10 cephx keyserverdata: get_caps: name=client.osd-upgrade
2016-03-10 23:58:54.599767 7fc7f5f03700 10 cephx keyserverdata: get_secret: num of caps=1
2016-03-10 23:58:54.601797 7fc7f5f03700 10 cephx server client.osd-upgrade: handle_request get_principal_session_key
2016-03-10 23:58:54.601800
ceph-osd:
osd-devices: /dev/xvdb
ephemeral-unmount: "/mnt"
source: cloud:trusty-juno
ceph-mon:
source: cloud:trusty-juno
@cholcombe973
cholcombe973 / mon-upgrade.txt
Last active March 7, 2016 18:26
Upgrading the ceph monitor cluster
juju set ceph-mon source="cloud:trusty-kilo"
unit-ceph-mon-46[10951]: 2016-03-07 18:16:02 INFO unit.ceph-mon/46.juju-log server.go:268 old_version: cloud:trusty-juno
unit-ceph-mon-45[10957]: 2016-03-07 18:16:02 INFO unit.ceph-mon/45.juju-log server.go:268 old_version: cloud:trusty-juno
unit-ceph-mon-47[10959]: 2016-03-07 18:16:02 INFO unit.ceph-mon/47.juju-log server.go:268 old_version: cloud:trusty-juno
unit-ceph-mon-46[10951]: 2016-03-07 18:16:02 INFO unit.ceph-mon/46.juju-log server.go:268 new_version: cloud:trusty-kilo
unit-ceph-mon-45[10957]: 2016-03-07 18:16:02 INFO unit.ceph-mon/45.juju-log server.go:268 new_version: cloud:trusty-kilo
unit-ceph-mon-47[10959]: 2016-03-07 18:16:02 INFO unit.ceph-mon/47.juju-log server.go:268 new_version: cloud:trusty-kilo
unit-ceph-mon-46[10951]: 2016-03-07 18:16:02 INFO unit.ceph-mon/46.juju-log server.go:268 cloud:trusty-juno to cloud:trusty-kilo is a valid upgrade path. Proceeding.
unit-ceph-mon-45[10957]: 2016-03-07 18:16:02 INFO unit.ceph-mon/45.juju-log server.go
@cholcombe973
cholcombe973 / pgs
Created March 7, 2016 18:13
Ceph placement group dump
Juju status:
[Services]
NAME STATUS EXPOSED CHARM
ceph-mon active false local:trusty/ceph-mon-120
ceph-osd active false local:trusty/ceph-osd-21
[Units]
ID WORKLOAD-STATE AGENT-STATE VERSION MACHINE PORTS PUBLIC-ADDRESS MESSAGE
ceph-mon/45 active idle 1.25.3 67 54.191.235.1 Unit is ready and clustered
ceph-mon/46 active idle 1.25.3 68 54.187.95.122 Unit is ready and clustered
[Services]
NAME STATUS EXPOSED CHARM
ceph-mon active false local:trusty/ceph-mon-106
ceph-osd blocked false local:trusty/ceph-osd-16
[Units]
ID WORKLOAD-STATE AGENT-STATE VERSION MACHINE PORTS PUBLIC-ADDRESS MESSAGE
ceph-mon/3 active idle 1.25.3 22 54.200.71.77 Unit is ready and clustered
ceph-mon/4 active idle 1.25.3 23 54.187.215.45 Unit is ready and clustered
ceph-mon/5 active idle 1.25.3 24 54.187.158.53 Unit is ready and clustered
{"devices":[{"id":0,"name":"osd.0"},{"id":1,"name":"osd.1"},{"id":2,"name":"osd.2"}],"types":[{"type_id":0,"name":"osd"},{"type_id":1,"name":"host"},{"type_id":2,"name":"chassis"},{"type_id":3,"name":"rack"},{"type_id":4,"name":"row"},{"type_id":5,"name":"pdu"},{"type_id":6,"name":"pod"},{"type_id":7,"name":"room"},{"type_id":8,"name":"datacenter"},{"type_id":9,"name":"region"},{"type_id":10,"name":"root"}],"buckets":[{"id":-1,"name":"default","type_id":10,"type_name":"root","weight":196608,"alg":"straw","hash":"rjenkins1","items":[{"id":-2,"weight":65536,"pos":0},{"id":-3,"weight":65536,"pos":1},{"id":-4,"weight":65536,"pos":2}]},{"id":-2,"name":"ip-172-31-10-122","type_id":1,"type_name":"host","weight":65536,"alg":"straw","hash":"rjenkins1","items":[{"id":0,"weight":65536,"pos":0}]},{"id":-3,"name":"ip-172-31-25-187","type_id":1,"type_name":"host","weight":65536,"alg":"straw","hash":"rjenkins1","items":[{"id":1,"weight":65536,"pos":0}]},{"id":-4,"name":"ip-172-31-38-24","type_id":1,"type_name":"host","weigh