-
Notifications
You must be signed in to change notification settings - Fork 120
MGMT-19100: Install to the current boot device when CoreosImage is set #1003
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
Conversation
|
@carbonin: This pull request references MGMT-19100 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.19.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: carbonin The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1003 +/- ##
==========================================
- Coverage 55.39% 55.00% -0.39%
==========================================
Files 15 15
Lines 3318 3365 +47
==========================================
+ Hits 1838 1851 +13
- Misses 1297 1331 +34
Partials 183 183
|
64dd407 to
5199af9
Compare
eb0683a to
928a493
Compare
928a493 to
8996860
Compare
src/ops/ops.go
Outdated
|
|
||
| func (o *ops) importOSTreeCommit(liveLogger io.Writer) (string, error) { | ||
| ostreeReleasePullSpec := fmt.Sprintf("ostree-unverified-registry:%s", o.installerConfig.CoreosImage) | ||
| out, err := o.ExecPrivilegeCommand(liveLogger, "ostree", "container", "unencapsulate", "--authfile", "/root/.docker/config.json", "--quiet", "--repo", "/ostree/repo", ostreeReleasePullSpec) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: this is probably not gonna change often (or possibly never), however wouldn't the docker config file path be better in a constant? (there's already one in installer package, should we share such constant - in a different package of course - as we are relying that this file has been extracted there?)
|
/retest |
This indicates the container image that should be installed and booted for the installed host. It also indicates that we should install to the existing root filesystem, in a new stateroot, rather than expecting a device path. https://issues.redhat.com/browse/MGMT-19100
cc87535 to
2bde274
Compare
|
@carbonin: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/lgtm |
e27ef9e
into
openshift:master
eranco74
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
| flagSet.BoolVar(&c.SkipInstallationDiskCleanup, "skip-installation-disk-cleanup", false, "Skip installation disk cleanup gives disk management to coreos-installer in case needed") | ||
| flagSet.BoolVar(&c.EnableSkipMcoReboot, "enable-skip-mco-reboot", false, "indicate assisted installer to generate settings to match MCO requirements for skipping reboot after firstboot") | ||
| flagSet.BoolVar(&c.NotifyNumReboots, "notify-num-reboots", false, "indicate number of reboots should be notified as event") | ||
| flagSet.StringVar(&c.CoreosImage, "coreos-image", "", "CoreOS image to install to the existing root") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider renaming CoreosImage to OciImage
| if i.Config.CoreosImage == "" { | ||
| return i.ops.WriteImageToDisk(liveLogger, ignitionPath, i.Device, i.Config.InstallerArgs) | ||
| } else { | ||
| return i.ops.WriteImageToExistingRoot(liveLogger, ignitionPath) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should get the i.Config.CoreosImage, no?
|
@javipolo PTAL |
|
[ART PR BUILD NOTIFIER] Distgit: ose-agent-installer-orchestrator |
|
[ART PR BUILD NOTIFIER] Distgit: ose-agent-installer-csr-approver |
This indicates the container image that should be installed and booted for the installed host. It also indicates that we should install to the currently booted disk, in a new stateroot, rather than expecting a device path.
https://issues.redhat.com/browse/MGMT-19100
cc @tsorya @rccrdpccl @eranco74