Skip to content

Instantly share code, notes, and snippets.

@mgerdts
Last active October 8, 2018 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgerdts/e6afe74791e57950e202ca8a54f013ec to your computer and use it in GitHub Desktop.
Save mgerdts/e6afe74791e57950e202ca8a54f013ec to your computer and use it in GitHub Desktop.
Hints

What source code went into this OS build?

> gitstatus_start/s
gitstatus_start:
gitstatus_start:[
    {
        "repo": "smartos-live",
        "branch": "hacks",
        "commit_date": "1538755931",
        "rev": "a07300ab01d770d284e9c83a15b8d114c7a341cb",
        "url": "git@github.com:joyent/smartos-live.git"
    },
    {
        "repo": "illumos-joyent",
        "branch": "OS-7288",
        "commit_date": "1538773364",
        "rev": "41cf9b3848d0c50f837a8d5e390d9b2ae462ce5b",
        "url": "git@github.com:joyent/illumos-joyent.git"
    },
    {
        "repo": "illumos-extra",
        "branch": "master",
        "commit_date": "1537814505",
        "rev": "45173d58408ce6f92467eb71e40f88e0d96d4a71",
        "url": "https://github.com/joyent/illumos-extra.git"
    },
    {
        "repo": "kvm",
        "branch": "master",
        "commit_date": "1535405591",
        "rev": "4149738a32ab6ac380a31c309d116e3dfef47a98",
        "url": "https://github.com/joyent/illumos-kvm.git"
    },
    {
        "repo": "kvm-cmd",
        "branch": "master",
        "commit_date": "1538170515",
        "rev": "e0ffedd6061af38aa95f4c10fd5d8b50d6dc9333",
        "url": "https://github.com/joyent/illumos-kvm-cmd.git"
    },
    {
        "repo": "mdata-client",
        "branch": "master",
        "commit_date": "1482175115",
        "rev": "dbb3fdec26373f8e86c9ea0057ebba48581ff476",
        "url": "https://github.com/joyent/mdata-client.git"
    },
    {
        "repo": "ur-agent",
        "branch": "master",
        "commit_date": "1532549773",
        "rev": "6918e2cde9b03c084be49e450b04d96340707b30",
        "url": "https://github.com/joyent/sdc-ur-agent.git"
    }
]

Why did dapi not find a CN?

 /opt/smartdc/cnapi/bin/alloc-reasons.sh

Previously:

headnode# sdc-login cnapi
cnapi# grep -h snapshot /var/log/sdc/upload/cnapi_* `svcs -L cnapi` \
    | bunyan -c this.snapshot -o bunyan --strict \
    | tail -1 \
    | json -ga snapshot \
    | while read snap; do echo "$snap" | base64 -d | gunzip - | json steps ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment