{"action":"created","issue":{"url":"https://api.github.com/repos/juju/docs/issues/1299","repository_url":"https://api.github.com/repos/juju/docs","labels_url":"https://api.github.com/repos/juju/docs/issues/1299/labels{/name}","comments_url":"https://api.github.com/repos/juju/docs/issues/1299/comments","events_url":"https://api.github.com/repos/juju/docs/issues/1299/events","html_url":"https://github.com/juju/docs/issues/1299","id":171629081,"number":1299,"title":"Service level status not reflected in docs for status-{get,set}","user":{"login":"sparkiegeek","id":246192,"avatar_url":"https://avatars.githubusercontent.com/u/246192?v=3","gravatar_id":"","url":"https://api.github.com/users/sparkiegeek","html_url":"https://github.com/sparkiegeek","followers_url":"https://api.github.com/users/sparkiegeek/followers","following_url":"https://api.github.com/users/sparkiegeek/following{/other_user}","gists_url":"https://api.github.com/users/sparkiegeek/gists{/gist_id}","starred_url":"https://api.github.com/users/sparkiegeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparkiegeek/subscriptions","organizations_url":"https://api.github.com/users/sparkiegeek/orgs","repos_url":"https://api.github.com/users/sparkiegeek/repos","events_url":"https://api.github.com/users/sparkiegeek/events{/privacy}","received_events_url":"https://api.github.com/users/sparkiegeek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/juju/docs/labels/1.25","name":"1.25","color":"0052dd"},{"url":"https://api.github.com/repos/juju/docs/labels/2.0","name":"2.0","color":"0052cc"},{"url":"https://api.github.com/repos/juju/docs/labels/eco-team","name":"eco-team","color":"6633ff"},{"url":"https://api.github.com/repos/juju/docs/labels/medium%20priority","name":"medium priority","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-17T10:53:45Z","updated_at":"2016-08-17T12:48:00Z","closed_at":null,"body":"- https://jujucharms.com/docs/devel/authors-hook-environment#status-set\r\n- https://jujucharms.com/docs/devel/authors-hook-environment#status-get\r\n\r\nBoth `status-set` and `status-get` hook commands have a `--service` flag which allows the leader of the service to set/get the overall status of the service. This should be documented beyond just the `--help` of the hook tools (hint: `juju run --unit ubuntu/0 'status-get --help'`).\r\n\r\nThe option has been there since the introduction of the commands, so docs for 1.24 onwards should be updated appopriately.\r\n"},"comment":{"url":"https://api.github.com/repos/juju/docs/issues/comments/240400435","html_url":"https://github.com/juju/docs/issues/1299#issuecomment-240400435","issue_url":"https://api.github.com/repos/juju/docs/issues/1299","id":240400435,"user":{"login":"matthewhelmke","id":660205,"avatar_url":"https://avatars.githubusercontent.com/u/660205?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewhelmke","html_url":"https://github.com/matthewhelmke","followers_url":"https://api.github.com/users/matthewhelmke/followers","following_url":"https://api.github.com/users/matthewhelmke/following{/other_user}","gists_url":"https://api.github.com/users/matthewhelmke/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewhelmke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewhelmke/subscriptions","organizations_url":"https://api.github.com/users/matthewhelmke/orgs","repos_url":"https://api.github.com/users/matthewhelmke/repos","events_url":"https://api.github.com/users/matthewhelmke/events{/privacy}","received_events_url":"https://api.github.com/users/matthewhelmke/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T12:48:00Z","updated_at":"2016-08-17T12:48:00Z","body":"To help, I did a fresh install/bootstrap/deploy and got the help text referred to above.\r\n\r\n`ubuntu@20160812-beta15:~$ juju deploy ubuntu\r\nAdded charm \"cs:ubuntu-0\" to the model.\r\nDeploying charm \"cs:ubuntu-0\" with the user specified series \"xenial\".\r\nubuntu@20160812-beta15:~$ juju status\r\nMODEL    CONTROLLER  CLOUD/REGION         VERSION\r\ndefault  lxd-test    localhost/localhost  2.0-beta15\r\n\r\nAPP     VERSION  STATUS   EXPOSED  ORIGIN      CHARM   REV  OS\r\nubuntu           unknown  false    jujucharms  ubuntu  0    ubuntu\r\n\r\nUNIT      WORKLOAD  AGENT  MACHINE  PUBLIC-ADDRESS  PORTS  MESSAGE\r\nubuntu/0  unknown   idle   0        10.27.236.78           \r\n\r\nMACHINE  STATE    DNS           INS-ID         SERIES  AZ\r\n0        started  10.27.236.78  juju-028a1a-0  xenial  \r\n\r\n\r\n\r\nubuntu@20160812-beta15:~$ juju run --unit ubuntu/0 'status-get --help'\r\nUsage: status-get [options] [--include-data] [--application]\r\n\r\nSummary:\r\nprint status information\r\n\r\nOptions:\r\n--application  (= false)\r\n    print status for all units of this application if this unit is the leader\r\n--format  (= smart)\r\n    Specify output format (json|smart|yaml)\r\n--include-data  (= false)\r\n    print all status data\r\n-o, --output (= \"\")\r\n    Specify an output file\r\n\r\nDetails:\r\nBy default, only the status value is printed.\r\nIf the --include-data flag is passed, the associated data are printed also.\r\n\r\n\r\nubuntu@20160812-beta15:~$ juju run --unit ubuntu/0 'status-set --help'\r\nUsage: status-set [options] <maintenance | blocked | waiting | active> [message]\r\n\r\nSummary:\r\nset status information\r\n\r\nOptions:\r\n--service, --application  (= false)\r\n    set this status for the application to which the unit belongs if the unit is the leader\r\n\r\nDetails:\r\nSets the workload status of the charm. Message is optional.\r\nThe \"last updated\" attribute of the status is set, even if the\r\nstatus and message are the same as what's already set.`"}}
{"actor":{"display_login":"matthewhelmke"}}