-
Notifications
You must be signed in to change notification settings - Fork 83
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
MGMT-19100: Allow install to the existing root filesystem #897
base: master
Are you sure you want to change the base?
Conversation
This is not a valid way to detect installation media, but it is a way that config data can be provided to the host during a CAPI install. For a full ISO the current install media partitions look like this: ``` [root@localhost core]# fdisk -l /dev/sr0 Disk /dev/sr0: 1.16 GiB, 1244659712 bytes, 607744 sectors Disk model: QEMU DVD-ROM Units: sectors of 1 * 2048 = 2048 bytes Sector size (logical/physical): 2048 bytes / 2048 bytes I/O size (minimum/optimal): 2048 bytes / 2048 bytes Disklabel type: dos Disk identifier: 0x47ad035f Device Boot Start End Sectors Size Id Type /dev/sr0p1 * 0 2430975 2430976 4.6G 0 Empty /dev/sr0p2 180 10139 9960 19.5M ef EFI (FAT-12/16/32) ``` Neither of these partitions are of type iso9660 so this check is doing nothing but making CAPI installs more difficult.
@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. In 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
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #897 +/- ##
==========================================
- Coverage 60.47% 60.43% -0.05%
==========================================
Files 75 75
Lines 4003 3998 -5
==========================================
- Hits 2421 2416 -5
Misses 1410 1410
Partials 172 172
|
@@ -360,15 +360,6 @@ func (d *disks) checkEligibility(disk *ghw.Disk) (notEligibleReasons []string, i | |||
|
|||
// Check disk partitions for type, name, and mount points: | |||
for _, partition := range disk.Partitions { | |||
if partition.Type == "iso9660" { |
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.
Is there ever a case where the installation media would be ISO9660 ?
Just for clarification, it's accurate to say that isInstallationMedia will only be set if the mountpoint of a partition has the suffix 'iso' is this the only scenario where we would consider the partition to be installation media?
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.
The installation media can be an iso but the partition never is.
I explain this in the commit and PR description, or are you asking about something else?
Just for clarification, it's accurate to say that isInstallationMedia will only be set if the mountpoint of a partition has the suffix 'iso' is this the only scenario where we would consider the partition to be installation media?
Yes, that will be the situation after this commit is merged. And this will successfully eliminate the cd drive device. You can see this in the following example from a machine with the full ISO booted:
[root@localhost core]# mount | grep iso
/dev/sr0 on /run/media/iso type iso9660 (ro,relatime,nojoliet,check=s,map=n,blocksize=2048)
/lgtm |
/hold |
/retest |
6bf9ed0
to
6a02366
Compare
@carbonin: The following tests failed, say
Full PR test history. Your PR dashboard. 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 kubernetes-sigs/prow repository. I understand the commands that are listed here. |
@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. In 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. |
/lgtm |
This PR allows for installing coreos content to the existing root filesystem instead of only to an entire device.
When the install command contains the coreos image field it will be passed through to the installer.
Additionally the validation on eligible disks for iso type partitions is dropped.
This was done because it is not a valid way to detect installation media, but it is a way that config data can be provided to the host during a CAPI install.
For a full ISO the current install media partitions look like this:
Neither of these partitions are of type iso9660 so this check is doing nothing but making CAPI installs more difficult.
Leaving this as WIP until openshift/assisted-service#7197 and openshift/assisted-installer#1003 are mergedMerged