Skip to content

[wicket/wicketd] Run RSS from Wicket#3387

Merged
jgallagher merged 16 commits into
mainfrom
wicketd-run-rss
Jun 22, 2023
Merged

[wicket/wicketd] Run RSS from Wicket#3387
jgallagher merged 16 commits into
mainfrom
wicketd-run-rss

Conversation

@jgallagher

Copy link
Copy Markdown
Contributor

The bulk of code in this PR is the new rack_setup wicket pane, which includes a bunch of popup-related things (which are all fairly verbose for now; I followed what the update pane does structurally, and am very thankful it exists!). On a fresh (uninitialized and unconfigured) system, the pane should look roughly like this, although hopefully not with UNKNOWN bootstrap addresses (those are because these screenshots are from a simulated dev environment that doesn't have a bootstrap network):

pr0

If we attempt to start an update, we'll get a confirm popup; pressing "Yes" will fail with the error from wicketd (in this case, "you need to configure things!"):

pr1

After filling in all the configuration options via the CLI added in #3326, we see the options reflected in the UI:

pr2

at which point starting RSS should succeed, and the Current rack status: line will change to Initializing. This will eventually progress to a new state once RSS completes (whether successful or not).

@andrewjstone andrewjstone left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks awesome. Ship it!

Comment thread wicketd/src/context.rs Outdated
Comment thread wicketd/src/context.rs Outdated
popup: Option<Popup>,
}

impl Default for RackSetupPane {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Contextual help is so hot these days!

Comment thread wicket/src/ui/panes/rack_setup.rs Outdated

@jmpesp jmpesp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I deployed this in the Canada region and it worked (after setting up the appropriate simulated stuff) - some suggestions though:

  • values that are input into setup set-config should be rejected earlier. I made it through RSS with values that would not parse as IpAddr and init failed
  • a similar comment for the uploaded certificates: I got all the way through RSS with certificates that couldn't be used without TLS related errors. the certificates should be validated somehow. for posterity:
jwm@fancyfeast:~$ curl --cacert ~/wicket.ca.pem https://recovery.sys.oxide.test/v1/me
curl: (60) SSL certificate problem: unsupported certificate purpose
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

@jgallagher

Copy link
Copy Markdown
Contributor Author

I deployed this in the Canada region and it worked (after setting up the appropriate simulated stuff) - some suggestions though:

Thanks! I opened #3397 and #3398 and will work on those in followup PRs.

@jgallagher jgallagher merged commit 60e64f8 into main Jun 22, 2023
@jgallagher jgallagher deleted the wicketd-run-rss branch June 22, 2023 16:05
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.

3 participants