Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

[JDK] Remove JDK version hardcode and add print in pai_build for debuging #2123

Merged
merged 8 commits into from
Feb 11, 2019

Conversation

ydye
Copy link
Contributor

@ydye ydye commented Feb 2, 2019

Find the old version in apt is overwrited. And build image failed with the error message following.

Get:15 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [8532 B]
Get:16 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.7 kB]
Get:17 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [534 kB]
Get:18 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [6119 B]
Fetched 15.6 MB in 1s (10.3 MB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
E: Version '8u191-b12-0ubuntu0.16.04.1' for 'openjdk-8-jre' was not found
E: Version '8u191-b12-0ubuntu0.16.04.1' for 'openjdk-8-jdk' was not found
The command '/bin/sh -c apt-get -y update &&     apt-get -y install       nano       vim       joe       wget       curl       jq       gawk       psmisc       python       python-yaml       python-jinja2       python-paramiko       python-urllib3       python-tz       python-nose       python-prettytable       python-netifaces       python-dev       python-pip       python-mysqldb       openjdk-8-jre=8u191-b12-0ubuntu0.16.04.1       openjdk-8-jdk=8u191-b12-0ubuntu0.16.04.1       openssh-server       openssh-client       git       bash-completion       inotify-tools       rsync       realpath       net-tools &&     mkdir -p /cluster-configuration &&    git clone https://github.com/Microsoft/pai.git &&    pip install python-etcd docker kubernetes GitPython' returned a non-zero code: 100
2019-02-02 03:54:27,660 - core.build_utility - INFO - Executing command failed: docker build -t dev-box -f src/dev-box/build/dev-box.dockerfile src/dev-box
2019-02-02 03:54:27,660 - core.build_center - ERROR - Build all components failed
2019-02-02 03:54:27,660 - core.build_center - INFO - Begin to clean all temp folder
2019-02-02 03:54:27,667 - core.build_center - INFO - Clean all temp folder succeed
xxxx@xxxxxxxxxxxxx:~/pai/build$ sudo apt-cache madison openjdk-8-jre
openjdk-8-jre | 8u191-b12-2ubuntu0.16.04.1 | http://azure.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
openjdk-8-jre | 8u191-b12-2ubuntu0.16.04.1 | http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
openjdk-8-jre | 8u77-b03-3ubuntu3 | http://azure.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
 openjdk-8 | 8u77-b03-3ubuntu3 | http://azure.archive.ubuntu.com/ubuntu xenial/main Sources
 openjdk-8 | 8u191-b12-2ubuntu0.16.04.1 | http://azure.archive.ubuntu.com/ubuntu xenial-updates/main Sources
 openjdk-8 | 8u191-b12-2ubuntu0.16.04.1 | http://security.ubuntu.com/ubuntu xenial-security/main Sources

@coveralls
Copy link

coveralls commented Feb 2, 2019

Coverage Status

Coverage remained the same at 52.916% when pulling b1b09cb on yuye/remove-jdk-version into 746ccb5 on master.

@ydye ydye changed the title Remove jdk version hardcode [JDK] Update the jdk version to 8u191-b12-2ubuntu0.16.04.1 Feb 2, 2019
@ydye ydye changed the title [JDK] Update the jdk version to 8u191-b12-2ubuntu0.16.04.1 [JDK] Remove JDK version hardcode and add print in pai_build for debuging Feb 2, 2019
@ydye ydye merged commit f0c3c19 into master Feb 11, 2019
@ydye ydye deleted the yuye/remove-jdk-version branch February 12, 2019 06:56
wangdian added a commit that referenced this pull request Feb 13, 2019
* Cleaner logic

* Fix bug

* 1. Remove worker
2. Add interval as var
3. Kill docker, send signal

* Fix '\t'

* Bug fix

* Import re in common

* Update openjdk build version

* [JDK] Remove JDK version hardcode and add print in pai_build for debuging (#2123)

* Change kill signal to 10 (SIGUSR1)

* [Pod Eviction] Disable kubernetes's pod eviction (#2124)

* According to kubernetes/kubernetes#71661

* add imagegc threshold

* Add k8s_POD to white list
Add markdown document for cleaner configuration

* Minor bug fix

* Cleaner logic

* Fix bug

* 1. Remove worker
2. Add interval as var
3. Kill docker, send signal

* Fix '\t'

* Bug fix

* Import re in common

* Update openjdk build version

* Change kill signal to 10 (SIGUSR1)

* Add k8s_POD to white list
Add markdown document for cleaner configuration

* Cleaner logic

* Fix bug

* 1. Remove worker
2. Add interval as var
3. Kill docker, send signal

* Fix '\t'

* Bug fix

* Import re in common

* Update openjdk build version

* Change kill signal to 10 (SIGUSR1)

* Add k8s_POD to white list
Add markdown document for cleaner configuration

* Add comment on cleaner kill handler in rest-server
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants