Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
set -e
source ${HTTPD_CONTAINER_SCRIPTS_PATH}/common.sh
# compatibility symlinks so we hide SCL paths
if [ -v HTTPD_SCL ] ; then
# /opt/rh/httpd24/root/etc/httpd will be symlink to /etc/httpd
mv /opt/rh/httpd24/root/etc/httpd /etc/httpd
docker run -u root -t -i docker.io/centos/httpd-24-centos7 /bin/bash
Смотрим кому пренадлежит файл:
bash-4.2# rpm -qf /etc/httpd/conf/httpd.conf
httpd24-httpd-2.4.25-9.el7.x86_64
Проверяем является ли этот файл частью пакета
bash-4.2# rpm -ql httpd24-httpd-2.4.25-9.el7.x86_64 | grep httpd\\.conf
/opt/rh/httpd24/root/etc/httpd/conf/httpd.conf
Transaction check error:
file /etc/httpd/modules from install of httpd-2.4.6-67.el7_4.6.x86_64 conflicts with file from package httpd24-httpd-2.4.27-8.el7.x86_64
file /etc/httpd/conf.d/autoindex.conf from install of httpd-2.4.6-67.el7_4.6.x86_64 conflicts with file from package httpd24-httpd-2.4.27-8.el7.x86_64
file /etc/httpd/conf.d/welcome.conf from install of httpd-2.4.6-67.el7_4.6.x86_64 conflicts with file from package httpd24-httpd-2.4.27-8.el7.x86_64
file /etc/httpd/conf.modules.d/00-base.conf from install of httpd-2.4.6-67.el7_4.6.x86_64 conflicts with file from package httpd24-httpd-2.4.27-8.el7.x86_64
file /etc/httpd/conf.modules.d/00-proxy.conf from install of httpd-2.4.6-67.el7_4.6.x86_64 conflicts with file from package httpd24-httpd-2.4.27-8.el7.x86_64
file /etc/httpd/conf/httpd.conf from install of httpd-2.4.6-67.el7_4.6.x86_64 conflicts with file from package httpd24-httpd-2.4.27-8.el7.x86_64
file /etc/httpd/logs from install of httpd-2.4.6-67.el7_4.6.x86_64 conflicts with file f
---> Package pagure.noarch 0:2.3.4-1.el7 will be installed
--> Processing Dependency: python-sqlalchemy > 0.8 for package: pagure-2.3.4-1.el7.noarch
--> Processing Dependency: python-pygit2 >= 0.20.1 for package: pagure-2.3.4-1.el7.noarch
--> Processing Dependency: python-wtforms for package: pagure-2.3.4-1.el7.noarch
--> Processing Dependency: python-straight-plugin for package: pagure-2.3.4-1.el7.noarch
--> Processing Dependency: python-redis for package: pagure-2.3.4-1.el7.noarch
--> Processing Dependency: python-pygments for package: pagure-2.3.4-1.el7.noarch
--> Processing Dependency: python-psutil for package: pagure-2.3.4-1.el7.noarch
--> Processing Dependency: python-openid-teams for package: pagure-2.3.4-1.el7.noarch
--> Processing Dependency: python-openid-cla for package: pagure-2.3.4-1.el7.noarch
================================================================================
Package Arch Version Repository
Size
================================================================================
Installing:
pagure noarch 2.3.4-1.el7 epel 6.5 M
Installing for dependencies:
fipscheck x86_64 1.4.1-6.el7 base 21 k
fipscheck-lib x86_64 1.4.1-6.el7 base 11 k
freetype x86_64 2.4.11-15.el7 base 392 k
- name: Add restraint repo for restraint-rhts on Fedora hosts
when: ansible_distribution == 'Fedora'
vars:
copr_fedora_release: >
{{
'rawhide' if ansible_distribution_release == 'Rawhide'
else ansible_distribution_major_version
}}
get_url:
url: "https://copr.fedorainfracloud.org/coprs/bpeck/restraint/repo/\
- block:
- name: Gather facts
setup:
delegate_facts: True
- name: Add restraint repo for restraint-rhts on Fedora hosts
when: ansible_distribution == 'Fedora'
vars:
copr_fedora_release: >
{{
diff --git a/virttest/qemu_vm.py b/virttest/qemu_vm.py
index 64a8221..44aafeb 100644
--- a/virttest/qemu_vm.py
+++ b/virttest/qemu_vm.py
@@ -992,6 +992,8 @@ class VM(virt_vm.BaseVM):
spice_opts.append(opt_string % tmp)
elif fallback:
spice_opts.append(fallback)
+ else:
+ spice_opts.pop(key, None)
"""
Description: Support functionality for Selenium WebDriver.
Author: pnovotny
"""
from selenium.common import exceptions as selenium_ex
from selenium.webdriver.support.ui import WebDriverWait as BaseWebDriverWait
import raut.lib.selenium.ui.exceptions as ui_exceptions
#!/usr/bin/python
import zope
from zope import interface
from zope.interface.interface import adapter_hooks
class IOSystem(interface.Interface):
req = interface.Attribute("OS req.")
@interface.implementer(IOSystem)