<div dir="ltr"><div>Hi Zufar,</div><div><br></div><div>Since you are trying to use Agent deploy, you need to use HTTPS instead of HTTP. Try to run the services under HTTPS and see if the problem still happen.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail-m_9025025323927151923gmail_attr">Em sáb, 19 de jan de 2019 às 11:06, Zufar Dhiyaulhaq <<a href="mailto:zufar@onf-ambassador.org" target="_blank">zufar@onf-ambassador.org</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I get some error when trying to create an instance for bare-metal node. Bellow is my troubleshooting. I don't know what is happening. Any suggestions?<br></div><div><b></b></div><div dir="ltr"><b><br></b></div><div dir="ltr"><b>Ironic Error Log</b>:<br>2019-01-19 15:36:41.232 15780 ERROR ironic.drivers.modules.deploy_utils [req-200dac66-0995-41c4-8c8c-dff053d27e36 499299da0c284a4ba9214ea0d83867cc 62088a869020430392a4fb1a0c5d2863 - default default] Agent deploy supports only HTTP(S) URLs as instance_info['image_source'] or swift temporary URL. Either the specified URL is not a valid HTTP(S) URL or is not reachable for node 6c20755a-e36b-495a-98e1-a40f58e5ac3c. Error: Validation of image href secreturl failed, reason: Got HTTP code 404 instead of 200 in response to HEAD request.: ImageRefValidationFailed: Validation of image href secreturl failed, reason: Got HTTP code 404 instead of 200 in response to HEAD request.<br><br>2019-01-19 15:36:41.233 15780 ERROR ironic.conductor.manager [req-200dac66-0995-41c4-8c8c-dff053d27e36 499299da0c284a4ba9214ea0d83867cc 62088a869020430392a4fb1a0c5d2863 - default default] Error while preparing to deploy to node 6c20755a-e36b-495a-98e1-a40f58e5ac3c: Validation of image href secreturl failed, reason: Got HTTP code 404 instead of 200 in response to HEAD request.: ImageRefValidationFailed: Validation of image href secreturl failed, reason: Got HTTP code 404 instead of 200 in response to HEAD request.<br><br><b>Nova Error Log:</b><br>2019-01-19 16:35:52.639 13355 ERROR oslo.service.loopingcall [-] Fixed interval looping call 'nova.virt.ironic.driver.IronicDriver._wait_for_active' failed: InstanceDeployFailure: Failed to provision instance 3$<br>2019-01-19 16:35:52.639 13355 ERROR oslo.service.loopingcall Traceback (most recent call last):<br>2019-01-19 16:35:52.639 13355 ERROR oslo.service.loopingcall   File "/usr/lib/python2.7/site-packages/oslo_service/loopingcall.py", line 137, in _run_loop<br>2019-01-19 16:35:52.639 13355 ERROR oslo.service.loopingcall     result = func(*self.args, **<a href="http://self.kw" target="_blank">self.kw</a>)<br>2019-01-19 16:35:52.639 13355 ERROR oslo.service.loopingcall   File "/usr/lib/python2.7/site-packages/nova/virt/ironic/driver.py", line 505, in _wait_for_active<br>2019-01-19 16:35:52.639 13355 ERROR oslo.service.loopingcall     raise exception.InstanceDeployFailure(msg)<br>2019-01-19 16:35:52.639 13355 ERROR oslo.service.loopingcall InstanceDeployFailure: Failed to provision instance 38c276b1-b88a-4f4b-924b-8b52377f3145: Failed to prepare to deploy: Validation of image href secre$<br>2019-01-19 16:35:52.639 13355 ERROR oslo.service.loopingcall<br>2019-01-19 16:35:52.640 13355 ERROR nova.virt.ironic.driver [req-e11c3fcc-2066-49c6-b47b-0e3879840ad0 7ad46602ac42417a8c798c69cb3105e5 f3bb39ae2e0946e1bbf812bcde6e08a7 - default default] Error deploying instanc$<br>2019-01-19 16:35:52.641 13355 ERROR nova.compute.manager [req-e11c3fcc-2066-49c6-b47b-0e3879840ad0 7ad46602ac42417a8c798c69cb3105e5 f3bb39ae2e0946e1bbf812bcde6e08a7 - default default] [instance: 38c276b1-b88a-4$<br>2019-01-19 16:35:52.641 13355 ERROR nova.compute.manager [instance: 38c276b1-b88a-4f4b-924b-8b52377f3145] Traceback (most recent call last):<br>2019-01-19 16:35:52.641 13355 ERROR nova.compute.manager [instance: 38c276b1-b88a-4f4b-924b-8b52377f3145]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2252, in _build_resources<br>2019-01-19 16:35:52.641 13355 ERROR nova.compute.manager [instance: 38c276b1-b88a-4f4b-924b-8b52377f3145]     yield resources<br>2019-01-19 16:35:52.641 13355 ERROR nova.compute.manager [instance: 38c276b1-b88a-4f4b-924b-8b52377f3145]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2032, in _build_and_run_instance<br>2019-01-19 16:35:52.641 13355 ERROR nova.compute.manager [instance: 38c276b1-b88a-4f4b-924b-8b52377f3145]     block_device_info=block_device_info)<br>2019-01-19 16:35:52.641 13355 ERROR nova.compute.manager [instance: 38c276b1-b88a-4f4b-924b-8b52377f3145]   File "/usr/lib/python2.7/site-packages/nova/virt/ironic/driver.py", line 1136, in spawn<br>2019-01-19 16:35:52.641 13355 ERROR nova.compute.manager [instance: 38c276b1-b88a-4f4b-924b-8b52377f3145]     'node': node_uuid})<br>2019-01-19 16:35:52.641 13355 ERROR nova.compute.manager [instance: 38c276b1-b88a-4f4b-924b-8b52377f3145]   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__<br>2019-01-19 16:35:52.641 13355 ERROR nova.compute.manager [instance: 38c276b1-b88a-4f4b-924b-8b52377f3145]     self.force_reraise()<br>2019-01-19 16:35:52.641 13355 ERROR nova.compute.manager [instance: 38c276b1-b88a-4f4b-924b-8b52377f3145]   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise<br>2019-01-19 16:35:52.641 13355 ERROR nova.compute.manager [instance: 38c276b1-b88a-4f4b-924b-8b52377f3145]     six.reraise(self.type_, self.value, self.tb)<br>2019-01-19 16:35:52.641 13355 ERROR nova.compute.manager [instance: 38c276b1-b88a-4f4b-924b-8b52377f3145]   File "/usr/lib/python2.7/site-packages/nova/virt/ironic/driver.py", line 1128, in spawn<br>2019-01-19 16:35:52.641 13355 ERROR nova.compute.manager [instance: 38c276b1-b88a-4f4b-924b-8b52377f3145]     timer.start(interval=CONF.ironic.api_retry_interval).wait()<br>2019-01-19 16:35:52.641 13355 ERROR nova.compute.manager [instance: 38c276b1-b88a-4f4b-924b-8b52377f3145]   File "/usr/lib/python2.7/site-packages/eventlet/event.py", line 121, in wait<br>2019-01-19 16:35:52.641 13355 ERROR nova.compute.manager [instance: 38c276b1-b88a-4f4b-924b-8b52377f3145]     return hubs.get_hub().switch()<br>2019-01-19 16:35:52.641 13355 ERROR nova.compute.manager [instance: 38c276b1-b88a-4f4b-924b-8b52377f3145]   File "/usr/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 294, in switch<br>2019-01-19 16:35:52.641 13355 ERROR nova.compute.manager [instance: 38c276b1-b88a-4f4b-924b-8b52377f3145]     return self.greenlet.switch()<br>2019-01-19 16:35:52.641 13355 ERROR nova.compute.manager [instance: 38c276b1-b88a-4f4b-924b-8b52377f3145]   File "/usr/lib/python2.7/site-packages/oslo_service/loopingcall.py", line 137, in _run_loop<br>2019-01-19 16:35:52.641 13355 ERROR nova.compute.manager [instance: 38c276b1-b88a-4f4b-924b-8b52377f3145]     result = func(*self.args, **<a href="http://self.kw" target="_blank">self.kw</a>)<br>2019-01-19 16:35:52.641 13355 ERROR nova.compute.manager [instance: 38c276b1-b88a-4f4b-924b-8b52377f3145]   File "/usr/lib/python2.7/site-packages/nova/virt/ironic/driver.py", line 505, in _wait_for_active<br>2019-01-19 16:35:52.641 13355 ERROR nova.compute.manager [instance: 38c276b1-b88a-4f4b-924b-8b52377f3145]     raise exception.InstanceDeployFailure(msg)<br>2019-01-19 16:35:52.641 13355 ERROR nova.compute.manager [instance: 38c276b1-b88a-4f4b-924b-8b52377f3145] InstanceDeployFailure: Failed to provision instance 38c276b1-b88a-4f4b-924b-8b52377f3145: Failed to prep$<br>2019-01-19 16:35:52.641 13355 ERROR nova.compute.manager [instance: 38c276b1-b88a-4f4b-924b-8b52377f3145]<br><b><br>Ironic Configuration:</b><br>[DEFAULT]<br>enabled_drivers=pxe_ipmitool<br>enabled_hardware_types = ipmi<br>log_dir=/var/log/ironic<br>transport_url=rabbit://<a href="http://guest:guest@10.60.60.10:5672/" target="_blank">guest:guest@10.60.60.10:5672/</a><br>auth_strategy=keystone<br>notification_driver = messaging<br><br>[conductor]<br>send_sensor_data = true<br>automated_clean=true<br><br>[swift]<br>region_name = RegionOne<br>project_domain_id = default<br>user_domain_id = default<br>project_name = services<br>password = IRONIC_PASSWORD<br>username = ironic<br>auth_url = <a href="http://10.60.60.10:5000/v3" target="_blank">http://10.60.60.10:5000/v3</a><br>auth_type = password<br><br>[pxe]<br>tftp_root=/tftpboot<br>tftp_server=10.60.60.10<br>ipxe_enabled=True<br>pxe_bootfile_name=undionly.kpxe<br>uefi_pxe_bootfile_name=ipxe.efi<br>pxe_config_template=$pybasedir/drivers/modules/ipxe_config.template<br>uefi_pxe_config_template=$pybasedir/drivers/modules/ipxe_config.template<br>pxe_append_params=coreos.autologin<br>#ipxe_use_swift=True<br><br>[agent]<br>image_download_source = http<br><br>[deploy]<br>http_root=/httpboot<br>http_url=<a href="http://10.60.60.10:8088" target="_blank">http://10.60.60.10:8088</a><br><br>[service_catalog]<br>insecure = True<br>auth_uri=<a href="http://10.60.60.10:5000/v3" target="_blank">http://10.60.60.10:5000/v3</a><br>auth_type=password<br>auth_url=<a href="http://10.60.60.10:35357" target="_blank">http://10.60.60.10:35357</a><br>project_domain_id = default<br>user_domain_id = default<br>project_name = services<br>username = ironic<br>password = IRONIC_PASSWORD<br>region_name = RegionOne<br><br>[database]<br>connection=mysql+pymysql://<a href="http://ironic:IRONIC_DBPASSWORD@10.60.60.10/ironic?charset=utf8" target="_blank">ironic:IRONIC_DBPASSWORD@10.60.60.10/ironic?charset=utf8</a><br><br>[keystone_authtoken]<br>auth_url=<a href="http://10.60.60.10:35357" target="_blank">http://10.60.60.10:35357</a><br>www_authenticate_uri=<a href="http://10.60.60.10:5000" target="_blank">http://10.60.60.10:5000</a><br>auth_type=password<br>username=ironic<br>password=IRONIC_PASSWORD<br>user_domain_name=Default<br>project_name=services<br>project_domain_name=Default<br><br>[neutron]<br>www_authenticate_uri=<a href="http://10.60.60.10:5000" target="_blank">http://10.60.60.10:5000</a><br>auth_type=password<br>auth_url=<a href="http://10.60.60.10:35357" target="_blank">http://10.60.60.10:35357</a><br>project_domain_name=Default<br>project_name=services<br>user_domain_name=Default<br>username=ironic<br>password=IRONIC_PASSWORD<br>cleaning_network = 461a6663-e015-4ecf-9076-d1b502c3db25<br>provisioning_network = 461a6663-e015-4ecf-9076-d1b502c3db25<br><br>[glance]<br>region_name = RegionOne<br>project_domain_id = default<br>user_domain_id = default<br>project_name = services<br>password = IRONIC_PASSWORD<br>username = ironic<br>auth_url = <a href="http://10.60.60.10:5000/v3" target="_blank">http://10.60.60.10:5000/v3</a><br>auth_type = password<br>temp_url_endpoint_type = swift<br>swift_endpoint_url = <a href="http://10.60.60.10:8080/v1/AUTH_%(tenant_id)s" target="_blank">http://10.60.60.10:8080/v1/AUTH_%(tenant_id)s</a><br>swift_account = AUTH_f3bb39ae2e0946e1bbf812bcde6e08a7<br>swift_container = glance<br>swift_temp_url_key = secret<br><br><b>Temp-URL enable:</b><br>[root@zu-controller0 ~(keystone_admin)]# openstack object store account show<br>+------------+---------------------------------------+<br>| Field      | Value                                 |<br>+------------+---------------------------------------+<br>| Account    | AUTH_f3bb39ae2e0946e1bbf812bcde6e08a7 |<br>| Bytes      | 996                                   |<br>| Containers | 1                                     |<br>| Objects    | 1                                     |<br>| properties | Temp-Url-Key='secret'                 |<br>+------------+---------------------------------------+<br><b><br>Swift Endpoint:</b><br>[root@zu-controller0 ~(keystone_admin)]# openstack endpoint list | grep swift<br>| 07e9d544a44241f5b317f651dce5f0a4 | RegionOne | swift        | object-store | True    | public    | <a href="http://10.60.60.10:8080/v1/AUTH_%(tenant_id)s" target="_blank">http://10.60.60.10:8080/v1/AUTH_%(tenant_id)s</a> |<br>| dadfd168384542b0933fe41df87d9dc8 | RegionOne | swift        | object-store | True    | internal  | <a href="http://10.60.60.10:8080/v1/AUTH_%(tenant_id)s" target="_blank">http://10.60.60.10:8080/v1/AUTH_%(tenant_id)s</a> |<br>| e53aca9d357542868516d367a0bf13a6 | RegionOne | swift        | object-store | True    | admin     | <a href="http://10.60.60.10:8080/v1/AUTH_%(tenant_id)s" target="_blank">http://10.60.60.10:8080/v1/AUTH_%(tenant_id)s</a> |<br><br clear="all"><div><div dir="ltr" class="gmail-m_9025025323927151923gmail-m_-2220337594145170131gmail_signature"><div dir="ltr"><span><div><span style="font-family:arial,helvetica,sans-serif"><span lang="en"><span><br></span></span></span></div><div><span style="font-family:arial,helvetica,sans-serif"><span lang="en"><span>Best Regards,<br></span></span></span></div><span lang="en"><span><span style="font-family:arial,helvetica,sans-serif">Zufar Dhiyaulhaq</span></span></span></span></div></div></div></div></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail-m_9025025323927151923gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><span style="background-color:rgb(255,255,255)"><font style="background-color:transparent"><div><div dir="ltr"><div><div style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:12.8px"><i style="font-size:13px"><font style="color:rgb(0,0,0)">Att[]'s</font><br><font color="#500050"><span style="color:rgb(0,0,0)">Iury Gregory Melo Ferreira</span> </font><br></i><i><font color="#000000">MSc in Computer Science at UFCG<br></font></i></div><div style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:12.8px"><i><font color="#000000">Part of the puppet-manager-core team in OpenStack</font></i><br><i><font color="#000000"><span style="background-color:rgb(255,255,255)"><font style="background-color:transparent"><i><font color="#000000">Software Engineer at Red Hat Czech</font></i></font></span></font></i></div><div><font style="font-family:arial,sans-serif;font-size:12.8px" color="#000000"><i>Social</i>:</font><font style="font-family:arial,sans-serif;font-size:12.8px"><font color="#888888"> </font><a href="https://www.linkedin.com/in/iurygregory" target="_blank"><font color="#0b5394">https://www.linkedin.com/in/iurygregory</font></a></font></div><div><i style="color:rgb(136,136,136);background-color:transparent;font-size:13px"><font color="#500050"><span style="color:rgb(0,0,0)">E-mail: </span> </font><a href="mailto:iurygregory@gmail.com" style="color:rgb(0,84,136)" target="_blank">iurygregory@gmail.com</a></i></div></div></div></div></font></span></div></div></div></div></div></div></div></div></div></div>