use_blockstorage_volume option causes error 'There is no such action: os-set_image_metadata","code":400'

Đang mở
#16 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
go
Lĩnh vực
cloud

Hướng nghiên cứu

Bắt đầu tại đường dẫn builder của OpenStack xử lý use_blockstorage_volume và thiết lập metadata của image trên volume. Tái hiện lỗi bằng buildfile Packer được giản lược và so sánh kết quả với packer-log.txt. Hoàn tất khi build không còn thất bại do action os-set_image_metadata không được hỗ trợ.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug builder/openstack community-supported plugin

This issue was originally opened by @vertrost as hashicorp/packer#8429. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.


Overview of the Issue

I am building suse15 image with packer and ansible scripts, however when I am adding parameter "use_blockstorage_volume": "true" - image building fails with error:

Build 'openstack' errored: Error setting image metadata: Bad request with: [POST https://<openstack_url>/v3/0c2ea4d147794927b81dd1a3807788de/volumes/b8057af7-e582-4f38-993c-20085e958d22/action], error message: {"badRequest":{"message":"There is no such action: os-set_image_metadata","code":400}}
Reproduction Steps

Build image with provided json.

Packer version

1.4.5

Simplified Packer Buildfile
{
  "provisioners": [{
    "type": "shell-local",
    "inline": ["echo 'rubber ducky'> ducky.txt"]
  }],
  "builders": [{
    "type": "openstack",
    "identity_endpoint": "...",
    "tenant_name": "{{user `dev_tenant_name`}}",
    "domain_name": "{{user `dev_domain_name`}}", 
    "username": "{{user `dev_username`}}",
    "password": "{{user `dev_password`}}",
    "ssh_username": "linux",
    "region": "...",
    "image_name": "suse15",
    "instance_name": "suse15-packer",
    "source_image_name": "Beta_SLES15_SP0_latest",
    "availability_zone": "...",
    "flavor": "s2.medium.1",
    "networks": ["..."],
    "security_groups" : ["sg-packer"],
    "use_blockstorage_volume": "true"
  }],
  "post-processors": [{
    "strip_path": true,
    "output": "packer-template-centos-updating-result.log",
    "type": "manifest"
  }]
}
Log Fragments and crash.log files

packer-log.txt

Ngôn ngữ chính
Go
Star
29
Fork
27
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của hashicorp/packer-plugin-openstack

Tất cả issue của hashicorp/packer-plugin-openstack

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.