redhat-openstack / infrared

Plugin based framework that aims to provide an easy-to-use CLI for Ansible based projects
https://infrared.readthedocs.io/en/latest/index.html
Apache License 2.0
99 stars 96 forks source link

urlopen error: https://url.corp.redhat.com/rhel-guest-image-7-6-210-x86-64-qcow2 #401

Open shyam-biradar opened 3 years ago

shyam-biradar commented 3 years ago

Command: infrared virsh --host-address $HOST --host-key $HOST_KEY --topology-nodes "undercloud:1,controller:1,compute:1"

Failed with Error:

TASK [download base image for node] ***** FAILED - RETRYING: download base image for node (5 retries left). FAILED - RETRYING: download base image for node (4 retries left). FAILED - RETRYING: download base image for node (3 retries left). FAILED - RETRYING: download base image for node (2 retries left). FAILED - RETRYING: download base image for node (1 retries left). failed: [hypervisor] (item={'value': {u'preallocation': u'metadata', u'import_url': None, u'path': None, u'cache': u'unsafe', u'dev': u'/dev/vda', u'size': u'55G'}, 'key': u'disk1'}) => {"attempts": 5, "changed": false, "dest": "/var/lib/libvirt/images/rhel-guest-image-7-6-210-x86-64-qcow2.original", "item": {"key": "disk1", "value": {"cache": "unsafe", "dev": "/dev/vda", "import_url": null, "path": null, "preallocation": "metadata", "size": "55G"}}, "msg": "Request failed: <urlopen error [Errno -2] Name or service not known>", "state": "absent", "url": "https://url.corp.redhat.com/rhel-guest-image-7-6-210-x86-64-qcow2"}

NO MORE HOSTS LEFT ** to retry, use: --limit @/root/.infrared/plugins/virsh/main.retry

PLAY RECAP ** hypervisor : ok=101 changed=12 unreachable=0 failed=1 localhost : ok=4 changed=2 unreachable=0 failed=0

ERROR Playbook "/root/.infrared/plugins/virsh/main.yml" failed!


Infrared machine OS: RHEL 7

Virsh Host OS: Centos 7.9

fhubik commented 3 years ago

Hey, image download links are not maintained by IR team(s) and change frequently, feel free to recheck correct links (note we can not share internal links in public repo) - it is also good oportunity to re-check the semantics of product (RHOS) to RHEL compatibility being deployed (as currently no deployment I am aware of is running on top of old 7.6 anymore).

NileshChandelkar commented 3 years ago

This is only accessible on Internal RH network.

shyam-biradar commented 3 years ago

Hi @fhubik @NileshChandelkar Thanks for the information. I can try with upstrem rdo openstack. Where I need to mention it(use rdo images instead of redhat images) in scripts?

Or just changing infrared client OS to centos will take care of it?

Thanks, Shyam

shyam-biradar commented 3 years ago

One more query, which infrared github branch is stable?

NileshChandelkar commented 3 years ago

@shyam-biradar You can use --image-url https://images.rdoproject.org/CentOS-8-x86_64-GenericCloud.qcow2

shyam-biradar commented 3 years ago

Thanks @NileshChandelkar . I will give a try.