Skip to content

Instantly share code, notes, and snippets.

View misterdjules's full-sized avatar

Julien Gilli misterdjules

View GitHub Profile
exports.list_invalid_empty_metadata_key = function (t) {
var expectedError = {
code: 'ValidationFailed',
message: 'Invalid Parameters',
errors: [ {
field: 'internal_metadata',
code: 'Invalid',
message: 'Invalid internal_metadata key: ""'
} ]
};
05:08:51 # create empty-env-var container
05:09:07 ok 51 Warnings should be present and empty
05:09:07 ok 52 Id should be present
05:09:18 ok 53 null
05:09:18 ok 54 null
05:09:18 ok 55 null
05:09:18 ok 56 null
05:09:18 ok 57 create empty-env-var container
05:09:18 ok 58 Check container running
05:09:18 not ok 59 Check cat /etc/resolv.conf result

Use triton.system_role tag

pros

  • Easy to implement.

cons

  • Tags are not used to express internal properties. A customer could set the smartdc_role=nfsvolumestorage tag at in stance creation time. So we'd have
diff --git a/master:lib/networks.js b/PUBAPI-1448:lib/endpoints/networks.js
index c59d9b7..df124e3 100644
--- a/master:lib/networks.js
+++ b/PUBAPI-1448:lib/endpoints/networks.js
@@ -9,20 +9,19 @@
*/
var assert = require('assert-plus');
-var util = require('util');
-var mod_config = require('./config');

Provisioning job's tasks' results:

[root@headnode (nightly-1) ~]# sdc-workflow /jobs/9a2caf14-958f-4218-bc55-207511997ccd | json -H chain_results
[
  {
    "result": "All parameters OK!",
    "error": "",
    "name": "common.validate_params",
    "started_at": "2017-09-25T09:29:02.763Z",
#!/usr/sbin/dtrace -s
#pragma D option quiet
bunyan*:::log-debug
/json(copyinstr(arg0), "msg") == "pinging moray..."/
{
this->profiling_enabled = 1;
}
#!/usr/sbin/dtrace -s
#pragma D option quiet
moray*:::query-start
/copyinstr(arg1) == "SELECT name FROM buckets_config LIMIT 1"/
{
printf("arg1: %s\n", copyinstr(arg1));
starts[copyinstr(arg0)] = timestamp;
}
diff --git a/lib/imgapi.js b/lib/imgapi.js
index 8d362a1..6e542f4 100644
--- a/lib/imgapi.js
+++ b/lib/imgapi.js
@@ -1058,7 +1058,7 @@ function adminImportRemoteImageAndWait(uuid, source, options, callback) {
delay: delay
}, 'retry ready');
- self.client.post(reqOpts, function (err, req, res, obj) {
+ self.client.post(reqOpts, {}, function (err, req, res, obj) {

Introduction of JSReceiver's raw_properties_or_hash

See https://chromium-review.googlesource.com/574761.

This change was first relased with V8 6.1.532 (after node 8.4.0, not in master yet):

➜  v8 git:(master) git remote -v
origin	git@github.com:v8/v8.git (fetch)
origin	git@github.com:v8/v8.git (push)
diff --git a/src/mdb_v8.c b/src/mdb_v8.c
index 7a50fcb..91a3a25 100644
--- a/src/mdb_v8.c
+++ b/src/mdb_v8.c
@@ -81,7 +81,7 @@ static v8_class_t *v8_classes;
static v8_enum_t v8_types[128];
static int v8_next_type;
-static v8_enum_t v8_frametypes[16];
+static v8_enum_t v8_frametypes[32];