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

Update k3s and test image to ubuntu 22 #2108

Merged
merged 3 commits into from
Feb 19, 2023

Conversation

zetaab
Copy link
Member

@zetaab zetaab commented Feb 18, 2023

What this PR does / why we need it:

Which issue this PR fixes(if applicable):
fixes #

Special notes for reviewers:

Release note:

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Feb 18, 2023
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Feb 18, 2023
@zetaab zetaab changed the title wip: Update k3s and test image to ubuntu focal wip: Update k3s and test image to ubuntu 22 Feb 18, 2023
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 18, 2023
@zetaab
Copy link
Member Author

zetaab commented Feb 18, 2023

the error with manila is that the placement api does not start. The error is pretty much same is the used OS ubuntu 20 or ubuntu 22.

Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: CRITICAL placement [-] Unhandled error: pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: '1.16.0-unknown' (package: gpg)
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement Traceback (most recent call last):
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement   File "/usr/local/bin/placement-api", line 52, in <module>
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement     application = init_application()
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement   File "/opt/stack/placement/placement/wsgi.py", line 147, in init_application
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement     return deploy.loadapp(config)
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement   File "/opt/stack/placement/placement/deploy.py", line 155, in loadapp
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement     application = deploy(config)
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement   File "/opt/stack/placement/placement/deploy.py", line 117, in deploy
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement     application = middleware(application)
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement   File "/opt/stack/placement/placement/auth.py", line 114, in auth_filter
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement     return PlacementAuthProtocol(app, conf)
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement   File "/opt/stack/placement/placement/auth.py", line 99, in __init__
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement     super(PlacementAuthProtocol, self).__init__(app, conf)
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement   File "/usr/local/lib/python3.10/dist-packages/keystonemiddleware/auth_token/__init__.py", line 628, in __init__
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement     self._session = self._create_session()
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement   File "/usr/local/lib/python3.10/dist-packages/keystonemiddleware/auth_token/__init__.py", line 838, in _create_session
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement     kwargs.setdefault('user_agent', self._conf.user_agent)
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement   File "/usr/local/lib/python3.10/dist-packages/keystonemiddleware/_common/config.py", line 148, in user_agent
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement     version = pkg_resources.get_distribution(project).version
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement   File "/usr/local/lib/python3.10/dist-packages/pkg_resources/__init__.py", line 514, in get_distribution
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement     dist = get_provider(dist)
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement   File "/usr/local/lib/python3.10/dist-packages/pkg_resources/__init__.py", line 386, in get_provider
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement     return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement   File "/usr/local/lib/python3.10/dist-packages/pkg_resources/__init__.py", line 956, in require
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement     needed = self.resolve(parse_requirements(requirements))
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement   File "/usr/local/lib/python3.10/dist-packages/pkg_resources/__init__.py", line 815, in resolve
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement     dist = self._resolve_dist(
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement   File "/usr/local/lib/python3.10/dist-packages/pkg_resources/__init__.py", line 844, in _resolve_dist
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement     env = Environment(self.entries)
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement   File "/usr/local/lib/python3.10/dist-packages/pkg_resources/__init__.py", line 1044, in __init__
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement     self.scan(search_path)
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement   File "/usr/local/lib/python3.10/dist-packages/pkg_resources/__init__.py", line 1077, in scan
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement     self.add(dist)
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement   File "/usr/local/lib/python3.10/dist-packages/pkg_resources/__init__.py", line 1096, in add
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement     dists.sort(key=operator.attrgetter('hashcmp'), reverse=True)
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement   File "/usr/local/lib/python3.10/dist-packages/pkg_resources/__init__.py", line 2640, in hashcmp
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement     self.parsed_version,
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement   File "/usr/local/lib/python3.10/dist-packages/pkg_resources/__init__.py", line 2694, in parsed_version
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement     raise packaging.version.InvalidVersion(f"{str(ex)} {info}") from None
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: '1.16.0-unknown' (package: gpg)
Feb 18 11:28:53 ip-10-0-0-159 [email protected][62253]: ERROR placement
root@ip-10-0-0-159:/home/ubuntu# apt-get install python3-gpg
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-gpg is already the newest version (1.16.0-1.2ubuntu4).
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
root@ip-10-0-0-159:/home/ubuntu# pip list|grep gpg
gpg                    1.16.0-unknown

so the problem is the version that pip is returning for gpg(?)

https://bugs.launchpad.net/ubuntu/+source/gpgme1.0/+bug/1977645

looks like this issue broken in both ubuntu 20 and 22, plus no fix is released. So we cannot get it working with ubuntu. Same bug exists in debian 10 + 11, its fixed in debian 12 but debian 12 is not available yet in gcp as its experimental.

@zetaab zetaab changed the title wip: Update k3s and test image to ubuntu 22 Update k3s and test image to ubuntu 22 Feb 18, 2023
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 18, 2023
@zetaab
Copy link
Member Author

zetaab commented Feb 18, 2023

/override openstack-cloud-csi-manila-e2e-test

@k8s-ci-robot
Copy link
Contributor

@zetaab: Overrode contexts on behalf of zetaab: openstack-cloud-csi-manila-e2e-test

In response to this:

/override openstack-cloud-csi-manila-e2e-test

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/test-infra repository.

@zetaab
Copy link
Member Author

zetaab commented Feb 18, 2023

/retest

@jichenjc
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 19, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jichenjc

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 19, 2023
@k8s-ci-robot k8s-ci-robot merged commit 6314f4e into kubernetes:master Feb 19, 2023
@zetaab zetaab deleted the updateimgk3s branch February 19, 2023 19:39
m-bull pushed a commit to stackhpc/cloud-provider-openstack that referenced this pull request Feb 23, 2023
* use ubuntu focal

* update k3s used in tests

* update default version
m-bull pushed a commit to stackhpc/cloud-provider-openstack that referenced this pull request Feb 23, 2023
* use ubuntu focal

* update k3s used in tests

* update default version
@zetaab zetaab mentioned this pull request Mar 3, 2023
kayrus pushed a commit to kayrus/cloud-provider-openstack that referenced this pull request Oct 19, 2023
* use ubuntu focal

* update k3s used in tests

* update default version
k8s-ci-robot pushed a commit that referenced this pull request Oct 19, 2023
* [1.26.4] 1.26.4 release

* update kubernetes/kubernetes to 1.26.9 in go.mod

* .: bump golang.org/x/net to v0.17.0

Bumping golang.org/x/net in light of CVE-2023-39325 and CVE-2023-44487.

* Update k3s and test image to ubuntu 22 (#2108)

* use ubuntu focal

* update k3s used in tests

* update default version

* tests: Remove support for preinstalled images

This never worked and the image in question is no longer available.

Signed-off-by: Stephen Finucane <[email protected]>

* Fix tests

* Use dl.k8s.io instead of hardcoded GCS URIs (#2240)

The `storage.googleapis.com/kubernetes-release` URL is a hard coded path
to a GCS bucket location. To allow redirecting and spreading the load
across multiple hosting locations, the `dl.k8s.io` URL has been
introduced.

Signed-off-by: Sean McGinnis <[email protected]>

* Add Dockerfile

---------

Signed-off-by: Stephen Finucane <[email protected]>
Signed-off-by: Sean McGinnis <[email protected]>
Co-authored-by: Jesse Haka <[email protected]>
Co-authored-by: Stephen Finucane <[email protected]>
Co-authored-by: Sean McGinnis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants