Skip to content

Instantly share code, notes, and snippets.

View bowrocker's full-sized avatar

Jon Anderson bowrocker

  • Fastly
  • Massachusetts
View GitHub Profile
connection_data.connections.retain(|pair| match pair {
ConnectionKeyPair((_key, Some(mut conn))) => conn.is_valid(),
ConnectionKeyPair((_key, None)) => {
warn!(log, "found malformed connection");
false
}
});
error[E0308]: mismatched types
--> boray/src/main.rs:76:9
|
76 | tls_config,
| ^^^^^^^^^^ expected struct `cueball_postgres_connection::TlsConfig`, found a different struct `cueball_postgres_connection::TlsConfig`
|
= note: expected type `cueball_postgres_connection::TlsConfig` (struct `cueball_postgres_connection::TlsConfig`)
found type `cueball_postgres_connection::TlsConfig` (struct `cueball_postgres_connection::TlsConfig`)
note: Perhaps two different versions of crate `cueball_postgres_connection` are being used?
--> boray/src/main.rs:76:9
root@headnode (coal-1) ~]# updates-imgadm -d -C experimental list name=manta-buckets-api --latest -H -o uuid
^?{"name":"updates-imgadm","hostname":"headnode","pid":19476,"level":20,"opts":{"debug":true,"channel":"experimental","latest":true,"H":true,"o":true,"argv":{"remain":["list","name=manta-buckets-api","uuid"],"cooked":["--debug","--channel","experimental","list","name=manta-buckets-api","--latest","-H","-o","uuid"],"original":["-d","-C","experimental","list","name=manta-buckets-api","--latest","-H","-o","uuid"]}},"argv":["/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/build/node/bin/node","/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/bin/updates-imgadm","-d","-C","experimental","list","name=manta-buckets-api","--latest","-H","-o","uuid"],"msg":"parsed argv","time":"2019-11-20T16:14:09.646Z","src":{"file":"/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/lib/cli.js","line":272},"v":0}
{"name":"updates-im
[root@headnode (coal-1) /var/tmp]# sdc-imgadm -d import -m manta-boray-zfs-jra_workspaces-20191108T160625Z-ge2c2b4b-dirty.imgmanifest -f manta-boray-zfs-jra_workspaces-20191108T160625Z-ge2c2b4b-dirty.zfs.gz
{"name":"sdc-imgadm","hostname":"headnode","pid":99210,"level":20,"opts":{"debug":true,"m":true,"f":true,"argv":{"remain":["import","manta-boray-zfs-jra_workspaces-20191108T160625Z-ge2c2b4b-dirty.imgmanifest","manta-boray-zfs-jra_workspaces-20191108T160625Z-ge2c2b4b-dirty.zfs.gz"],"cooked":["--debug","import","-m","manta-boray-zfs-jra_workspaces-20191108T160625Z-ge2c2b4b-dirty.imgmanifest","-f","manta-boray-zfs-jra_workspaces-20191108T160625Z-ge2c2b4b-dirty.zfs.gz"],"original":["-d","import","-m","manta-boray-zfs-jra_workspaces-20191108T160625Z-ge2c2b4b-dirty.imgmanifest","-f","manta-boray-zfs-jra_workspaces-20191108T160625Z-ge2c2b4b-dirty.zfs.gz"]}},"argv":["/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/build/node/bin/node","/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/s
error[E0599]: no method named `unwrap` found for type `usize` in the current scope
--> boray/src/main.rs:118:49
|
118 | .core_threads(config.tokio.core_threads.unwrap())
| ^^^^^^
error[E0599]: no method named `map` found for type `u64` in the current scope
--> boray/src/main.rs:119:52
|
119 | .keep_alive(config.tokio.thread_keep_alive.map(Duration::from_secs))
[2019-10-08T20:19:26.850Z] WARN: muskie/MorayIndexClient/40356 on 95eb21e2-0eab-4dea-ba48-77d9c969f060: libmanta.Moray.initAttempt failed (will retry) (nfailures=9, willRetryAfterMilliseconds=355746)
error: {
"jse_shortmsg": "libmanta.Moray.initAttempt",
"jse_cause": {
"jse_shortmsg": "setupMantaBuckets",
"jse_cause": {
"ase_errors": [
{
"name": "Error",
"jse_shortmsg": "connect ECONNREFUSED",
/// Generic post
fn post<S>(
&self,
url: S,
body: &Value
) -> Result<Response, Box<dyn std::error::Error>>
where
S: IntoUrl,
{
/home/jonran/workspaces/muskie/master/manta-muskie/build/node/bin/node ./node_modules/.bin/nodeunit --reporter=tap \
test/*.test.js test/mpu/*.test.js
TAP version 13
# default role
not ok 1 Cannot read property 'unlink' of undefined
---
type: TypeError
message: Cannot read property 'unlink' of undefined
code: ~
errno: ~
running 1 test
Apr 11 12:05:57.033 INFO running basic cueball example, build-id: 0.1.0
Apr 11 12:05:57.035 INFO resolvers specified: ["192.168.1.1:53"], build-id: 0.1.0
Apr 11 12:05:57.094 ERRO srv not found!, build-id: 0.1.0
Apr 11 12:05:57.150 DEBG sent msg, build-id: 0.1.0
Apr 11 12:05:57.150 INFO Adding backend 9AxB3AVJtd3Ec/q0R0CII1CV7vE=, build-id: 0.1.0
Apr 11 12:05:57.150 DEBG sent msg, build-id: 0.1.0
Apr 11 12:05:57.150 INFO Adding backend q9645S/3uAw/l1qnGvpiQqoNhcQ=, build-id: 0.1.0
Apr 11 12:05:57.150 INFO sleeping for P3DT40799.849092S, build-id: 0.1.0
Apr 11 12:05:57.253 INFO Performing connection rebalance, build-id: 0.1.0
Triton Setup
Verify Configuration https://docs.joyent.com/private-cloud
--------------------------------------------------------------------------------
Company name: Clavius
Datacenter Region: orbit, Name: coal-1, Location: Moon, Earth
Email Admin Address: root@localhost, From: [email protected]
Domain name: example.com, Gateway IP address: 172.26.20.1
Net MAC IP addr. Netmask Gateway VLAN
Admin f2:f9:57:7e:d6:3f 10.99.99.7 255.255.255.0 none none
External 92:77:4c:b8:d3:7e 172.26.20.100 255.255.255.0 172.26.20.1 none