You can't do that. You need reference an image.

If you need to build from scratch, use the qemu builder and upload the
image to OpenStack.

On Mon, Mar 30, 2020, 13:48 Sunil Kathait <[email protected]>
wrote:

> my file is here
>
> {
>   "builders": [
>     {
>       "type": "openstack",
>       "provider": "http://<openstack>.metacloud.net:5000/v2.0",
>       "openstack_provider": "",
>       "region": "RegionOne",
>       "ssh_username": "monkey",
>       "image_name": "ubuntu1404_packer_test_1",
>       "source_image": 
> "https:////pkg.adfinis-sygroup.ch/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-NetInstall-1804.iso";,
>       "flavor": "2"
>     }
>   ]
> }
>
> the error i am getting is : openstack: Error launching source server: Bad 
> request with: [POST 
> https://iadosvip01.ece.ellucian.com:8774/v2/78e00e3a402a4d5e8b50f593e92db117/servers],
>  error message: {"badRequest": {"message": "Invalid input for field/attribute 
> imageRef. Value: 
> https://pkg.adfinis-sygroup.ch/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-NetInstall-1804.iso.
>  
> u'https://pkg.adfinis-sygroup.ch/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-NetInstall-1804.iso'
>  is not valid under any of the given schemas", "code": 400}}
>
> i want to download the image from the site 
> https:////pkg.adfinis-sygroup.ch/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-NetInstall-1804.iso
>  and then create a image out of it.
>
> i do not want to give the image id from the existing image in openstack.
>
> how can i achieve this.
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/a9b6a2e1-6e82-4d07-9bad-a3d5e080f16f%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/a9b6a2e1-6e82-4d07-9bad-a3d5e080f16f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt815jY%3DGjoAN%3DF-3d%3DxKw%3Do3-enQmybJJ_fjNHuLPt%3DXg%40mail.gmail.com.

Reply via email to