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

Add basic support and tests for Ubuntu 22.04 LTS #5543

Merged
merged 5 commits into from Jul 8, 2022
Merged

Add basic support and tests for Ubuntu 22.04 LTS #5543

merged 5 commits into from Jul 8, 2022

Conversation

mayrstefan
Copy link
Contributor

@mayrstefan mayrstefan commented Jun 5, 2022

What does this PR change?

This is some basic preparation to support Ubuntu 22.04 LTS

GUI diff

No difference.

Documentation

Test coverage

  • Cucumber tests were added

  • DONE

Links

Partially fixes #5320

  • DONE

Changelogs

  • Added

  • DONE

Re-run a test

If you need to re-run a test, please mark the related checkbox, it will be unchecked automatically once it has re-run:

  • Re-run test "changelog_test"
  • Re-run test "backend_unittests_pgsql"
  • Re-run test "java_pgsql_tests"
  • Re-run test "schema_migration_test_pgsql"
  • Re-run test "susemanager_unittests"
  • Re-run test "javascript_lint"
  • Re-run test "spacecmd_unittests"

Copy link
Member

@srbarrios srbarrios left a comment

Choose a reason for hiding this comment

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

Test Framework changes looks good to me.
I can't give feedback about the rest.

And I enter "Ubuntu 22.04" as the filtered product description
And I select "Ubuntu 22.04" as a product
Then I should see the "Ubuntu 22.04" selected
When I click the Add Product button
Copy link
Member

Choose a reason for hiding this comment

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

I can't confirm it, as I can't see Ubuntu 22.04 in my current environment.
But we might need to select also some child channel not selected automatically, for instance something related to LTSS.
As we do in When I select "SUSE Linux Enterprise Server LTSS 15 x86_64" as a product

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I copied this from Ubuntu 20.04 as a wild guess. This seems to be the same for all Ubuntu and Debian variants. And Ubuntu 22.04 is a LTS release by definition.

@juliogonzalez juliogonzalez self-requested a review June 8, 2022 09:44
Copy link
Member

@juliogonzalez juliogonzalez left a comment

Choose a reason for hiding this comment

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

This PR looks very good! :-D

Some minor changes are required.

Also, can you grant me rights at your repo, so I can build the packages and test everything during the hackweek, and do changes (if needed)?

Thanks!

@@ -1,4 +1,191 @@
[
{
Copy link
Member

Choose a reason for hiding this comment

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

Unless @mcalmer can already provide the right IDs, I'd say this needs to go away?

Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove this file from the PR. This file is generated by an internal tool.
Maybe you can paste it as comment to the PR, so we can fetch it and compare it with what we generate.

susemanager/src/mgr_bootstrap_data.py Outdated Show resolved Hide resolved
@@ -1516,6 +1535,11 @@
'DEST' : DOCUMENT_ROOT + '/pub/repositories/ubuntu/20/4/bootstrap/',
'TYPE' : 'deb'
},
'ubuntu-22.04-amd64' : {
Copy link
Member

Choose a reason for hiding this comment

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

@mcalmer I think this should go away for now, as we do not have the SCC client tools channels?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, especially as we do not know if -33 will be the final product id or not.

@juliogonzalez
Copy link
Member

Part of Hackweek 21 at https://hackweek.opensuse.org/21/projects/testing-gnu-slash-linux-distributions-on-uyuni.

Main focus for me would be testing, as it seems most if the work is done by @mayrstefan

@juliogonzalez
Copy link
Member

Copy link
Member

@juliogonzalez juliogonzalez left a comment

Choose a reason for hiding this comment

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

Ok, I tested this PR, and can confirm the basic stuff works, as you can see at https://hackweek.opensuse.org/21/projects/testing-gnu-slash-linux-distributions-on-uyuni

I am now adding more reviewers, and if they approve, we can merge. But to have Ubuntu 22.04 we need https://build.opensuse.org/request/show/985321 accepted, and them submitted and released to the SLE15 codestreams (so it gets into openSUSE Leap 15.4)

@mayrstefan
Copy link
Contributor Author

Sounds good. What about the repository IDs? Will you replace them with the correct numbers or should we remove this block?

@juliogonzalez
Copy link
Member

Sounds good. What about the repository IDs? Will you replace them with the correct numbers or should we remove this block?

We'll see, maybe @mcalmer wants to keep them and fix the IDs later. For now people will need to review, and we also need to merge my SRs for reprepro (bootstrap repository generation) and get the updated python-debian at SLE/openSUSE, as well as the documentation.

When the four things are ready, then we can officially have Ubuntu 22.04 as part of Uyuni. Hopefully for 2022.07. We'll see.

@@ -1,4 +1,191 @@
[
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove this file from the PR. This file is generated by an internal tool.
Maybe you can paste it as comment to the PR, so we can fetch it and compare it with what we generate.

@@ -1516,6 +1535,11 @@
'DEST' : DOCUMENT_ROOT + '/pub/repositories/ubuntu/20/4/bootstrap/',
'TYPE' : 'deb'
},
'ubuntu-22.04-amd64' : {
Copy link
Contributor

Choose a reason for hiding this comment

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

yes, especially as we do not know if -33 will be the final product id or not.

@juliogonzalez
Copy link
Member

@mcalmer all done. For the Java part, I don't know if those changes are enough or not.

Copy link
Contributor

@mcalmer mcalmer left a comment

Choose a reason for hiding this comment

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

Looks good, but check the checkstyle error.
More product handling in the java code is only needed for RHEL like Products.

@juliogonzalez
Copy link
Member

Looks good, but check the checkstyle error.
Done

More product handling in the java code is only needed for RHEL like Products.

Ok so, I guess the product detection shows "Uknown" because this product is still not defined at sumatoolbox, or SCC, or whatever else, right?

@mcalmer
Copy link
Contributor

mcalmer commented Jul 1, 2022

Ok so, I guess the product detection shows "Uknown" because this product is still not defined at sumatoolbox, or SCC, or whatever else, right?

Correct.

@juliogonzalez juliogonzalez requested a review from a team July 4, 2022 10:20
@juliogonzalez juliogonzalez removed the request for review from meaksh July 4, 2022 10:20
Copy link
Member

@meaksh meaksh left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@juliogonzalez juliogonzalez merged commit dd4d0c0 into uyuni-project:master Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

What is needed to support Ubuntu 22.04 LTS?
5 participants