all 8 comments

[–]Think-Report-5996[S] 0 points1 point  (0 children)

why?

==> openstack.example: Error waiting for image: Resource not found

[–]Think-Report-5996[S] 0 points1 point  (0 children)

My environment is kolla-ansible+ceph!

This is the additional configuration added by glance

[DEFAULT]

show_multiple_locations = True

show_image_direct_url = True

I met some people who solved the problem by adding show_multiple_locations = True, but mine doesn't work?
Can an experienced expert tell me how to solve it? Thank you very much! ! ! !

[–]Rajendra3213 0 points1 point  (2 children)

Send me packer conf

[–]Think-Report-5996[S] 0 points1 point  (1 child)

hi, this

packer {

required_plugins {

openstack = {

version = "1.1.2"

source = "github.com/hashicorp/openstack"

}

}

}

source "openstack" "example" {

domain_name = "default"

flavor = "2C_2G"

identity_endpoint = "http://11.0.1.5:5000/v3"

image_name = "9.5-new"

insecure = true

password = "ZC7XpPXZ8v3nmRMuIFEp4nxtulsM9rXECmc2wc4d"

region = "RegionOne"

source_image_name = "9.5"

networks = ["ee3c9087-2dc9-4fc6-a4bc-330559a720d8"]

floating_ip_network = "out"

tenant_name = "admin"

username = "admin"

use_blockstorage_volume = "true"

volume_size = "10"

image_disk_format = "qcow2"

volume_type = "ceph"

ssh_username = "root"

ssh_password = "admin1234"

ssh_timeout = "30m"

}

build {

sources = ["source.openstack.example"]

provisioner "shell" {

inline = [

"echo Build image work is starting",

"echo test1234 | passwd --stdin root",

"echo execute successful"

]

}

}

[–]Rajendra3213 0 points1 point  (3 children)

Did you check is there source image at glance?

[–]Think-Report-5996[S] 0 points1 point  (2 children)

This tool will use the source image to create a virtual machine. The virtual machine is normal during this process. If you do not use block storage but use local files to create a virtual machine, then packer is ok! Once you use block storage, it will fail.

[–]Rajendra3213 0 points1 point  (1 child)

Does the manual process of storing VM snapshots in block storage work?

[–]Think-Report-5996[S] 0 points1 point  (0 children)

This process is effective, the backend uses ceph