[JIRA] (OVIRT-2359) Set environment variable in jenkins user's env
to inidicate it's a container
by Daniel Belenky (oVirt JIRA)
[ https://ovirt-jira.atlassian.net/browse/OVIRT-2359?page=com.atlassian.jir... ]
Daniel Belenky commented on OVIRT-2359:
---------------------------------------
Solution I've implemented is adding another systemd unit that reads environment from /proc/1/environ, filters some irrelevant vars such as HOME and PATH, formats the data and writes the rest to /etc/environment. Then /etc/environment is used as EnvironmentFile for systemd which then loads jenkins-jnlp-agent.
The current containers startup script gets (via CLI) and a list of agent secrets.
I've created OVIRT-2364 to automatically register agents and generate the names.
> Set environment variable in jenkins user's env to inidicate it's a container
> ----------------------------------------------------------------------------
>
> Key: OVIRT-2359
> URL: https://ovirt-jira.atlassian.net/browse/OVIRT-2359
> Project: oVirt - virtualization made easy
> Issue Type: Task
> Reporter: Daniel Belenky
> Assignee: infra
>
> We need to set a variable under the jenkins user that will indicate we're running inside a container.
--
This message was sent by Atlassian Jira
(v1001.0.0-SNAPSHOT#100090)
6 years, 4 months
[JIRA] (OVIRT-2364) STDCI containers should register themselves as
agents
by Daniel Belenky (oVirt JIRA)
[ https://ovirt-jira.atlassian.net/browse/OVIRT-2364?page=com.atlassian.jir... ]
Daniel Belenky updated OVIRT-2364:
----------------------------------
Description: Instead of manually setting up an agent from Jenkins GUI, run_stdci_containers.sh should register them automatically. (was: Instead of manually setting up an agent from Jenkins GUI, STDCI containers should register automatically upon startup)
> STDCI containers should register themselves as agents
> -----------------------------------------------------
>
> Key: OVIRT-2364
> URL: https://ovirt-jira.atlassian.net/browse/OVIRT-2364
> Project: oVirt - virtualization made easy
> Issue Type: Task
> Reporter: Daniel Belenky
> Assignee: infra
>
> Instead of manually setting up an agent from Jenkins GUI, run_stdci_containers.sh should register them automatically.
--
This message was sent by Atlassian Jira
(v1001.0.0-SNAPSHOT#100090)
6 years, 4 months
Build failed in Jenkins: system-sync_mirrors-epel-el7-x86_64 #1656
by jenkins@jenkins.phx.ovirt.org
See <http://jenkins.ovirt.org/job/system-sync_mirrors-epel-el7-x86_64/1656/dis...>
------------------------------------------
Started by timer
[EnvInject] - Loading node environment variables.
Building remotely on mirrors.phx.ovirt.org (mirrors) in workspace <http://jenkins.ovirt.org/job/system-sync_mirrors-epel-el7-x86_64/ws/>
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url http://gerrit.ovirt.org/jenkins.git # timeout=10
Cleaning workspace
> git rev-parse --verify HEAD # timeout=10
Resetting working tree
> git reset --hard # timeout=10
> git clean -fdx # timeout=10
Pruning obsolete local branches
Fetching upstream changes from http://gerrit.ovirt.org/jenkins.git
> git --version # timeout=10
> git fetch --tags --progress http://gerrit.ovirt.org/jenkins.git +refs/heads/*:refs/remotes/origin/* --prune
> git rev-parse origin/master^{commit} # timeout=10
Checking out Revision 2f98558c97f22c06e50cbd4e435866e077ecdba6 (origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 2f98558c97f22c06e50cbd4e435866e077ecdba6
Commit message: "Add DSL handling for the 'reporting' option"
> git rev-list --no-walk 2f98558c97f22c06e50cbd4e435866e077ecdba6 # timeout=10
[system-sync_mirrors-epel-el7-x86_64] $ /bin/bash -xe /tmp/jenkins8394307344546902714.sh
+ jenkins/scripts/mirror_mgr.sh resync_yum_mirror epel-el7 x86_64 jenkins/data/mirrors-reposync.conf
Checking if mirror needs a resync
Resyncing repo: epel-el7
Syncing yum repo epel-el7 for arch: x86_64
epel-el7/group | 365 kB 00:00
godot-3.0.4-1.el7.x86_64: Insufficient space in download directory /var/www/html/repos/yum/epel-el7/base/Packages/g
* free 20 k
* needed 15 M
php-bartlett-php-compatinfo-db-1.33.0-1.el7.noarch: Insufficient space in download directory /var/www/html/repos/yum/epel-el7/base/Packages/p
* free 20 k
* needed 342 k
godot-server-3.0.4-1.el7.x86_64: Insufficient space in download directory /var/www/html/repos/yum/epel-el7/base/Packages/g
* free 20 k
* needed 15 M
godot-runner-3.0.4-1.el7.x86_64: Insufficient space in download directory /var/www/html/repos/yum/epel-el7/base/Packages/g
* free 20 k
* needed 6.7 M
Traceback (most recent call last):
File "/usr/bin/reposync", line 343, in <module>
main()
File "/usr/bin/reposync", line 326, in main
result, error = my.sigCheckPkg(pkg)
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 2759, in sigCheckPkg
ts, po.localPkg(), payload=self.conf.payload_gpgcheck,
File "/usr/lib/python2.7/site-packages/rpmUtils/miscutils.py", line 76, in checkSig
fdno = os.open(package, os.O_RDONLY)
OSError: [Errno 2] No such file or directory: '/var/www/html/repos/yum/epel-el7/base/Packages/g/godot-3.0.4-1.el7.x86_64.rpm'
Build step 'Execute shell' marked build as failure
6 years, 4 months