Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report per-vault status to Controller #314

Closed
wants to merge 92 commits into from
Closed

Report per-vault status to Controller #314

wants to merge 92 commits into from

Conversation

cshari-zededa
Copy link
Contributor

Signed-off-by: Hariharasubramanian C S cshari@zededa.com

Signed-off-by: Hariharasubramanian C S <cshari@zededa.com>
cshari-zededa and others added 5 commits October 9, 2019 12:48
Signed-off-by: Hariharasubramanian C S <cshari@zededa.com>
Signed-off-by: eriknordmark <erik@zededa.com>
Signed-off-by: eriknordmark <erik@zededa.com>
Signed-off-by: GopiKrishna Kodali <gkodali@zededa.com>
…control thread.

Signed-off-by: GopiKrishna Kodali <gkodali@zededa.com>
Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

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

I think you need to publish then subscribe to this to fit the intended architecture.

pkg/pillar/cmd/zedagent/handlemetrics.go Show resolved Hide resolved
naiming-zededa and others added 6 commits October 9, 2019 23:41
probe support for intf class, change flag, etc
add signal to update route/acl, add prev uplink
add checking IoBundle for type of uplink intfs
App uplink fallback programming initial commit
change to NI uplink name for probing info and add/delete handling
added handling of user defined url/interval
fixed a zero ip checking in getRemoteURL()
Change from IntfClass to Free/NonFree, add initial signal for Uplink
failover with vpn network, commit on behalf of Gopi
sending ni status update, commit on behalf of Gopi
remove publish ni status for every probing
dnsmasq should get the upstream DNS that comes as part of DHCP for the current uplink interface decided by probing code.
Do not delete hosts configuration when restarting dnsmasq
probe support for intf class, change flag, etc
add signal to update route/acl, add prev uplink
add checking IoBundle for type of uplink intfs
App uplink fallback programming initial commit
added handling of user defined url/interval
Change from IntfClass to Free/NonFree, add initial signal for Uplink
dnsmasq should get the upstream DNS that comes as part of DHCP for the current uplink interface decided by probing code.
Do not delete hosts configuration when restarting dnsmasq
specify DNS IP source address for dnsmasq for failover
Fix code path when app network creation is re-tried due to network instance not being present during the first time. Probing code should pick a port that has atleast one workable IP address. Other misc fixes.
add fast converge with link address/first pingable
prevent triggering probe too frequently with link up/down
change some logging from info to debug
send ni-status update when any state changes, for reduce logging
ctx.networkInstanceStatusList should be updated with latest network status during publish
Initial checkin for local/remote network probing for uplinks
probe support for intf class, change flag, etc
add signal to update route/acl, add prev uplink
add checking IoBundle for type of uplink intfs
App uplink fallback programming initial commit
added handling of user defined url/interval
Change from IntfClass to Free/NonFree, add initial signal for Uplink
remove publish ni status for every probing
dnsmasq should get the upstream DNS that comes as part of DHCP for the current uplink interface decided by probing code.
Do not delete hosts configuration when restarting dnsmasq
Initial checkin for local/remote network probing for uplinks
probe support for intf class, change flag, etc
add signal to update route/acl, add prev uplink
add checking IoBundle for type of uplink intfs
App uplink fallback programming initial commit
added handling of user defined url/interval
Change from IntfClass to Free/NonFree, add initial signal for Uplink
dnsmasq should get the upstream DNS that comes as part of DHCP for the current uplink interface decided by probing code.
specify DNS IP source address for dnsmasq for failover
add fast converge with link address/first pingable
prevent triggering probe too frequently with link up/down
change some logging from info to debug
ctx.networkInstanceStatusList should be updated with latest network status during publish
When a network instance starts with working port and ends up in a state where is no working port found, atleast do not overwrite the existing port - programming.
fix the free/non-free and ni update issues
avoid stale PInfo for current unused ports
Addressed review comments. Fixed a bug in the latest code that precents network instances with single port attached from working as expected.

Signed-off-by: Naiming Shen <naiming@zededa.com>
Signed-off-by: GopiKrishna Kodali <gkodali@zededa.com>
Signed-off-by: eriknordmark <erik@zededa.com>
…should be written to /etc/resolv.conf irrespective of having AddrInfoList populated.

Signed-off-by: GopiKrishna Kodali <gkodali@zededa.com>
…e just let the DNS servers be written irrespective of presence of IPs on the port.

Signed-off-by: GopiKrishna Kodali <gkodali@zededa.com>
Signed-off-by: eriknordmark <erik@zededa.com>
Signed-off-by: eriknordmark <erik@zededa.com>
Signed-off-by: Hariharasubramanian C S <cshari@zededa.com>
Signed-off-by: Hariharasubramanian C S <cshari@zededa.com>
Signed-off-by: Hariharasubramanian C S <cshari@zededa.com>
Signed-off-by: Hariharasubramanian C S <cshari@zededa.com>
switch flag.Args()[0] {
case "setupVaults":
if err = setupFscryptEnv(); err != nil {
publishVaultStatus(&ctx, defaultImgVaultName)
Copy link
Contributor

Choose a reason for hiding this comment

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

How is publish followed by log.Fatal useful?
The subscriber is not going to receive it since the publisher is gone.

Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps you shouldn't Fatal?
Perhaps feed err into publish??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed in the latest patch.

@@ -280,39 +280,51 @@ func setupFscryptEnv() error {
return nil
}

//GetOperInfo gets the current operational state of fscrypt
func GetOperInfo() (info.DataSecAtRestStatus, string, []VaultStatus) {
func publishVaultStatus(ctx *vaultMgrContext, vaultName string) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you need to do the execCmd for each vaultName? Seems to be unrelated to the name of a particular vault.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed in the latest patch.

gkodali-zededa and others added 7 commits October 11, 2019 22:50
…ddr logic boundary handling fix. App IP address allocation should propagate error to AppNetworkStatus

Signed-off-by: GopiKrishna Kodali <gkodali@zededa.com>
Signed-off-by: GopiKrishna Kodali <gkodali@zededa.com>
Signed-off-by: GopiKrishna Kodali <gkodali@zededa.com>
Signed-off-by: GopiKrishna Kodali <gkodali@zededa.com>
Signed-off-by: Hariharasubramanian C S <cshari@zededa.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Signed-off-by: Roman Shaposhnik <rvs@zededa.com>
naiming-zededa and others added 26 commits October 18, 2019 12:39
Signed-off-by: Naiming Shen <naiming@zededa.com>
Signed-off-by: eriknordmark <erik@zededa.com>
Signed-off-by: eriknordmark <erik@zededa.com>
…dapterConfig

Signed-off-by: GopiKrishna Kodali <gkodali@zededa.com>
Signed-off-by: GopiKrishna Kodali <gkodali@zededa.com>
Signed-off-by: GopiKrishna Kodali <gkodali@zededa.com>
Signed-off-by: Kalyan Nidumolu <kalyan@zadeda.com>
Signed-off-by: zed-rishabh <rgupta@zededa.com>
Signed-off-by: eriknordmark <erik@zededa.com>
Signed-off-by: eriknordmark <erik@zededa.com>
…update 1

Signed-off-by: Archishmaan Peyyety <archishou@gmail.com> (+22 squashed commits)
Squashed commits:
[cb3fdfe] removed comment

Signed-off-by: Archishmaan Peyyety <archishou@gmail.com>
[3f835c8] removed old comment

Signed-off-by: Archishmaan Peyyety <archishou@gmail.com>
[5a1b2ab] renamed variable

Signed-off-by: Archishmaan Peyyety <archishou@gmail.com>
[041f058] renmaed function

Signed-off-by: Archishmaan Peyyety <archishou@gmail.com>
[9360b23] resolved issues with 673-677 of zedrouter

Signed-off-by: Archishmaan Peyyety <archishou@gmail.com>
[06e02a4] resolved issues with 777-787 of zedrouter

Signed-off-by: Archishmaan Peyyety <archishou@gmail.com>
[53ce2b0] addressed comments for zedrouter

Signed-off-by: Archishmaan Peyyety <archishou@gmail.com>
[caa5835] removed .idea dir

Signed-off-by: Archishmaan Peyyety <archishou@gmail.com>
[047f337] fixed identitymgr to address comments

Signed-off-by: Archishmaan Peyyety <archishou@gmail.com>
[8e38803] updated zedrouter.go

Signed-off-by: Archishmaan Peyyety <archishou@gmail.com>
[28ac54c] updated zedmanger.go

Signed-off-by: Archishmaan Peyyety <archishou@gmail.com>
[11e7e97] updated some more files

Signed-off-by: Archishmaan Peyyety <archishou@gmail.com>
[3059a0e] updated verifier.go

Signed-off-by: Archishmaan Peyyety <archishou@gmail.com>
[4c03697] updated nim.go

Signed-off-by: Archishmaan Peyyety <archishou@gmail.com>
[970063f] updated logmanager.go

Signed-off-by: Archishmaan Peyyety <archishou@gmail.com>
[6ad26fb] updated ledmanager.go

Signed-off-by: Archishmaan Peyyety <archishou@gmail.com>
[5bf1c80] updated identitymgr.go

Signed-off-by: Archishmaan Peyyety <archishou@gmail.com>
[2033fcb] updated downloader.go

Signed-off-by: Archishmaan Peyyety <archishou@gmail.com>
[db7f228] updated domainimg.go

Signed-off-by: Archishmaan Peyyety <archishou@gmail.com>
[ffa47a6] updated diag.go

Signed-off-by: Archishmaan Peyyety <archishou@gmail.com>
[b41a387] updated dataplane.go

Signed-off-by: Archishmaan Peyyety <archishou@gmail.com>
[c41f655] updated client.go

Signed-off-by: Archishmaan Peyyety <archishou@gmail.com> (+1 squashed commit)
Squashed commits:
[2ace073] updated baseosmgr.go

Signed-off-by: Archishmaan Peyyety <archishou@gmail.com>
Signed-off-by: Archishmaan Peyyety <archishou@gmail.com>
Signed-off-by: Archishmaan Peyyety <archishou@gmail.com>
Signed-off-by: Hariharasubramanian C S <cshari@zededa.com>
Signed-off-by: Hariharasubramanian C S <cshari@zededa.com>
Signed-off-by: Hariharasubramanian C S <cshari@zededa.com>
Signed-off-by: Hariharasubramanian C S <cshari@zededa.com>
Signed-off-by: Hariharasubramanian C S <cshari@zededa.com>
Signed-off-by: Hariharasubramanian C S <cshari@zededa.com>
Signed-off-by: Hariharasubramanian C S <cshari@zededa.com>
Signed-off-by: Hariharasubramanian C S <cshari@zededa.com>
Signed-off-by: Hariharasubramanian C S <cshari@zededa.com>
Signed-off-by: Hariharasubramanian C S <cshari@zededa.com>
Signed-off-by: Hariharasubramanian C S <cshari@zededa.com>
Signed-off-by: Hariharasubramanian C S <cshari@zededa.com>
Signed-off-by: Hariharasubramanian C S <cshari@zededa.com>
@cshari-zededa
Copy link
Contributor Author

I've messed up this PR with some improper usage of git commands. I will discard this PR and re-open a new one. Sorry for the trouble.

andrewd-zededa pushed a commit to andrewd-zededa/eve that referenced this pull request Aug 17, 2024
pull the latest of 7/11/2024 eve
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.