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

Use only libyui REST API to setup raid #12017

Merged
merged 10 commits into from Mar 1, 2021
Merged

Conversation

rwx788
Copy link
Member

@rwx788 rwx788 commented Feb 23, 2021

We have used old implementation to select devices for the RAID, and
select raid type. To be consistent and move in the direction of having
full installation using REST API, we rewrite missing parts.

Now we also can be more precise on which devices we want to use.
Also, we had a bug in the code, as chunk size is not editable combobox, so now select the value which is available there.

See poo#88780.

Verification runs

Rodion Iafarov added 2 commits February 24, 2021 09:52
We have used old implementation to select devices for the RAID, and
select raid type. To be consistent and move in the direction of having
full installation using REST API, we rewrite missing parts.

See [poo#88780](https://progress.opensuse.org/issues/88780).
Another step in migrating from screen based automation to REST API
controlled installations.

See [poo#88780](https://progress.opensuse.org/issues/88780).
@rwx788 rwx788 force-pushed the restapi branch 2 times, most recently from 179e639 to f5aa4c1 Compare February 24, 2021 09:09
Rodion Iafarov added 2 commits February 24, 2021 10:20
Those schedule are not used anymore, as gpt became default partition
table type. Removing, to keep directories clean.
Also module itself is not used anymore, so removing it too.
Previously we would rely on the indexes of the devices and assumptions
on the order. With REST API we can select expected devices by its name
and not index in the table.

See [poo#88780](https://progress.opensuse.org/issues/88780).
@rwx788 rwx788 force-pushed the restapi branch 3 times, most recently from 4e5dfb9 to f81cee4 Compare February 24, 2021 12:49
@rwx788 rwx788 changed the title Use libyui REST API to set raid type, select devices and set chunk size in RAID test Use only libyui REST API to setup raid Feb 24, 2021
Rodion Iafarov and others added 4 commits February 24, 2021 14:25
We migrate to libyui REST API, so following changes were required:
* chunk_size value was 64, but in combobox we have 64KiB
* instead of selecting devices using step, selecting by name now
`No` is special keyword in YAML, and is treated as a boolean value by
default. In our case we need it to be a string.
Fixes validation error:
schedule/qam/common/mau-systemd.yaml
  12:2      warning  missing starting space in comment  (comments)
  15:2      warning  missing starting space in comment  (comments)
Implementing method to get table content, which we haven't implemented
as there was no need so far. In JSON we have array of items, where
labels key stores text values visible in the table.
@rwx788 rwx788 force-pushed the restapi branch 2 times, most recently from 4a65f85 to 2fc0ab1 Compare February 24, 2021 14:27
rwx788 added 2 commits February 24, 2021 16:57
On aarch64 we can see that sometimes, UI doesn't react on the event
properly and we miss adding devices. This happens due to multithreaded
nature of the qt and UI is still processing some events when we trigger
actions, which causes instabilities on slow platforms.
This issue will be addressed properly on the server side, but not to get
Adding missing method for the radiobutton control to check the state of
the control using REST API.
@rwx788 rwx788 removed the WIP Work in progress label Feb 25, 2021
@jknphy
Copy link
Contributor

jknphy commented Feb 26, 2021

LGTM, good choice regarding fixing expectation for RAID devices to be added instead of using an step to select them.

@rwx788
Copy link
Member Author

rwx788 commented Feb 26, 2021

As we are going to have another candidate build on Monday, let's wait before merging not to introduce risks of breakages.

@rwx788 rwx788 merged commit deb98d8 into os-autoinst:master Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants