Metric Store deployment failed with error: "rhel-7-server-ose-3.11-rpms is not a valid repository ID"

Solution Verified - Updated -

Issue

Metric Store deployment failed on task oVirt.origin-on-ovirt/tasks/ with the following error:

2019-09-05 14:18:54,110 p=63994 u=root |  TASK [/usr/share/ansible/roles/oVirt.metrics/roles/oVirt.origin-on-ovirt : Enable a RHSM repository] *******************************************************************************************************
2019-09-05 14:18:54,111 p=63994 u=root |  task path: /usr/share/ansible/roles/oVirt.metrics/roles/oVirt.origin-on-ovirt/tasks/create_openshift_bastion_vm.yml:178
2019-09-05 14:18:54,144 p=63994 u=root |  <metrics-store-installer> ESTABLISH SSH CONNECTION FOR USER: None
2019-09-05 14:18:54,145 p=63994 u=root |  <metrics-store-installer> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/etc/pki/ovirt-engine/keys/engine_id_rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/a045caec1d metrics-store-installer. '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
2019-09-05 14:18:54,179 p=63994 u=root |  <metrics-store-installer> (0, '/root\n', '')
2019-09-05 14:18:54,180 p=63994 u=root |  <metrics-store-installer> ESTABLISH SSH CONNECTION FOR USER: None
2019-09-05 14:18:54,181 p=63994 u=root |  <metrics-store-installer> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/etc/pki/ovirt-engine/keys/engine_id_rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/a045caec1d metrics-store-installer '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1567718334.14-32427542490766 `" && echo ansible-tmp-1567718334.14-32427542490766="` echo /root/.ansible/tmp/ansible-tmp-1567718334.14-32427542490766 `" ) && sleep 0'"'"''
2019-09-05 14:18:54,216 p=63994 u=root |  <metrics-store-installer> (0, 'ansible-tmp-1567718334.14-32427542490766=/root/.ansible/tmp/ansible-tmp-1567718334.14-32427542490766\n', '')
2019-09-05 14:18:54,220 p=63994 u=root |  Using module file /usr/lib/python2.7/site-packages/ansible/modules/packaging/os/rhsm_repository.py
2019-09-05 14:18:54,221 p=63994 u=root |  <metrics-store-installer> PUT /root/.ansible/tmp/ansible-local-63994DJdN_X/tmpGejM1S TO /root/.ansible/tmp/ansible-tmp-1567718334.14-32427542490766/AnsiballZ_rhsm_repository.py
2019-09-05 14:18:54,222 p=63994 u=root |  <metrics-store-installer> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/etc/pki/ovirt-engine/keys/engine_id_rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/a045caec1d '[metrics-store-installer]'
2019-09-05 14:18:54,275 p=63994 u=root |  <metrics-store-installer> (0, 'sftp> put /root/.ansible/tmp/ansible-local-63994DJdN_X/tmpGejM1S /root/.ansible/tmp/ansible-tmp-1567718334.14-32427542490766/AnsiballZ_rhsm_repository.py\n', '')
2019-09-05 14:18:54,275 p=63994 u=root |  <metrics-store-installer> ESTABLISH SSH CONNECTION FOR USER: None
2019-09-05 14:18:54,277 p=63994 u=root |  <metrics-store-installer> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/etc/pki/ovirt-engine/keys/engine_id_rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/a045caec1d metrics-store-installer '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1567718334.14-32427542490766/ /root/.ansible/tmp/ansible-tmp-1567718334.14-32427542490766/AnsiballZ_rhsm_repository.py && sleep 0'"'"''
2019-09-05 14:18:54,308 p=63994 u=root |  <metrics-store-installer> (0, '', '')
2019-09-05 14:18:54,309 p=63994 u=root |  <metrics-store-installer> ESTABLISH SSH CONNECTION FOR USER: None
2019-09-05 14:18:54,310 p=63994 u=root |  <metrics-store-installer> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/etc/pki/ovirt-engine/keys/engine_id_rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/a045caec1d -tt metrics-store-installer '/bin/sh -c '"'"'/usr/bin/python /root/.ansible/tmp/ansible-tmp-1567718334.14-32427542490766/AnsiballZ_rhsm_repository.py && sleep 0'"'"''
2019-09-05 14:19:02,240 p=63994 u=root |  <metrics-store-installer> (1, '\r\n{"msg": "rhel-7-server-ose-3.11-rpms is not a valid repository ID", "failed": true, "results": ["Repository \'rhel-7-server-rpms\' is enabled for this system", "Repository \'rhel-7-server-optional-rpms\' is enabled for this system", "Repository \'rhel-7-server-extras-rpms\' is enabled for this system", "Repository \'rhel-7-server-ansible-2.6-rpms\' is enabled for this system", "rhel-7-server-ose-3.11-rpms is not a valid repository ID"], "invocation": {"module_args": {"purge": false, "state": "enabled", "name": ["rhel-7-server-rpms", "rhel-7-server-extras-rpms", "rhel-7-server-optional-rpms", "rhel-7-server-ansible-2.6-rpms", "rhel-7-server-ose-3.11-rpms"]}}}\r\n', 'Shared connection to metrics-store-installer closed.\r\n')
2019-09-05 14:19:02,241 p=63994 u=root |  <metrics-store-installer> Failed to connect to the host via ssh: Shared connection to metrics-store-installer closed.
2019-09-05 14:19:02,242 p=63994 u=root |  <metrics-store-installer> ESTABLISH SSH CONNECTION FOR USER: None
2019-09-05 14:19:02,243 p=63994 u=root |  <metrics-store-installer> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/etc/pki/ovirt-engine/keys/engine_id_rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/a045caec1d metrics-store-installer '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1567718334.14-32427542490766/ > /dev/null 2>&1 && sleep 0'"'"''
2019-09-05 14:19:02,277 p=63994 u=root |  <metrics-store-installer> (0, '', '')
2019-09-05 14:19:02,283 p=63994 u=root |  fatal: [localhost -> metrics-store-installer]: FAILED! => {
    "changed": false, 
    "invocation": {
        "module_args": {
            "name": [
                "rhel-7-server-rpms", 
                "rhel-7-server-extras-rpms", 
                "rhel-7-server-optional-rpms", 
                "rhel-7-server-ansible-2.6-rpms", 
                "rhel-7-server-ose-3.11-rpms"
            ], 
            "purge": false, 
            "state": "enabled"
        }
    }, 
    "msg": "rhel-7-server-ose-3.11-rpms is not a valid repository ID", 
    "results": [
        "Repository 'rhel-7-server-rpms' is enabled for this system", 
        "Repository 'rhel-7-server-optional-rpms' is enabled for this system", 
        "Repository 'rhel-7-server-extras-rpms' is enabled for this system", 
        "Repository 'rhel-7-server-ansible-2.6-rpms' is enabled for this system", 
        "rhel-7-server-ose-3.11-rpms is not a valid repository ID"
    ]
}

Environment

  • Red Hat Virtualization (RHV-M) 4.3.5
  • Ansible 2.8.4
  • ovirt-engine-metrics-1.3.3.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In