habitat-sh / habitat

Modern applications with built-in automation
https://www.habitat.sh
Apache License 2.0
2.61k stars 315 forks source link

hab updates services when the update strategy is set to none #4815

Closed jaym closed 5 years ago

jaym commented 6 years ago

When changing the update strategy of a running service from at-once to none, hab continues to update it. Below is a studio session in which I reproduced this. The service runs a fairly simple script. Both the old and new are along the lines of:

#!{{pkgPathFor "core/bash"}}/bin/bash

exec 2>&1

# TO INFINITY AND BEYOND!
while true
do
  echo "Pkg 15"
  sleep 10
done

the studio session:

[9][default:/src:0]# hab svc status
No services loaded.
[10][default:/src:0]# sl
--> Tailing the Habitat Supervisor's output (use 'Ctrl+c' to stop)
hab-sup(MR): Supervisor Member-ID 4fc09c28e87c43959a57f4047018bd53
hab-sup(MR): Starting gossip-listener on 0.0.0.0:9638
DEBUG 2018-03-27T20:56:01Z: habitat_sup::manager::spec_watcher: SpecWatcher(/hab/sup/default/specs) thread starting
DEBUG 2018-03-27T20:56:01Z: habitat_sup::manager: gossip-listener started
DEBUG 2018-03-27T20:56:01Z: habitat_sup::manager: Writing census state to disk
DEBUG 2018-03-27T20:56:01Z: habitat_sup::manager: Writing butterfly state to disk
DEBUG 2018-03-27T20:56:01Z: habitat_sup::manager: Writing services state to disk
hab-sup(MR): Starting http-gateway on 0.0.0.0:9631
DEBUG 2018-03-27T20:56:01Z: habitat_sup::manager: http-gateway started
DEBUG 2018-03-27T20:56:01Z: hyper::server: threads = 96
^C
[11][default:/src:130]# hab svc load jaym/upgrade-test --strategy at-once --channel unstable --force
hab-sup(MN): The jaym/upgrade-test service was successfully loaded
[12][default:/src:0]# sl
--> Tailing the Habitat Supervisor's output (use 'Ctrl+c' to stop)
hab-sup(MR): Supervisor Member-ID 4fc09c28e87c43959a57f4047018bd53
hab-sup(MR): Starting gossip-listener on 0.0.0.0:9638
DEBUG 2018-03-27T20:56:01Z: habitat_sup::manager::spec_watcher: SpecWatcher(/hab/sup/default/specs) thread starting
DEBUG 2018-03-27T20:56:01Z: habitat_sup::manager: gossip-listener started
DEBUG 2018-03-27T20:56:01Z: habitat_sup::manager: Writing census state to disk
DEBUG 2018-03-27T20:56:01Z: habitat_sup::manager: Writing butterfly state to disk
DEBUG 2018-03-27T20:56:01Z: habitat_sup::manager: Writing services state to disk
hab-sup(MR): Starting http-gateway on 0.0.0.0:9631
DEBUG 2018-03-27T20:56:01Z: habitat_sup::manager: http-gateway started
DEBUG 2018-03-27T20:56:01Z: hyper::server: threads = 96
DEBUG 2018-03-27T20:56:23Z: habitat_sup::manager: Writing census state to disk
DEBUG 2018-03-27T20:56:23Z: habitat_sup::manager: Writing butterfly state to disk
DEBUG 2018-03-27T20:56:23Z: habitat_sup::manager: Writing services state to disk
DEBUG 2018-03-27T20:56:23Z: habitat_sup::manager::service::config: 'user.toml' at /hab/user/upgrade-test/config/user.toml does not exist
DEBUG 2018-03-27T20:56:23Z: habitat_sup::manager::service::config: 'user.toml' at /hab/svc/upgrade-test/user.toml does not exist
DEBUG 2018-03-27T20:56:23Z: habitat_sup::manager::service::config: Failed to open 'user.toml', /hab/user/upgrade-test/config/user.toml, No such file or directory (os error 2)
DEBUG 2018-03-27T20:56:23Z: habitat_sup::manager::service::config: Looking up environment variable HAB_UPGRADE_TEST failed: NotPresent
DEBUG 2018-03-27T20:56:23Z: habitat_sup::manager::service::hooks: file_updated not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/file_updated, not loading
DEBUG 2018-03-27T20:56:23Z: habitat_sup::manager::service::hooks: health_check not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/health_check, not loading
DEBUG 2018-03-27T20:56:23Z: habitat_sup::manager::service::hooks: suitability not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/suitability, not loading
DEBUG 2018-03-27T20:56:23Z: habitat_sup::manager::service::hooks: init not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/init, not loading
DEBUG 2018-03-27T20:56:23Z: habitat_sup::manager::service::hooks: reload not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/reload, not loading
DEBUG 2018-03-27T20:56:23Z: habitat_sup::manager::service::hooks: reconfigure not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/reconfigure, not loading
DEBUG 2018-03-27T20:56:23Z: habitat_sup::manager::service::hooks: post-run not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/post-run, not loading
DEBUG 2018-03-27T20:56:23Z: habitat_sup::manager::service::hooks: smoke_test not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/smoke_test, not loading
DEBUG 2018-03-27T20:56:23Z: habitat_sup::manager::service::hooks: post-stop not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/post-stop, not loading
DEBUG 2018-03-27T20:56:23Z: habitat_sup::manager::service::hooks: upgrade-test.default, Hooks loaded, destination=/hab/svc/upgrade-test/hooks, templates=/hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks
DEBUG 2018-03-27T20:56:24Z: habitat_sup::manager::spec_watcher: SpecWatcher(/hab/sup/default/specs) file system event: Create("/hab/sup/default/specs/upgrade-test.spec")
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::spec_watcher: Service spec for upgrade-test is new, enqueuing AddService(ServiceSpec { ident: PackageIdent { origin: "jaym", name: "upgrade-test", version: None, release: None }, group: "default", application_environment: None, bldr_url: "https://bldr.habitat.sh", channel: "unstable", topology: Standalone, update_strategy: AtOnce, binds: [], config_from: None, desired_state: Up, start_style: Persistent, svc_encrypted_password: None, composite: None }) event
hab-sup(MR): Starting jaym/upgrade-test
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::config: 'user.toml' at /hab/user/upgrade-test/config/user.toml does not exist
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::config: 'user.toml' at /hab/svc/upgrade-test/user.toml does not exist
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::config: Failed to open 'user.toml', /hab/user/upgrade-test/config/user.toml, No such file or directory (os error 2)
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::config: Looking up environment variable HAB_UPGRADE_TEST failed: NotPresent
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::hooks: file_updated not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/file_updated, not loading
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::hooks: health_check not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/health_check, not loading
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::hooks: suitability not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/suitability, not loading
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::hooks: init not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/init, not loading
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::hooks: reload not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/reload, not loading
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::hooks: reconfigure not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/reconfigure, not loading
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::hooks: post-run not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/post-run, not loading
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::hooks: smoke_test not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/smoke_test, not loading
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::hooks: post-stop not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/post-stop, not loading
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::hooks: upgrade-test.default, Hooks loaded, destination=/hab/svc/upgrade-test/hooks, templates=/hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service: upgrade-test.default, Creating svc paths
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::dir: Creating dir with subdirs: "/hab/svc/upgrade-test"
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::dir: Creating dir with subdirs: "/hab/svc/upgrade-test/hooks"
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::dir: Creating dir with subdirs: "/hab/svc/upgrade-test/logs"
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::dir: Creating dir with subdirs: "/hab/svc/upgrade-test/config"
DEBUG 2018-03-27T20:56:25Z: habitat_core::util::perm: Attempting to set owner of "/hab/svc/upgrade-test/config" to "hab":"hab"
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::dir: Creating dir with subdirs: "/hab/svc/upgrade-test/data"
DEBUG 2018-03-27T20:56:25Z: habitat_core::util::perm: Attempting to set owner of "/hab/svc/upgrade-test/data" to "hab":"hab"
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::dir: Creating dir with subdirs: "/hab/svc/upgrade-test/files"
DEBUG 2018-03-27T20:56:25Z: habitat_core::util::perm: Attempting to set owner of "/hab/svc/upgrade-test/files" to "hab":"hab"
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::dir: Creating dir with subdirs: "/hab/svc/upgrade-test/var"
DEBUG 2018-03-27T20:56:25Z: habitat_core::util::perm: Attempting to set owner of "/hab/svc/upgrade-test/var" to "hab":"hab"
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::dir: Creating dir with subdirs: "/hab/svc/upgrade-test/static"
DEBUG 2018-03-27T20:56:25Z: habitat_core::util::perm: Attempting to set owner of "/hab/svc/upgrade-test/static" to "hab":"hab"
upgrade-test.default(UCW): Watching user.toml
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::user_config_watcher: UserConfigWatcher(/hab/user/upgrade-test/config/user.toml) worker thread starting
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager: Writing census state to disk
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager: Writing butterfly state to disk
DEBUG 2018-03-27T20:56:25Z: habitat_common::command::package::install: install key_cache_path: /hab/cache/keys
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager: Writing services state to disk
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::file_watcher: common generator created: CommonGenerator {
  prev: None,
  old_prev: None,
  path: /,
  split_path: SplitPath {
    directory: /,
    file_name: None,
  },
  index: 0,
  path_rest: ["hab", "user", "upgrade-test", "config", "user.toml"],
}
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::file_watcher: common generator before new Common: CommonGenerator {
  prev: None,
  old_prev: None,
  path: /,
  split_path: SplitPath {
    directory: /,
    file_name: None,
  },
  index: 0,
  path_rest: ["hab", "user", "upgrade-test", "config", "user.toml"],
}
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::file_watcher: generated common: Some(Common {
  path: /hab,
  dir_file_name: DirFileName {
    directory: /,
    file_name: hab,
  },
  prev: None,
  next: None,
  index: 0,
  path_rest: ["user", "upgrade-test", "config", "user.toml"],
})
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::file_watcher: common generator after new Common: CommonGenerator {
  prev: Some(/hab),
  old_prev: None,
  path: /hab,
  split_path: SplitPath {
    directory: /,
    file_name: Some(hab),
  },
  index: 1,
  path_rest: ["user", "upgrade-test", "config", "user.toml"],
}
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::file_watcher: add directory because is not a symlink and is not a leaf
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::file_watcher: get or add branch file: Directory(Common {
  path: /hab,
  dir_file_name: DirFileName {
    directory: /,
    file_name: hab,
  },
  prev: None,
  next: None,
  index: 0,
  path_rest: ["user", "upgrade-test", "config", "user.toml"],
})
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::file_watcher: chain link info: "ChainLinkInfo {\n  path: /hab,\n  prev: None,\n}"
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::file_watcher: handle branch result: NewInNewDirectory(ChainLinkInfo {
  path: /hab,
  prev: None,
}, /)
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::file_watcher: common generator before new Common: CommonGenerator {
  prev: Some(/hab),
  old_prev: None,
  path: /hab,
  split_path: SplitPath {
    directory: /,
    file_name: Some(hab),
  },
  index: 1,
  path_rest: ["user", "upgrade-test", "config", "user.toml"],
}
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::file_watcher: generated common: Some(Common {
  path: /hab/user,
  dir_file_name: DirFileName {
    directory: /hab,
    file_name: user,
  },
  prev: Some(/hab),
  next: None,
  index: 1,
  path_rest: ["upgrade-test", "config", "user.toml"],
})
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::file_watcher: common generator after new Common: CommonGenerator {
  prev: Some(/hab/user),
  old_prev: Some(/hab),
  path: /hab/user,
  split_path: SplitPath {
    directory: /hab,
    file_name: Some(user),
  },
  index: 2,
  path_rest: ["upgrade-test", "config", "user.toml"],
}
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::file_watcher: add missing directory because error and is not a leaf
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::file_watcher: add leaf file: MissingDirectory(Common {
  path: /hab/user,
  dir_file_name: DirFileName {
    directory: /hab,
    file_name: user,
  },
  prev: Some(/hab),
  next: None,
  index: 1,
  path_rest: ["upgrade-test", "config", "user.toml"],
})
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::file_watcher: handle leaf result: NewInNewDirectory(ChainLinkInfo {
  path: /hab/user,
  prev: Some(/hab),
}, /hab)
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager: Writing census state to disk
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager: Writing butterfly state to disk
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager: Writing services state to disk
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::hooks: HookTable { health_check: None, init: None, file_updated: None, reload: None, reconfigure: None, suitability: None, run: Some(RunHook { render_pair: path: /hab/svc/upgrade-test/hooks/run, stdout_log_path: "/hab/svc/upgrade-test/logs/run.stdout.log", stderr_log_path: "/hab/svc/upgrade-test/logs/run.stderr.log" }), post_run: None, smoke_test: None, post_stop: None }
DEBUG 2018-03-27T20:56:25Z: habitat_sup::templating: Rendering template with context, run, {"bind":{},"cfg":{"bar":1,"foo":0},"pkg":{"deps":[{"name":"bash","origin":"core","release":"20170513213519","version":"4.3.42"},{"name":"gcc-libs","origin":"core","release":"20170513212920","version":"5.2.0"},{"name":"glibc","origin":"core","release":"20170513201042","version":"2.22"},{"name":"linux-headers","origin":"core","release":"20170513200956","version":"4.3"},{"name":"ncurses","origin":"core","release":"20170513213009","version":"6.0"},{"name":"readline","origin":"core","release":"20170513213506","version":"6.3.8"}],"env":{"PATH":"/hab/pkgs/core/bash/4.3.42/20170513213519/bin:/hab/pkgs/core/ncurses/6.0/20170513213009/bin:/hab/pkgs/core/glibc/2.22/20170513201042/bin:/hab/pkgs/core/busybox-static/1.24.2/20170513215502/bin:/hab/bin:/hab/pkgs/core/ncurses/6.0/20170513213009/bin:/hab/pkgs/core/glibc/2.22/20170513201042/bin:/hab/pkgs/core/vim/8.0.0004/20170513220742/bin:/hab/pkgs/core/attr/2.4.47/20170513213059/bin:/hab/pkgs/core/acl/2.2.52/20170513213108/bin:/hab/pkgs/core/util-linux/2.27.1/20170513214732/bin:/hab/pkgs/core/mg/20160118/20170513220846/bin:/hab/pkgs/core/make/4.2.1/20170513214620/bin:/hab/pkgs/core/less/481/20170513213936/bin:/hab/pkgs/core/pcre/8.38/20170513213423/bin:/hab/pkgs/core/diffutils/3.3/20170513214227/bin:/hab/pkgs/core/hab-plan-build/0.54.0/20180221023251/bin:/hab/pkgs/core/xz/5.2.2/20170513214327/bin:/hab/pkgs/core/wget/1.19.1/20171024102323/bin:/hab/pkgs/core/openssl/1.0.2l/20171014213633/bin:/hab/pkgs/core/libidn/1.32/20170513215043/bin:/hab/pkgs/core/unzip/6.0/20170513215357/bin:/hab/pkgs/core/bzip2/1.0.6/20170513212938/bin:/hab/pkgs/core/tar/1.29/20170513213607/bin:/hab/pkgs/core/sed/4.2.2/20170513213123/bin:/hab/pkgs/core/rq/0.9.2/20170612005822/bin:/hab/pkgs/core/hab/0.54.0/20180221022026/bin:/hab/pkgs/core/gzip/1.6/20170513214605/bin:/hab/pkgs/core/grep/2.22/20170513213444/bin:/hab/pkgs/core/gawk/4.1.3/20170513213646/bin:/hab/pkgs/core/findutils/4.4.2/20170513214305/bin:/hab/pkgs/core/file/5.24/20170513201915/bin:/hab/pkgs/core/coreutils/8.25/20170513213226/bin:/hab/pkgs/core/libcap/2.24/20170513213120/bin:/hab/pkgs/core/binutils/2.25.1/20170513201927/bin:/hab/pkgs/core/bash/4.3.42/20170513213519/bin"},"exports":{},"exposes":[],"ident":"jaym/upgrade-test/0.1.0/20180327203634","name":"upgrade-test","origin":"jaym","path":"/hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634","release":"20180327203634","svc_config_path":"/hab/svc/upgrade-test/config","svc_data_path":"/hab/svc/upgrade-test/data","svc_files_path":"/hab/svc/upgrade-test/files","svc_group":"hab","svc_path":"/hab/svc/upgrade-test","svc_pid_file":"/hab/svc/upgrade-test/PID","svc_run":"/hab/svc/upgrade-test/run","svc_static_path":"/hab/svc/upgrade-test/static","svc_user":"hab","svc_var_path":"/hab/svc/upgrade-test/var","version":"0.1.0"},"svc":{"election_is_finished":false,"election_is_no_quorum":false,"election_is_running":false,"first":{"alive":true,"application":null,"cfg":{},"confirmed":false,"departed":false,"election_is_finished":false,"election_is_no_quorum":false,"election_is_running":false,"environment":null,"follower":false,"group":"default","leader":false,"member_id":"4fc09c28e87c43959a57f4047018bd53","org":null,"persistent":false,"pkg":{"name":"upgrade-test","origin":"jaym","release":"20180327203634","version":"0.1.0"},"service":"upgrade-test","suspect":false,"sys":{"gossip_ip":"0.0.0.0","gossip_port":9638,"hostname":"robothell","http_gateway_ip":"0.0.0.0","http_gateway_port":9631,"ip":"192.168.1.117"},"update_election_is_finished":false,"update_election_is_no_quorum":false,"update_election_is_running":false,"update_follower":false,"update_leader":false},"group":"default","leader":null,"me":{"alive":true,"application":null,"cfg":{},"confirmed":false,"departed":false,"election_is_finished":false,"election_is_no_quorum":false,"election_is_running":false,"environment":null,"follower":false,"group":"default","leader":false,"member_id":"4fc09c28e87c43959a57f4047018bd53","org":null,"persistent":false,"pkg":{"name":"upgrade-test","origin":"jaym","release":"20180327203634","version":"0.1.0"},"service":"upgrade-test","suspect":false,"sys":{"gossip_ip":"0.0.0.0","gossip_port":9638,"hostname":"robothell","http_gateway_ip":"0.0.0.0","http_gateway_port":9631,"ip":"192.168.1.117"},"update_election_is_finished":false,"update_election_is_no_quorum":false,"update_election_is_running":false,"update_follower":false,"update_leader":false},"members":[{"alive":true,"application":null,"cfg":{},"confirmed":false,"departed":false,"election_is_finished":false,"election_is_no_quorum":false,"election_is_running":false,"environment":null,"follower":false,"group":"default","leader":false,"member_id":"4fc09c28e87c43959a57f4047018bd53","org":null,"persistent":false,"pkg":{"name":"upgrade-test","origin":"jaym","release":"20180327203634","version":"0.1.0"},"service":"upgrade-test","suspect":false,"sys":{"gossip_ip":"0.0.0.0","gossip_port":9638,"hostname":"robothell","http_gateway_ip":"0.0.0.0","http_gateway_port":9631,"ip":"192.168.1.117"},"update_election_is_finished":false,"update_election_is_no_quorum":false,"update_election_is_running":false,"update_follower":false,"update_leader":false}],"org":null,"service":"upgrade-test","update_election_is_finished":false,"update_election_is_no_quorum":false,"update_election_is_running":false,"update_leader":null},"sys":{"gossip_ip":"0.0.0.0","gossip_port":9638,"hostname":"robothell","http_gateway_ip":"0.0.0.0","http_gateway_port":9631,"ip":"192.168.1.117","member_id":"4fc09c28e87c43959a57f4047018bd53","permanent":false,"version":"0.54.0/20180221023448"}}
DEBUG 2018-03-27T20:56:25Z: handlebars::render: rendering RawString("#!"), partials: {}, path: ".", local_variables: {}, current_template: Some("run"), root_template: Some("run"), disable_escape: false, local_path_root: []
DEBUG 2018-03-27T20:56:25Z: handlebars::render: rendering HelperExpression(HelperTemplate { name: "pkgPathFor", params: [Literal(String("core/bash"))], hash: {}, block_param: None, template: None, inverse: None, block: false }), partials: {}, path: ".", local_variables: {}, current_template: Some("run"), root_template: Some("run"), disable_escape: false, local_path_root: []
DEBUG 2018-03-27T20:56:25Z: handlebars::render: rendering RawString("/bin/bash\n\nexec 2>&1\n\n\n# TO INFINITY AND BEYOND!\nwhile true\ndo\n  echo \"Pkg 13\"\n  "), partials: {}, path: ".", local_variables: {}, current_template: Some("run"), root_template: Some("run"), disable_escape: false, local_path_root: []
DEBUG 2018-03-27T20:56:25Z: handlebars::render: rendering HelperBlock(HelperTemplate { name: "if", params: [Name("cfg.foo")], hash: {}, block_param: None, template: Some(Template { name: None, elements: [RawString("echo \"foo\"\n  ")], mapping: Some([TemplateMapping(11, 3)]) }), inverse: None, block: true }), partials: {}, path: ".", local_variables: {}, current_template: Some("run"), root_template: Some("run"), disable_escape: false, local_path_root: []
DEBUG 2018-03-27T20:56:25Z: handlebars::render: rendering HelperBlock(HelperTemplate { name: "if", params: [Name("cfg.bar")], hash: {}, block_param: None, template: Some(Template { name: None, elements: [RawString("echo \"bar\"\n  ")], mapping: Some([TemplateMapping(15, 3)]) }), inverse: None, block: true }), partials: {}, path: ".", local_variables: {}, current_template: Some("run"), root_template: Some("run"), disable_escape: false, local_path_root: []
DEBUG 2018-03-27T20:56:25Z: handlebars::render: rendering RawString("echo \"bar\"\n  "), partials: {}, path: ".", local_variables: {}, current_template: None, root_template: Some("run"), disable_escape: false, local_path_root: []
DEBUG 2018-03-27T20:56:25Z: handlebars::render: rendering RawString("sleep 5\ndone\n"), partials: {}, path: ".", local_variables: {}, current_template: None, root_template: Some("run"), disable_escape: false, local_path_root: []
upgrade-test.default(HK): run, compiled to /hab/svc/upgrade-test/hooks/run
upgrade-test.default(HK): Hooks compiled
upgrade-test.default(SR): Hooks recompiled
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::supervisor: Could not find a live process with pid None
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::supervisor: Attempting to clean up pid file /hab/svc/upgrade-test/PID
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::supervisor: Error removing pidfile: No such file or directory (os error 2), continuing
upgrade-test.default(SR): Initializing
upgrade-test.default(SV): Starting service as user=hab, group=hab
DEBUG 2018-03-27T20:56:25Z: habitat_http_client::ssl: Setting CA file for SSL context to: /hab/pkgs/core/cacerts/2017.09.20/20171014212239/ssl/cert.pem
DEBUG 2018-03-27T20:56:25Z: habitat_http_client::api_client: User-Agent: hab-sup/0.54.0/20180221023448 (x86_64-linux; 4.15.11-1-hardened)
DEBUG 2018-03-27T20:56:25Z: habitat_http_client::api_client: GET https://bldr.habitat.sh/v1/depot/channels/jaym/unstable/pkgs/upgrade-test/latest with ApiClient { endpoint: "https://bldr.habitat.sh/v1", inner: Client { redirect_policy: FollowAll, read_timeout: Some(Duration { secs: 60, nanos: 0 }), write_timeout: Some(Duration { secs: 60, nanos: 0 }), proxy: None }, proxy: None, target_scheme: "https", user_agent_header: UserAgent("hab-sup/0.54.0/20180221023448 (x86_64-linux; 4.15.11-1-hardened)") }
DEBUG 2018-03-27T20:56:25Z: hyper::net: http scheme
DEBUG 2018-03-27T20:56:25Z: habitat_launcher::sys::imp::service: launcher is spawning /hab/svc/upgrade-test/run
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service::supervisor: Creating PID file for child /hab/svc/upgrade-test/PID -> 24602
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
DEBUG 2018-03-27T20:56:25Z: hyper::net: https scheme
DEBUG 2018-03-27T20:56:25Z: hyper::http::h1: request line: Get "/v1/depot/channels/jaym/unstable/pkgs/upgrade-test/latest" Http11
DEBUG 2018-03-27T20:56:25Z: hyper::http::h1: headers=Headers { Host: bldr.habitat.sh
, User-Agent: hab-sup/0.54.0/20180221023448 (x86_64-linux; 4.15.11-1-hardened)
, }
DEBUG 2018-03-27T20:56:25Z: hyper::client::response: version=Http11, status=Ok
DEBUG 2018-03-27T20:56:25Z: hyper::client::response: headers=Headers { Access-Control-Allow-Headers: authorization, range
, Access-Control-Allow-Methods: PUT, DELETE, PATCH
, Access-Control-Allow-Origin: *
, Access-Control-Expose-Headers: content-disposition
, Cache-Control: private, no-cache, no-store, private, no-cache, no-store
, Content-Type: application/json; charset=utf-8
, ETag: 7f99371944bf4892433c512cb47e0ff242911c3f91539b58c24b38c8abf7ad16
, Server: nginx/1.12.2
, Via: 1.1 varnish
Via: 1.1 varnish
, Content-Length: 2964
, Accept-Ranges: bytes
, Date: Tue, 27 Mar 2018 20:56:25 GMT
, Age: 0
, Connection: keep-alive
, X-Served-By: cache-sea1043-SEA, cache-mdw17327-MDW
, X-Cache: MISS, MISS
, X-Cache-Hits: 0, 0
, Vary: Accept-Encoding
, Strict-Transport-Security: max-age= 7776000; includeSubDomains
, X-Frame-Options: SAMEORIGIN
, }
DEBUG 2018-03-27T20:56:25Z: habitat_depot_client: Body: "{\"channels\":[\"unstable\"],\"checksum\":\"7f99371944bf4892433c512cb47e0ff242911c3f91539b58c24b38c8abf7ad16\",\"config\":\"# Use this file to templatize your application\'s native configuration files.\\n# See the docs at https://www.habitat.sh/docs/create-packages-configure/.\\n# You can safely delete this file if you don\'t need it.\\n\\nfoo = 0\\nbar = 1\",\"deps\":[{\"name\":\"bash\",\"origin\":\"core\",\"release\":\"20170513213519\",\"version\":\"4.3.42\"}],\"exposes\":[],\"ident\":{\"name\":\"upgrade-test\",\"origin\":\"jaym\",\"release\":\"20180327203634\",\"version\":\"0.1.0\"},\"is_a_service\":true,\"manifest\":\"# jaym / upgrade-test\\n\\n\\n* __Maintainer__: The Habitat Maintainers <humans@habitat.sh>\\n* __Version__: 0.1.0\\n* __Release__: 20180327203634\\n* __Architecture__: x86_64\\n* __System__: linux\\n* __Target__: x86_64-linux\\n* __Upstream URL__: upstream project\'s website or home page is not defined\\n* __License__: Apache-2.0 \\n* __Source__: source URL not provided or required\\n* __SHA__: SHA256 checksum not provided or required\\n* __Path__: `/hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634`\\n* __Build Dependencies__: no build dependencies or undefined\\n* __Dependencies__: `core/bash `\\n* __Interpreters__: no interpreters or undefined\\n\\n# Plan\\n\\n## Build Flags\\n\\n```bash\\nCFLAGS: no CFLAGS\\nCPPFLAGS: no CPPFLAGS\\nCXXFLAGS: no CXXFLAGS\\nLDFLAGS: no LDFLAGS\\nLD_RUN_PATH: no LD_RUN_PATH\\n```\\n\\n## Plan Source\\n\\n```bash\\npkg_name=upgrade-test\\npkg_origin=jaym\\npkg_version=\\\"0.1.0\\\"\\npkg_maintainer=\\\"The Habitat Maintainers <humans@habitat.sh>\\\"\\npkg_license=(\\\"Apache-2.0\\\")\\n# pkg_source=\\\"http://some_source_url/releases/${pkg_name}-${pkg_version}.tar.gz\\\"\\n# pkg_filename=\\\"${pkg_name}-${pkg_version}.tar.gz\\\"\\n# pkg_shasum=\\\"TODO\\\"\\npkg_deps=(core/bash)\\n# pkg_build_deps=(core/make core/gcc)\\n# pkg_lib_dirs=(lib)\\n# pkg_include_dirs=(include)\\n# pkg_bin_dirs=(bin)\\n# pkg_pconfig_dirs=(lib/pconfig)\\n# pkg_svc_run=\\\"bin/haproxy -f $pkg_svc_config_path/haproxy.conf\\\"\\n# pkg_exports=(\\n#   [host]=srv.address\\n#   [port]=srv.port\\n#   [ssl-port]=srv.ssl.port\\n# )\\n# pkg_exposes=(port ssl-port)\\n#pkg_binds=(\\n#  [redis]=\\\"port\\\"\\n#)\\n# pkg_binds_optional=(\\n#   [storage]=\\\"port host\\\"\\n# )\\n# pkg_interpreters=(bin/bash)\\n# pkg_svc_user=\\\"hab\\\"\\n# pkg_svc_group=\\\"$pkg_svc_user\\\"\\n# pkg_description=\\\"Some description.\\\"\\n# pkg_upstream_url=\\\"http://example.com/project-name\\\"\\n\\ndo_build() {\\n\\treturn 0\\n}\\n\\ndo_install() {\\n\\treturn 0\\n}\\n```\",\"target\":\"x86_64-linux\",\"tdeps\":[{\"name\":\"bash\",\"origin\":\"core\",\"release\":\"20170513213519\",\"version\":\"4.3.42\"},{\"name\":\"gcc-libs\",\"origin\":\"core\",\"release\":\"20170513212920\",\"version\":\"5.2.0\"},{\"name\":\"glibc\",\"origin\":\"core\",\"release\":\"20170513201042\",\"version\":\"2.22\"},{\"name\":\"linux-headers\",\"origin\":\"core\",\"release\":\"20170513200956\",\"version\":\"4.3\"},{\"name\":\"ncurses\",\"origin\":\"core\",\"release\":\"20170513213009\",\"version\":\"6.0\"},{\"name\":\"readline\",\"origin\":\"core\",\"release\":\"20170513213506\",\"version\":\"6.3.8\"}],\"visibility\":\"public\"}"
DEBUG 2018-03-27T20:56:25Z: habitat_sup::manager::service_updater: Package found is not newer than ours
DEBUG 2018-03-27T20:56:26Z: habitat_sup::manager: Writing census state to disk
DEBUG 2018-03-27T20:56:26Z: habitat_sup::manager: Writing butterfly state to disk
DEBUG 2018-03-27T20:56:26Z: habitat_sup::manager: Writing services state to disk
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
^C
[13][default:/src:130]# hab svc status
package                                 type        state  uptime (s)  pid    group                 style
jaym/upgrade-test/0.1.0/20180327203634  standalone  up     18          24602  upgrade-test.default  persistent
[14][default:/src:0]# cat /hab/sup/default/specs/upgrade-test.spec
ident = "jaym/upgrade-test"
group = "default"
bldr_url = "https://bldr.habitat.sh"
channel = "unstable"
topology = "standalone"
update_strategy = "at-once"
binds = []
desired_state = "up"
start_style = "persistent"
[15][default:/src:0]# hab svc load jaym/upgrade-test --strategy none --channel unstable --force & sl
[2] 24978
--> Tailing the Habitat Supervisor's output (use 'Ctrl+c' to stop)
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
hab-sup(MN): The jaym/upgrade-test service was successfully loaded
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::spec_watcher: SpecWatcher(/hab/sup/default/specs) file system event: Create("/hab/sup/default/specs/upgrade-test.spec")
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::spec_watcher: Service spec for upgrade-test is different on disk than loaded state, enqueuing RemoveService(ServiceSpec { ident: PackageIdent { origin: "jaym", name: "upgrade-test", version: None, release: None }, group: "default", application_environment: None, bldr_url: "https://bldr.habitat.sh", channel: "unstable", topology: Standalone, update_strategy: AtOnce, binds: [], config_from: None, desired_state: Up, start_style: Persistent, svc_encrypted_password: None, composite: None }) for existing and AddService(ServiceSpec { ident: PackageIdent { origin: "jaym", name: "upgrade-test", version: None, release: None }, group: "default", application_environment: None, bldr_url: "https://bldr.habitat.sh", channel: "unstable", topology: Standalone, update_strategy: None, binds: [], config_from: None, desired_state: Up, start_style: Persistent, svc_encrypted_password: None, composite: None }) event for updated spec
DEBUG 2018-03-27T20:57:13Z: habitat_launcher::server::handlers::terminate: Terminating: 24602
DEBUG 2018-03-27T20:57:13Z: habitat_launcher::sys::imp::service: pid to kill 24602 is the process group root. Sending signal to process group.
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::supervisor: Attempting to clean up pid file /hab/svc/upgrade-test/PID
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::supervisor: Removed pid file
hab-sup(MR): Starting jaym/upgrade-test
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::config: 'user.toml' at /hab/user/upgrade-test/config/user.toml does not exist
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::config: 'user.toml' at /hab/svc/upgrade-test/user.toml does not exist
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::config: Failed to open 'user.toml', /hab/user/upgrade-test/config/user.toml, No such file or directory (os error 2)
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::config: Looking up environment variable HAB_UPGRADE_TEST failed: NotPresent
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::hooks: file_updated not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/file_updated, not loading
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::hooks: health_check not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/health_check, not loading
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::hooks: suitability not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/suitability, not loading
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::hooks: init not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/init, not loading
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::hooks: reload not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/reload, not loading
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::hooks: reconfigure not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/reconfigure, not loading
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::hooks: post-run not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/post-run, not loading
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::hooks: smoke_test not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/smoke_test, not loading
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::hooks: post-stop not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks/post-stop, not loading
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::hooks: upgrade-test.default, Hooks loaded, destination=/hab/svc/upgrade-test/hooks, templates=/hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634/hooks
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service: upgrade-test.default, Creating svc paths
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::dir: Creating dir with subdirs: "/hab/svc/upgrade-test"
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::dir: Creating dir with subdirs: "/hab/svc/upgrade-test/hooks"
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::dir: Creating dir with subdirs: "/hab/svc/upgrade-test/logs"
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::dir: Creating dir with subdirs: "/hab/svc/upgrade-test/config"
DEBUG 2018-03-27T20:57:13Z: habitat_core::util::perm: Attempting to set owner of "/hab/svc/upgrade-test/config" to "hab":"hab"
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::dir: Creating dir with subdirs: "/hab/svc/upgrade-test/data"
DEBUG 2018-03-27T20:57:13Z: habitat_core::util::perm: Attempting to set owner of "/hab/svc/upgrade-test/data" to "hab":"hab"
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::dir: Creating dir with subdirs: "/hab/svc/upgrade-test/files"
DEBUG 2018-03-27T20:57:13Z: habitat_core::util::perm: Attempting to set owner of "/hab/svc/upgrade-test/files" to "hab":"hab"
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::dir: Creating dir with subdirs: "/hab/svc/upgrade-test/var"
DEBUG 2018-03-27T20:57:13Z: habitat_core::util::perm: Attempting to set owner of "/hab/svc/upgrade-test/var" to "hab":"hab"
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::dir: Creating dir with subdirs: "/hab/svc/upgrade-test/static"
DEBUG 2018-03-27T20:57:13Z: habitat_core::util::perm: Attempting to set owner of "/hab/svc/upgrade-test/static" to "hab":"hab"
upgrade-test.default(UCW): Watching user.toml
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::user_config_watcher: UserConfigWatcher(/hab/user/upgrade-test/config/user.toml) worker thread starting
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager: Writing census state to disk
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager: Writing butterfly state to disk
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager: Writing services state to disk
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager: Writing census state to disk
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager: Writing butterfly state to disk
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager: Writing services state to disk
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::file_watcher: common generator created: CommonGenerator {
  prev: None,
  old_prev: None,
  path: /,
  split_path: SplitPath {
    directory: /,
    file_name: None,
  },
  index: 0,
  path_rest: ["hab", "user", "upgrade-test", "config", "user.toml"],
}
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::file_watcher: common generator before new Common: CommonGenerator {
  prev: None,
  old_prev: None,
  path: /,
  split_path: SplitPath {
    directory: /,
    file_name: None,
  },
  index: 0,
  path_rest: ["hab", "user", "upgrade-test", "config", "user.toml"],
}
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::file_watcher: generated common: Some(Common {
  path: /hab,
  dir_file_name: DirFileName {
    directory: /,
    file_name: hab,
  },
  prev: None,
  next: None,
  index: 0,
  path_rest: ["user", "upgrade-test", "config", "user.toml"],
})
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::file_watcher: common generator after new Common: CommonGenerator {
  prev: Some(/hab),
  old_prev: None,
  path: /hab,
  split_path: SplitPath {
    directory: /,
    file_name: Some(hab),
  },
  index: 1,
  path_rest: ["user", "upgrade-test", "config", "user.toml"],
}
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::file_watcher: add directory because is not a symlink and is not a leaf
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::file_watcher: get or add branch file: Directory(Common {
  path: /hab,
  dir_file_name: DirFileName {
    directory: /,
    file_name: hab,
  },
  prev: None,
  next: None,
  index: 0,
  path_rest: ["user", "upgrade-test", "config", "user.toml"],
})
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::file_watcher: chain link info: "ChainLinkInfo {\n  path: /hab,\n  prev: None,\n}"
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::file_watcher: handle branch result: NewInNewDirectory(ChainLinkInfo {
  path: /hab,
  prev: None,
}, /)
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::file_watcher: common generator before new Common: CommonGenerator {
  prev: Some(/hab),
  old_prev: None,
  path: /hab,
  split_path: SplitPath {
    directory: /,
    file_name: Some(hab),
  },
  index: 1,
  path_rest: ["user", "upgrade-test", "config", "user.toml"],
}
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::file_watcher: generated common: Some(Common {
  path: /hab/user,
  dir_file_name: DirFileName {
    directory: /hab,
    file_name: user,
  },
  prev: Some(/hab),
  next: None,
  index: 1,
  path_rest: ["upgrade-test", "config", "user.toml"],
})
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::file_watcher: common generator after new Common: CommonGenerator {
  prev: Some(/hab/user),
  old_prev: Some(/hab),
  path: /hab/user,
  split_path: SplitPath {
    directory: /hab,
    file_name: Some(user),
  },
  index: 2,
  path_rest: ["upgrade-test", "config", "user.toml"],
}
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::file_watcher: add missing directory because error and is not a leaf
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::file_watcher: add leaf file: MissingDirectory(Common {
  path: /hab/user,
  dir_file_name: DirFileName {
    directory: /hab,
    file_name: user,
  },
  prev: Some(/hab),
  next: None,
  index: 1,
  path_rest: ["upgrade-test", "config", "user.toml"],
})
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::file_watcher: handle leaf result: NewInNewDirectory(ChainLinkInfo {
  path: /hab/user,
  prev: Some(/hab),
}, /hab)
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::hooks: HookTable { health_check: None, init: None, file_updated: None, reload: None, reconfigure: None, suitability: None, run: Some(RunHook { render_pair: path: /hab/svc/upgrade-test/hooks/run, stdout_log_path: "/hab/svc/upgrade-test/logs/run.stdout.log", stderr_log_path: "/hab/svc/upgrade-test/logs/run.stderr.log" }), post_run: None, smoke_test: None, post_stop: None }
DEBUG 2018-03-27T20:57:13Z: habitat_sup::templating: Rendering template with context, run, {"bind":{},"cfg":{"bar":1,"foo":0},"pkg":{"deps":[{"name":"bash","origin":"core","release":"20170513213519","version":"4.3.42"},{"name":"gcc-libs","origin":"core","release":"20170513212920","version":"5.2.0"},{"name":"glibc","origin":"core","release":"20170513201042","version":"2.22"},{"name":"linux-headers","origin":"core","release":"20170513200956","version":"4.3"},{"name":"ncurses","origin":"core","release":"20170513213009","version":"6.0"},{"name":"readline","origin":"core","release":"20170513213506","version":"6.3.8"}],"env":{"PATH":"/hab/pkgs/core/bash/4.3.42/20170513213519/bin:/hab/pkgs/core/ncurses/6.0/20170513213009/bin:/hab/pkgs/core/glibc/2.22/20170513201042/bin:/hab/pkgs/core/busybox-static/1.24.2/20170513215502/bin:/hab/bin:/hab/pkgs/core/ncurses/6.0/20170513213009/bin:/hab/pkgs/core/glibc/2.22/20170513201042/bin:/hab/pkgs/core/vim/8.0.0004/20170513220742/bin:/hab/pkgs/core/attr/2.4.47/20170513213059/bin:/hab/pkgs/core/acl/2.2.52/20170513213108/bin:/hab/pkgs/core/util-linux/2.27.1/20170513214732/bin:/hab/pkgs/core/mg/20160118/20170513220846/bin:/hab/pkgs/core/make/4.2.1/20170513214620/bin:/hab/pkgs/core/less/481/20170513213936/bin:/hab/pkgs/core/pcre/8.38/20170513213423/bin:/hab/pkgs/core/diffutils/3.3/20170513214227/bin:/hab/pkgs/core/hab-plan-build/0.54.0/20180221023251/bin:/hab/pkgs/core/xz/5.2.2/20170513214327/bin:/hab/pkgs/core/wget/1.19.1/20171024102323/bin:/hab/pkgs/core/openssl/1.0.2l/20171014213633/bin:/hab/pkgs/core/libidn/1.32/20170513215043/bin:/hab/pkgs/core/unzip/6.0/20170513215357/bin:/hab/pkgs/core/bzip2/1.0.6/20170513212938/bin:/hab/pkgs/core/tar/1.29/20170513213607/bin:/hab/pkgs/core/sed/4.2.2/20170513213123/bin:/hab/pkgs/core/rq/0.9.2/20170612005822/bin:/hab/pkgs/core/hab/0.54.0/20180221022026/bin:/hab/pkgs/core/gzip/1.6/20170513214605/bin:/hab/pkgs/core/grep/2.22/20170513213444/bin:/hab/pkgs/core/gawk/4.1.3/20170513213646/bin:/hab/pkgs/core/findutils/4.4.2/20170513214305/bin:/hab/pkgs/core/file/5.24/20170513201915/bin:/hab/pkgs/core/coreutils/8.25/20170513213226/bin:/hab/pkgs/core/libcap/2.24/20170513213120/bin:/hab/pkgs/core/binutils/2.25.1/20170513201927/bin:/hab/pkgs/core/bash/4.3.42/20170513213519/bin"},"exports":{},"exposes":[],"ident":"jaym/upgrade-test/0.1.0/20180327203634","name":"upgrade-test","origin":"jaym","path":"/hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634","release":"20180327203634","svc_config_path":"/hab/svc/upgrade-test/config","svc_data_path":"/hab/svc/upgrade-test/data","svc_files_path":"/hab/svc/upgrade-test/files","svc_group":"hab","svc_path":"/hab/svc/upgrade-test","svc_pid_file":"/hab/svc/upgrade-test/PID","svc_run":"/hab/svc/upgrade-test/run","svc_static_path":"/hab/svc/upgrade-test/static","svc_user":"hab","svc_var_path":"/hab/svc/upgrade-test/var","version":"0.1.0"},"svc":{"election_is_finished":false,"election_is_no_quorum":false,"election_is_running":false,"first":{"alive":true,"application":null,"cfg":{},"confirmed":false,"departed":false,"election_is_finished":false,"election_is_no_quorum":false,"election_is_running":false,"environment":null,"follower":false,"group":"default","leader":false,"member_id":"4fc09c28e87c43959a57f4047018bd53","org":null,"persistent":false,"pkg":{"name":"upgrade-test","origin":"jaym","release":"20180327203634","version":"0.1.0"},"service":"upgrade-test","suspect":false,"sys":{"gossip_ip":"0.0.0.0","gossip_port":9638,"hostname":"robothell","http_gateway_ip":"0.0.0.0","http_gateway_port":9631,"ip":"192.168.1.117"},"update_election_is_finished":false,"update_election_is_no_quorum":false,"update_election_is_running":false,"update_follower":false,"update_leader":false},"group":"default","leader":null,"me":{"alive":true,"application":null,"cfg":{},"confirmed":false,"departed":false,"election_is_finished":false,"election_is_no_quorum":false,"election_is_running":false,"environment":null,"follower":false,"group":"default","leader":false,"member_id":"4fc09c28e87c43959a57f4047018bd53","org":null,"persistent":false,"pkg":{"name":"upgrade-test","origin":"jaym","release":"20180327203634","version":"0.1.0"},"service":"upgrade-test","suspect":false,"sys":{"gossip_ip":"0.0.0.0","gossip_port":9638,"hostname":"robothell","http_gateway_ip":"0.0.0.0","http_gateway_port":9631,"ip":"192.168.1.117"},"update_election_is_finished":false,"update_election_is_no_quorum":false,"update_election_is_running":false,"update_follower":false,"update_leader":false},"members":[{"alive":true,"application":null,"cfg":{},"confirmed":false,"departed":false,"election_is_finished":false,"election_is_no_quorum":false,"election_is_running":false,"environment":null,"follower":false,"group":"default","leader":false,"member_id":"4fc09c28e87c43959a57f4047018bd53","org":null,"persistent":false,"pkg":{"name":"upgrade-test","origin":"jaym","release":"20180327203634","version":"0.1.0"},"service":"upgrade-test","suspect":false,"sys":{"gossip_ip":"0.0.0.0","gossip_port":9638,"hostname":"robothell","http_gateway_ip":"0.0.0.0","http_gateway_port":9631,"ip":"192.168.1.117"},"update_election_is_finished":false,"update_election_is_no_quorum":false,"update_election_is_running":false,"update_follower":false,"update_leader":false}],"org":null,"service":"upgrade-test","update_election_is_finished":false,"update_election_is_no_quorum":false,"update_election_is_running":false,"update_leader":null},"sys":{"gossip_ip":"0.0.0.0","gossip_port":9638,"hostname":"robothell","http_gateway_ip":"0.0.0.0","http_gateway_port":9631,"ip":"192.168.1.117","member_id":"4fc09c28e87c43959a57f4047018bd53","permanent":false,"version":"0.54.0/20180221023448"}}
DEBUG 2018-03-27T20:57:13Z: handlebars::render: rendering RawString("#!"), partials: {}, path: ".", local_variables: {}, current_template: Some("run"), root_template: Some("run"), disable_escape: false, local_path_root: []
DEBUG 2018-03-27T20:57:13Z: handlebars::render: rendering HelperExpression(HelperTemplate { name: "pkgPathFor", params: [Literal(String("core/bash"))], hash: {}, block_param: None, template: None, inverse: None, block: false }), partials: {}, path: ".", local_variables: {}, current_template: Some("run"), root_template: Some("run"), disable_escape: false, local_path_root: []
DEBUG 2018-03-27T20:57:13Z: handlebars::render: rendering RawString("/bin/bash\n\nexec 2>&1\n\n\n# TO INFINITY AND BEYOND!\nwhile true\ndo\n  echo \"Pkg 13\"\n  "), partials: {}, path: ".", local_variables: {}, current_template: Some("run"), root_template: Some("run"), disable_escape: false, local_path_root: []
DEBUG 2018-03-27T20:57:13Z: handlebars::render: rendering HelperBlock(HelperTemplate { name: "if", params: [Name("cfg.foo")], hash: {}, block_param: None, template: Some(Template { name: None, elements: [RawString("echo \"foo\"\n  ")], mapping: Some([TemplateMapping(11, 3)]) }), inverse: None, block: true }), partials: {}, path: ".", local_variables: {}, current_template: Some("run"), root_template: Some("run"), disable_escape: false, local_path_root: []
DEBUG 2018-03-27T20:57:13Z: handlebars::render: rendering HelperBlock(HelperTemplate { name: "if", params: [Name("cfg.bar")], hash: {}, block_param: None, template: Some(Template { name: None, elements: [RawString("echo \"bar\"\n  ")], mapping: Some([TemplateMapping(15, 3)]) }), inverse: None, block: true }), partials: {}, path: ".", local_variables: {}, current_template: Some("run"), root_template: Some("run"), disable_escape: false, local_path_root: []
DEBUG 2018-03-27T20:57:13Z: handlebars::render: rendering RawString("echo \"bar\"\n  "), partials: {}, path: ".", local_variables: {}, current_template: None, root_template: Some("run"), disable_escape: false, local_path_root: []
DEBUG 2018-03-27T20:57:13Z: handlebars::render: rendering RawString("sleep 5\ndone\n"), partials: {}, path: ".", local_variables: {}, current_template: None, root_template: Some("run"), disable_escape: false, local_path_root: []
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::hooks: run, already compiled to /hab/svc/upgrade-test/hooks/run
upgrade-test.default(HK): Hooks compiled
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::supervisor: Could not find a live process with pid None
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::supervisor: Attempting to clean up pid file /hab/svc/upgrade-test/PID
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::supervisor: Error removing pidfile: No such file or directory (os error 2), continuing
upgrade-test.default(SR): Initializing
upgrade-test.default(SV): Starting service as user=hab, group=hab
hab-launch(SV): Child for service 'upgrade-test.default' with PID 24602 exited with code signal: 15
DEBUG 2018-03-27T20:57:13Z: habitat_launcher::sys::imp::service: launcher is spawning /hab/svc/upgrade-test/run
DEBUG 2018-03-27T20:57:13Z: habitat_sup::manager::service::supervisor: Creating PID file for child /hab/svc/upgrade-test/PID -> 25004
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
DEBUG 2018-03-27T20:57:14Z: habitat_sup::manager: Writing census state to disk
DEBUG 2018-03-27T20:57:14Z: habitat_sup::manager: Writing butterfly state to disk
DEBUG 2018-03-27T20:57:14Z: habitat_sup::manager: Writing services state to disk
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
DEBUG 2018-03-27T20:57:25Z: habitat_common::command::package::install: install key_cache_path: /hab/cache/keys
DEBUG 2018-03-27T20:57:25Z: habitat_http_client::ssl: Setting CA file for SSL context to: /hab/pkgs/core/cacerts/2017.09.20/20171014212239/ssl/cert.pem
DEBUG 2018-03-27T20:57:25Z: habitat_http_client::api_client: User-Agent: hab-sup/0.54.0/20180221023448 (x86_64-linux; 4.15.11-1-hardened)
DEBUG 2018-03-27T20:57:25Z: habitat_http_client::api_client: GET https://bldr.habitat.sh/v1/depot/channels/jaym/unstable/pkgs/upgrade-test/latest with ApiClient { endpoint: "https://bldr.habitat.sh/v1", inner: Client { redirect_policy: FollowAll, read_timeout: Some(Duration { secs: 60, nanos: 0 }), write_timeout: Some(Duration { secs: 60, nanos: 0 }), proxy: None }, proxy: None, target_scheme: "https", user_agent_header: UserAgent("hab-sup/0.54.0/20180221023448 (x86_64-linux; 4.15.11-1-hardened)") }
DEBUG 2018-03-27T20:57:25Z: hyper::net: http scheme
DEBUG 2018-03-27T20:57:25Z: hyper::net: https scheme
DEBUG 2018-03-27T20:57:25Z: hyper::http::h1: request line: Get "/v1/depot/channels/jaym/unstable/pkgs/upgrade-test/latest" Http11
DEBUG 2018-03-27T20:57:25Z: hyper::http::h1: headers=Headers { Host: bldr.habitat.sh
, User-Agent: hab-sup/0.54.0/20180221023448 (x86_64-linux; 4.15.11-1-hardened)
, }
DEBUG 2018-03-27T20:57:25Z: hyper::client::response: version=Http11, status=Ok
DEBUG 2018-03-27T20:57:25Z: hyper::client::response: headers=Headers { Access-Control-Allow-Headers: authorization, range
, Access-Control-Allow-Methods: PUT, DELETE, PATCH
, Access-Control-Allow-Origin: *
, Access-Control-Expose-Headers: content-disposition
, Cache-Control: private, no-cache, no-store, private, no-cache, no-store
, Content-Type: application/json; charset=utf-8
, ETag: 7f99371944bf4892433c512cb47e0ff242911c3f91539b58c24b38c8abf7ad16
, Server: nginx/1.12.2
, Via: 1.1 varnish
Via: 1.1 varnish
, Content-Length: 2964
, Accept-Ranges: bytes
, Date: Tue, 27 Mar 2018 20:57:25 GMT
, Age: 0
, Connection: keep-alive
, X-Served-By: cache-sea1039-SEA, cache-mdw17327-MDW
, X-Cache: MISS, MISS
, X-Cache-Hits: 0, 0
, Vary: Accept-Encoding
, Strict-Transport-Security: max-age= 7776000; includeSubDomains
, X-Frame-Options: SAMEORIGIN
, }
DEBUG 2018-03-27T20:57:25Z: habitat_depot_client: Body: "{\"channels\":[\"unstable\"],\"checksum\":\"7f99371944bf4892433c512cb47e0ff242911c3f91539b58c24b38c8abf7ad16\",\"config\":\"# Use this file to templatize your application\'s native configuration files.\\n# See the docs at https://www.habitat.sh/docs/create-packages-configure/.\\n# You can safely delete this file if you don\'t need it.\\n\\nfoo = 0\\nbar = 1\",\"deps\":[{\"name\":\"bash\",\"origin\":\"core\",\"release\":\"20170513213519\",\"version\":\"4.3.42\"}],\"exposes\":[],\"ident\":{\"name\":\"upgrade-test\",\"origin\":\"jaym\",\"release\":\"20180327203634\",\"version\":\"0.1.0\"},\"is_a_service\":true,\"manifest\":\"# jaym / upgrade-test\\n\\n\\n* __Maintainer__: The Habitat Maintainers <humans@habitat.sh>\\n* __Version__: 0.1.0\\n* __Release__: 20180327203634\\n* __Architecture__: x86_64\\n* __System__: linux\\n* __Target__: x86_64-linux\\n* __Upstream URL__: upstream project\'s website or home page is not defined\\n* __License__: Apache-2.0 \\n* __Source__: source URL not provided or required\\n* __SHA__: SHA256 checksum not provided or required\\n* __Path__: `/hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634`\\n* __Build Dependencies__: no build dependencies or undefined\\n* __Dependencies__: `core/bash `\\n* __Interpreters__: no interpreters or undefined\\n\\n# Plan\\n\\n## Build Flags\\n\\n```bash\\nCFLAGS: no CFLAGS\\nCPPFLAGS: no CPPFLAGS\\nCXXFLAGS: no CXXFLAGS\\nLDFLAGS: no LDFLAGS\\nLD_RUN_PATH: no LD_RUN_PATH\\n```\\n\\n## Plan Source\\n\\n```bash\\npkg_name=upgrade-test\\npkg_origin=jaym\\npkg_version=\\\"0.1.0\\\"\\npkg_maintainer=\\\"The Habitat Maintainers <humans@habitat.sh>\\\"\\npkg_license=(\\\"Apache-2.0\\\")\\n# pkg_source=\\\"http://some_source_url/releases/${pkg_name}-${pkg_version}.tar.gz\\\"\\n# pkg_filename=\\\"${pkg_name}-${pkg_version}.tar.gz\\\"\\n# pkg_shasum=\\\"TODO\\\"\\npkg_deps=(core/bash)\\n# pkg_build_deps=(core/make core/gcc)\\n# pkg_lib_dirs=(lib)\\n# pkg_include_dirs=(include)\\n# pkg_bin_dirs=(bin)\\n# pkg_pconfig_dirs=(lib/pconfig)\\n# pkg_svc_run=\\\"bin/haproxy -f $pkg_svc_config_path/haproxy.conf\\\"\\n# pkg_exports=(\\n#   [host]=srv.address\\n#   [port]=srv.port\\n#   [ssl-port]=srv.ssl.port\\n# )\\n# pkg_exposes=(port ssl-port)\\n#pkg_binds=(\\n#  [redis]=\\\"port\\\"\\n#)\\n# pkg_binds_optional=(\\n#   [storage]=\\\"port host\\\"\\n# )\\n# pkg_interpreters=(bin/bash)\\n# pkg_svc_user=\\\"hab\\\"\\n# pkg_svc_group=\\\"$pkg_svc_user\\\"\\n# pkg_description=\\\"Some description.\\\"\\n# pkg_upstream_url=\\\"http://example.com/project-name\\\"\\n\\ndo_build() {\\n\\treturn 0\\n}\\n\\ndo_install() {\\n\\treturn 0\\n}\\n```\",\"target\":\"x86_64-linux\",\"tdeps\":[{\"name\":\"bash\",\"origin\":\"core\",\"release\":\"20170513213519\",\"version\":\"4.3.42\"},{\"name\":\"gcc-libs\",\"origin\":\"core\",\"release\":\"20170513212920\",\"version\":\"5.2.0\"},{\"name\":\"glibc\",\"origin\":\"core\",\"release\":\"20170513201042\",\"version\":\"2.22\"},{\"name\":\"linux-headers\",\"origin\":\"core\",\"release\":\"20170513200956\",\"version\":\"4.3\"},{\"name\":\"ncurses\",\"origin\":\"core\",\"release\":\"20170513213009\",\"version\":\"6.0\"},{\"name\":\"readline\",\"origin\":\"core\",\"release\":\"20170513213506\",\"version\":\"6.3.8\"}],\"visibility\":\"public\"}"
DEBUG 2018-03-27T20:57:25Z: habitat_sup::manager::service_updater: Package found is not newer than ours
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
^C[2]+  Done                    hab svc load jaym/upgrade-test --strategy none --channel unstable --force

[16][default:/src:130]# hab svc status
package                                 type        state  uptime (s)  pid    group                 style
jaym/upgrade-test/0.1.0/20180327203634  standalone  up     18          25004  upgrade-test.default  persistent
[17][default:/src:0]# cat /hab/sup/default/specs/upgrade-test.spec
ident = "jaym/upgrade-test"
group = "default"
bldr_url = "https://bldr.habitat.sh"
channel = "unstable"
topology = "standalone"
update_strategy = "none"
binds = []
desired_state = "up"
start_style = "persistent"
[18][default:/src:0]# sl
--> Tailing the Habitat Supervisor's output (use 'Ctrl+c' to stop)
, Vary: Accept-Encoding
, Strict-Transport-Security: max-age= 7776000; includeSubDomains
, X-Frame-Options: SAMEORIGIN
, }
DEBUG 2018-03-27T20:57:25Z: habitat_depot_client: Body: "{\"channels\":[\"unstable\"],\"checksum\":\"7f99371944bf4892433c512cb47e0ff242911c3f91539b58c24b38c8abf7ad16\",\"config\":\"# Use this file to templatize your application\'s native configuration files.\\n# See the docs at https://www.habitat.sh/docs/create-packages-configure/.\\n# You can safely delete this file if you don\'t need it.\\n\\nfoo = 0\\nbar = 1\",\"deps\":[{\"name\":\"bash\",\"origin\":\"core\",\"release\":\"20170513213519\",\"version\":\"4.3.42\"}],\"exposes\":[],\"ident\":{\"name\":\"upgrade-test\",\"origin\":\"jaym\",\"release\":\"20180327203634\",\"version\":\"0.1.0\"},\"is_a_service\":true,\"manifest\":\"# jaym / upgrade-test\\n\\n\\n* __Maintainer__: The Habitat Maintainers <humans@habitat.sh>\\n* __Version__: 0.1.0\\n* __Release__: 20180327203634\\n* __Architecture__: x86_64\\n* __System__: linux\\n* __Target__: x86_64-linux\\n* __Upstream URL__: upstream project\'s website or home page is not defined\\n* __License__: Apache-2.0 \\n* __Source__: source URL not provided or required\\n* __SHA__: SHA256 checksum not provided or required\\n* __Path__: `/hab/pkgs/jaym/upgrade-test/0.1.0/20180327203634`\\n* __Build Dependencies__: no build dependencies or undefined\\n* __Dependencies__: `core/bash `\\n* __Interpreters__: no interpreters or undefined\\n\\n# Plan\\n\\n## Build Flags\\n\\n```bash\\nCFLAGS: no CFLAGS\\nCPPFLAGS: no CPPFLAGS\\nCXXFLAGS: no CXXFLAGS\\nLDFLAGS: no LDFLAGS\\nLD_RUN_PATH: no LD_RUN_PATH\\n```\\n\\n## Plan Source\\n\\n```bash\\npkg_name=upgrade-test\\npkg_origin=jaym\\npkg_version=\\\"0.1.0\\\"\\npkg_maintainer=\\\"The Habitat Maintainers <humans@habitat.sh>\\\"\\npkg_license=(\\\"Apache-2.0\\\")\\n# pkg_source=\\\"http://some_source_url/releases/${pkg_name}-${pkg_version}.tar.gz\\\"\\n# pkg_filename=\\\"${pkg_name}-${pkg_version}.tar.gz\\\"\\n# pkg_shasum=\\\"TODO\\\"\\npkg_deps=(core/bash)\\n# pkg_build_deps=(core/make core/gcc)\\n# pkg_lib_dirs=(lib)\\n# pkg_include_dirs=(include)\\n# pkg_bin_dirs=(bin)\\n# pkg_pconfig_dirs=(lib/pconfig)\\n# pkg_svc_run=\\\"bin/haproxy -f $pkg_svc_config_path/haproxy.conf\\\"\\n# pkg_exports=(\\n#   [host]=srv.address\\n#   [port]=srv.port\\n#   [ssl-port]=srv.ssl.port\\n# )\\n# pkg_exposes=(port ssl-port)\\n#pkg_binds=(\\n#  [redis]=\\\"port\\\"\\n#)\\n# pkg_binds_optional=(\\n#   [storage]=\\\"port host\\\"\\n# )\\n# pkg_interpreters=(bin/bash)\\n# pkg_svc_user=\\\"hab\\\"\\n# pkg_svc_group=\\\"$pkg_svc_user\\\"\\n# pkg_description=\\\"Some description.\\\"\\n# pkg_upstream_url=\\\"http://example.com/project-name\\\"\\n\\ndo_build() {\\n\\treturn 0\\n}\\n\\ndo_install() {\\n\\treturn 0\\n}\\n```\",\"target\":\"x86_64-linux\",\"tdeps\":[{\"name\":\"bash\",\"origin\":\"core\",\"release\":\"20170513213519\",\"version\":\"4.3.42\"},{\"name\":\"gcc-libs\",\"origin\":\"core\",\"release\":\"20170513212920\",\"version\":\"5.2.0\"},{\"name\":\"glibc\",\"origin\":\"core\",\"release\":\"20170513201042\",\"version\":\"2.22\"},{\"name\":\"linux-headers\",\"origin\":\"core\",\"release\":\"20170513200956\",\"version\":\"4.3\"},{\"name\":\"ncurses\",\"origin\":\"core\",\"release\":\"20170513213009\",\"version\":\"6.0\"},{\"name\":\"readline\",\"origin\":\"core\",\"release\":\"20170513213506\",\"version\":\"6.3.8\"}],\"visibility\":\"public\"}"
DEBUG 2018-03-27T20:57:25Z: habitat_sup::manager::service_updater: Package found is not newer than ours
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
upgrade-test.default(O): Pkg 13
upgrade-test.default(O): bar
DEBUG 2018-03-27T20:58:25Z: habitat_common::command::package::install: install key_cache_path: /hab/cache/keys
DEBUG 2018-03-27T20:58:25Z: habitat_http_client::ssl: Setting CA file for SSL context to: /hab/pkgs/core/cacerts/2017.09.20/20171014212239/ssl/cert.pem
DEBUG 2018-03-27T20:58:25Z: habitat_http_client::api_client: User-Agent: hab-sup/0.54.0/20180221023448 (x86_64-linux; 4.15.11-1-hardened)
DEBUG 2018-03-27T20:58:25Z: habitat_http_client::api_client: GET https://bldr.habitat.sh/v1/depot/channels/jaym/unstable/pkgs/upgrade-test/latest with ApiClient { endpoint: "https://bldr.habitat.sh/v1", inner: Client { redirect_policy: FollowAll, read_timeout: Some(Duration { secs: 60, nanos: 0 }), write_timeout: Some(Duration { secs: 60, nanos: 0 }), proxy: None }, proxy: None, target_scheme: "https", user_agent_header: UserAgent("hab-sup/0.54.0/20180221023448 (x86_64-linux; 4.15.11-1-hardened)") }
DEBUG 2018-03-27T20:58:25Z: hyper::net: http scheme
DEBUG 2018-03-27T20:58:25Z: hyper::net: https scheme
DEBUG 2018-03-27T20:58:25Z: hyper::http::h1: request line: Get "/v1/depot/channels/jaym/unstable/pkgs/upgrade-test/latest" Http11
DEBUG 2018-03-27T20:58:25Z: hyper::http::h1: headers=Headers { Host: bldr.habitat.sh
, User-Agent: hab-sup/0.54.0/20180221023448 (x86_64-linux; 4.15.11-1-hardened)
, }
DEBUG 2018-03-27T20:58:25Z: hyper::client::response: version=Http11, status=Ok
DEBUG 2018-03-27T20:58:25Z: hyper::client::response: headers=Headers { Access-Control-Allow-Headers: authorization, range
, Access-Control-Allow-Methods: PUT, DELETE, PATCH
, Access-Control-Allow-Origin: *
, Access-Control-Expose-Headers: content-disposition
, Cache-Control: private, no-cache, no-store, private, no-cache, no-store
, Content-Type: application/json; charset=utf-8
, ETag: 5e1b0d071efd88d54ae1013161f336a539dac518494c0ebd2ca4a25091a73f52
, Server: nginx/1.12.2
, Via: 1.1 varnish
Via: 1.1 varnish
, Content-Length: 2964
, Accept-Ranges: bytes
, Date: Tue, 27 Mar 2018 20:58:25 GMT
, Age: 0
, Connection: keep-alive
, X-Served-By: cache-sea1046-SEA, cache-mdw17339-MDW
, X-Cache: MISS, MISS
, X-Cache-Hits: 0, 0
, Vary: Accept-Encoding
, Strict-Transport-Security: max-age= 7776000; includeSubDomains
, X-Frame-Options: SAMEORIGIN
, }
DEBUG 2018-03-27T20:58:25Z: habitat_depot_client: Body: "{\"channels\":[\"unstable\"],\"checksum\":\"5e1b0d071efd88d54ae1013161f336a539dac518494c0ebd2ca4a25091a73f52\",\"config\":\"# Use this file to templatize your application\'s native configuration files.\\n# See the docs at https://www.habitat.sh/docs/create-packages-configure/.\\n# You can safely delete this file if you don\'t need it.\\n\\nfoo = 0\\nbar = 1\",\"deps\":[{\"name\":\"bash\",\"origin\":\"core\",\"release\":\"20170513213519\",\"version\":\"4.3.42\"}],\"exposes\":[],\"ident\":{\"name\":\"upgrade-test\",\"origin\":\"jaym\",\"release\":\"20180327205223\",\"version\":\"0.1.0\"},\"is_a_service\":true,\"manifest\":\"# jaym / upgrade-test\\n\\n\\n* __Maintainer__: The Habitat Maintainers <humans@habitat.sh>\\n* __Version__: 0.1.0\\n* __Release__: 20180327205223\\n* __Architecture__: x86_64\\n* __System__: linux\\n* __Target__: x86_64-linux\\n* __Upstream URL__: upstream project\'s website or home page is not defined\\n* __License__: Apache-2.0 \\n* __Source__: source URL not provided or required\\n* __SHA__: SHA256 checksum not provided or required\\n* __Path__: `/hab/pkgs/jaym/upgrade-test/0.1.0/20180327205223`\\n* __Build Dependencies__: no build dependencies or undefined\\n* __Dependencies__: `core/bash `\\n* __Interpreters__: no interpreters or undefined\\n\\n# Plan\\n\\n## Build Flags\\n\\n```bash\\nCFLAGS: no CFLAGS\\nCPPFLAGS: no CPPFLAGS\\nCXXFLAGS: no CXXFLAGS\\nLDFLAGS: no LDFLAGS\\nLD_RUN_PATH: no LD_RUN_PATH\\n```\\n\\n## Plan Source\\n\\n```bash\\npkg_name=upgrade-test\\npkg_origin=jaym\\npkg_version=\\\"0.1.0\\\"\\npkg_maintainer=\\\"The Habitat Maintainers <humans@habitat.sh>\\\"\\npkg_license=(\\\"Apache-2.0\\\")\\n# pkg_source=\\\"http://some_source_url/releases/${pkg_name}-${pkg_version}.tar.gz\\\"\\n# pkg_filename=\\\"${pkg_name}-${pkg_version}.tar.gz\\\"\\n# pkg_shasum=\\\"TODO\\\"\\npkg_deps=(core/bash)\\n# pkg_build_deps=(core/make core/gcc)\\n# pkg_lib_dirs=(lib)\\n# pkg_include_dirs=(include)\\n# pkg_bin_dirs=(bin)\\n# pkg_pconfig_dirs=(lib/pconfig)\\n# pkg_svc_run=\\\"bin/haproxy -f $pkg_svc_config_path/haproxy.conf\\\"\\n# pkg_exports=(\\n#   [host]=srv.address\\n#   [port]=srv.port\\n#   [ssl-port]=srv.ssl.port\\n# )\\n# pkg_exposes=(port ssl-port)\\n#pkg_binds=(\\n#  [redis]=\\\"port\\\"\\n#)\\n# pkg_binds_optional=(\\n#   [storage]=\\\"port host\\\"\\n# )\\n# pkg_interpreters=(bin/bash)\\n# pkg_svc_user=\\\"hab\\\"\\n# pkg_svc_group=\\\"$pkg_svc_user\\\"\\n# pkg_description=\\\"Some description.\\\"\\n# pkg_upstream_url=\\\"http://example.com/project-name\\\"\\n\\ndo_build() {\\n\\treturn 0\\n}\\n\\ndo_install() {\\n\\treturn 0\\n}\\n```\",\"target\":\"x86_64-linux\",\"tdeps\":[{\"name\":\"bash\",\"origin\":\"core\",\"release\":\"20170513213519\",\"version\":\"4.3.42\"},{\"name\":\"gcc-libs\",\"origin\":\"core\",\"release\":\"20170513212920\",\"version\":\"5.2.0\"},{\"name\":\"glibc\",\"origin\":\"core\",\"release\":\"20170513201042\",\"version\":\"2.22\"},{\"name\":\"linux-headers\",\"origin\":\"core\",\"release\":\"20170513200956\",\"version\":\"4.3\"},{\"name\":\"ncurses\",\"origin\":\"core\",\"release\":\"20170513213009\",\"version\":\"6.0\"},{\"name\":\"readline\",\"origin\":\"core\",\"release\":\"20170513213506\",\"version\":\"6.3.8\"}],\"visibility\":\"public\"}"
DEBUG 2018-03-27T20:58:25Z: habitat_common::command::package::install: Found jaym/upgrade-test/0.1.0/20180327205223 in artifact cache, skipping remote download
DEBUG 2018-03-27T20:58:25Z: habitat_common::command::package::install: Verified jaym/upgrade-test/0.1.0/20180327205223 signed by jaym-20171004194807
hab-sup(SU): Updating from jaym/upgrade-test/0.1.0/20180327203634 to jaym/upgrade-test/0.1.0/20180327205223
upgrade-test.default(SR): Updating service jaym/upgrade-test/0.1.0/20180327203634 to jaym/upgrade-test/0.1.0/20180327205223
DEBUG 2018-03-27T20:58:26Z: habitat_sup::manager::service::hooks: file_updated not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327205223/hooks/file_updated, not loading
DEBUG 2018-03-27T20:58:26Z: habitat_sup::manager::service::hooks: health_check not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327205223/hooks/health_check, not loading
DEBUG 2018-03-27T20:58:26Z: habitat_sup::manager::service::hooks: suitability not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327205223/hooks/suitability, not loading
DEBUG 2018-03-27T20:58:26Z: habitat_sup::manager::service::hooks: init not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327205223/hooks/init, not loading
DEBUG 2018-03-27T20:58:26Z: habitat_sup::manager::service::hooks: reload not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327205223/hooks/reload, not loading
DEBUG 2018-03-27T20:58:26Z: habitat_sup::manager::service::hooks: reconfigure not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327205223/hooks/reconfigure, not loading
DEBUG 2018-03-27T20:58:26Z: habitat_sup::manager::service::hooks: post-run not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327205223/hooks/post-run, not loading
DEBUG 2018-03-27T20:58:26Z: habitat_sup::manager::service::hooks: smoke_test not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327205223/hooks/smoke_test, not loading
DEBUG 2018-03-27T20:58:26Z: habitat_sup::manager::service::hooks: post-stop not found at /hab/pkgs/jaym/upgrade-test/0.1.0/20180327205223/hooks/post-stop, not loading
DEBUG 2018-03-27T20:58:26Z: habitat_sup::manager::service::hooks: upgrade-test.default, Hooks loaded, destination=/hab/svc/upgrade-test/hooks, templates=/hab/pkgs/jaym/upgrade-test/0.1.0/20180327205223/hooks
DEBUG 2018-03-27T20:58:26Z: habitat_launcher::server::handlers::terminate: Terminating: 25004
DEBUG 2018-03-27T20:58:26Z: habitat_launcher::sys::imp::service: pid to kill 25004 is the process group root. Sending signal to process group.
DEBUG 2018-03-27T20:58:26Z: habitat_sup::manager::service::supervisor: Attempting to clean up pid file /hab/svc/upgrade-test/PID
DEBUG 2018-03-27T20:58:26Z: habitat_sup::manager::service::supervisor: Removed pid file
DEBUG 2018-03-27T20:58:26Z: habitat_sup::manager: Writing census state to disk
DEBUG 2018-03-27T20:58:26Z: habitat_sup::manager: Writing butterfly state to disk
DEBUG 2018-03-27T20:58:26Z: habitat_sup::manager: Writing services state to disk
DEBUG 2018-03-27T20:58:26Z: habitat_sup::manager: Writing census state to disk
DEBUG 2018-03-27T20:58:26Z: habitat_sup::manager: Writing butterfly state to disk
DEBUG 2018-03-27T20:58:26Z: habitat_sup::manager: Writing services state to disk
DEBUG 2018-03-27T20:58:26Z: habitat_sup::manager::service::hooks: HookTable { health_check: None, init: None, file_updated: None, reload: None, reconfigure: None, suitability: None, run: Some(RunHook { render_pair: path: /hab/svc/upgrade-test/hooks/run, stdout_log_path: "/hab/svc/upgrade-test/logs/run.stdout.log", stderr_log_path: "/hab/svc/upgrade-test/logs/run.stderr.log" }), post_run: None, smoke_test: None, post_stop: None }
DEBUG 2018-03-27T20:58:26Z: habitat_sup::templating: Rendering template with context, run, {"bind":{},"cfg":{"bar":1,"foo":0},"pkg":{"deps":[{"name":"bash","origin":"core","release":"20170513213519","version":"4.3.42"},{"name":"gcc-libs","origin":"core","release":"20170513212920","version":"5.2.0"},{"name":"glibc","origin":"core","release":"20170513201042","version":"2.22"},{"name":"linux-headers","origin":"core","release":"20170513200956","version":"4.3"},{"name":"ncurses","origin":"core","release":"20170513213009","version":"6.0"},{"name":"readline","origin":"core","release":"20170513213506","version":"6.3.8"}],"env":{"PATH":"/hab/pkgs/core/bash/4.3.42/20170513213519/bin:/hab/pkgs/core/ncurses/6.0/20170513213009/bin:/hab/pkgs/core/glibc/2.22/20170513201042/bin:/hab/pkgs/core/busybox-static/1.24.2/20170513215502/bin:/hab/bin:/hab/pkgs/core/ncurses/6.0/20170513213009/bin:/hab/pkgs/core/glibc/2.22/20170513201042/bin:/hab/pkgs/core/vim/8.0.0004/20170513220742/bin:/hab/pkgs/core/attr/2.4.47/20170513213059/bin:/hab/pkgs/core/acl/2.2.52/20170513213108/bin:/hab/pkgs/core/util-linux/2.27.1/20170513214732/bin:/hab/pkgs/core/mg/20160118/20170513220846/bin:/hab/pkgs/core/make/4.2.1/20170513214620/bin:/hab/pkgs/core/less/481/20170513213936/bin:/hab/pkgs/core/pcre/8.38/20170513213423/bin:/hab/pkgs/core/diffutils/3.3/20170513214227/bin:/hab/pkgs/core/hab-plan-build/0.54.0/20180221023251/bin:/hab/pkgs/core/xz/5.2.2/20170513214327/bin:/hab/pkgs/core/wget/1.19.1/20171024102323/bin:/hab/pkgs/core/openssl/1.0.2l/20171014213633/bin:/hab/pkgs/core/libidn/1.32/20170513215043/bin:/hab/pkgs/core/unzip/6.0/20170513215357/bin:/hab/pkgs/core/bzip2/1.0.6/20170513212938/bin:/hab/pkgs/core/tar/1.29/20170513213607/bin:/hab/pkgs/core/sed/4.2.2/20170513213123/bin:/hab/pkgs/core/rq/0.9.2/20170612005822/bin:/hab/pkgs/core/hab/0.54.0/20180221022026/bin:/hab/pkgs/core/gzip/1.6/20170513214605/bin:/hab/pkgs/core/grep/2.22/20170513213444/bin:/hab/pkgs/core/gawk/4.1.3/20170513213646/bin:/hab/pkgs/core/findutils/4.4.2/20170513214305/bin:/hab/pkgs/core/file/5.24/20170513201915/bin:/hab/pkgs/core/coreutils/8.25/20170513213226/bin:/hab/pkgs/core/libcap/2.24/20170513213120/bin:/hab/pkgs/core/binutils/2.25.1/20170513201927/bin:/hab/pkgs/core/bash/4.3.42/20170513213519/bin"},"exports":{},"exposes":[],"ident":"jaym/upgrade-test/0.1.0/20180327205223","name":"upgrade-test","origin":"jaym","path":"/hab/pkgs/jaym/upgrade-test/0.1.0/20180327205223","release":"20180327205223","svc_config_path":"/hab/svc/upgrade-test/config","svc_data_path":"/hab/svc/upgrade-test/data","svc_files_path":"/hab/svc/upgrade-test/files","svc_group":"hab","svc_path":"/hab/svc/upgrade-test","svc_pid_file":"/hab/svc/upgrade-test/PID","svc_run":"/hab/svc/upgrade-test/run","svc_static_path":"/hab/svc/upgrade-test/static","svc_user":"hab","svc_var_path":"/hab/svc/upgrade-test/var","version":"0.1.0"},"svc":{"election_is_finished":false,"election_is_no_quorum":false,"election_is_running":false,"first":{"alive":true,"application":null,"cfg":{},"confirmed":false,"departed":false,"election_is_finished":false,"election_is_no_quorum":false,"election_is_running":false,"environment":null,"follower":false,"group":"default","leader":false,"member_id":"4fc09c28e87c43959a57f4047018bd53","org":null,"persistent":false,"pkg":{"name":"upgrade-test","origin":"jaym","release":"20180327205223","version":"0.1.0"},"service":"upgrade-test","suspect":false,"sys":{"gossip_ip":"0.0.0.0","gossip_port":9638,"hostname":"robothell","http_gateway_ip":"0.0.0.0","http_gateway_port":9631,"ip":"192.168.1.117"},"update_election_is_finished":false,"update_election_is_no_quorum":false,"update_election_is_running":false,"update_follower":false,"update_leader":false},"group":"default","leader":null,"me":{"alive":true,"application":null,"cfg":{},"confirmed":false,"departed":false,"election_is_finished":false,"election_is_no_quorum":false,"election_is_running":false,"environment":null,"follower":false,"group":"default","leader":false,"member_id":"4fc09c28e87c43959a57f4047018bd53","org":null,"persistent":false,"pkg":{"name":"upgrade-test","origin":"jaym","release":"20180327205223","version":"0.1.0"},"service":"upgrade-test","suspect":false,"sys":{"gossip_ip":"0.0.0.0","gossip_port":9638,"hostname":"robothell","http_gateway_ip":"0.0.0.0","http_gateway_port":9631,"ip":"192.168.1.117"},"update_election_is_finished":false,"update_election_is_no_quorum":false,"update_election_is_running":false,"update_follower":false,"update_leader":false},"members":[{"alive":true,"application":null,"cfg":{},"confirmed":false,"departed":false,"election_is_finished":false,"election_is_no_quorum":false,"election_is_running":false,"environment":null,"follower":false,"group":"default","leader":false,"member_id":"4fc09c28e87c43959a57f4047018bd53","org":null,"persistent":false,"pkg":{"name":"upgrade-test","origin":"jaym","release":"20180327205223","version":"0.1.0"},"service":"upgrade-test","suspect":false,"sys":{"gossip_ip":"0.0.0.0","gossip_port":9638,"hostname":"robothell","http_gateway_ip":"0.0.0.0","http_gateway_port":9631,"ip":"192.168.1.117"},"update_election_is_finished":false,"update_election_is_no_quorum":false,"update_election_is_running":false,"update_follower":false,"update_leader":false}],"org":null,"service":"upgrade-test","update_election_is_finished":false,"update_election_is_no_quorum":false,"update_election_is_running":false,"update_leader":null},"sys":{"gossip_ip":"0.0.0.0","gossip_port":9638,"hostname":"robothell","http_gateway_ip":"0.0.0.0","http_gateway_port":9631,"ip":"192.168.1.117","member_id":"4fc09c28e87c43959a57f4047018bd53","permanent":false,"version":"0.54.0/20180221023448"}}
DEBUG 2018-03-27T20:58:26Z: handlebars::render: rendering RawString("#!"), partials: {}, path: ".", local_variables: {}, current_template: Some("run"), root_template: Some("run"), disable_escape: false, local_path_root: []
DEBUG 2018-03-27T20:58:26Z: handlebars::render: rendering HelperExpression(HelperTemplate { name: "pkgPathFor", params: [Literal(String("core/bash"))], hash: {}, block_param: None, template: None, inverse: None, block: false }), partials: {}, path: ".", local_variables: {}, current_template: Some("run"), root_template: Some("run"), disable_escape: false, local_path_root: []
DEBUG 2018-03-27T20:58:26Z: handlebars::render: rendering RawString("/bin/bash\n\nexec 2>&1\n\n\n# TO INFINITY AND BEYOND!\nwhile true\ndo\n  echo \"Pkg 15\"\n  sleep 10\ndone\n"), partials: {}, path: ".", local_variables: {}, current_template: Some("run"), root_template: Some("run"), disable_escape: false, local_path_root: []
upgrade-test.default(HK): run, compiled to /hab/svc/upgrade-test/hooks/run
upgrade-test.default(HK): Hooks compiled
upgrade-test.default(SR): Hooks recompiled
DEBUG 2018-03-27T20:58:26Z: habitat_sup::manager::service::supervisor: Could not find a live process with pid Some(25004)
DEBUG 2018-03-27T20:58:26Z: habitat_sup::manager::service::supervisor: Attempting to clean up pid file /hab/svc/upgrade-test/PID
DEBUG 2018-03-27T20:58:26Z: habitat_sup::manager::service::supervisor: Error removing pidfile: No such file or directory (os error 2), continuing
upgrade-test.default(SR): Initializing
upgrade-test.default(SV): Starting service as user=hab, group=hab
hab-launch(SV): Child for service 'upgrade-test.default' with PID 25004 exited with code signal: 15
DEBUG 2018-03-27T20:58:26Z: habitat_launcher::sys::imp::service: launcher is spawning /hab/svc/upgrade-test/run
DEBUG 2018-03-27T20:58:26Z: habitat_sup::manager::service::supervisor: Creating PID file for child /hab/svc/upgrade-test/PID -> 25699
upgrade-test.default(O): Pkg 15
DEBUG 2018-03-27T20:58:27Z: habitat_sup::manager::service_updater: Service Updater worker has died; restarting...
DEBUG 2018-03-27T20:58:27Z: habitat_sup::manager: Writing census state to disk
DEBUG 2018-03-27T20:58:27Z: habitat_common::command::package::install: install key_cache_path: /hab/cache/keys
DEBUG 2018-03-27T20:58:27Z: habitat_sup::manager: Writing butterfly state to disk
DEBUG 2018-03-27T20:58:27Z: habitat_sup::manager: Writing services state to disk
DEBUG 2018-03-27T20:58:27Z: habitat_http_client::ssl: Setting CA file for SSL context to: /hab/pkgs/core/cacerts/2017.09.20/20171014212239/ssl/cert.pem
DEBUG 2018-03-27T20:58:27Z: habitat_http_client::api_client: User-Agent: hab-sup/0.54.0/20180221023448 (x86_64-linux; 4.15.11-1-hardened)
DEBUG 2018-03-27T20:58:27Z: habitat_http_client::api_client: GET https://bldr.habitat.sh/v1/depot/channels/jaym/unstable/pkgs/upgrade-test/latest with ApiClient { endpoint: "https://bldr.habitat.sh/v1", inner: Client { redirect_policy: FollowAll, read_timeout: Some(Duration { secs: 60, nanos: 0 }), write_timeout: Some(Duration { secs: 60, nanos: 0 }), proxy: None }, proxy: None, target_scheme: "https", user_agent_header: UserAgent("hab-sup/0.54.0/20180221023448 (x86_64-linux; 4.15.11-1-hardened)") }
DEBUG 2018-03-27T20:58:27Z: hyper::net: http scheme
DEBUG 2018-03-27T20:58:27Z: hyper::net: https scheme
DEBUG 2018-03-27T20:58:27Z: hyper::http::h1: request line: Get "/v1/depot/channels/jaym/unstable/pkgs/upgrade-test/latest" Http11
DEBUG 2018-03-27T20:58:27Z: hyper::http::h1: headers=Headers { Host: bldr.habitat.sh
, User-Agent: hab-sup/0.54.0/20180221023448 (x86_64-linux; 4.15.11-1-hardened)
, }
DEBUG 2018-03-27T20:58:27Z: hyper::client::response: version=Http11, status=Ok
DEBUG 2018-03-27T20:58:27Z: hyper::client::response: headers=Headers { Access-Control-Allow-Headers: authorization, range
, Access-Control-Allow-Methods: PUT, DELETE, PATCH
, Access-Control-Allow-Origin: *
, Access-Control-Expose-Headers: content-disposition
, Cache-Control: private, no-cache, no-store, private, no-cache, no-store
, Content-Type: application/json; charset=utf-8
, ETag: 5e1b0d071efd88d54ae1013161f336a539dac518494c0ebd2ca4a25091a73f52
, Server: nginx/1.12.2
, Via: 1.1 varnish
Via: 1.1 varnish
, Content-Length: 2964
, Accept-Ranges: bytes
, Date: Tue, 27 Mar 2018 20:58:27 GMT
, Age: 0
, Connection: keep-alive
, X-Served-By: cache-sea1024-SEA, cache-mdw17326-MDW
, X-Cache: MISS, MISS
, X-Cache-Hits: 0, 0
, Vary: Accept-Encoding
, Strict-Transport-Security: max-age= 7776000; includeSubDomains
, X-Frame-Options: SAMEORIGIN
, }
DEBUG 2018-03-27T20:58:27Z: habitat_depot_client: Body: "{\"channels\":[\"unstable\"],\"checksum\":\"5e1b0d071efd88d54ae1013161f336a539dac518494c0ebd2ca4a25091a73f52\",\"config\":\"# Use this file to templatize your application\'s native configuration files.\\n# See the docs at https://www.habitat.sh/docs/create-packages-configure/.\\n# You can safely delete this file if you don\'t need it.\\n\\nfoo = 0\\nbar = 1\",\"deps\":[{\"name\":\"bash\",\"origin\":\"core\",\"release\":\"20170513213519\",\"version\":\"4.3.42\"}],\"exposes\":[],\"ident\":{\"name\":\"upgrade-test\",\"origin\":\"jaym\",\"release\":\"20180327205223\",\"version\":\"0.1.0\"},\"is_a_service\":true,\"manifest\":\"# jaym / upgrade-test\\n\\n\\n* __Maintainer__: The Habitat Maintainers <humans@habitat.sh>\\n* __Version__: 0.1.0\\n* __Release__: 20180327205223\\n* __Architecture__: x86_64\\n* __System__: linux\\n* __Target__: x86_64-linux\\n* __Upstream URL__: upstream project\'s website or home page is not defined\\n* __License__: Apache-2.0 \\n* __Source__: source URL not provided or required\\n* __SHA__: SHA256 checksum not provided or required\\n* __Path__: `/hab/pkgs/jaym/upgrade-test/0.1.0/20180327205223`\\n* __Build Dependencies__: no build dependencies or undefined\\n* __Dependencies__: `core/bash `\\n* __Interpreters__: no interpreters or undefined\\n\\n# Plan\\n\\n## Build Flags\\n\\n```bash\\nCFLAGS: no CFLAGS\\nCPPFLAGS: no CPPFLAGS\\nCXXFLAGS: no CXXFLAGS\\nLDFLAGS: no LDFLAGS\\nLD_RUN_PATH: no LD_RUN_PATH\\n```\\n\\n## Plan Source\\n\\n```bash\\npkg_name=upgrade-test\\npkg_origin=jaym\\npkg_version=\\\"0.1.0\\\"\\npkg_maintainer=\\\"The Habitat Maintainers <humans@habitat.sh>\\\"\\npkg_license=(\\\"Apache-2.0\\\")\\n# pkg_source=\\\"http://some_source_url/releases/${pkg_name}-${pkg_version}.tar.gz\\\"\\n# pkg_filename=\\\"${pkg_name}-${pkg_version}.tar.gz\\\"\\n# pkg_shasum=\\\"TODO\\\"\\npkg_deps=(core/bash)\\n# pkg_build_deps=(core/make core/gcc)\\n# pkg_lib_dirs=(lib)\\n# pkg_include_dirs=(include)\\n# pkg_bin_dirs=(bin)\\n# pkg_pconfig_dirs=(lib/pconfig)\\n# pkg_svc_run=\\\"bin/haproxy -f $pkg_svc_config_path/haproxy.conf\\\"\\n# pkg_exports=(\\n#   [host]=srv.address\\n#   [port]=srv.port\\n#   [ssl-port]=srv.ssl.port\\n# )\\n# pkg_exposes=(port ssl-port)\\n#pkg_binds=(\\n#  [redis]=\\\"port\\\"\\n#)\\n# pkg_binds_optional=(\\n#   [storage]=\\\"port host\\\"\\n# )\\n# pkg_interpreters=(bin/bash)\\n# pkg_svc_user=\\\"hab\\\"\\n# pkg_svc_group=\\\"$pkg_svc_user\\\"\\n# pkg_description=\\\"Some description.\\\"\\n# pkg_upstream_url=\\\"http://example.com/project-name\\\"\\n\\ndo_build() {\\n\\treturn 0\\n}\\n\\ndo_install() {\\n\\treturn 0\\n}\\n```\",\"target\":\"x86_64-linux\",\"tdeps\":[{\"name\":\"bash\",\"origin\":\"core\",\"release\":\"20170513213519\",\"version\":\"4.3.42\"},{\"name\":\"gcc-libs\",\"origin\":\"core\",\"release\":\"20170513212920\",\"version\":\"5.2.0\"},{\"name\":\"glibc\",\"origin\":\"core\",\"release\":\"20170513201042\",\"version\":\"2.22\"},{\"name\":\"linux-headers\",\"origin\":\"core\",\"release\":\"20170513200956\",\"version\":\"4.3\"},{\"name\":\"ncurses\",\"origin\":\"core\",\"release\":\"20170513213009\",\"version\":\"6.0\"},{\"name\":\"readline\",\"origin\":\"core\",\"release\":\"20170513213506\",\"version\":\"6.3.8\"}],\"visibility\":\"public\"}"
DEBUG 2018-03-27T20:58:27Z: habitat_sup::manager::service_updater: Package found is not newer than ours
^C
[19][default:/src:130]# cat /hab/sup/default/specs/upgrade-test.spec
ident = "jaym/upgrade-test"
group = "default"
bldr_url = "https://bldr.habitat.sh"
channel = "unstable"
topology = "standalone"
update_strategy = "none"
binds = []
desired_state = "up"
start_style = "persistent"
[20][default:/src:0]# hab svc status
package                                 type        state  uptime (s)  pid    group                 style
jaym/upgrade-test/0.1.0/20180327205223  standalone  up     11          25699  upgrade-test.default  persistent
mwrock commented 6 years ago

I have seen similar behavior where a service that is stopped but we have a spec for and is restarted with different arguments does not get the desired altered behavior and the supervisor simply uses the args that are in the current spec.

jaym commented 6 years ago

@mwrock In this case, the spec file seems to have been written out correctly (i 'cat'd the spec file as the last thing). One thing we've talked to @christophermaier about is the service updater continues to run even after the service is stopped, which seems like its related to this.

christophermaier commented 6 years ago

@jaym Are you still able to reproduce this?

Though I'm assuming the answer is "yes"...

jaym commented 6 years ago

ill have to test it out tomorrow

christophermaier commented 6 years ago

@baumanj If we re-cast the service watcher in Tokio, this is something that could naturally fall out.

adamhjk commented 6 years ago

At the very least, it's something we could tackle as we go.

raskchanky commented 5 years ago

It's very possible that the work done as part of https://github.com/habitat-sh/habitat/pull/5828 fixed this issue, so I'm going to close it. If you still see the problems reported here, re-open and we'll take a fresh look.