#44 repo file with enabled=0 newly
Closed: upstream Opened by jaruga.

I created config.yaml.

document: modularity-testing
version: 1
name: ruby
modulemd-url: http://raw.githubusercontent.com/container-images/ruby/master/ruby.yaml
packages:
    rpms:
        - ruby
testdependecies:
    rpms:
        - nc
module:
    docker:
        start: "docker run -it -p 11211:11211"
        labels:
            description: "An interpreter of object-oriented scripting language"
            io.k8s.description: "An interpreter of object-oriented scripting language"
        source: https://github.com/sclorg/s2i-ruby-container.git
        container: docker.io/junaruga/ruby
    rpm:
        repos:
            - http://download.eng.brq.redhat.com/pub/fedora/linux/development/rawhide/Everything/x86_64/os/
test:
    cmd:
        - 'which ruby'
    version:
        - 'ruby -v'
testhost:
    cmd_on_host:
        - 'which ruby'
    version_on_host:
        - 'ruby -v'

And ran below command.

$ sudo MODULE=nspawn avocado run ./*.py

/etc/yum.repos.d/ruby.repo was created with enabled=0.
As a result, I could not get the package from the repo.
It looks bug.

[ruby1]
name=ruby1
baseurl=http://download.eng.brq.redhat.com/pub/fedora/linux/development/rawhide/Everything/x86_64/os/
enabled=0
gpgcheck=0

As my information, I did below hack to pass the program for my SELinux disabled environment.

$ diff /usr/lib/python2.7/site-packages/moduleframework/module_framework.py{.org,}
402c402
<         self.runHost("setenforce 0")
---
>         self.runHost("setenforce 0 || true", shell=True)
513c513
<         self.runHost("setenforce 1")
---
>         self.runHost("setenforce 1 || true", shell=True)

It is already fixed by https://pagure.io/modularity-testing-framework/c/61d37460d5323004e7ce488a1892bc18d4070046?branch=master

Metadata Update from @jscotka:
- Issue close_status updated to: upstream
- Issue status updated to: Closed (was: Open)

@jscotka sure. thanks for fixing.

Metadata