Skip to content

add configuration to retrieve installers from S3#6630

Merged
roperzh merged 4 commits intomainfrom
6365-s3-options
Jul 13, 2022
Merged

add configuration to retrieve installers from S3#6630
roperzh merged 4 commits intomainfrom
6365-s3-options

Conversation

@roperzh
Copy link
Copy Markdown
Contributor

@roperzh roperzh commented Jul 12, 2022

Related to #6365, this adds relevant configuration to the packaging key to retrieve installers from S3.

Checklist for submitter

  • Changes file added for user-visible changes (in changes/ and/or orbit/changes/).
  • Documented any API changes (docs/Using-Fleet/REST-API.md or docs/Contributing/API-for-contributors.md)
  • Manual QA for all new/changed functionality

@roperzh roperzh requested a review from a team as a code owner July 12, 2022 21:51
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jul 12, 2022

Codecov Report

Merging #6630 (9d2ec02) into 6365-global-enroll-secret (974e273) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@                    Coverage Diff                     @@
##           6365-global-enroll-secret    #6630   +/-   ##
==========================================================
  Coverage                      59.62%   59.63%           
==========================================================
  Files                            398      398           
  Lines                          37248    37257    +9     
==========================================================
+ Hits                           22209    22218    +9     
  Misses                         12845    12845           
  Partials                        2194     2194           
Impacted Files Coverage Δ
server/config/config.go 88.74% <100.00%> (+0.14%) ⬆️

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 974e273...9d2ec02. Read the comment docs.

Comment thread docs/Deploying/Configuration.md Outdated
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

most of the contents here are copy-pasta from carves, but things like this have been edited accordingly.

Base automatically changed from 6365-global-enroll-secret to main July 12, 2022 22:12
@roperzh roperzh temporarily deployed to Docker Hub July 12, 2022 22:19 Inactive
@roperzh roperzh temporarily deployed to Docker Hub July 13, 2022 11:07 Inactive
@roperzh roperzh temporarily deployed to Docker Hub July 13, 2022 11:11 Inactive
Comment thread docs/Deploying/Configuration.md Outdated
Comment thread docs/Deploying/Configuration.md Outdated
@roperzh roperzh temporarily deployed to Docker Hub July 13, 2022 12:13 Inactive
@roperzh roperzh requested a review from lucasmrod July 13, 2022 12:13
@roperzh roperzh merged commit 7e68ee2 into main Jul 13, 2022
@roperzh roperzh deleted the 6365-s3-options branch July 13, 2022 12:34
roperzh added a commit that referenced this pull request Jul 14, 2022
In #6630 I added a new config for packaging, but when I started the server I got:

```
~/fleet $ ./build/fleet serve --dev --dev_license
level=info ts=2022-07-13T21:36:06.055998Z component=redis mode=standalone
fatal error: newproc: function arguments too large for new goroutine

runtime stack:
runtime.throw({0x103d85259, 0x37})
	/Users/roperzh/.gvm/gos/go1.17/src/runtime/panic.go:1198 +0x54
runtime.newproc1(0x104569a30, 0x14000ffda28, 0x7f8, 0x140000001a0, 0x103bc85a4)
	/Users/roperzh/.gvm/gos/go1.17/src/runtime/proc.go:4299 +0x4d0
runtime.newproc.func1()
	/Users/roperzh/.gvm/gos/go1.17/src/runtime/proc.go:4255 +0x4c
runtime.systemstack()
	/Users/roperzh/.gvm/gos/go1.17/src/runtime/asm_arm64.s:230 +0x6c

goroutine 1 [running]:
runtime.systemstack_switch()
	/Users/roperzh/.gvm/gos/go1.17/src/runtime/asm_arm64.s:187 +0x8 fp=0x14000ffd9c0 sp=0x14000ffd9b0 pc=0x102b60958
runtime.newproc(0x7f8, 0x104569a30)
	/Users/roperzh/.gvm/gos/go1.17/src/runtime/proc.go:4254 +0x54 fp=0x14000ffda10 sp=0x14000ffd9c0 pc=0x102b38034
main.runCrons({0x1045cd500, 0x14000262990}, {0x104611a38, 0x14000262930}, 0x14000298190, {0x1045a0480, 0x140009c9f20}, {{{0x103d1adc4, 0x3}, {0x103d2b188, ...}, ...}, ...}, ...)
	/Users/roperzh/fleet/cmd/fleet/serve.go:694 +0x2c4 fp=0x14000ffe260 sp=0x14000ffda10 pc=0x103bc85a4
main.createServeCmd.func1(0x1400027ca00, {0x140000bcb40, 0x0, 0x2})
```

With my local changes, `serve.go:694` is this line:

https://github.com/fleetdm/fleet/blob/7559988000efc3d7408d9914edd5a3f2f1052138/cmd/fleet/serve.go#L685-L686

After passing only a subset of the config the issue was solved.
Desmi-Dizney added a commit that referenced this pull request Jul 20, 2022
@Desmi-Dizney
Copy link
Copy Markdown
Contributor

Desmi-Dizney added a commit that referenced this pull request Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants