Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

mock and systemd nspawn #74

Closed
pcfe opened this issue Jul 19, 2017 · 3 comments
Closed

mock and systemd nspawn #74

pcfe opened this issue Jul 19, 2017 · 3 comments
Assignees
Labels

Comments

@pcfe
Copy link
Collaborator

pcfe commented Jul 19, 2017

note to self:
config_opts['use_nspawn'] = False
to

  • docs
  • example config el7
  • example config el6
    if in testing I continue having issues with mock builds with the latest mock
@pcfe pcfe self-assigned this Jul 19, 2017
@pcfe pcfe added the bug label Jul 19, 2017
@pcfe
Copy link
Collaborator Author

pcfe commented Jul 19, 2017

note to self: at $current_customer disabling nspawn made mock builds for el6 and el7 work again.
Debug in the w-e on home setup (where it's more acceptable to have a couple days of broken builds)

pcfe added a commit that referenced this issue Jul 19, 2017
@pcfe
Copy link
Collaborator Author

pcfe commented Jul 19, 2017

note to self:
yeah systemd-nspawn enabled builds also broken on home-setup (that's a RHEL7 box building RHEL7 packages)

INFO: mock.py version 1.4.2 starting (python version = 2.7.5)...
Start: init plugins
INFO: selinux disabled
Finish: init plugins
Start: run
INFO: Start(./bats.spec)  Config(rhel-7-x86_64)
Start: clean chroot
Finish: clean chroot
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
Start: unpacking root cache
Finish: unpacking root cache
INFO: enabled yum cache
Start: cleaning yum metadata
Finish: cleaning yum metadata
INFO: enabled HW Info plugin
Mock Version: 1.4.2
INFO: Mock Version: 1.4.2
ERROR: Exception(./bats.spec) Config(rhel-7-x86_64) 1 minutes 31 seconds
INFO: Results and/or logs in: /var/lib/jenkins/workspace/after-github-pr/tmp/srpms
INFO: Cleaning up build root ('cleanup_on_failure=True')
Start: clean chroot
Finish: clean chroot
ERROR: Command failed: 
 # /usr/bin/systemd-nspawn -q -M b020e25c9ada4fb5b4ecc9f818b39d3d -D /var/lib/mock/rhel-7-x86_64/root --setenv=LANG=en_US.UTF-8 --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOSTNAME=mock --setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007" --setenv=HOME=/builddir --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PS1=<mock-chroot> \s-\v\$  /usr/sbin/groupadd -g 135 mockbuild

ERROR:   Could not build SRPM bats using the specfile ./bats.spec [Wed Jul 19 17:49:28 CEST 2017]

@pcfe
Copy link
Collaborator Author

pcfe commented Jul 19, 2017

PR #75 fixes the problem (simply by disabling the new systemd-nspawn for the mock builds)

@pcfe pcfe closed this as completed in 3ed2845 Jul 19, 2017
nstrug pushed a commit that referenced this issue Aug 16, 2019
* Introdcue pipeline as code

* adjusted copy of buildtestvms.sh

* introduce sleep flag to puppet-done-test.sh

* added one forced puppet run before we start waiting

* remove workspace cleanup plugin specific step and use deleteDir instead

* disable systemd-nspawn in mock. Fixes #74

* Cleanups 20170914 (#78)

* info -> inform

info is a shell command, so switch to infrom as function name
for printing info.

* first version of capsule sync check

* explain why pushtests.sh can take a long time

* remove superfuous spaces in README.md

* fix typo in variable name

* echo before sleep when poking SUT

* fixup, had one inform line twice

* wait for both ContentView and Repository syncs

* Issue 87 (#89)

* remove note to disable SELinux. Closes #87

* fixup, typo

* fixes #25

* use capsule-sync-check.sh in Jenkinsfile

* introduce timeouts for puppet-done-test

- should fix Issue #97
- working fine when tested at $current_customer

* Wait for build of test VMs to end (#96)

* make buildtestvms.sh wait for SUT to exit build state

* sleep 10 -> 15 and shorted log output

* only check every minute on an installing VM

* fixup: typo

* split up prep and test stages

* add config option for rhel version

* rename from elX to rhel-x, add documentation for pipeline in general

* fixed typo in markdown

* rhel-version param is defined in pipeline job, removed param from config.xml for polling job

* minor corrections after proofreading

* Issue 106: Always display all stages in jenkins' (classic) stage view

* fixed typo

* Satellite 6.3 fixed Bug 1417976 remove Sat 6.2 work-around in buildtestvms.sh

* adjust hammer command for Sat 6.3.2

* fixup, clarify log message

* minor documentation fix

* fixed markdown and adjusted headers

* add lost statement that the jenkins user has to own the job config file

* forgotten info -> infrom fixed in two files

* use the intended CV for pipeline job

* Sat 6.3, 6.4 and 6.5 added to readme

* new path for hammer CLI config

* adjust install guide link to Sat 6.5 one

* link to latest hammer cli config docs

* allow promote environment out of sequence
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant