Skip to content
This repository was archived by the owner on Aug 15, 2022. It is now read-only.

kd: add daemon subcommand - #10394

Merged
rjeczalik merged 39 commits into
masterfrom
kd-install
Apr 10, 2017
Merged

kd: add daemon subcommand#10394
rjeczalik merged 39 commits into
masterfrom
kd-install

Conversation

@rjeczalik

@rjeczalik rjeczalik commented Jan 23, 2017

Copy link
Copy Markdown
Contributor

No description provided.

@codecov

codecov Bot commented Mar 9, 2017

Copy link
Copy Markdown

Codecov Report

Merging #10394 into master will increase coverage by 0.21%.
The diff coverage is 75%.

@@            Coverage Diff             @@
##           master   #10394      +/-   ##
==========================================
+ Coverage   32.34%   32.55%   +0.21%     
==========================================
  Files         103      102       -1     
  Lines       11938    12066     +128     
==========================================
+ Hits         3861     3928      +67     
- Misses       7644     7702      +58     
- Partials      433      436       +3

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9db98ed...b628a84. Read the comment docs.

@rjeczalik
rjeczalik force-pushed the kd-install branch 3 times, most recently from c73f25e to 8f5fbe3 Compare March 16, 2017 17:24
@rjeczalik
rjeczalik force-pushed the kd-install branch 4 times, most recently from 18ca23b to 0f5547b Compare March 23, 2017 21:46
@codecov-io

codecov-io commented Mar 23, 2017

Copy link
Copy Markdown

Codecov Report

Merging #10394 into master will decrease coverage by <.1%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master   #10394     +/-   ##
=========================================
- Coverage    30.9%    30.8%   -0.1%     
=========================================
  Files         100      100             
  Lines       11323    11329      +6     
=========================================
  Hits         3500     3500             
- Misses       7423     7429      +6     
  Partials      400      400

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3c478a8...29702a9. Read the comment docs.

Since KD starts now Klient, it can't hold the lock for konfig.bolt,
otherwise Klient won't be able to read configuration.

This PR reworks config to take a lock each time a write
to konfig.bolt is needed.
Fixes:

	❯ kd template list
	ID  TITLE  SLUG  OWNER  TEAM  ACCESS  MACHINES
	panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	    panic: runtime error: invalid memory address or nil pointer dereference
	[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1be572d]

	goroutine 1 [running]:
	vendor/github.com/codegangsta/cli.HandleAction.func1(0xc4204181c0)
	    /Users/rjeczalik/src/github.com/koding/koding/go/src/vendor/github.com/codegangsta/cli/app.go:472 +0x28d
	panic(0x1d856a0, 0x26d88d0)
	    /Users/rjeczalik/go/src/runtime/panic.go:489 +0x2cf
	main.printTemplates(0xc4203f6000, 0x7, 0x9)
	    /Users/rjeczalik/src/github.com/koding/koding/go/src/koding/klientctl/template.go:161 +0x24d
Print meaningful error message instead of:

    error installing "Koding account": kloudError: Bad request (error code: 415) (e654f1c11752105a)
@rjeczalik
rjeczalik merged commit 2dde200 into master Apr 10, 2017
@rjeczalik
rjeczalik deleted the kd-install branch April 10, 2017 12:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants